🎓 BookMCQ
← Back to 20. Unicast Routing

📝 Routing Information Protocol (RIP) version 1 and 2 (29 MCQs)

RIP as a Distance-Vector Interior Gateway Protocol

Routing Information Protocol is a distance-vector interior gateway protocol intended for relatively small IP networks. It uses hop count as its routing metric, with each router advertising destination distances to neighbors. RIP is easy to configure and understand, but its limited metric range and periodic updates make it unsuitable for large or rapidly changing networks in enterprise and campus environments.

RIPv1 and RIPv2 Route Information

RIPv1 is classful and does not include subnet masks in route entries, so it cannot properly represent variable-length subnetting across discontiguous networks. RIPv2 carries a subnet mask and next-hop information, supports classless routing, and includes an extensible authentication mechanism. Both versions use hop count, with 16 representing an unreachable destination.

Periodic Route Exchanges and Metric Updates

RIP routers exchange Request and Response messages, normally sending periodic routing updates to neighboring routers. A received metric is increased by one hop before comparison with the local table regularly. RIPv1 uses broadcast updates, whereas RIPv2 can use multicast address 224.0.0.9 to reduce unnecessary processing by hosts.

Comparing RIP Paths by Hop Count

If Router A can reach a destination through B in three hops or through C in five hops, RIP selects the route through B, assuming both routes are valid. A path requiring 16 hops is considered unreachable. The example shows why RIP's hop-count metric is simple but does not directly measure bandwidth or delay overall.

RIP Loop Controls and Network Size Limits

RIP uses mechanisms such as split horizon, route poisoning, and triggered updates to reduce routing loops and speed reaction to failures. Its maximum usable hop count is 15, so it is limited to small routing domains. RIPv2 improves subnet support and authentication options, but it remains a distance-vector protocol with a hop-count metric.

Misconceptions About RIP Versions

'RIPv2 uses a different metric from RIPv1' is incorrect because both use hop count. 'RIPv1 carries subnet masks' is incorrect because it is classful. 'A RIP metric of 16 means sixteen routers away' is incorrect because 16 is the protocol's infinity value, marking the destination unreachable, not sixteen actual hops.

Examining RIP Tables, Versions and Limits

Students should calculate hop counts, recognize the 15-hop maximum, and interpret metric 16 as unreachable. Compare RIPv1 and RIPv2 by classful versus classless behavior, subnet-mask support, update addressing, and authentication capability. Trace how a router increments an advertised metric and explain why split horizon and triggered updates are used in practice.

(RIP) version 1 and 2: Key Terms

  • RIP - Distance-vector interior gateway protocol.
  • Hop count - Number of router hops to destination.
  • Infinity - RIP metric value indicating unreachable route.
  • RIPv1 - Classful RIP without subnet masks.
  • RIPv2 - Classless RIP version carrying subnet masks.
  • Triggered update - Update sent after route change.
9
Easy
13
Medium
7
Hard

📝 All Routing Information Protocol (RIP) version 1 and 2 MCQs

Q1. What is the maximum hop count allowed by RIP?

A.15
B.16 ✅
C.30
D.255
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: RIP limits its metric to a maximum value of 16 hops; a metric of 16 is interpreted as unreachable. Consequently, the highest permissible hop count before a route is considered invalid is 16, so option B correctly reflects the protocol's limit.

Q2. If a router receives a RIP update indicating a path cost of 4 to network X and the cost to the neighbor that sent the update is 1, what total metric will the router record?

A.4
B.5 ✅
C.6
D.7
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: RIP adds the received metric to the cost of reaching the neighbor. Here the neighbor’s cost is 1 and the advertised cost is 4, giving a total of 1 + 4 = 5 hops. Therefore the router records a metric of 5, which corresponds to option B.

Q3. Given N = 5 routers, how many ordered least‑cost paths are required for the whole internet?

A.20 ✅
B.25
C.30
D.40
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: The formula for ordered least‑cost paths is N × (N − 1). Substituting N = 5 yields 5 × 4 = 20. Hence the network needs 20 distinct source‑destination paths, making option A the correct answer.

Q4. Which technique reduces routing loops by preventing a router from advertising a route back onto the interface from which it was learned?

A.Split horizon ✅
B.No split horizon
C.Both equally
D.Neither
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: Split horizon forbids a router from sending information about a route back out through the same interface it received it, thereby breaking the feedback loop that can cause routing loops. This behavior directly addresses loop formation, so option A is correct.

Q5. When a link fails, which RIP mechanism delays the re‑advertisement of the failed route to avoid flapping?

A.Poison reverse
B.Split horizon
C.Triggered updates
D.Hold‑down timers ✅
💡 Difficulty: medium | ✅ Correct: D

📖 Explanation: Hold‑down timers keep a route in a suppressed state for a configurable period after it becomes unreachable, preventing immediate reinstatement and reducing instability. The other mechanisms either mark the route as unreachable or expedite updates, but only hold‑down timers provide the described delay, making D correct.

Q6. For N routers, the number of distinct least‑cost trees that can be formed equals which mathematical expression?

A.N N−2N^{\,N-2} ✅
B.(N−1)!(N-1)!
C.N!N!
D.2 N−12^{\,N-1}
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: Cayley’s formula states that the number of labeled trees on N vertices is NN−2N^{N-2}. In the context of least‑cost trees, each tree corresponds to a distinct spanning tree, so the correct expression is NN−2N^{N-2}, matching option A.

Q7. Increasing RIP’s hop‑count limit from 15 to 30 in a 10‑router network will have what effect on the number of possible least‑cost paths?

A.Doubles
B.Increases by factor of 2
C.No change ✅
D.Increases exponentially
💡 Difficulty: hard | ✅ Correct: C

📖 Explanation: The hop‑count limit only caps the maximum metric a route can have; it does not alter the topology or the count of distinct least‑cost paths, which is determined solely by the number of routers. Hence the number of paths remains unchanged, making option C correct.

Q8. In RIP, what metric is assigned to a path that traverses three routers?

A.2
B.3 ✅
C.4
D.5
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: RIP’s metric is the simple count of hops (router‑to‑router traversals). A path through three intermediate routers therefore has a metric of three hops. Option B accurately reflects this hop‑based calculation.

Q9. Which UDP port number does RIP use for its updates?

A.520 ✅
B.161
C.162
D.179
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: RIP messages are encapsulated in UDP datagrams sent to port 520. This well‑known port is reserved for RIP traffic, making option A the correct choice.

Q10. If a router advertises a route with metric 16, what does this indicate about the route’s reachability?

A.Reachable
B.Unreachable ✅
C.Preferred
D.Backup
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: In RIP, a metric of 16 is treated as an infinite distance, signifying that the destination is unreachable. The protocol uses this value to poison the route and prevent its use, so option B correctly describes the situation.

Q11. Which RIP feature reduces convergence time by immediately sending an update after a topology change?

A.Triggered updates ✅
B.Periodic updates
C.Both
D.Neither
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: Triggered updates are generated as soon as a router detects a change, causing an immediate dissemination of new information. This contrasts with periodic updates that occur on a fixed schedule, making triggered updates the mechanism that speeds up convergence, thus option A.

Q12. How do hold‑down timers and split horizon together improve network stability?

A.They are independent
B.Hold‑down overrides split horizon
C.Split horizon prevents loops while hold‑down delays reinstatement ✅
D.Both together eliminate loops
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: Split horizon stops a router from advertising a route back onto the interface it learned it from, breaking potential loops. Hold‑down timers then keep the route suppressed for a period after a failure, preventing premature reinstatement. Their combined effect is described in option C.

Q13. Which version of RIP introduced authentication capabilities?

A.RIPv1
B.RIPv2 ✅
C.RIPv3
D.RIPv4
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: Authentication was added in RIPv2, allowing routers to verify the legitimacy of received updates. Earlier versions lacked this security feature. Consequently, option B correctly identifies the version that first supported authentication.

Q14. In a fully meshed 6‑router network, how does the number of routing entries stored by a router using RIP compare to that using OSPF?

A.RIP larger
B.OSPF larger
C.Both equal ✅
D.Depends on traffic
💡 Difficulty: easy | ✅ Correct: C

📖 Explanation: Both RIP (a distance‑vector protocol) and OSPF (a link‑state protocol) must maintain a separate entry for each of the other routers, totaling N − 1 entries per router in a fully meshed topology. Therefore the count is identical, making option C correct.

Q15. For N = 8 routers, how many ordered least‑cost paths are needed across the network?

A.56 ✅
B.64
C.72
D.80
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: Using the formula N × (N − 1), we compute 8 × 7 = 56 ordered source‑destination paths. This count represents every possible directed pair of distinct routers, so option A is the accurate answer.

Q16. When a router receives two RIP advertisements for the same network with metrics 2 and 3, which metric will it select for its routing table?

A.2 ✅
B.3
C.4
D.5
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: RIP follows the principle of choosing the lowest metric to represent the most efficient path. Between metrics 2 and 3, the router will adopt the smaller value, 2, as the preferred route. Thus, option A correctly reflects this selection rule.

Q17. What is the expected effect of poison reverse on convergence time after a link failure in a four‑router ring?

A.Faster convergence ✅
B.Slower convergence
C.No effect
D.Increased routing loops
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: Poison reverse explicitly advertises an infinite metric for a failed route back toward the source of the original advertisement, instantly informing neighboring routers of the failure. This immediate notification accelerates the convergence process, making option A the correct description.

Q18. By default, how often does RIP broadcast its routing table?

A.15 seconds
B.30 seconds
C.60 seconds ✅
D.90 seconds
💡 Difficulty: easy | ✅ Correct: C

📖 Explanation: RIP’s default update interval is 30 seconds, meaning each router periodically sends its entire routing table every half‑minute. This interval balances timely dissemination with network overhead, so option C accurately states the default timing.

Q19. If a router’s distance to a destination becomes 16 due to a bad link, what action does RIP take after the hold‑down timer expires?

A.Accept metric 16
B.Mark as unreachable ✅
C.Re‑advertise with metric 0
D.Ignore update
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: When the metric reaches 16, RIP treats the route as unreachable. After the hold‑down period, the router will continue to consider the destination unreachable until a better metric is learned, aligning with option B.

Q20. In a network where RIP coexists with a link‑state protocol, which factor determines which protocol’s routes are preferred?

A.RIP dominates due to lower metric
B.Link‑state dominates due to accurate topology
C.Both equal
D.Depends on administrative distance ✅
💡 Difficulty: hard | ✅ Correct: D

📖 Explanation: When multiple routing protocols provide routes to the same destination, the router selects the one with the lowest administrative distance. RIP has a default distance of 120, while link‑state protocols like OSPF use 110. Thus the decision depends on the configured administrative distances, making option D correct.

Q21. What is the administrative distance assigned to RIP by default?

A.90
B.100
C.120 ✅
D.150
💡 Difficulty: easy | ✅ Correct: C

📖 Explanation: Administrative distance is a measure of trustworthiness for routing information. RIP’s default value is 120, which is higher (less trusted) than many interior protocols but lower than external ones. Therefore, option C correctly identifies RIP’s default administrative distance.

Q22. When the number of routers increases from 5 to 10, how does the total number of ordered least‑cost paths change?

A.Linear
B.Quadratic ✅
C.Exponential
D.Logarithmic
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: The total paths follow N × (N − 1). As N grows, the product expands proportionally to N², indicating a quadratic relationship. Doubling the router count roughly quadruples the path count, so option B accurately describes the growth pattern.

Q23. If each router builds its own shortest‑path tree rooted at itself, how many edges are selected across all trees in a network of N routers?

A.N(N‑1) ✅
B.N(N‑2)
C.(N‑1)²
D.N²
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: Each shortest‑path tree contains exactly N − 1 edges (one for each destination). With N distinct trees (one per router), the total number of selected edges is N × (N − 1). Hence option A correctly captures the aggregate count.

Q24. What is the effect of configuring a route in RIP with a metric of 0?

A.It becomes a default route
B.It is considered directly connected ✅
C.It is ignored
D.It causes a routing loop
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: In RIP, a metric of 0 is reserved for routes that are directly connected to the router. This signals that the network can be reached without any hop, so the router treats the entry as a directly attached network, matching option B.

Q25. Which method offers stronger protection against routing loops: regular split horizon or split horizon with poison reverse?

A.Regular split horizon
B.Split horizon with poison reverse ✅
C.Both equal
D.Neither
💡 Difficulty: hard | ✅ Correct: B

📖 Explanation: Split horizon with poison reverse not only suppresses route advertisement on the incoming interface but also explicitly advertises an infinite metric back to the source, providing an extra safeguard. This dual action makes it more effective at preventing loops than regular split horizon, so option B is correct.

Q26. Which RFC defines the specifications for RIPv2?

A.RFC 1058
B.RFC 1565
C.RFC 2453 ✅
D.RFC 2459
💡 Difficulty: easy | ✅ Correct: C

📖 Explanation: RIPv2 is documented in RFC 2453, which details its packet format, authentication, and other enhancements over RIPv1. The other RFC numbers correspond to different protocols or earlier versions. Consequently, option C correctly identifies the governing RFC.

Q27. A router receives a RIP update stating a metric of 5 to a network, and the cost to that neighbor is 2. What metric will the router advertise to its other neighbors?

A.5
B.7 ✅
C.2
D.6
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: RIP adds the cost to reach the neighbor (2) to the advertised metric (5), resulting in a total metric of 7. This summed value is then propagated to other routers, making option B the correct choice.

Q28. In a 7‑router network where two routers simultaneously trigger updates after a link failure, how does RIP achieve a consistent view across the network?

A.Through sequence numbers
B.Through hold‑down timers
C.Through split horizon
D.Through triggered updates and hold‑down combined ✅
💡 Difficulty: hard | ✅ Correct: D

📖 Explanation: When a failure occurs, RIP immediately sends triggered updates to inform neighbors. Simultaneously, hold‑down timers suppress premature reinstatement of the failed route, allowing all routers to converge on the same topology. The combination of these mechanisms ensures consistency, so option D is correct.

Q29. True or false: RIP can support networks with up to 255 hops.

A.true
B.false ✅
C.Partially true
D.Depends on version
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: RIP’s metric is limited to a maximum of 16 hops; any value equal to or greater than 16 is treated as unreachable. Therefore the protocol cannot support a network requiring 255 hops, making the statement false and option B correct.

🔗 Related Topics (MCQs)