ProblemSetRouting
ProblemSetRouting
EE 706
Assignment 3
Q 1 State whether the following statements are true or false and justify your answer.
(a) Flooding is a very inefficient way to route packets and therefore it is never used.
(b) Flooding is an efficient way to route packets if the network topology does not have a loop, as
packets will never loop the network.
(c) If flooding is used in an IP network, loops can be avoided by decrementing the time-to-live (TTL)
field in the IP header and dropping packets whose TTL is 0.
(d) In a connected network (i.e., if there is a path between every pair of end hosts), flooding ensures
every destination sees every packet.
(e) If the longest loop free path in the network is N , then the Bellman Ford routing algorithm will
converge to the lowest cost spanning tree after N iterations.
(f) As an optimization in Bellman Ford, a router need not send any advertisements to its neighbors
after the distance drops from infinity to a finite value.
(g) For the Bellman Ford algorithm if we set “infinity” to be equal to 16. if the longest loop-free
path in the network is 25, the algorithm is guaranteed to converge to the correct solution.
(h) Unlike the Bellman Ford algorithm, Dijkstra’s algorithm does not suffer from the “count to
infinity” problem.
Q 3 Show by example that a shortest path between two given nodes in a directed graph with given
edge costs does not necessarily remain a shortest path if the same constant is added to every edge
cost.
Q 4 Let G = (N, E) be an undirected graph. Show that T is a minimum cost spanning tree (MST)
in G with edge costs c(e) : e ∈ E if and only if it is a MST in G with edge costs c(e) + k : e ∈ E,
where k is an arbitrary real number. Thus, an MST in a graph with given edge costs remains an
MST if the same constant k is added to every edge cost.
Q 5 Give an example of incorrect operation of Dijkstra’s algorithm in a network in which edge costs
are allowed to take negative values.
1
Figure 2: Figure for Q 6.
Q 7 Give an example in which the Bellman-Ford algorithm with poisoned reverse is used and the
“count-to-infinity” problem still occurs. Assume that all edge costs are positive.
Q 8 Using Dijkstra’s algorithm, find minimum-cost paths to node D from every other node in the
network in Figure 3.
Q 9 Consider a network in which all nodes are connected to three other nodes. In a single time
step, a node can receive all transmitted broadcast packets from its neighbors, duplicate the packets,
and send them to all of its neighbors (except to the node that sent a given packet). At the next
time step, neighboring nodes can receive, duplicate, and forward these packets, and so on. Suppose
that uncontrolled flooding is used to provide broadcast in such a network. At time step t, how
many copies of the broadcast packet will be transmitted, assuming that during time step 1, a single
broadcast packet is transmitted by the source node to its three neighbors. (Kurose and Ross, 6th
edition, Chapter 4: P52)