📝 Pastry routing algorithm (27 MCQs)
📖 From Data Communication and Networks • 29. Peer to Peer Paradigm • 27 questions available
What is Pastry routing algorithm?
The Pastry routing algorithm forwards messages by selecting the neighbor whose ID shares the longest common prefix with the destination, reducing the remaining distance by at least one digit per hop to achieve fast and scalable delivery.
📝 All Pastry routing algorithm MCQs
Q1. If a router receives a packet with destination 192.168.10.0/24 and its routing table contains a static route to 192.168.10.0/24 via interface eth0, what will the router do?
📖 Explanation: The router matches the destination address with the static entry, determines that eth0 is the appropriate outgoing interface, and forwards the packet accordingly. Because the route is exact and directly connected, no additional processing such as broadcasting or ICMP generation is needed.
Q2. When OSPF adjacency fails because the hello interval on two routers differs, which immediate effect is observed on the routing table?
📖 Explanation: A mismatched hello interval prevents OSPF hello packets from being recognized, causing the adjacency to drop. When the adjacency disappears, the routers withdraw all OSPF-learned routes, so the routing table loses those entries immediately, while other protocol routes remain unchanged.
Q3. Compare distance‑vector and link‑state routing protocols in terms of convergence speed. Which statement is correct?
📖 Explanation: Link‑state protocols flood the entire network with LSAs, allowing each router to have a complete view and compute shortest‑path trees quickly. Distance‑vector protocols rely on incremental updates and can suffer from slow convergence and count‑to‑infinity problems, making link‑state generally faster.
Q4. Which metric would most likely be used by a routing protocol that prefers paths with the smallest bandwidth‑delay product?
📖 Explanation: A protocol aiming to minimize the bandwidth‑delay product evaluates the product of link bandwidth and propagation delay; the smaller this product, the more efficient the path. Therefore, the metric directly reflects the multiplication of bandwidth and delay values.
Q5. How does hierarchical routing reduce the size of routing tables in large networks?
📖 Explanation: Hierarchical routing groups routers into areas and uses summary routes at area borders, allowing each router to store only aggregated entries instead of every individual subnet. This aggregation dramatically shrinks the number of entries each router must maintain.
Q6. What does the acronym CIDR stand for?
📖 Explanation: CIDR, or Classless Inter‑Domain Routing, replaces the older class‑based addressing scheme. It allows variable‑length subnet masks, enabling more efficient allocation of IP address space and supporting route aggregation, which reduces the size of global routing tables.
Q7. In IPv4, the default subnet mask for a Class B network is?
📖 Explanation: Class B addresses occupy the first two octets for the network portion, leaving the last two for hosts. The default mask therefore has ones in the first sixteen bits (255.255) and zeros in the remaining sixteen bits, yielding 255.255.0.0.
Q8. Router A connects to Router B with a 100 Mbps link (cost 1) and Router B to Router C with a 50 Mbps link (cost 2). What is the total cost from A to C?
📖 Explanation: The total path cost is the sum of individual link costs: . Therefore, the route from Router A to Router C incurs a combined metric of three, which is the value presented in option D.
Q9. If a router redistributes OSPF routes into EIGRP using metric type 1, what effect does this have on EIGRP’s metric calculation?
📖 Explanation: Metric type 1 indicates that the external route should be treated as internal for EIGRP calculations, causing EIGRP to adopt the OSPF‑derived cost directly as its own internal metric rather than applying a default external value.
Q10. A router drops a packet when its TTL field reaches zero. Which ICMP message is generated?
📖 Explanation: When the TTL (Time‑to‑Live) counter decrements to zero, the router discards the packet and sends an ICMP Time Exceeded message back to the source. This informs the sender that the packet could not reach its destination because it traversed too many hops.
Q11. Which statement correctly compares OSPF and RIP regarding maximum hop count?
📖 Explanation: RIP is a distance‑vector protocol that restricts the network diameter to 15 hops, preventing routing loops. OSPF, a link‑state protocol, does not impose a hop‑count ceiling; it bases routing decisions on link costs, allowing arbitrarily large topologies.
Q12. What is the impact of increasing the OSPF hello interval on convergence time?
📖 Explanation: A longer hello interval means routers wait longer before detecting neighbor loss, delaying the propagation of LSAs and the recomputation of shortest‑path trees. Consequently, the overall convergence process takes more time, which can affect network stability during failures.
Q13. Why might an engineer choose MPLS over a plain IP VPN for a WAN link?
📖 Explanation: Multiprotocol Label Switching (MPLS) enables explicit path control and traffic engineering, allowing operators to allocate bandwidth, prioritize traffic, and avoid congestion. These capabilities surpass the basic encapsulation offered by a plain IP VPN, making MPLS attractive for performance‑critical WAN deployments.
Q14. If a network uses a /26 subnet mask, how many usable host addresses are available?
📖 Explanation: A /26 mask leaves host bits. The number of host addresses is . Therefore, 62 usable IPs can be assigned to devices within that subnet.
Q15. How does ECMP (Equal‑Cost Multi‑Path) improve load balancing?
📖 Explanation: ECMP identifies multiple paths that have identical routing metrics and then spreads traffic among them, often on a per‑packet or per‑flow basis. This parallel utilization balances load, maximizes bandwidth, and provides resilience without needing additional configuration.
Q16. Given overlapping entries: 10.0.0.0/8 via eth0, 10.0.0.0/16 via eth1, and 10.0.0.5/32 via eth2, which route will be selected for destination 10.0.0.5?
📖 Explanation: Routers apply the longest‑prefix match rule, preferring the most specific entry. The /32 host route is the longest match for 10.0.0.5, so the packet is forwarded out eth2 regardless of metric or learning order.
Q17. If AS 1 advertises a route to AS 2 with MED 100, and AS 2 also receives a more specific route with MED 200, which route is preferred?
📖 Explanation: BGP first evaluates route specificity; a more specific prefix overrides MED values. Therefore, even though the more specific route carries a higher MED (200), its greater specificity makes it the preferred path.
Q18. Two equal‑cost paths exist: Path A uses interfaces of 1 Gbps, Path B uses 100 Mbps. If policy‑based routing prefers higher bandwidth, which path will be chosen?
📖 Explanation: Policy‑based routing can be configured to examine interface bandwidth attributes. When both paths have identical cost metrics, the router selects the one with the higher bandwidth—here Path A with 1 Gbps—because it offers greater capacity for traffic.
Q19. What is the effect of using a /30 subnet mask on a point‑to‑point link?
📖 Explanation: A /30 mask reserves 30 bits for the network, leaving 2 bits for host addresses. This yields usable IPs, which perfectly fits a point‑to‑point connection requiring one address for each endpoint.
Q20. If a router finds multiple routing table entries that match a destination IP, which entry is chosen?
📖 Explanation: Routers implement the longest‑prefix match rule: they compare all matching entries and select the one with the most specific network mask, ensuring traffic is directed along the most precise route available.
Q21. In a multi‑area OSPF network, a summary route’s cost is 20. If a link inside the area fails and adds 5 to the intra‑area cost, what cost is advertised to other areas?
📖 Explanation: OSPF summary routes carry the accumulated intra‑area cost plus any additional metric changes. When the internal link failure raises the cost by 5, the summary’s advertised metric becomes , which other areas then use for path selection.
Q22. Given the graph: A‑B 2, A‑C 5, B‑C 1, B‑D 4, C‑D 2. Using Dijkstra from A to D, what is the total cost of the shortest path?
📖 Explanation: Applying Dijkstra, the cheapest route from A to D is A‑B‑C‑D with costs . No alternative yields a lower sum, so the shortest‑path metric equals 5, corresponding to option B.
Q23. How does the router’s forwarding plane differ from its control plane, and why is separating them beneficial?
📖 Explanation: The control plane runs routing protocols, learns topology, and constructs the routing table. The forwarding plane (data plane) uses that table to move packets at line speed. Separating them allows the control plane to run complex computations without slowing packet forwarding, enabling high‑performance, scalable devices.
Q24. Compare scalability of OSPF versus RIP in a 100‑router network regarding control‑message volume. Which statement is accurate?
📖 Explanation: OSPF floods LSAs throughout the area, producing roughly O() advertisements for each router, while RIP sends periodic distance‑vector updates to each neighbor, also O(). However, OSPF’s hierarchical design and incremental flooding make its message load more manageable than RIP’s full‑table broadcasts.
Q25. Which RFC defines the OSPF protocol?
📖 Explanation: OSPF was standardized in RFC 2328, titled “OSPF Version 2”. This document specifies the protocol’s packet formats, state machines, and algorithmic behavior, forming the basis for OSPF implementations used in modern IP networks.
Q26. In BGP, if a route has a higher local‑preference but a longer AS‑PATH length, which attribute is evaluated first?
📖 Explanation: BGP decision process examines attributes in a defined order. The first comparison after weight is local‑preference; a higher local‑preference overrides a longer AS‑PATH. Only if local‑preference values are equal does the router consider AS‑PATH length.
Q27. Design a routing strategy for a hybrid network using both SDN and traditional IP routing to achieve fast failover. Which combination is most effective?
📖 Explanation: Employing an SDN controller to manage primary forwarding rules enables rapid re‑configuration, while retaining conventional IP routing as a fallback ensures continuity if the controller fails. This dual‑layer approach leverages SDN’s agility and the robustness of legacy routing, delivering swift failover without sacrificing resilience.