GATE / CS ARCHIVE

GATE CSE 2025 SET 2 / QUESTION 17

GATE CSE 2025 Set 2 Q17

Computer Networks · Routing Algorithms · Full GATE CSE 2025 Set 2 paper

GATE 2025 Set 2, Q17 1 mark · MCQ
Report issue

Routing Algorithms

Question 17, GATE 2025: Match routing methods with their usual shortest-path algorithm: (i) distance-vector routing; (ii) link-state routing. Algorithms are (a) Bellman–Ford and (b) Dijkstra.
Options: A. i→a, ii→b; B. i→a, ii→a; C. i→b, ii→a; D. i→b, ii→b.
Tap to enlarge
Your answer
Answer & solution

Official answer: A

Distance-vector routing maintains estimates to destinations and exchanges these with neighbors. Router x updates its distance to y using
Dx(y)=min over neighbors v of [cost(x,v)+Dv(y)].
This is the Bellman–Ford recurrence, applied in a distributed fashion. Thus (i) matches (a).

A link-state router learns the network's connectivity and link costs through link-state advertisements. With this graph available locally, it computes a shortest-path tree rooted at itself, conventionally using Dijkstra's algorithm for nonnegative link costs. Thus (ii) matches (b). The important distinction is neighbor distance estimates versus an advertised topology map, not simply that both seek shortest routes. The two correct matches appear together only in A.

Original paper, page 15 · Answer key