LearnFrenzy
Sign in Take a free test

Computer Networks · Topic 6 of 10

Routing Algorithms and Protocols: questions with answers

Routing vs forwarding, link-state routing with Dijkstra and distance-vector routing with Bellman–Ford on drawn networks, count-to-infinity and its fixes, RIP, OSPF, BGP, autonomous systems and modern routing (ECMP, SDN, MPLS).

Questions
45
Timed sets
3
Answers run or computed
17
Your accuracy
–

What this topic covers

5 subtopics
  • Link state13
  • Protocols11
  • Distance vector10
  • Basics6
  • Modern routing5
  • Beginner 15
  • Intermediate 15
  • Advanced 15

About this topic

Routers fill their forwarding tables using routing algorithms: link-state routers (OSPF) each run Dijkstra on a full map of the network, while distance-vector routers (RIP) repeatedly exchange their best-known distances with neighbours. Questions here use drawn networks; every distance, next hop and table entry was computed by running the algorithm (Dijkstra ties broken alphabetically).

Free preview

Sample questions

Try each one first, then open the answer for the explanation and why the other options are wrong.

Question 1 Link state Beginner Practice Answer computed

What is the least-cost distance from u to z?

Routers and link costs
2152331152uvwxyz

The answer is a number – work it out, then open the solution.

Show answer and explanation
Correct answer 4

Explanation

u → x (1) → y (1) → z (2) = 4. Going via w costs at least 3 + 5 = 8.

Question 2 Link state Intermediate Practice Answer computed

Running Dijkstra from u (ties broken alphabetically), in which order are nodes added to the set of finalised nodes?

Routers and link costs
2152331152uvwxyz
uxvywz
uvxwyz
uxywzv
uxyvwz
Show answer and explanation
Correct answer A

Explanation

Distances: x 1; then v 2 and y 2 tie (v first alphabetically); w 3 (via y); z 4. Many textbooks break the tie differently (y before v) – check the stated rule.

Why the other options are wrong

  • Bx (1) is closer than v (2).
  • Cv is at distance 2, not last.
  • DValid with the other tie rule, not this one.
Question 3 Distance vector Advanced Practice Answer computed

After the distance vectors converge, what is z's distance vector (to x, y, z)?

Three routers
217xyz
210
310
710
320
Show answer and explanation
Correct answer B

Explanation

z reaches y directly (1) and x via y (1 + 2 = 3), never using the cost-7 link.

Why the other options are wrong

  • Ax is 3 away.
  • CThe direct link is not the best.
  • Dy is 1 away.
42 more questions in the timed setsSame format as the samples, with a timer, a question palette and a full review at the end.
Start practising

Computer Networks

All 10 topics

Topics, levels and full mocks
  1. 01 Network Models, Devices and Delays45 questions · 3 levels
  2. 02 Error Detection and Correction45 questions · 3 levels
  3. 03 Flow Control and Sliding Window45 questions · 3 levels
  4. 04 MAC Layer, Ethernet and Switching45 questions · 3 levels
  5. 05 IP Addressing and Subnetting45 questions · 3 levels
  6. 06 Routing Algorithms and Protocols45 questions · 3 levels
  7. 07 IPv4, IPv6, ARP, NAT, ICMP and DHCP45 questions · 3 levels
  8. 08 TCP, UDP and Congestion Control45 questions · 3 levels
  9. 09 Application Layer: DNS, HTTP and Email45 questions · 3 levels
  10. 10 Network Security and Socket Programming45 questions · 3 levels

Search LearnFrenzy

Esc

Quick links