Question

Consider a network with three routers P, Q, R shown in the figure below. All the links have cost of unity.

Three routers P, Q, and R connected in a line: P connected to Q, and Q connected to R.

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 Q−RQ-R fails, both PP and QQ have stable routing entries for destination RR:

  • QQ reaches RR directly with cost 1 (via interface to RR).
  • PP reaches RR through QQ with cost 2.

When link Q−RQ-R fails, router QQ immediately detects the failure and sets its direct cost to RR to ∞\infty.

Now, PP and QQ independently broadcast periodic distance vector updates according to Poisson processes with equal average rates λ\lambda:

  • If router PP transmits its update first: PP advertises that it has a path to RR of cost 2. Router QQ receives this advertisement before sending its own update to PP. QQ incorrectly believes PP has an independent alternative path to RR of cost 2, and updates its routing table: path to RR via PP with cost 2+1=32 + 1 = 3. This creates a routing loop between PP and QQ that leads directly to the count-to-infinity problem.
  • If router QQ transmits its update first: QQ informs PP that RR is unreachable (cost ∞\infty). PP updates its distance to ∞\infty, avoiding a loop.

Since PP and QQ send updates independently at the identical average rate, the probability that PP transmits before QQ is:

P(P updates before Q)=λλ+λ=12=0.5P(P \text{ updates before } Q) = \frac{\lambda}{\lambda + \lambda} = \frac{1}{2} = 0.5
Final answer

0.5

Common trap

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.