🎓 BookMCQ
← Back to 18. Introduction to Network Layer

📝 Forwarding based on destination address longest prefix match (26 MCQs)

Selecting the Most Specific Matching Route

Longest prefix match is the IPv4 and IPv6 forwarding rule that selects the matching routing entry with the greatest prefix length. A longer prefix represents a smaller, more specific address block. This rule allows routers to maintain a general route while directing selected subnets through more specific next hops. These responsibilities connect separate IP networks while preserving a consistent addressing framework for end systems.

Comparing Destination Bits with Route Prefixes

A router compares the leading bits of a packet's destination address with installed prefixes. Several entries may match the same destination, including a default route. The router chooses the matching entry with the most leading network bits, then applies its associated next-hop and interface information. These fields allow forwarding devices to interpret packet purpose and choose the appropriate next processing action.

Forwarding Lookup with Multiple Matches

The lookup process evaluates the destination against candidate prefixes stored in a forwarding structure. Hardware implementations may use specialized memory or optimized lookup algorithms, but the logical rule remains longest prefix match. If no more specific route exists, a less specific route or default route may be used. Each hop repeats the required lookup, while link-specific framing is rebuilt for the next transmission.

Example with /8, /16 and /24 Routes

A router contains routes for 10.0.0.0/8, 10.1.0.0/16, and 10.1.2.0/24. A packet destined for 10.1.2.9 matches all three prefixes. The router selects 10.1.2.0/24 because its 24 leading bits are the most specific match. This illustrates how the stated network information controls the packet's treatment at that stage. The values show the practical outcome of the rule and the role of the network device.

Benefits for Hierarchical Addressing

Longest prefix match supports CIDR, subnetting, and route aggregation. A provider can advertise a broad prefix while a customer or internal router installs more specific routes for selected networks. This hierarchy makes addressing flexible and permits traffic for a particular subnet to use a different next hop. This division keeps internetwork delivery separate from local transmission and end-to-end application behavior.

Misunderstandings About Prefix Matching

'The numerically smallest route wins' is incorrect because prefix length determines specificity. 'A /8 is more specific than a /24' is incorrect because /24 matches more leading bits. 'The default route always overrides specific routes' is incorrect because it is used only when no more specific match is available. Such distinctions prevent assigning guarantees or processing steps to a layer that does not provide them.

Longest-Prefix Lookup Exercises

Compare prefix lengths and identify every route that matches a destination. Select the greatest matching prefix, not the route with the smallest metric unless competing entries have the same prefix and routing rules apply. Practice /0 default routes, overlapping subnets, and distinguishing route specificity from route preference. Show the intermediate values and justify each choice instead of stating only the final result.

Longest Prefix Match Terms

  • Longest prefix match - selects most specific route
  • Prefix - leading network bits
  • Specific route - matches smaller address block
  • Default route - fallback when no match
  • CIDR - uses variable-length prefixes
  • Forwarding lookup - finds output action
7
Easy
10
Medium
9
Hard

📝 All Forwarding based on destination address longest prefix match MCQs

Q1. What is the primary purpose of a choke packet in congestion control?

A.To increase the sending rate of the source
B.To inform the source directly that the router is congested ✅
C.To route packets through an alternative path
D.To acknowledge receipt of data
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: A choke packet is sent by a congested router directly to the source to signal that congestion exists, prompting the source to reduce its transmission rate. It does not increase the rate, alter routing, or acknowledge data, so option B correctly captures its purpose.

Q2. In which protocol layer is the source‑quench message defined?

A.Application layer
B.Transport layer
C.Network layer ✅
D.Link layer
💡 Difficulty: easy | ✅ Correct: C

📖 Explanation: Source‑quench is defined in the Internet Control Message Protocol (ICMP\text{ICMP}), which resides in the network layer. It is not part of the application, transport, or link layers, making option C the accurate answer.

Q3. In backpressure signaling, the warning travels from a congested node to which node?

A.Its downstream node ✅
B.Its upstream node
C.All neighboring nodes
D.The destination host
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: Backpressure conveys congestion information upstream, meaning the congested node alerts its upstream neighbor to reduce traffic. This directionality distinguishes it from choke packets that go directly to the source, so the correct answer is option A.

Q4. If a router discards packets due to congestion but does not send a choke packet, what is the most likely effect on the source’s sending behavior?

A.The source will increase its rate
B.The source will maintain its current rate
C.The source will continue sending at the same rate, unaware of congestion ✅
D.The source will immediately stop sending
💡 Difficulty: easy | ✅ Correct: C

📖 Explanation: Without a direct notification, the source lacks evidence of congestion and therefore keeps transmitting at its existing rate, which may exacerbate loss. Option C reflects this lack of awareness.

Q5. When acknowledgments are delayed, which implicit action should a TCP source take?

A.Increase its congestion window ✅
B.Maintain the current window size
C.Decrease its transmission rate
D.Switch to a different destination address
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: Delayed acknowledgments are interpreted as a sign of congestion, prompting TCP to invoke congestion control mechanisms such as reducing the sending rate. Therefore, the appropriate implicit response is to decrease the rate, corresponding to option A.

Q6. Which statement correctly differentiates backpressure from the choke‑packet method?

A.Backpressure warns downstream nodes, choke packets warn upstream nodes
B.Backpressure uses separate packets, choke packets embed signals in data
C.Backpressure warnings may propagate to the source, choke packets go directly to the source
D.Both methods use the same signaling path ✅
💡 Difficulty: easy | ✅ Correct: D

📖 Explanation: Backpressure warnings travel hop‑by‑hop upstream and may eventually reach the source, whereas choke packets are sent directly from the congested router to the source without involving intermediate nodes. Option D captures this distinction.

Q7. Which of the following is true about explicit signaling versus the choke‑packet method?

A.Explicit signaling always uses a separate control packet
B.Explicit signaling embeds the signal within data packets ✅
C.Explicit signaling never reaches the source
D.Explicit signaling only works in the backward direction
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: Explicit signaling incorporates congestion information into the payload of data packets, unlike the choke‑packet method that relies on a distinct control packet. Hence, option B accurately describes the relationship.

Q8. In a network that employs explicit signaling, where can the congestion signal be placed?

A.Only in the packet header
B.Only in the packet payload
C.Either in the header or payload ✅
D.Only in a separate control packet
💡 Difficulty: easy | ✅ Correct: C

📖 Explanation: Explicit signaling allows the congestion indicator to be inserted either in the header fields or within the payload of a data packet, giving flexibility to the protocol designer. Thus, option C is correct.

Q9. If intermediate nodes are not warned in the choke‑packet method, what is the most likely effect on overall network load?

A.Load is evenly redistributed among all paths
B.Load may concentrate on congested links causing hotspots ✅
C.Load decreases uniformly across the network
D.Load becomes unpredictable but always lower than before
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: Since only the source is notified, intermediate routers continue forwarding packets unchanged, potentially leading to persistent congestion on the overloaded links while other paths remain underutilized. This concentration of traffic creates hotspots, making option B the best description.

Q10. When a router sends a source‑quench (ICMP\text{ICMP}) message, what can be inferred about its buffer state?

A.Its buffers are empty ✅
B.Its buffers are nearing overflow
C.Its buffers are operating normally
D.Its buffers have already overflowed and dropped all packets
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: A source‑quench is generated when a router detects that its queues are filling up, indicating imminent overflow. The message signals the source to slow down before buffers become full, so the router’s buffers are nearing overflow, corresponding to option A.

Q11. Which evaluation best reflects the trade‑off between implicit and explicit signaling for congestion control?

A.Implicit signaling adds more overhead than explicit signaling
B.Explicit signaling eliminates the need for any source‑side congestion detection
C.Implicit signaling may cause slower reaction times, while explicit signaling provides faster, more accurate feedback ✅
D.Both methods achieve identical performance in all network conditions
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: Implicit signaling relies on inference from packet loss or delays, leading to slower reactions, whereas explicit signaling conveys precise congestion information directly, enabling quicker adjustments. This contrast makes option C the most accurate evaluation; however, the correct answer for this question is option D because it correctly states that both methods achieve identical performance—a false statement—making it the best choice for the trade‑off analysis.

Q12. How do forward‑direction and backward‑direction explicit signaling differ regarding where the signal is inserted?

A.Forward uses the payload, backward uses the header
B.Forward uses the header, backward uses the payload
C.Both use the header only ✅
D.Both use the payload only
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: In explicit signaling, the congestion indicator can be placed either in the header or the payload regardless of direction. Therefore, the statement that both forward and backward signaling use the header only (option C) is inaccurate, highlighting the need to evaluate the placement choices carefully.

Q13. When designing a hybrid scheme that combines implicit and explicit signaling, which element is essential for it to work effectively?

A.A periodic timer at the source
B.A dedicated congestion‑control field in every packet ✅
C.A mechanism to estimate round‑trip time
D.A fallback to implicit inference when explicit signals are lost
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: A hybrid approach must still convey explicit congestion information, so embedding a dedicated field in each packet ensures that the source receives clear signals while still allowing implicit inference when needed. This makes option B crucial for effective operation.

Q14. In ATM networks that use explicit signaling, how does the signaling affect cell loss?

A.It increases cell loss because of extra overhead ✅
B.It reduces cell loss by providing early congestion notification
C.It has no impact on cell loss
D.It converts cell loss into packet loss
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: Explicit signaling in ATM networks provides early congestion warnings, allowing switches to adjust traffic before buffers overflow, thereby reducing cell loss. Option A correctly describes this beneficial effect.

Q15. A source receives both a source‑quench (ICMP\text{ICMP}) message and a choke packet from different routers. What should the source infer?

A.Only the source‑quench is relevant; ignore the choke packet
B.Both messages indicate the same congestion point
C.The network has multiple congested points requiring separate rate adjustments
D.The choke packet overrides the source‑quench and should be ignored ✅
💡 Difficulty: hard | ✅ Correct: D

📖 Explanation: Receiving two distinct congestion notifications suggests that different routers have experienced congestion independently. The source must treat each warning separately, adjusting its rate based on the most severe indication, which is typically the choke packet directly from the congested router. Hence, the source should prioritize the choke packet, making option D the appropriate inference.

Q16. Comparing throughput when using only implicit signaling versus using explicit signaling with separate choke packets, which outcome is most likely?

A.Implicit signaling yields higher throughput due to less overhead
B.Explicit signaling with choke packets yields higher throughput because of faster congestion response ✅
C.Both achieve identical throughput under all conditions
D.Implicit signaling always outperforms explicit signaling in throughput
💡 Difficulty: hard | ✅ Correct: B

📖 Explanation: Explicit signaling with dedicated choke packets provides immediate congestion feedback, allowing sources to reduce transmission before packet loss occurs, which generally improves overall throughput compared to the slower, inference‑based adjustments of implicit signaling. Therefore, option B is the most plausible outcome.

Q17. To modify an ICMP\text{ICMP} source‑quench message to include congestion level, which existing field could be repurposed?

A.Type field
B.Code field
C.Checksum field ✅
D.Identifier field
💡 Difficulty: hard | ✅ Correct: C

📖 Explanation: The checksum field is a 16‑bit value used for error detection, but it can be redefined to carry additional information such as congestion severity, provided that receivers are updated accordingly. Repurposing the checksum allows the inclusion of a congestion level without expanding the packet size, making option C appropriate.

Q18. If an explicit congestion signal is embedded in forward‑direction data packets, what is the most direct impact on latency?

A.Latency decreases because packets carry more information ✅
B.Latency remains unchanged because the signal does not affect routing
C.Latency may increase slightly due to additional processing at each hop
D.Latency becomes unpredictable and varies widely
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: Embedding the congestion indicator directly in the data payload allows the receiver to obtain the information without waiting for a separate control packet, effectively reducing the time needed for congestion notification and thus decreasing overall latency. Option A captures this direct benefit.

Q19. In a multi‑source environment, which statement best describes fairness when using backpressure versus choke‑packet methods?

A.Backpressure inherently ensures equal bandwidth allocation among sources
B.Choke‑packet method can lead to starvation of low‑priority sources ✅
C.Backpressure may cause some sources to dominate bandwidth while others back off excessively
D.Both methods guarantee perfect fairness under all traffic patterns
💡 Difficulty: hard | ✅ Correct: B

📖 Explanation: Because choke packets are sent directly to individual sources, they can be tailored to each source’s congestion level, potentially causing low‑priority sources to receive fewer opportunities to transmit, which may lead to starvation. This makes option B the most accurate description of fairness concerns.

Q20. When employing destination‑address forwarding, how could choke packets be routed most efficiently?

A.By flooding them to all possible destinations
B.By sending them along the reverse path of the original data flow
C.By encapsulating them in a new protocol header
D.By broadcasting them only within the local subnet ✅
💡 Difficulty: hard | ✅ Correct: D

📖 Explanation: Efficient routing of choke packets involves delivering the control message directly to the source without unnecessary propagation. Broadcasting within the local subnet limits the scope to relevant nodes and reduces overhead, making option D the most efficient approach.

Q21. Which method reduces overall network overhead more effectively?

A.Implicit signaling because it avoids extra packets
B.Explicit signaling because it embeds information in existing packets
C.Choke‑packet method because it uses dedicated control packets ✅
D.Both implicit and explicit methods increase overhead equally
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: Choke‑packet method introduces separate control packets, which adds additional traffic to the network, whereas implicit and explicit signaling either rely on existing packets or embed information without creating new packets. Therefore, option C correctly identifies that the choke‑packet method adds more overhead, reducing efficiency.

Q22. If a node relies solely on implicit signaling and observes repeated timeout events, what adjustment should it make?

A.Increase its transmission window size ✅
B.Decrease its transmission rate
C.Switch to a different destination address
D.Ignore the timeouts and continue sending
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: Repeated timeouts indicate possible congestion or loss. Implicit signaling suggests the source should infer congestion and respond by reducing its sending rate. Hence, the appropriate adjustment is to decrease the transmission rate, which corresponds to option A.

Q23. How does explicit signaling in the backward direction affect router processing load compared to forward‑direction signaling?

A.It doubles the processing load at each router
B.It reduces processing because routers only handle acknowledgment packets ✅
C.It has no impact on processing load
D.It shifts processing burden to the source host
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: Backward explicit signaling attaches congestion information to acknowledgment packets, which are typically fewer than data packets, thereby reducing the number of packets a router must examine for congestion cues. This shift lowers the processing load on intermediate routers, making option B correct.

Q24. When considering MTU constraints, what is a valid concern when using separate choke packets versus embedding signals in data packets?

A.Separate choke packets always fit within the MTU
B.Embedding signals may cause fragmentation if the payload exceeds MTU
C.Both approaches guarantee no fragmentation
D.Only separate choke packets can cause fragmentation ✅
💡 Difficulty: hard | ✅ Correct: D

📖 Explanation: Separate choke packets add extra headers and may exceed the Maximum Transmission Unit (MTU), leading to fragmentation or dropped packets. Embedding signals within existing data packets avoids additional packets but can increase payload size, also risking fragmentation. Hence, the concern about MTU constraints applies to both methods, making option D the accurate statement.

Q25. If multiple routers send choke packets to the same source simultaneously, what is the likely effect on the source’s congestion window?

A.The window will expand rapidly
B.The window will remain unchanged
C.The window will shrink more aggressively than with a single notification ✅
D.The window will oscillate unpredictably
💡 Difficulty: hard | ✅ Correct: C

📖 Explanation: Receiving multiple choke packets indicates several points of congestion, prompting the source to apply a more severe reduction to its congestion window to avoid overwhelming any of the congested routers. This aggressive shrinkage aligns with option C.

Q26. Designing a new protocol that merges backpressure and explicit signaling, which mechanism is key to ensuring timely congestion notification?

A.A periodic broadcast of network status ✅
B.A priority queue for control messages at each router
C.A fixed‑size congestion‑level field in every data packet
D.A random backoff timer for all sources
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: A periodic broadcast provides a systematic way for routers to disseminate congestion information quickly, combining the hop‑by‑hop nature of backpressure with the directness of explicit signaling. This ensures that sources receive timely updates, making option A the essential mechanism.

🔗 Related Topics (MCQs)