You are on page 1of 2

German University in Cairo

Faculty of Media Engineering and Technology


Amr El Mougy
Lamia AlBadrawy

CSEN503 Introduction to Communication Networks


Winter Term 2014
Practice Assignment 4

Problem Error! Reference source not found.-1


Suppose you access a very small web page using HTTP from your browser. What is the lowest
delay you can hope for between the moment when your browser issues the request until the page
is on your screen?
Solution:
The minimum is 2RTT. The first RTT is incurred when the client sends a packet requesting a
TCP connection, and the server response back to the client. The second RTT is incurred when
the client sends the HTTP GET request to the server, and the server`s response containing the
web page.

Problem Error! Reference source not found.-2


Consider a web page that is composed of a base HTML file and 3 JPEG images, all reside on the
same server. Assume the following:
- The size of each object is 750 kbits.
- The RTT between the client and the server is 1 sec.
- The transmission rate of the link is 100 kbits/s.
(Ignore any processing time at the client and at the server.)
a) When using a non-persistent connection, compute the time elapsed between the moment
when the client sends out the request for the web page and the moment when all 4 objects
have been received by the client. Draw a time chart to clarify your answer.
b) Repeat (a) for the persistent connection without pipelining
c) Repeat (a) for the persistent connection with pipelining

Solution:
a) File Transmission Time = 750*103/100*103 = 7.5 msec.
Request Time for n objects = 2*n*RTT+ Files Transmission Time.
Request Time for n objects = 2*4*1 + 7.5*4= 38 sec.
b) Request Time for n objects = (n + 1)*RTT + Files Transmission Time.
Request Time for n objects = 5*1 + 4*7.5 = 35 sec
1

c) Request Time for the base file + the n objects = 3*1 + 7.5*4 = 33 sec

Problem Error! Reference source not found.-3


Consider a web page consisting of a base file of size 10 kbits, and 9 objects, each 10 kbits in
length. The page and the 9 objects are all stored on the same server which has a 300 msec RTT
from your browser. We will abstract the network path between your browser and the server as a
100 Mb/s link. You can assume that the time it takes to transmit a GET message into the path is
zero, but you should account for the time it takes to transmit the base file and the object into the
link.
a) Assume non-persistent HTTP (and no parallel connections are open between the browser
and the server), how long is the response time from when the user requests the URL till
the page and its objects are displayed? Please describe the various components that
contribute to this delay.
b) Again assume non-persistent HTTP, but now assume that the browser can open as many
parallel TCP connections to the server as it wants. What is the response time in this case
c) Now assume persistent HTTP (i.e., HTTP1.1). What is the response time, assuming no
pipelining?
d) Now suppose persistent HTTP with pipelining is used. What is the response time?
Solution:
a) File Transmission Time = 10*103 / 100*106 = 0.1 msec.
Request Time for n objects = 2*n*RTT+ Files Transmission Time.
Request Time for n objects = 2*10*300 + 0.1*10 = 6001 msec = 6.001 sec.
b) Request Time for n objects = 2 RTT (for base file) +2 RTT (for one object) + Time to
transmit the base file and one object file(bandwidth is divided among the parallel
connections
Request Time for n objects = 4*300 + 0.1 + (10k/(100M/9)) = 1.3009 sec
c) Request Time for n objects = (n + 1)*RTT + Files Transmission Time.
Request Time for n objects = 11*300 + 10*0.1 = 3.301 sec
d) Request Time for the base file + the n objects = 3*300+0.1*10 = 901 msec = 0.9 sec