Answered step by step
Verified Expert Solution
Question
1 Approved Answer
EEM 4 8 2 : Fundamentals of Data Network Homework 1 : Design of Simple Query and Response Protocol ( SQRP ) Version 1 .
EEM : Fundamentals of Data Network
Homework : Design of Simple Query and Response Protocol SQRP Version
Overview:
This assignment involves the design of Version of the Simple Query and Response Protocol SQRPthis is hypothetical protocol, don't check on Internet focusing on file search operations within a specified directory based on file extensions. The protocol must be capable of handling queries and responses between a client and server, facilitating checks for directory existence, file existence, file modification status, and identification of modified files with a specified extension. Version is responsible only checking files in the server.
Objective:
Design the SQRP to enable searching for files with a given threeletter extension egtxtexe in the IhomelHW directory, incorporating the file extension into the protocol's header. The protocol must support the following operations with an byte header limit:
Verify directory existence.
Check file existence.
Determine if an existing file has been modified after a specified timestamp.
Identify files with a specified extension that have been modified after a given timestamp.
Protocol Design Requirements:
Header Structure:
Design an byte header for SQRP that includes the following fields:
MessageType: Distinguishes between a query QUERY and a response RESPONSE
QueryType: Identifies the operation directory search or file search
MessageID: Provides a unique identifier for tracking the message.
Timestamp: Embeds a compact representation of the "modified after" timestamp.
StatusCode for responses only: Indicates the outcome of the operation eg for success, for not found
Reserved: Allocates bytes for future enhancements or additional details.
Message Body:
Utilize the message body to embed primary search parameters and convey search results. The body should list matching files, including their names, paths, and modification dates.
Task Descriptions:
Protocol Specification:
Define and document the SQRPs operational behavior, including header field definitions, encoding schemes for the timestamp, and the handling process for different QueryTypes.
Specify the format and structure for request and response messages under each operation.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started