hw5

2023 computer-networking HW5.pdf

1.

  • False.
  • Router sends its link information, it is not limited to only those nodes directly attached as neighbors. OSPF routers use a process called “flooding” to share routing information throughout the entire OSPF domain.

2.

  • No
  • based on reachability information and policy router may not be shortest path

3.

UDP:

  • stateless
  • faster then TCP

4.

itervisited123456
0{}0
1{1}0154
2{1,2}01442
3{1,2,5}013326
4{1,2,5,3}013325
5{1,2,5,3,4}013325
6{1,2,5,3,4,6}013325

5.

xywu
x0427
y4026
w2205
u7650

a.

x
y4
w2
u7

b.

When the function c(x,w) changes, node x will need to recompute the distances to its neighbors. Subsequently, it must send these recalculated distances back to neighbors and receive new distances from neighbors. Then x may have new minimum-cost path.