Professional Documents
Culture Documents
1. In this problem we consider sending voice from Host A to Host B over a packet-
switched network (e.g., Internet phone). Host A converts on-the-fly analog voice to
a digital 64 kbps bit stream. Host A then groups the bits into 48-byte packets.
There is one link between host A and B; its transmission rate is 1 Mbps and its
propagation delay is 2 msec. As soon as Host A gathers a packet, it sends it to Host
B. As soon as Host B receives an entire packet, it coverts the packet's bits to an
analog signal. How much time elapses from when a bit is created (from the original
analog signal at A) until a bit is decoded (as part of the analog signal at B)?
Solution:
Consider the first bit in a packet. Before this bit can be transmitted, all of the bits
in the packet must be generated. This requires
48 8
sec=6msec.
64 10 3
48 8
sec= 384 sec.
1 10 6
A similar analysis shows that all bits experience a delay of 8.384 msec.
2. (a) Generalize the end-to-end delay formula in Section 1.6 for heterogeneous
processing rates, transmission rates, and propagation delays. (b) Repeat (a), but
now also suppose that there is an average queuing delay of dqueue at each node.
q
a) There are Q nodes (the source host and the N 1 routers). Let d proc denote the
processing delay at the q th node. Let R q be the transmission rate of the q th link
and let
L / R q . Let d prop be the propagation delay across the q th link. Then
q q
d trans
Q
d end to end d proc
q
d trans
q
d prop
q
.
q 1
Q
d end to end d proc
q
d trans
q
d prop
q
d queue
q
.
q 1
3. Calculate the total time required to transfer a 1000-KB file in the following cases,
assuming an RTT of 100 ms, a packet size of 1 KB and an initial 2 RTT of
handshaking before data is sent.
(a) The bandwidth is 1.5 Mbps, and data packets can be sent continuously.
(b) The bandwidth is 1.5 Mbps, but after we finish sending each data packet we
must wait one RTT before sending the next.
(c) The bandwidth is infinite, meaning that we take transmit time to be zero, and
up to 20 packets can be sent per RTT.
(d) The bandwidth is infinite, and during the first RTT we can send one packet
(211), during the second RTT we can send two packets (221), during the third
we can send four (231), and so on. (A justification for such an exponential
increase will be given in Chapter 6.)
We will count the transfer as completed when the last data bit arrives at its
destination.
An alternative interpretation would be to count until the last ACK arrives back at
the sender, in which case the time would be half an RTT (50ms) longer.
5. How wide is a bit on a 1-Gbps link? How long is a bit in copper wire, where the
speed of propagation is 2.3 108 m/s?
1 Gbps = 109 bps, meaning each bit is 109 sec (1 ns) wide. The length in the wire
of such a bit is 1 ns 2.3 108 m/sec = 0.23 m
6. 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 light3 108 m/s.
(a) The minimum RTT is 2 385, 000, 000m / 3108m/sec = 2.57 sec.
(b) The delaybandwidth product is 2.57 sec100Mb/sec = 257Mb = 32MB.
(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.
8. For each of the following operations on a remote file server, discuss whether they
are more likely to be delay sensitive or bandwidth sensitive.
9. Calculate the latency (from first bit sent to last bit received) for the following:
(a) 10-Mbps Ethernet with a single store-and-forward switch in the path, and a
packet size of 5000 bits. Assume that each link introduces a propagation delay
of 10 s and that the switch begins retransmitting immediately after it has
finished receiving the packet.
(b)Same as (a) but with three switches.
Same as (a) but assume the switch implements cut-through switching: It is able
to begin retransmitting the packet after the first 200 bits have been received.
(a) One packet consists of 5000 bits, and so is delayed due to bandwidth 500 s
along each link. The packet is also delayed 10 s on each of the two links due to
propagation delay, for a total of 1020s.
(b) With three switches and four links, the delay is
4 500s + 4 10s = 2.04ms
(c) With cut-through, the switch delays the packet by 200 bits = 20s. There is still
one 500s delay waiting for the last bit, and 20s of propagation delay, so the total
is 540s. To put it another way, the last bit still arrives 500s after the first bit; the
first bit now faces two link delays and one switch delay but never has to wait for
the last bit along the way. With three cut-through switches, the total delay would
be:
500 + 3 20 + 4 10 = 600 s
10. Calculate the bandwidth delay product for the following links. Use one-way
delay, measured from first bit sent to first bit received.
(a) 10-Mbps Ethernet with a delay of 10 s.
(b) 10-Mbps Ethernet with a single store-and-forward switch like that of Exercise
18(a), packet size 5000 bits, and 10 s per link propagation delay.
(c) 1.5-Mbps T1 link, with a transcontinental one-way delay of 50 ms.
(d) 1.5-Mbps T1 link through a satellite in geosynchronous orbit, 35,900 km high.
The only delay is speed-of-light propagation delay.
11. For the following, assume that no data compression is done; this would in practice
almost never be the case. For (a)(c), calculate the bandwidth necessary for
transmitting in real time:
(a) A file server needs lots of peak bandwidth. Latency is relevant only if it
dominates bandwidth; jitter and average bandwidth are inconsequential.
No lost data is acceptable, but without real-time requirements we can simply
retransmit lost data.
(b) A print server needs less bandwidth than a file server (unless images are
extremely large). We may be willing to accept higher latency than (a), also.
(c) A file server is a digital library of a sort, but in general the world wide web gets
along reasonably well with much less peak bandwidth than most file servers
provide.
(d) For instrumentmonitoringwe dont care about latency or jitter. If data were
continually generated, rather than bursty, we might be concerned mostly with
average bandwidth rather than peak, and if the data really were routine we might
just accept a certain fraction of loss.
(e) For voice we need guaranteed average bandwidth and bounds on latency and
jitter. Some lost data might be acceptable; e.g. resulting in minor dropouts many
seconds apart.
(f) For video we are primarily concerned with average bandwidth. For the simple
monitoring application here, relatively modest video of Exercise 28(b) might
suffice; we could even go to monochrome (1 bit/pixel), at which point
1601205frames/sec requires 12KB/sec. We could tolerate multisecond latency
delays; the primary restriction is that if the monitoring revealed a need for
intervention then we still have time to act. Considerable loss, even of entire
frames, would be acceptable.
(g) Full-scale television requires massive bandwidth. Latency, however, could be
hours. Jitter would be limited only by our capacity absorb the arrival time variations
by buffering. Some loss would be acceptable, but large losses would be visually
annoying.
13. Suppose Host A wants to send a large file to Host B. The path from Host A
to Host B has three links, of rates R1 = 500 kbps, R2=2Mbps, and R3 =
1Mbps.
c. Repeat (a) and (b), but now with R2 reduced to 100 kbps.
Answer: R2 is now the bottleneck, since it is the slowest of the three links. The
throughput will be 100Kbps, and it will take 32.000.000 / 100.000 = 320 seconds
to transmit the file (or 32.000.000 / 102.400 = 312.5s if you thought 100
Kbps=102.400 bytes/second). If you didnt convert 4 million bytes to bits, then all
the answers would be divided by 8 (40 s and 39.0625 s, respectively.)
14. Suppose two hosts, A and B, are separated by 20.000 kilometers and are
connected by a direct link of R=2 Mbps. Suppose the propagation speed
over the link is 2.5*108 meters/sec.
d. What is the width (in meters) of a bit in the link? Is it longer than a
football field?