

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


th
Internetworking
Assigned reading: Peterson and Davie: Chapter 4. All problems carry equal weight. For full credit, show all work.
1. IP Fragmentation Consider two hosts, A and B, each on a separate shared Ethernet with MTU=1500 bytes. In addition to these LAN's, the route connecting host A to host B through the Internet contains an additional hop over a point-to-point link between a router on A's Ethernet and a second router on B's Ethernet. The point-to-point link has MTU=384 bytes. Recall that MTU is the maximum amount of data that can be sent in a frame at the physical layer and thus includes all TCP and IP headers (each of which occupies 20 bytes). Also recall that IP fragmentation breaks data along 8 byte boundaries. a. An application on host A passes 1480 bytes of data to TCP. Following the approach used to draw Figure 4.4 (page 243 of P&D) but including the TCP header, sketch the packets that cross each link in the route. How many bits are delivered to the network layer protocol at host B? b. If the probability that any IP datagram crossing any link arrives intact (without error) is given by p , calculate the probability that the entire 1480 bytes sent in part (a) arrives without the need for retransmission. c. Calculate the average amount of data, including TCP and IP headers, and including all transmissions and retransmissions, that must be sent by host A in order to successfully deliver the 1480 bytes to an application on host B given p = 4/5, where p is as defined in part (b). Assume that host B will buffer any data that arrives at the TCP level. d. Most IP datagram reassembly algorithms have a timer to avoid having a lost fragment tie up reassembly buffers forever. Suppose a datagram is fragmented into four fragments. The first three fragments arrive, but the last one is delayed. Eventually the timer goes off and the three fragments in the receiver's memory are discarded. A little later, the last fragment stumbles in. What happens to this last fragment at the receiver? 2. Link-State Routing Show how the link-state algorithm builds the routing table for node A in the following network. Use the same format as in P&D (Table 4.9, page 297). 3. Distance-Vector Routing Consider the following network configuration where the routers calculate shortest routes using the Distance Vector Routing Protocol.
Initially, the router tables for routes to node A look like the following:
B C D E Cost Next Hop Cost Next Hop Cost Next Hop Cost Next Hop 1 A 2 B 2 B 3 D
Now, assume node A goes down.
Given the following sequence of routing update messages, fill in the table for the routing entries for reaching A at each event, where the notation B โ C indicates that node B sent a routing update to node C.
Analyze this carefully and try to see whatโs happening compared to what should happen ideally. So what, according to you, is the problem here? Why is it a problem?
4. Multicast vs. Unicast Suppose host A is sending to a multicast group. The destinations are leaf nodes of a tree rooted at A with depth N and with each non-leaf node having k children, so there are kN^ destinations. Ignore counting the ACK's in the following questions. a. How many individual link transmissions are involved if A sends a multicast message to all destinations? b. How many individual link transmissions are involved if A sends a unicast message to each destination? c. Suppose A sends a multicast message to all destinations, but a fraction f of the destinations fail to receive the message. Option (i) is to send a separate unicast transmission to each of those destinations. Option (ii) is to send a single multicast transmission to all destinations. Which option requires more individual link transmissions? (Your answer should depend on the values of N , k , and f .) 5. Forwarding and Classless Interdomain Routing (CIDR) Suppose a router has built up the routing table shown below. The first four lines are for CIDR addresses, with โ/22โ indicating a mask of 22 1's followed by 10 0's.
Net/Masklength NextHop 128.174.248.0/21 R 128.174.248.128/25 Interface 1 128.174.252.0/22 Interface 2 128.174.254.7 Interface 3 128.174.254.16/28 R 128.174.224.0/19 R Default R
a. How many individual IP addresses match each of the four Net/Masklength pairs? b. The router can deliver packets directly over interfaces 0, 1 or 2, or it can forward to routers R1,R2, R3 or R4. Specify the next hop for each of the following destinations. Remember that if a destination matches more than one line of the table, the longest match is used.