📝 Routers as packet switches internal architecture (9 MCQs)
Router Structure for High-Speed Packet Processing
A router is a packet switch that connects different IP networks and forwards packets between its interfaces. Its internal architecture commonly includes input ports, a switching fabric, output ports, and a routing processor. The routing processor maintains control information, while the data path transfers packets through the device. Network-layer decisions remain independent of the particular cable or wireless link carrying each packet.
Input Ports, Switching Fabric and Output Ports
Input ports receive physical signals, perform link-layer processing, and examine packet headers for forwarding. The switching fabric transfers packets from selected inputs to outputs. Output ports buffer packets, schedule transmission, and perform link-layer encapsulation and physical signaling appropriate to the next network segment. Every device must interpret the relevant fields consistently to preserve correct packet delivery.
Routing Processor and Forwarding Control
The routing processor runs routing protocols, maintains routing information, and installs forwarding entries. Input ports use those entries to decide where packets should go. A router may implement forwarding through memory-based, bus-based, or crossbar switching fabrics, depending on its design and performance requirements. Local link addressing is resolved separately for each outgoing segment along the route.
Packet Movement Through a Router
An Ethernet frame arrives at an input port. The router checks the frame, extracts the IP packet, performs a destination lookup, and sends it through the switching fabric to the selected output port. The output port queues the packet, constructs a new link-layer frame, and transmits it. Following the same steps with different addresses or rates produces a different forwarding result.
Queues, Scheduling and Internal Performance
Packets can wait in input or output queues when ports or the switching fabric are busy. Scheduling decides which queued packet transmits next, while buffer capacity affects loss during bursts. If input traffic exceeds fabric or output capacity, contention may occur even when the external links themselves have high nominal rates.
Misconceptions About Router Internals
'A router is only a routing table' is incorrect because hardware ports and switching fabric move packets. 'The routing processor forwards every bit individually' is incorrect because data-plane hardware commonly handles packet forwarding. 'Output queues never fill' is incorrect because congestion and rate mismatches can cause buffering and drops. Questions often test this distinction by changing the address, device, or communication conditions.
Router Architecture Diagrams and Performance Questions
Label input ports, switching fabric, output ports, and routing processor in architecture diagrams. Trace a packet through ingress processing, lookup, switching, queueing, and transmission. Explain the difference between control-plane routing and data-plane forwarding, and identify how input contention, output congestion, and buffer limits affect performance. State the relevant rule first, then apply it systematically to the supplied network information.
Router Architecture Terms
- Input port - receives frames for processing
- Switching fabric - transfers packets between ports
- Output port - queues outgoing frames
- Routing processor - maintains routing control
- Queue - holds packets temporarily
- Scheduler - selects next packet to transmit
📝 All Routers as packet switches internal architecture MCQs
Q1. Which virtual layer is introduced to transform the connectionless service of the network layer into a connection‑oriented service for security purposes?
📖 Explanation: IPSec operates as a virtual layer that encapsulates IP packets, providing authentication and encryption. By doing so, it converts the inherently connectionless IP service into a secure, connection‑oriented one, addressing the original lack of security provisions in the network layer.
Q2. If a router employs a store‑and‑forward mechanism, how does an increase in average packet size affect the end‑to‑end latency compared to a cut‑through mechanism, assuming link bandwidth and propagation delay remain constant?
📖 Explanation: Store‑and‑forward must receive the entire packet before forwarding, so larger packets add transmission time at each hop. Cut‑through begins forwarding after the header is received, so its latency grows much less with packet size. Consequently, the latency gap widens as packets become larger.
Q3. Consider a network where routers prioritize real‑time video packets using a strict priority queue. What is the most likely effect on best‑effort data traffic when bursty video traffic suddenly doubles its rate?
📖 Explanation: When video traffic doubles, the high‑priority queue fills quickly, forcing best‑effort packets to wait longer or be dropped. Strict priority scheduling gives no bandwidth guarantee to lower‑priority traffic, so its delay rises and loss probability increases during video bursts.
Q4. How does a router differ from a Layer‑2 switch in the way it forwards packets?
📖 Explanation: Routers operate at the network layer, examining the IP header and consulting a routing table to determine the next hop. In contrast, a Layer‑2 switch works at the data‑link layer, using MAC addresses and a forwarding database, and does not interpret IP information.
Q5. Evaluate the advantage of using routers as packet switches in a network that interconnects both IPv4 and IPv6 segments.
📖 Explanation: Routers are capable of maintaining distinct routing tables for IPv4 and IPv6, allowing seamless forwarding across protocol boundaries. This dual‑stack capability avoids the need for separate translation devices and supports simultaneous operation of both address families.
Q6. Differentiate between virtual‑circuit switching and datagram‑based forwarding in routers regarding path setup and resource reservation.
📖 Explanation: Virtual‑circuit switching creates a fixed path before data transfer, optionally reserving bandwidth along that route. Datagram (or IP) forwarding makes an independent routing decision for each packet, without pre‑allocated resources, leading to potentially variable paths and no guaranteed bandwidth.
Q7. When a router performs longest‑prefix matching, how does it select the next hop for a destination address given the following prefix entries: 1010/4 → NH1, 1010 11/6 → NH2, 1010 1100/8 → NH3?
📖 Explanation: The destination address matches all three prefixes, but the longest prefix (8 bits) provides the most specific match. Therefore the router selects the entry 1010 1100/8, which points to NH3, implementing the longest‑prefix rule.
Q8. In a scenario where every router applies IPSec ESP encryption to outbound packets, what trade‑off is most likely to arise for high‑throughput backbone traffic?
📖 Explanation: Applying ESP encryption requires each router to encrypt and decrypt packets, adding CPU overhead. This processing introduces additional per‑packet latency, which becomes noticeable on high‑speed links where the cryptographic cost can approach the line rate, potentially limiting throughput.
Q9. Explain how packet switching enables quality‑of‑service (QoS) differentiation for latency‑sensitive applications.
📖 Explanation: Packet switching lets routers inspect QoS fields such as DSCP or VLAN tags and place packets into priority queues. Latency‑sensitive traffic receives higher priority, reducing its queuing delay, while lower‑priority traffic may experience longer waits, thus achieving differentiated service levels.