Problems: Solution

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Problems

Q1. Calculate the total time required to transfer 1000KB file in the following cases
assuming an RTT of 100ms, A packet size of 1 KB data and an internal two RTT of
handshaking before data is sent.

I) The B.W is 1.5Mbps and data packets can be sent continuously.


II) The B.W is 1.5Mbps but after we finish sending we must wait for 1 RTT, before
sending the next.
III) The bandwidth is infinite, means transmit time is zero. And upto 20 packets can
be sent per RTT.

Solution:

I) Delay = 2* RTT+ 1000*{(1KB * 8 / 1.5Mbps) (Transmission delay)} + RTT/2


(propagation delay)
Delay = 2*100ms+5.33s+50ms= 5.58s

Or
Delay = 2* RTT+ 1000*{(1*210 * 8 / 1.5*220 bps) (Transmission delay)} + RTT/2
(propagation delay)
Delay = 2*100ms+5.33s+50ms= 5.58s

No.of packets = 1000KB/1KB= 1000

II) To the above we add the time for (1000-1) = 999 RTTs (the number of RTTs
between when packet 1 arrives and packet 1000 arrives),
for a total of 5.71+99.9 =105.61.

IV) 1000/20=49 and RTT/2 = 49.5 RTTs, plus the initial 2, for 5.15 seconds.
1000/20+0.5+2=51.5RTT= 5.15s
2. Calculate the total time required to transfer a 1.5 MB file in the following cases,
assuming a RTT of 80 ms, a packet size of 1 KB data, and an initial 2×RTT of
“handshaking” before data is sent.

(a) The bandwidth is 10 Mbps, and data packets can be sent continuously.
(b) The bandwidth is 10 Mbps, but after we finish sending each data packet we must
wait one RTT before sending the next.
(c) The link allows infinitely fast transmit, but limits bandwidth such that
only 20 packets can be sent per RTT.

3. Consider a point-to-point link 2 km in length. At what bandwidth would


propagation delay (at a speed of 2 × 10 8m/sec) equal transmit delay for 100-byte
packets? What about 512-byte packets?

Solution:
Propagation delay is 2×103 m/(2×108 m/sec) = 1×10−5sec = 10μs.
Propagation Delay= Transmission Delay
10μs=L/R=100/R
R=100 bytes/10μs=10 bytes/μs, or 10 MB/sec, or 80 Mbit/sec.

For 512-byte packets, this rises to 409.6 Mbit/sec.

4. Consider a point-to-point link 50 km in length. At what bandwidth would


propagation delay (at a speed of 2 × 108 m/sec) equal transmit delay for 100- byte
packets? What about 512-byte packets?

5. Suppose a 100-Mbps point-to-point link is being set up between Earth and a new
lunar colony. The distance from the moon to Earth is approximately 385,000 km, and
data travels over the link at the speed of light—3×108 m/s.
(a) Calculate the minimum RTT for the link.
(b) Using the RTT as the delay, calculate the delay × bandwidth product for the link.
(c) What is the significance of the delay × bandwidth product computed in (b)?
(d) A camera on the lunar base takes pictures of Earth and saves them in digital
format to disk. Suppose Mission Control on Earth wishes to download the most
current image, which is 25 MB. What is the minimum amount of time that will elapse
between when the request for the data goes out and the transfer is finished?

Solution:
(a) The minimum RTT is 2 × 385, 000, 000 m / 3×10 8 m/sec = 2.57 sec.
(b) The delay×bandwidth product is 2.57 sec×100 Mb/sec = 257Mb = 32 MB.
(c) This represents the amount of data the sender can send before it would be
possible to receive a response.
(d) We require at least one RTT before the picture could begin arriving at the ground
(TCP would take two RTTs). Assuming bandwidth delay only, it would then take
25MB/100Mbps = 200Mb/100Mbps = 2.0 sec to finish sending, for a total time of 2.0
+ 2.57 = 4.57 sec until the last picture bit arrives on earth.

You might also like