24 PROBLEM SOLUTIONS FOR CHAPTER 5
the question comes down to the relative cost of 40,000 byte-sec of memory
versus 9600 byte-hops of circuit capacity. If memory is depreciated over
2 × 52 × 40 × 3600 = 1.5 × 10
7
sec, a byte-sec costs 6.7 × 10
−8
cents, and
40,000 of them cost just over 2 millicents. If a byte-hop costs 10
−6
cents,
9600 of them cost 9.6 millicents. Virtual circuits are cheaper for this set of
parameters.
6. Yes. A large noise burst could garble a packet badly. With a k-bit checksum,
there is a probability of 2
−k
that the error is undetected. If the destination
field or, equivalently, virtual-circuit number, is changed, the packet will be
delivered to the wrong destination and accepted as genuine. Put in other
words, an occasional noise burst could change a perfectly legal packet for one
destination into a perfectly legal packet for another destination.
7. It will follow all of the following routes: ABCD, ABCF, ABEF, ABEG,
AGHD, AGHF, AGEB, and AGEF. The number of hops used is 24.
8. Pick a route using the shortest path. Now remove all the arcs used in the path
just found, and run the shortest path algorithm again. The second path will be
able to survive the failure of any line in the first path, and vice versa. It is
conceivable, though, that this heuristic may fail even though two line-disjoint
paths exist. To solve it correctly, a max-flow algorithm should be used.
9. Going via B gives (11, 6, 14, 18, 12, 8).
Going via D gives (19, 15, 9, 3, 9, 10).
Going via E gives (12, 11, 8, 14, 5, 9).
Taking the minimum for each destination except C gives (11, 6, 0, 3, 5, 8).
The outgoing lines are (B, B, –, D, E, B).
10. The routing table is 400 bits. Twice a second this table is written onto each
line, so 800 bps are needed on each line in each direction.
11. It always holds. If a packet has arrived on a line, it must be acknowledged. If
no packet has arrived on a line, it must be sent there. The cases 00 (has not
arrived and will not be sent) and 11 (has arrived and will be sent back) are
logically incorrect and thus do not exist.
12. The minimum occurs at 15 clusters, each with 16 regions, each region having
20 routers, or one of the equivalent forms, e.g., 20 clusters of 16 regions of 15
routers. In all cases the table size is 15 + 16 + 20 = 51.
13. Conceivably it might go into promiscuous mode, reading all frames dropped
onto the LAN, but this is very inefficient. Instead, what is normally done is
that the home agent tricks the router into thinking it is the mobile host by
responding to ARP requests. When the router gets an IP packet destined for
the mobile host, it broadcasts an ARP query asking for the 802.3 MAC-level
address of the machine with that IP address. When the mobile host is not