0% found this document useful (0 votes)
208 views

17i0090 Assignment 3

The document discusses questions related to computer networks and HTTP protocols. It contains questions about HTTP headers, request and response messages, connection types, and file distribution times using different models. Key details summarized include: 1) A GET request is made for the file quotation5.htm. The client supports HTTP/1.1 and prefers various media formats. 2) A response message is sent successfully in HTTP 1.0 with a 200 status code. It contains 418 bytes and was sent on September 27th, 2017. 3) Calculations are shown for file retrieval times using different connection types and numbers of parallel connections.

Uploaded by

Muhammad Hassaan
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
208 views

17i0090 Assignment 3

The document discusses questions related to computer networks and HTTP protocols. It contains questions about HTTP headers, request and response messages, connection types, and file distribution times using different models. Key details summarized include: 1) A GET request is made for the file quotation5.htm. The client supports HTTP/1.1 and prefers various media formats. 2) A response message is sent successfully in HTTP 1.0 with a 200 status code. It contains 418 bytes and was sent on September 27th, 2017. 3) Calculations are shown for file retrieval times using different connection types and numbers of parallel connections.

Uploaded by

Muhammad Hassaan
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

Computer Networks

Assignment 3
17i-0090
B
Question # 01:
Q. What is the name of the file that is being retrieved in this GET message?
Ans.
The name of the file being retrieved in this get message is
/kurose_ross/interactive/quotation5.htm.
Q. What version of HTTP is the client running?
Ans.
HTTP/1.1.
Q. What formats of text, images, audio, and video does the client browser prefer to receive?
[Note: for this and the following questions on browser media and language preferences,
you will need to do a bit of additional reading on the Web.
Ans.
text/plain, text/html, text/xml, image/png, image/gif,
audio/mp4, audio/vnf.wave, video/wmv, video/mp4, application.
Q. What do the strings "application/*" and "*/*" signify in the Accept: header?
Ans.
The asterisk character is used for group media types into ranges with “/ ” indicating all media type. The
media range may include media type parameters that are applicable to the range. The “application/*”
media type specification indicates the browser will accept all subtypes of the application type, and “
*/* ” indicates the browser will accept all media types and subtypes making the application/*.
Q. What languages is the browser indicating that it is willing to accept? [Note: you can look
at your own browser preferences to get a listing of language codes.]
Ans.
The languages browser to accept are the following:
- en(English)
- en-gb(English)
- en-us(English)
Q. What is the meaning of the "relative quality factor," q, associated with the various version
of English?
Ans.
Meaning of the relative quality factor, q indicates the relative degree of preference for that media
range using the q value scale from 0 to 1.
Q. What is the client's preferred version of English? What is the browser's least preferred version of
English?
Ans.
The browser prefers the version of American English since it has an impact q value of 1 but it will be
accepting either British English or vanilla English.
Q. Does the browser sending the HTTP message prefer Swiss French over traditional French? Explain.
Ans.
Browser has no relative preference for vanilla French or Swiss French, as neither has a specified q
value.
Q. Does the client already have a (possibly out-of-date) copy of the requested file? Explain. If so,
approximately how long ago did the client receive the file, assuming the GET request has just been
issued?
Ans.
Time indicates in the browser’s modified in header field is approximately 45 minutes ago indicating
that has a cached copy therefore, server will only send a copy of the requested URL in response to this
HTTP GET message if the server side copy has been changed in the last 45 minutes.
Q. What is the type of client browser and the client's operating system? [Note: To answer this, you'll
need to understand the User Agent: header field.]
Ans.
The type of client browser is browser User agent header field value of Mozilla /5.0 and the client’s
operating system is Chrome/17.0.963.56 Safari/535.11 that is browser/OS type chrome 17.0.

----------------------------------------------------------------------------------------------------------------------------------------------

Question # 02:
Q. Is the response message using HTTP 1.0 or HTTP 1.1? Explain.
Ans.
The response message is by using the HTTP 1.0. In HTTP 1.0 the connection is closed after a single
request/response pair.
Q. Was the server able to send the document successfully? Explain
Ans.
Yes, the server was able to send the document successfully. “HTTP/1.0 200 OK” response indicates
the successful sending of the document.
Q. At what date and time was this response sent?
Ans.
Wed, 27 Sep 2017 19:10:45 +0000.
Q. How many bytes are there in the document being returned by the server?
Ans.
418 bytes are returned by the server.
Q. What is the default mode of connection for http protocol? Is the connection reply
persistent or non-persistent? Explain.
Ans.
The default mode of connection is ‘Close’ for HTPP protocol and the connection is non-persistent
because user HTPP 1.0 connections are not considered persistent unless a keep-alive header is included.
Q. What is the name of the server and its version?
Ans.
Apache/2.2.3 (CentOS).

----------------------------------------------------------------------------------------------------------------------------------------------

Question # 03:

1. 2RTT + RTT + RTT + RTT + Transmission time


= 2(43 * 10^3) + (40 * 10^3) + (6*10^3) + 0
= 0.054
2. 16*RTTO + RTT1 + RTT2 + Transmission Time
= 16(4*10^-3) + (40*10^-3) + (6*10^-3) +0
= 0.11msecs
3. 6*RTTO + RTT1 + RTT2 + Transmission Time
= 6(4*10^-3) + (40*10^-3) + (6*10^-3) +0
= 0.07msecs
4. 3*RTTO + RTT1 + RTT2 + Transmission Time
= 3(4*10^-3) + (40*10^-3) + (6*10^-3) +0
= 0.058msecs
5. Non-persistent connection with parallel connections decrease the time to access the files but in case of
persistent connection least amount of time is used to retrieve files. As for connection in non-persistent we
need to get connection after every request but in persistent connection we only need connection one time
and get the number of files we want on one connection.

----------------------------------------------------------------------------------------------------------------------------------------------

Question # 04:
Q. What is the minimum time needed to distribute this file from the central server to the 10 peers using the
client-server model?

Ans.
The minimum time needed to distribute this file from the central server using Client-Server model is 357.142
secs.

Q. For question 1, what is the root cause of this specific minimum time: the server upload rate, or a specific
client's download rate (and if so, which client?)? Explain your answer

Ans.
The root cause of this specific minimum time is the server upload rate and computes the minimum time
needed to distribute the file Dcs = max {NF/us, F/dmin} = max {357.142, 300}.

Q. What is the minimum time needed to distribute this file using peer-to-peer download?
Ans.
Minimum time needed to distribute this file using peer-to-peer download is 300 secs.

Q. For question 3, what is the root cause of this specific minimum time: the server upload
rate, a specific client's download rate (and if so, which client?), or the sum of the server

and peer upload rates? Explain your answer.

Ans.
The root cause of this specific minimum time is a specific client’s download rate. The minimum time needed to
distribute the file
DP2P > max {F/us,,F/dmin,,NF/(us + Sui)} =max{35.714 , 300 , 107.5268}.

----------------------------------------------------------------------------------------------------------------------------------------------

You might also like