Docsity

introduction to networks, Assignments of Computer Networks

Partial preview of the text

Download introduction to networks and more Assignments Computer Networks in PDF only on Docsity!

Problem (2-1) Suppose within your Web browser you click on a link to obtain a Web page. The [P 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 a Round Trip Time (RTT) of RTT:,. . .RTTs. Further suppose that the Web page associated with the link contains exactly one object, consisting of a small amount of HTML text. Let RTTo denote the Round Trip Time 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? Problem Referring to Problem (2-1), suppose the HTML text file references eight very small objects ‘on the same server. Neglecting transi 1¢, how much time elapses with: a) Non-persistent HTTP with no parallel TCP connections? b) Non-persistent HTTP with the browser configured for 5 paral ©) Persistent HTTP? | connections? Problem (2-3) For the shown Figure, there is an institutional network ‘connected to the Internet. Suppose that the average object size is $50,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. Model the total average response ‘siepacee ine time as the sum of the average access delay (that is, the delay from Internet router to institution router) and the average woman Internet delay. For the average access delay, use A/(1—AB), where A 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. aes aioe a) Find the total average response time b) Now suppose a cache is installed in the institutional LAN with miss rate of (0.4), find the total response time. Problem (2-4) Consider a short, 10-meter link, over which a sender can transmit at a rate of 150 bits/see in both directions. Suppose that packets containing data are 100,000 bits long, and packets containing only control (¢.g., ACK or handshaking) are 200 bits long. Assume that N parallel connections each get I/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. Problem (2-5) Referring to Problem (2-1), suppose the HTML text file references (10) 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 4 parallel connections? ¢) Persistent HTTP with pipelining? ) Persistent HTTP without pipelining? For the shown Figure, there is an institutional network connected to the Internet. Suppose that the average object size is 1Mbits and that the average request rate from the institution’s browsers to the origin servers is 24 requests per second. Also suppose that the amount of time it takes from when the router on the Internet side of the access link sores ce forwards an HTTP request until it receives the response is two seconds on average. Suppose a cache is installed in the so sentas institutional LAN with miss rate of (0.45), find the total response time. (Refer to problem 2-3 for the rules of total average response time). reanora nena “oo Problem (2-7) Consider a 100-meter link, over which a sender can transmit at a rate of 1000 bits/sec in both directions. Suppose that packets containing data are 200,000 bits long. and packets containing only control (¢.g., ACK or handshaking) are 200 bits long. Assume that $ parallel connections each get 1/5 of the link bandwidth. Now consider the HTTP protocol, and suppose that each downloaded object is 200 Kbits long, and that the initial downloaded object contains 5 referenced objects from the same sender. Consider the signals in the link are moving with the speed of light. Calculate the total time needed to receive all objects if: a) Non-persistent HTTP. b) Parallel downloads via parallel instan of non-persistent HTTP.