GateAI
Distance Vector and Link-State Routing

GATE CSE 2022 · Q57

NAT2 marksMedium

Time

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 ________.

GATE CSE 2022 Q57 diagram

Your answerNumerical answer

Enter a value to check

Solution

Step-by-step verified solution

Official answer: 0.5

Distance Vector and Link-State Routing

Before the link failure, the converged distances to destination RR are:

  • Distance from QQ to R=1R = 1 (via direct link to RR)

  • Distance from PP to R=2R = 2 (via QQ)

When link Q–RQ\text{--}R fails:

  1. QQ detects the failure and sets its direct cost to RR to ∞\infty.

  2. Since PP and QQ send out routing updates independently at random times with the same average rate, the probability that PP sends an update to QQ first is 0.50.5, and the probability that QQ sends an update to PP first is 0.50.5.

  • Case 1: PP sends update to QQ before receiving an update from QQ (Probability = 0.50.5): PP advertises its distance to RR as 22. Router QQ receives this and updates its distance to RR via PP as 1+2=31 + 2 = 3. This creates a routing loop between PP and QQ, triggering the count-to-infinity problem.

  • Case 2: QQ sends update to PP first (Probability = 0.50.5): QQ advertises distance ∞\infty to RR. PP updates its distance to RR as ∞\infty, avoiding a routing loop.

Therefore, the probability of a routing loop formation is 0.5.

Try the question first, then check your work.

Think the official key or this write-up is wrong?

Report error or challenge

Examiner trap

The misconception this question tests

This Distance Vector and Link-State Routing previous year question is Q57 of the GATE CSE 2022 paper. Find more GATE CSE PYQs on Distance Vector and Link-State Routing in Computer Networks, or browse all GATE CSE PYQs.

Free diagnostic

Where do you stand for GATE?

Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Distance Vector and Link-State Routing PYQs now with no account.

One GATE CSE PYQ every morning

An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.

Distance Vector and Link-State Routing in GATE CSE

Distance Vector and Link-State Routing has 9 GATE CSE PYQs across 8 papers from 2011 to 2025. This is the only 2-mark NAT question among them, and it is the only one in GATE CSE 2022.

How GATE tests Distance Vector and Link-State Routing

More from GATE CSE 2022

Share this solution

A plain-text card for WhatsApp or Telegram study groups.

GateAI solution cardGATE CSE 2022 · Q57 · NAT

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 …

Topic-wise GATE CS PYQs with verified steps

Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.