
32. What is the fastest line speed at which a host can blast out 1500-byte TCP payloads
with a 120-sec maximum packet lifetime without having the sequence numbers wrap
around? Take TCP, IP, and Ethernet overhead into consideration. Assume that Ethernet
frames may be sent continuously.
33. In a network that has a maximum TPDU size of 128 bytes, a maximum TPDU lifetime of
30 sec, and an 8-bit sequence number, what is the maximum data rate per connection?
34. Suppose that you are measuring the time to receive a TPDU. When an interrupt occurs,
you read out the system clock in milliseconds. When the TPDU is fully processed, you
read out the clock again. You measure 0 msec 270,000 times and 1 msec 730,000
times. How long does it take to receive a TPDU?
35. A CPU executes instructions at the rate of 1000 MIPS. Data can be copied 64 bits at a
time, with each word copied costing 10 instructions. If an coming packet has to be
copied four times, can this system handle a 1-Gbps line? For simplicity, assume that all
instructions, even those instructions that read or write memory, run at the full 1000-
MIPS rate.
36. To get around the problem of sequence numbers wrapping around while old packets still
exist, one could use 64-bit sequence numbers. However, theoretically, an optical fiber
can run at 75 Tbps. What maximum packet lifetime is required to make sure that future
75 Tbps networks do not have wraparound problems even with 64-bit sequence
numbers? Assume that each byte has its own sequence number, as TCP does.
37. Give one advantage of RPC on UDP over transactional TCP. Give one advantage of
T/TCP over RPC.
38. In
Fig. 6-40(a), we see that it takes 9 packets to complete the RPC. Are there any
circumstances in which it takes exactly 10 packets?
39. In
Sec. 6.6.5, we calculated that a gigabit line dumps 80,000 packets/sec on the host,
giving it only 6250 instructions to process it and leaving half the CPU time for
applications. This calculation assumed a 1500-byte packet. Redo the calculation for an
ARPANET-sized packet (128 bytes). In both cases, assume that the packet sizes given
include all overhead.
40. For a 1-Gbps network operating over 4000 km, the delay is the limiting factor, not the
bandwidth. Consider a MAN with the average source and destination 20 km apart. At
what data rate does the round-trip delay due to the speed of light equal the
transmission delay for a 1-KB packet?
41. Calculate the bandwidth-delay product for the following networks: (1) T1 (1.5 Mbps),
(2) Ethernet (10 Mbps), (3) T3 (45 Mbps), and (4) STS-3 (155 Mbps). Assume an RTT
of 100 msec. Recall that a TCP header has 16 bits reserved for Window Size. What are
its implications in light of your calculations?
42. What is the bandwidth-delay product for a 50-Mbps channel on a geostationary
satellite? If the packets are all 1500 bytes (including overhead), how big should the
window be in packets?
43. The file server of
Fig. 6-6 is far from perfect and could use a few improvements. Make
the following modifications.
a. (a) Give the client a third argument that specifies a byte range.
b. (b) Add a client flag
–w that allows the file to be written to the server.
1. Modify the program of
Fig. 6-20 to do error recovery. Add a new packet type, reset,
that can arrive after a connection has been opened by both sides but closed by neither.
This event, which happens simultaneously on both ends of the connection, means that
any packets that were in transit have either been delivered or destroyed, but in either
case are no longer in the subnet.
2. Write a program that simulates buffer management in a transport entity, using a sliding
window for flow control rather than the credit system of
Fig. 6-20. Let higher-layer
processes randomly open connections, send data, and close connections. To keep it
simple, have all the data travel from machine
A to machine B, and none the other way.
Experiment with different buffer allocation strategies at
B, such as dedicating buffers to
specific connections versus a common buffer pool, and measure the total throughput
achieved by each one.