Starting from:

$25

CS455 -  Assignment #2  - Solved

1.       True or false?

a.  A user requests a Web page that consists of some text and three images. For this page, the client will send one request message and receive four response messages.

b.  Two distinct Web pages (for example, www.mit.edu/research.html and www.mit.edu/students.html) can be sent over the same persistent connection.

c.  With nonpersistent connections between browser and origin server, it is possible for a single TCP segment to carry two distinct HTTP request messages.

d.  The Date: header in the HTTP response message indicates when the object in the response was last modified.

e.  HTTP response messages never have an empty message body.

 

2.       Consider an HTTP client that wants to retrieve a Web document at a given URL. The IP address of the HTTP server is initially unknown. What transport and application-layer protocols besides HTTP are needed in this scenario?

 

3.       Consider the following string of ASCII characters that were captured by Wireshark when the browser sent an HTTP GET message (i.e., this is the actual content of an HTTP GET message).

The characters <cr><lf> are carriage return and line-feed characters (that is, the italized character string <cr> in the text below represents the single carriage-return character that was contained at that point in the HTTP header). Answer the following questions, indicating where in the HTTP GET message below you find the answer.

GET /cs453/index.html HTTP/1.1<cr><lf>Host: gaia.cs.umass.edu<cr><lf>User- 

Agent: Mozilla/5.0 (Windows;U; Windows NT 5.1; en-US; rv:1.7.2) 

Gecko/20040804 Netscape/7.2 (ax) <cr><lf>Accept:ext/xml, application/xml, application/xhtml+xml, text/html;q=0.9, 

text/plain;q=0.8,image/png,*/*;q=0.5<cr><lf>Accept-Language: en- us,en;q=0.5<cr><lf>Accept-Encoding: zip,deflate<cr><lf>Accept-Charset: ISO8859- 1,utf-8;q=0.7,*;q=0.7<cr><lf>Keep-Alive: 300<cr><lf>Connection:keep- alive<cr><lf><cr><lf>  

a.   What is the URL of the document requested by the browser?

b.  What version of HTTP is the browser running?

c.   Does the browser request a non-persistent or a persistent connection?

d.  What is the IP address of the host on which the browser is running?

e.   What type of browser initiates this message? Why is the browser type needed in an HTTP request message?

 

4.       Suppose within your Web browser you click on a link to obtain a Web page. The IP address for the associated URL is not cached in your local host, so a DNS lookup is necessary to obtain the IP address. Suppose that n DNS servers are visited before your host receives the IP address from DNS; the successive visits incur an RTT of RTT1,. . .,RTTn. Further suppose that the Web page associated with the link contains exactly one object, consisting of a small amount of HTML text. Let RTT0 denote the RTT between the local host and the server containing the object. Assuming zero transmission time of the object, how much time elapses from when the client clicks on the link until the client receives the object?

 

5.       Referring to Problem P7, suppose the HTML file references eight very small objects on the same server. Neglecting transmission times, how much time elapses with

a.  Non-persistent HTTP with no parallel TCP connections?

b.  Non-persistent HTTP with the browser configured for 5 parallel connections?  c. Persistent HTTP?

 

6.       Consider Figure 2.12 , for which there is an institutional network connected to the Internet. Suppose that

the average object size is 850,000 bits and that the average request rate from the institution’s browsers to the origin servers is 16 requests per second. Also suppose that the amount of time it takes from when the router on the Internet side of the access link forwards an HTTP request until it receives the response is three seconds on average (see Section 2.2.5). Model the total average response time as the sum of the average access delay (that is, the delay from Internet router to institution router) and the average Internet

delay. For the average access delay, use Δ/(1−Δβ), where Δ is the average time required to send an object over the access link and b is the arrival rate of objects to the access link.

a.  Find the total average response time.

b.  Now suppose a cache is installed in the institutional LAN. Suppose the miss rate is 0.4. Find the total response time.

 

7.       Consider a short, 10-meter link, over which a sender can transmit at a rate of 150 bits/sec in both directions. Suppose that packets containing data are 100,000 bits long, and packets containing only control (e.g., ACK or handshaking) are 200 bits long. Assume that N parallel connections each get 1/N of the link bandwidth. Now consider the HTTP protocol, and suppose that each downloaded object is 100 Kbits long, and that the initial downloaded object contains 10 referenced objects from the same sender. Would parallel downloads via parallel instances of non-persistent HTTP make sense in this case? Now consider persistent HTTP. Do you expect significant gains over the non-persistent case? Justify and explain your answer.

 

8.       Consider a DASH system for which there are N video versions (at N different rates and qualities) and N audio versions (at N different rates and qualities). Suppose we want to allow the player to choose at any time any of the N video versions and any of the N audio versions.

a.  If we create files so that the audio is mixed in with the video, so server sends only one media stream at given time, how many files will the server need to store (each a different URL)?

b.  If the server instead sends the audio and video streams separately and has the client synchronize the streams, how many files will the server need to store?

 

More products