1.2-Chapter1 Exercises
1.2-Chapter1 Exercises
Exercises 61
2. The Unix utility whois can be used to find the domain name
corresponding to an organization, or vice versa. Read the man
page documentation for whois and experiment with it. Try whois
princeton.edu and whois princeton, for starters. As an alternative,
explore the whois interface at http://www.internic.net/whois.html.
62 CHAPTER 1 Foundation
10. What differences in traffic patterns account for the fact that
STDM is a cost-effective form of multiplexing for a voice
telephone network and FDM is a cost-effective form of
multiplexing for television and radio networks, yet we reject both
as not being cost effective for a general-purpose computer
network?
11. How “wide” is a bit on a 10-Gbps link? How long is a bit in copper
wire, where the speed of propagation is 2.3× 108 m/s?
12. How long does it take to transmit x KB over a y-Mbps link? Give
your answer as a ratio of x and y.
Exercises 63
16. Calculate the latency (from first bit sent to last bit received) for
the following:
(a) 100-Mbps Ethernet with a single store-and-forward switch in
the path and a packet size of 12,000 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.
(c) 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.
PETERSON-AND-DAVIE 07-ch01-000-069-9780123850591 2011/11/1 9:29 Page 64 #65
64 CHAPTER 1 Foundation
17. Calculate the latency (from first bit sent to last bit received) for:
(a) 1-Gbps 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.
(c) Same as (b), but assume the switch implements “cut-
through” switching; it is able to begin retransmitting the
packet after the first 128 bits have been received.
18. Calculate the effective bandwidth for the following cases. For
(a) and (b) assume there is a steady supply of data to send; for
(c) simply calculate the average over 12 hours.
(a) 100-Mbps Ethernet through three store-and-forward
switches as in Exercise 16(b). Switches can send on one link
while receiving on the other.
(b) Same as (a) but with the sender having to wait for a 50-byte
acknowledgment packet after sending each 12,000-bit data
packet.
(c) Overnight (12-hour) shipment of 100 DVDs that hold 4.7 GB
each.
19. Calculate the delay × bandwidth product for the following links.
Use one-way delay, measured from first bit sent to first bit
received.
(a) 100-Mbps Ethernet with a delay of 10 µs.
(b) 100-Mbps Ethernet with a single store-and-forward switch
like that of Exercise 16(b), packet size of 12,000 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 between two groundstations
communicating via a satellite in geosynchronous orbit,
35,900 km high. The only delay is speed-of-light propagation
delay from Earth to the satellite and back.
Exercises 65
A S B
21. Suppose a host has a 1-MB file that is to be sent to another host.
The file takes 1 second of CPU time to compress 50% or 2 seconds
to compress 60%.
(a) Calculate the bandwidth at which each compression option
takes the same total compression + transmission time.
(a) Explain why latency does not affect your answer.
66 CHAPTER 1 Foundation
25. Compare the channel requirements for voice traffic with the
requirements for the real-time transmission of music, in terms of
bandwidth, delay, and jitter. What would have to improve? By
approximately how much? Could any channel requirements be
relaxed?
Exercises 67
30. Consider a simple protocol for transferring files over a link. After
some initial negotiation, A sends data packets of size 1 KB to B; B
then replies with an acknowledgment. A always waits for each
ACK before sending the next data packet; this is known as
stop-and-wait. Packets that are overdue are presumed lost and
are retransmitted.
PETERSON-AND-DAVIE 16-sol-801-814-9780123850591 2011/11/1 23:17 Page 801 #1
Solutions to Select
Exercises
CHAPTER 1
4. We will count the transfer as completed when the last data bit
arrives at its destination
(a) 1.5 MB = 12582912 bits. 2 initial RTTs (160 ms) +
12,582,912/10,000,000 bps (transmit) + RTT/2 (propagation)
≈ 1.458 seconds.
(b) Number of packets required = 1.5 MB/1KB = 1536. To the
above we add the time for 1535 RTTs (the number of RTTs
between when packet 1 arrives and packet 1536 arrives), for a
total of 1.458 + 122.8 = 124.258 seconds.
(c) Dividing the 1536 packets by 20 gives 76.8. This will take 76.5
RTTs (half an RTT for the first batch to arrive, plus 76 RTTs
between the first batch and the 77th partial batch), plus the
initial 2 RTTs, for 6.28 seconds.
(d) Right after the handshaking is done we send one packet.
One RTT after the handshaking we send two packets.
At n RTTs past the initial handshaking we have sent
1 + 2 + 4 + · · · + 2n = 2n+1 − 1 packets. At n = 10 we have
thus been able to send all 1536 packets; the last batch arrives
0.5 RTT later. Total time is 2 + 10.5 RTTs, or 1 second.
14. (a) Propagation delay on the link is (55 × 109 )/(3 × 108 ) = 184
seconds. Thus, the RTT is 368 seconds.
(b) The delay × bandwidth product for the link is
184 × 128 × 103 = 2.81 MB.
(c) After a picture is taken, it must be transmitted on the link and
be completely propagated before Mission Control can
interpret it. Transmit delay for 5 MB of data is 41,943,040
801
PETERSON-AND-DAVIE 16-sol-801-814-9780123850591 2011/11/1 23:17 Page 802 #2
CHAPTER 2
3. The 4B/5B encoding of the given bit sequence is the following:
11011 11100 10110 11011 10111 11100 11100 11101
Bits 1 1 0 1 1 1 1 1 0 0 1 0 1 1 0 1 1 0 1 1 1 0 1 1 1 1 1 1 0 0 1 1 1 0 0 1 1 1 0 0 1 1 1 0 1
NRZ