📝 Kademlia routing table (15 MCQs)
📖 From Data Communication and Networks • 29. Peer to Peer Paradigm • 15 questions available
What is Kademlia routing table?
The Kademlia routing table organizes known nodes into k-buckets sorted by XOR distance from the local node, maintaining more contacts for closer distances to enable fast, parallel lookups and natural load balancing across the network.
📝 All Kademlia routing table MCQs
Q1. If a router receives a packet for a destination IP that is not explicitly listed in its routing table, what is the most likely action it will take?
📖 Explanation: When no specific route matches, the router consults its default route (0.0.0.0/0). If present, the packet is forwarded to that next‑hop, typically a gateway toward the broader network. Dropping, ARP broadcasting, or ICMP generation are only used when no default route exists, making forwarding the default behavior.
Q2. A router has two overlapping routes: 192.168.0.0/16 via Interface A and 192.168.1.0/24 via Interface B. Which route will be selected for a packet destined to 192.168.1.45, and why?
📖 Explanation: The longest‑prefix match rule selects the route with the most specific subnet mask. Here, /24 (192.168.1.0/24) is more specific than /16, so Interface B is chosen. The order in the table or protocol source does not override the prefix length rule.
Q3. When a router updates its routing table using a distance‑vector protocol, what indirect effect can cause routing loops if split horizon is not enforced?
📖 Explanation: Distance‑vector protocols advertise routes to neighbors. Without split horizon, a router may send back to its source the route it learned from that source, causing the source to believe a shorter path exists through the neighbor, creating a loop. This indirect effect is mitigated by split horizon or poison reverse.
Q4. Consider a router that receives two equal‑cost routes to the same destination from different protocols (OSPF and EIGRP). Which factor most likely determines which route is installed in the routing table?
📖 Explanation: Administrative distance (AD) is a trust metric that the router uses to rank routes from different sources. The route with the lower AD is preferred. Since OSPF typically has an AD of 110 and EIGRP of 90, the EIGRP route would be installed, regardless of equal metric values.
Q5. A router's routing table contains a default route with a metric of 5, while a more specific route to the same destination has a metric of 10. Which route will the router use and why?
📖 Explanation: Routing decisions prioritize the longest‑prefix match first; if a more specific route exists, it is chosen even if its metric is higher. However, when both routes cover the same destination (e.g., default versus specific) and the specific route is truly more specific, it wins regardless of metric. In this case, the specific route is selected.
Q6. Compare static and dynamic routing tables in terms of scalability. Which statement best captures their difference?
📖 Explanation: Dynamic routing protocols continuously exchange information, allowing routers to learn new paths and adjust to topology changes, which greatly enhances scalability in large or evolving networks. Static routes must be manually configured on each router, making them impractical as the network grows.
Q7. Analyze the impact of increasing the subnet mask length in a routing table entry from /24 to /28 on the number of possible host addresses. What is the effect?
📖 Explanation: A /24 subnet provides usable hosts, while a /28 provides usable hosts. The host space shrinks by a factor of . Therefore, the number of usable addresses decreases dramatically, illustrating the trade‑off between granularity and address availability.
Q8. Differentiate between link‑state and distance‑vector routing protocols in terms of the information each maintains about the network. Which description is accurate?
📖 Explanation: Link‑state protocols like OSPF flood LSAs, allowing each router to build a full topology graph. Distance‑vector protocols such as RIP only advertise the total cost (distance) and the next hop (vector) to each destination, lacking a global view of the network.
Q9. Evaluate why a router might prefer a route learned via BGP over one learned via OSPF, even if the OSPF route appears more specific. Which factor is most decisive?
📖 Explanation: BGP includes policy attributes like local preference, MED, and community tags that can be configured to prioritize certain paths regardless of prefix length. Even if an OSPF route is more specific, the router may select the BGP route if its policy dictates higher preference.
Q10. Synthesize a scenario where a router uses route aggregation (summarization) and explain the primary benefit. Which outcome best describes the effect?
📖 Explanation: Route aggregation combines multiple contiguous networks into a single summary route (e.g., 192.168.0.0/16 summarizing 192.168.1.0/24 and 192.168.2.0/24). This reduces the number of entries the router must store and process, enhancing scalability and decreasing convergence time.
Q11. Apply the principle of longest‑prefix matching to determine which entry will be used for the destination 10.0.5.130 given the following routes: 10.0.0.0/8, 10.0.4.0/22, and 10.0.5.128/25. Which route is selected?
📖 Explanation: The longest‑prefix rule selects the route with the most specific mask that still matches the destination. 10.0.5.130 falls within 10.0.5.128/25 (covers 10.0.5.128‑10.0.5.255) which has a /25 mask, longer than /22 and /8. Hence, that entry is chosen.
Q12. Explain how a router’s forwarding information base (FIB) differs from its routing information base (RIB). Which statement correctly captures the relationship?
📖 Explanation: The RIB (or routing table) stores all routes learned from protocols, including multiple paths and metrics. The router then processes this information to create the FIB, a streamlined, hardware‑friendly structure (often in TCAM) that enables rapid look‑ups for each packet. Thus, the FIB is a subset derived from the RIB.
Q13. In a network employing both IPv4 and IPv6, how does a router maintain separate routing tables, and what is the main advantage of this separation?
📖 Explanation: IPv4 and IPv6 have distinct address formats and routing protocols. Maintaining separate tables enables each protocol to converge independently, apply specific policies, and avoid ambiguity when matching prefixes. This isolation also simplifies troubleshooting and supports dual‑stack deployments without interference.
Q14. Consider a router with three interfaces: A (10.0.0.1/24), B (10.0.1.1/24), and C (10.0.2.1/24). If a packet destined for 10.0.2.45 arrives on interface A, which routing table entry will determine the outgoing interface, assuming a static route exists for 10.0.2.0/24 via interface C?
📖 Explanation: The routing table is consulted after the packet is received. The static route 10.0.2.0/24 via interface C is the longest‑prefix match for the destination 10.0.2.45, directing the packet out through interface C regardless of the incoming interface.
Q15. Define a routing table in the context of IP networking.
📖 Explanation: A routing table (also called a routing information base) is a data structure used by routers to decide where to forward packets. It contains entries that map destination network prefixes to next‑hop IP addresses, outgoing interfaces, and associated metrics or administrative distances.