ACN Solved Que 2 Summer 2023
ACN Solved Que 2 Summer 2023
CO/CM/IF/CW
Advanced Computer network
Summer 2023 Paper
Question 2
How it Works
Address Classes
Class Default Mask Network Bits Host Bits Address Range
Error Handling TCP makes checks for errors and UDP does error checking but no
reporting reporting.
Flow controlling TCP has flow control UDP has no flow control
Data TCP gives guarantee that the order No guarantee of the data
transmission of the data at the receiving end is the transmission order
order same as the sending end
=> HTTP Response sent by a server to the client. The response is used to provide
the client with the resource it requested. It is also used to inform the client that the
action requested has been carried out. It can also inform the client that an error
occurred in processing its request.
1. Status Line
2. Response Header Fields or a series of HTTP headers
3. Message Body
1. Status Line
In the response message, the status line is the first line. The status line contains three
items:
It is used to show the HTTP specification to which the server has tried to make the
message comply.
Example
1. HTTP-Version = HTTP/1.1
b) Status Code
It is a three-digit number that indicates the result of the request. The first digit defines
the class of the response. The last two digits do not have any categorization role.
There are five values for the first digit, which are as follows:
1xx: Information: It shows that the request was received and continuing the process.
2xx: Success: It shows that the action was received successfully, understood, and
accepted.
3xx: Redirection: It shows that further action must be taken to complete the request.
4xx: Client Error: It shows that the request contains incorrect syntax, or it cannot be
fulfilled.
5xx: Server Error: It shows that the server failed to fulfil a valid request.
c) Reason Phrase
It is also known as the status text. It is a human-readable text that summarizes the
meaning of the status code.
1. HTTP/1.1 200 OK
Here, HTTP/1.1 is the HTTP version, 200 is the status code, OK is the reason phrase.
The HTTP Headers for the response of the server contain the information that a client
can use to find out more about the response, and about the server that sent it. This
information is used to assist the client with displaying the response to a user, with
storing the response for the use of future, and with making further requests to the
server now or in the future.
1. response-header = Accept-Ranges
2. | Age
3. | ETag
4. | Location
5. | Proxy-Authenticate
6. | Retry-After
7. | Server
8. | Vary
9. | WWW-Authenticate
The name of the Response-header field can be extended reliably only in combination
with a change in the version of the protocol.
3. Message Body
The response's message body may be referred to for convenience as a response body.
The body of the message is used for most responses. The exceptions are where a
server is using certain status codes and where the server is responding to a client
request, which asks for the headers but not the response body.
For a response to a successful request, the body of the message contains either some
information about the status of the action which is requested by the client or the
resource which is requested by the client.
=>
Types of NAT
Benefits of NAT
Drawbacks of NAT
In essence, NAT acts as a gateway between a private network and the public internet,
enabling multiple devices to share a single public IP address. It has been essential in
addressing the IPv4 address shortage but also introduces certain challenges.