Answer The Following 3 Questions in 2 Pages: (Total Marks: 30)
Answer The Following 3 Questions in 2 Pages: (Total Marks: 30)
Islam Hegazy
Sciences, Ain Shams University Academic year: 2021-2022
Course Name: Computer Networks Exam: (Midterm) 29/08/2022
Course code: CIS 365 Duration: 1 hour
Year: (Summer term) 3rd undergraduate Total Grade: 30
1
Faculty of Computer & Information Instructor: Dr. Islam Hegazy
Sciences, Ain Shams University Academic year: 2021-2022
Course Name: Computer Networks Exam: (Midterm) 29/08/2022
Course code: CIS 365 Duration: 1 hour
Year: (Summer term) 3rd undergraduate Total Grade: 30
3. The receiver adds the number of bytes it is willing to receive in the receive window field
in the TCP header.
4. File transmission for web page is 1 sec
Time to download the web page = 2 * RTT + file transmission = 200 * 10-3 + 1 = 1.2 sec
File transmission for 200 KB object = 2 sec
File transmission for 500 KB object = 5 sec
Time to download all objects using non-persistent parallel connections = Time to
download web page + max of time to download one object file = 1.2 + 2 * 100 * 10-3 + 5
= 6.4 sec
Question 3: marks: 7
a)
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 only one DNS server, the local DNS cache, is visited with an RTT delay of
RTT0 = 2 msec. Initially, let's suppose that the Web page associated with the link contains exactly
one object, consisting of a small amount of HTML text. Suppose the RTT between the local host
and the Web server containing the object is RTTHTTP = 8 msec.
1. Assuming zero transmission time for the HTML object,
how much time (in msec) elapses from when the
client clicks on the link until the client receives the
object? (2 marks)
2. Now suppose the HTML object references 10 very
small objects on the same server. Neglecting
transmission times, how much time (in msec) elapses
from when the client clicks on the link until the base
object and all 10 additional objects are received from
web server at the client, assuming non-persistent
HTTP and no parallel TCP connections? (2 marks)
3. Suppose the HTML object references 10 very small objects on the same server, but
assume that the client is configured to support a maximum of 5 parallel TCP
connections, with non-persistent HTTP. (3 marks)
Sol:
1. RTT0 + 2*RTTHTTP = 2 + 2*8 = 18 msec
2. RTT0 + 2*RTTHTTP + 2*10*RTTHTTP = 2 + 2*8 + 2*10*8 = 178 msec
3. RTT0 + 2*RTTHTTP + 4*RTTHTTP = 2 + 2*8 + 4*8 = 50 msec