Question
Consider a network with three routers P, Q, R shown in the figure below. All the links have cost of unity.
The routers exchange distance vector routing information and have converged on the routing tables, after which the link Q−R fails. Assume that P and Q send out routing updates at random times, each at the same average rate. The probability of a routing loop formation (rounded off to one decimal place) between P and Q, leading to count-to-infinity problem, is___________.
Official answer and solution
- Official answer
- 0.5
- From
- Official GATE 2022 answer key
Solution
Model the asynchronous routing updates after link failure as competing Poisson arrival events.
Before the link fails, both and have stable routing entries for destination :
- reaches directly with cost 1 (via interface to ).
- reaches through with cost 2.
When link fails, router immediately detects the failure and sets its direct cost to to .
Now, and independently broadcast periodic distance vector updates according to Poisson processes with equal average rates :
- If router transmits its update first: advertises that it has a path to of cost 2. Router receives this advertisement before sending its own update to . incorrectly believes has an independent alternative path to of cost 2, and updates its routing table: path to via with cost . This creates a routing loop between and that leads directly to the count-to-infinity problem.
- If router transmits its update first: informs that is unreachable (cost ). updates its distance to , avoiding a loop.
Since and send updates independently at the identical average rate, the probability that transmits before is:
0.5
Assuming split horizon is enabled; standard distance vector without split horizon creates a loop with probability 0.5 under symmetric update rates.
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2022 Computer Science and Information Technology (CS)
- Question
- 57 of 65
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.