CMSC 417-F02

EXAM 2 SOLUTION

Fall 2002

1 [10 pts]. Solution

Time       At B, dist to E        At C, dist to E        At D, dist to E
            via C  via E           via B   via D           via C   via E

0.1          3*     8               4*       2               3        1*

1.0          3*     8               4*      12              13        1*

1.1          5*     8               4*      12              15        1*

2.1          5*     8               6*      12              15        1*

3.1          7*     8               6*      12              17        1*

4.1          7*     8               8*      12              17        1*

5.1          9      8*              8*      12              19        1*

6.1          9      8*              9*      12              19        1*

7.1         10      8*              9*      12              20        1*

8.1         10      8*              9*      12              20        1*

* indicates the minimum distance entry

Stable at time 7.1.

GRADING:

2 [10 pts]. Solution

a.

b.

          

          

c.

GRADING:

3 [5 pts]. Solution treating "111" as "255"

Part a.

ISP A has 128.8.100.000 to 128.8.255.255, which can be advertised in many ways:

The optimal way is obtained by considering the range 100 to 255 in binary:

ISP B can similarly advertise its addresses in many ways:

Part b.

ISP A has 128.8.102.000 to 128.8.255.255, which can be advertised in many ways:

ISP B has its old addresses and the addresses 128.8.100.000/24 and 128.8.101.000/24, which can be advertised in many ways:

GRADING:

3 [5 pts]. Solution treating "111" as "111"

Solved in the same way. If we forget about optimization, then each ISP simply advertises all its IP addresses with 32-bit netmasks.

4 [5 pts]. Solution

a. Because the link state algorithm floods link cost updates, the updates originating at a node, say X, can arrive out of order at another node, say Y (because they took different paths and hence incurred different delays; note that each link itself introduces no reordering). So sequence numbers are needed for Y to ignore an older update than it has already received.

b. Because updates in the distance-vector algorithm travel only one link (they are not flooded), the updates that a node Y receives from another node X are always in order (some may get lost, but never reordered). So sequence numbers are not needed.

GRADING: