GATE / CS ARCHIVE

GATE CSE 2022 / QUESTION 57

GATE CSE 2022 Q57

Computer Networks · Routing Algorithms · Full GATE CSE 2022 paper

GATE 2022, Q57 2 marks · NAT
Report issue

Routing Algorithms

Question 57, GATE 2022: Unit-cost routers form P—Q—R. Distance-vector tables have converged when Q—R fails. P and Q send updates at random times at the same average rate. Find, to one decimal place, the intended probability of a P↔Q loop and count-to-infinity; explain the stochastic assumptions needed.
Tap to enlarge
Answer & solution

Official answer: 0.5

Before failure, P believes R is two hops away via Q, and Q has a one-hop route. After detecting Q-R failure, Q can be misled if P advertises its stale route first: Q installs distance 3 via P while P still routes via Q, forming a loop. If Q announces unreachability first, P removes the route and avoids that loop. In the intended symmetric independent update-race model, either router is equally likely to send first, so the probability is 1/2=0.5. The stated equality of average update rates alone does not mathematically specify this race probability: identical/exchangeable timing distributions and no relevant delivery delay are additional assumptions. The example also assumes ordinary distance vector without split horizon or poisoned reverse; those safeguards change the result.

For independent exponential update clocks of rate λ, P(P sends first)=∫₀∞ λe−λte−λtdt=1/2. Equal mean intervals without identical residual-time distributions do not justify this integral. In the loop, Q installs 3 via P, then P learns 4 via Q, then Q learns 5, illustrating count-to-infinity.

Original paper, page 38 · Answer key