đ Packet Switching (12 MCQs)
Sharing Network Links Through Packet Switching
Packet switching divides user data into packets that share transmission links with packets from other communications. Each packet carries addressing and control information, allowing network devices to forward it through the network. Statistical sharing improves link utilization compared with reserving a dedicated physical path for every conversation, although delay and packet loss can vary with traffic. Such services allow hosts on different physical links to communicate through intermediate network devices.
Store-and-Forward and Statistical Multiplexing
In store-and-forward operation, a switch or router receives a packet, examines required header fields, and then sends it onward. Multiple sources statistically share the same outgoing capacity. When packets arrive faster than a link can transmit them, they wait in queues; finite buffers can fill and cause packet drops. Implementation details may vary, but addressing and forwarding principles remain consistent across participating routers.
Packet Traversal Across Intermediate Routers
A source encapsulates data in a packet and sends it over its local link. Each intermediate router receives the frame, extracts the packet, examines its destination, and selects an outgoing interface. It then re-encapsulates the packet for the next link. The process repeats until the packet reaches the destination network.
Queueing on a Shared 10-Mbit/s Link
Suppose several computers send packets through a 10-Mbit/s outgoing link. When their combined arrival rate exceeds the link service rate, packets accumulate in the router queue. A packet must wait until earlier packets are transmitted, demonstrating how shared packet switching creates variable queueing delay during busy periods. The values show the practical outcome of the rule and the role of the network device.
Comparison with Dedicated Circuit Switching
Packet switching is well suited to bursty computer traffic because capacity is shared as packets are ready. Unlike circuit switching, it does not reserve a continuous end-to-end channel for the entire session. Its performance depends on traffic load, link capacity, queue management, routing, and the protocols used by communicating hosts.
Misconceptions About Shared Packet Networks
'Every packet follows a permanently reserved path' is incorrect for datagram networks because packets may be routed independently. 'Packet switching eliminates delay' is incorrect because transmission, propagation, processing, and queueing still occur. 'Packets cannot be dropped' is incorrect because full buffers and failures can cause loss. Accurate interpretation depends on identifying both the protocol layer and the device performing the operation.
Packet-Switching Calculations and Concepts
Be able to explain store-and-forward operation, statistical multiplexing, queue formation, and packet loss. Calculate transmission delay from packet size and link rate, and distinguish it from propagation delay. Compare packet switching with circuit switching, identify the role of routers, and explain why congestion makes delay variable. Use the given prefix, protocol fields, and units consistently when working through a scenario.
Packet Switching Terminology
- Packet switching - shares links among packets
- Store-and-forward - receives packet before sending
- Queue - holds packets awaiting transmission
- Statistical multiplexing - shares capacity by demand
- Buffer - temporary packet storage
- Congestion - traffic exceeds network capacity
đ All Packet Switching MCQs
Q1. At which layer of the OSI model does packet switching primarily occur?
đ Explanation: Packet switching is a core function of the Network layer (LayerâŻ3) in the OSI model. This layer is responsible for routing packets across multiple networks, determining optimal paths, and handling logical addressing, which distinguishes it from the Transport, Data Link, and Physical layers.
Q2. If a network adopts a datagram packetâswitching approach, which immediate effect on routing tables is most likely?
đ Explanation: In a datagram system each packet is treated independently, so routers consult their routing tables for every incoming packet. This perâpacket lookup eliminates the need for maintaining state about individual flows, unlike virtualâcircuit schemes that require preâestablished state.
Q3. Which statement best contrasts datagram and virtualâcircuit packet switching regarding resource reservation?
đ Explanation: Datagram switching forwards each packet without reserving resources, allowing routes to change dynamically. Virtualâcircuit switching, by contrast, establishes a dedicated path before data transfer, reserving bandwidth and buffering along that route. Thus, only the virtualâcircuit model involves explicit resource reservation.
Q4. How does NAT alleviate IPv4 address exhaustion while preserving endâtoâend connectivity?
đ Explanation: Network Address Translation (NAT) allows many devices with private IPv4 addresses to share a single public address. By translating private source addresses to the public address and differentiating flows with port numbers (Port Address Translation), NAT conserves scarce public addresses while keeping internal hosts reachable through the translation process.
Q5. When congestion occurs at a router, which immediate consequence is most likely for packets following the virtualâcircuit model?
đ Explanation: Virtualâcircuit traffic follows a preâdefined path, so congestion on any link of that path directly impacts all packets belonging to that circuit. Consequently, the affected flow suffers heightened queuing delay and a higher probability of packet drops, while other circuits may continue unaffected.
Q6. Which factor most significantly influences the endâtoâend delay in a network that uses datagram packet switching?
đ Explanation: In datagram networks each packet may encounter different queues at each hop. The variability of queuing delay, caused by fluctuating traffic loads and buffer occupancy, dominates the overall endâtoâend latency. Header size, propagation speed, and processing time are relatively constant, so they contribute less to total delay variability.
Q7. How does the use of labels in MPLS forwarding relate to the concept of virtualâcircuit packet switching?
đ Explanation: LabelâSwitched Paths (LSPs) in MPLS assign a short, fixedâlength label to each packet at entry. While the label itself does not define a permanent circuit, the sequence of labelâbased forwarding decisions creates a path that behaves similarly to a virtual circuit, enabling fast, deterministic forwarding across the network.
Q8. Given a network where the average perâhop processing delay is and the average queuing delay is per hop, what can be inferred about the impact of increasing the number of hops from 3 to 6 on total endâtoâend delay?
đ Explanation: Each hop contributes of processing and queuing. For three hops the total is . Adding three more hops adds another , so the overall delay grows by . This linear increase reflects the additive nature of perâhop latencies.
Q9. Differentiate the handling of packet loss detection in UDP over a datagram network versus TCP over a virtualâcircuit network.
đ Explanation: TCP, operating over a virtual circuit, incorporates sequence numbers, acknowledgments, and timeoutâbased retransmission, enabling reliable detection and recovery from lost packets. UDP, however, provides no builtâin acknowledgment or retransmission; loss is detected only by the application layer, if at all. Therefore, loss detection is intrinsic to TCP but absent in UDP.
Q10. Synthesize a strategy that combines NAT and DHCP to maximize address utilization while minimizing routing complexity in a large enterprise.
đ Explanation: By configuring DHCP to hand out private IPv4 addresses from reserved ranges, the enterprise conserves its limited public address pool. NAT then maps many internal hosts to a single public address using port address translation, simplifying external routing while preserving internal address flexibility. This combination reduces the need for extensive routing tables and eases address management.
Q11. If a router implements both storeâandâforward and cutâthrough switching, which immediate effect will be observed when traffic volume suddenly spikes?
đ Explanation: Storeâandâforward waits for an entire packet before forwarding, causing latency that grows with queue length during traffic spikes. Cutâthrough begins forwarding after reading the header, so its perâpacket latency remains relatively low even under congestion. Consequently, the storeâandâforward path suffers increased delay, while cutâthrough continues to deliver packets faster.
Q12. Which statement correctly distinguishes classful from classless IPv4 addressing?
đ Explanation: Classful addressing divides the address space into fixed classes (A,âŻB,âŻC) with predetermined networkâhost boundaries, limiting flexibility. Classless InterâDomain Routing (CIDR) removes these rigid class boundaries, allowing networks to be defined with any prefix length, such as /22 or /27, thereby improving address allocation efficiency.