📝 Datagram Networks in Packet Switching (31 MCQs)
Connectionless Packet Delivery in Datagram Networks
A datagram network is a connectionless form of packet switching in which each packet is treated independently. The sender divides a message into packets, and every packet carries the destination network address needed for forwarding. Routers make forwarding decisions separately, so packets from one message may travel along different routes and may arrive out of order. No end-to-end route is reserved before sending.
Destination Addressing and Router Forwarding Tables
Each datagram contains a destination IP address in its network-layer header. A router compares that address with entries in its forwarding table and selects a next hop and outgoing interface. The packet does not need a pre-established virtual-circuit identifier, and the forwarding decision is based on the destination prefix. at each forwarding hop.
Independent Forwarding of Successive Datagrams
At the source, data is divided into packets and sent into the network. Each router receives a packet, examines its destination address, and forwards it according to the current table. Subsequent packets are processed independently. Network conditions or routing changes can cause packets from the same message to follow different paths.
Two Packets Taking Different Routes to One Host
Suppose packets from 10.1.1.5 are addressed to 10.9.0.8. The first router may send one packet through router A and a later packet through router B if its forwarding information or available paths differ. Both packets retain the same destination IP address, but their arrival times and order may differ.
How Datagram Networks Support Shared Internet Traffic
The Internet Protocol uses datagram delivery, allowing routers to forward packets without setting up a dedicated path for each communication. This supports flexible sharing of network links and allows routing to adapt. Since delivery is best-effort, higher-layer protocols such as TCP may provide sequencing, retransmission, and in-order delivery when applications require them.
Misconceptions About Independent Packet Forwarding
'All packets follow one fixed route' is incorrect because datagrams are forwarded independently. 'A datagram network guarantees packet order' is incorrect because different paths can produce reordering. 'IP itself guarantees reliable delivery' is incorrect because IP provides best-effort delivery and reliability may be supplied by transport protocols. without an IP-level setup exchange.
Datagram Features to Identify in Examinations
Recognize connectionless operation, full destination addressing in each packet, independent router decisions, and possible packet reordering. Trace a forwarding-table lookup using the longest matching destination prefix when appropriate. Compare datagram delivery with virtual circuits, especially the presence or absence of setup and the information used to identify packets. for route and address analysis.
Datagram Forwarding and Addressing Terminology
- Datagram - Forwarded independently.
- Connectionless - Needs no setup. for every forwarded packet
- Destination address - Identifies packet destination.
- Forwarding table - Maps destinations to interfaces. across the network
- Next hop - Next forwarding router.
- Best-effort - No delivery guarantee. at the internet layer
📝 All Datagram Networks in Packet Switching MCQs
Q1. In which OSI layer does a datagram network primarily operate?
📖 Explanation: The datagram network functions at the Network layer, where logical addressing and routing decisions are made. It encapsulates packets with network‑layer headers, enabling routers to forward them based on destination addresses. This layer sits above the Data Link layer and below the Transport layer in the OSI model.
Q2. What is the fundamental unit called that is forwarded by routers in a datagram network?
📖 Explanation: A datagram is the basic packet unit in a connectionless network. Routers receive, examine the header, and forward the datagram toward its destination without establishing a dedicated path. Frames belong to the Data Link layer, while segments and cells pertain to Transport and ATM technologies respectively.
Q3. Which characteristic distinguishes a datagram network from a virtual‑circuit network?
📖 Explanation: In a datagram network each packet is routed independently, allowing routers to make per‑packet decisions based on current network conditions. Virtual‑circuit networks establish a fixed path and allocate resources before data transfer, leading to different handling of ordering and bandwidth guarantees.
Q4. Consider a network where each router can process up to packets per second. If a burst of packets arrives, which outcome is most likely?
📖 Explanation: Routers typically employ buffering; they will queue excess packets while processing at their maximum rate. Dropping occurs only when buffers overflow, and a crash is unlikely. Thus the most plausible result is that packets are queued until the router can resume full‑speed forwarding.
Q5. If a router in a datagram network drops a packet due to congestion, what is the most immediate effect on the end‑to‑end communication?
📖 Explanation: When a packet is lost, the receiver does not acknowledge it, causing the sender’s transport layer (e.g., TCP) to experience a timeout and eventually retransmit. The loss does not directly alter routing tables or latency; it primarily impacts the reliability mechanisms of the end hosts.
Q6. A network engineer observes that two paths between the same source and destination have different average delays. Which logical inference is most justified?
📖 Explanation: Delay in a network is influenced by propagation, transmission, queuing, and processing times. A higher average delay typically indicates more hops, longer physical distances, or slower link capacities, making the inference about hops or link speeds the most reasonable.
Q7. Suppose a datagram network implements a shortest‑path routing algorithm based on hop count. If a new link reduces the hop count between two nodes from 4 to 2, what is the most direct consequence?
📖 Explanation: Routing protocols that use hop count as a metric will update their tables when a shorter path becomes available. The change triggers recomputation of routes, after which subsequent packets may use the new two‑hop path, though latency and packet size are unaffected directly.
Q8. In a scenario where every router forwards packets using a FIFO queue, which deduction about packet ordering is correct?
📖 Explanation: FIFO queuing maintains order within each individual link, but differing path lengths, variable processing times, and possible queuing at intermediate routers can cause packets to reach the destination out of sequence, especially in multi‑path environments.
Q9. If a datagram network employs a probabilistic routing scheme where each packet chooses the next hop with probability proportional to link bandwidth, what can be inferred about traffic distribution?
📖 Explanation: Probabilistic routing weighted by bandwidth directs more packets onto higher‑capacity links, balancing load relative to link capabilities. It does not guarantee equal traffic or deterministic paths, and while it can mitigate congestion, it does not guarantee its complete elimination.
Q10. A network uses datagram switching and experiences frequent packet loss. Which analytical comparison is most appropriate?
📖 Explanation: Virtual‑circuit networks typically incorporate flow control and error recovery, reducing loss compared to pure datagram switching. Comparing these two architectures highlights how connection‑oriented mechanisms can improve reliability, making the contrast the most relevant analysis.
Q11. How does the scalability of a datagram network compare to a mesh topology with point‑to‑point links?
📖 Explanation: Datagram networks rely on shared infrastructure and routing, allowing new devices to be added without creating a dedicated link for each pair. In contrast, a full mesh demands a separate link between every pair, causing exponential growth in cabling and hardware as the network expands.
Q12. When evaluating the efficiency of a datagram network versus a bus topology, which factor most strongly favors the datagram approach?
📖 Explanation: Datagram networks route packets only as needed, so links are not continuously occupied as in a bus where all devices share the medium, leading to lower idle utilization. This dynamic use of bandwidth makes datagram networks more efficient for bursty traffic patterns.
Q13. Consider two networks: one uses datagram switching, the other uses a centralized hub. Which conceptual difference best captures their operation?
📖 Explanation: Datagram networks make routing decisions at each router based on destination addresses, distributing the forwarding logic. A hub, by contrast, simply repeats incoming frames to all ports without inspection, offering no intelligent routing. This conceptual contrast highlights the decentralized nature of datagram networks.
Q14. In a datagram network, what is the primary effect of increasing the MTU (Maximum Transmission Unit) size on routing performance?
📖 Explanation: A larger MTU means each packet can carry more payload, so fewer packets are needed to transmit the same amount of data. This reduction eases processing load on routers and can improve overall throughput, though it does not directly affect routing table size or guarantee latency reductions.
Q15. A datagram network implements load‑balancing by hashing the packet header to select an outgoing link. Which logical reasoning best explains why this method can still cause temporary congestion on a link?
📖 Explanation: Even though hashing aims to spread traffic, the deterministic nature of the function can cause many distinct flows to hash to the same output link, especially if the hash space is limited. This concentration can temporarily overload that link despite the overall balancing intent.
Q16. If a datagram network uses a distance‑vector routing protocol that updates every 30 seconds, what inference can be made about its responsiveness to link failures?
📖 Explanation: Distance‑vector protocols rely on periodic updates; a failure occurring just after an update may not be communicated until the next cycle, potentially up to 30 seconds later. This delay influences how quickly the network can reroute traffic around the failed link.
Q17. A network designer argues that adding redundant paths in a datagram network improves reliability but may increase average latency. Which analytical perspective supports this claim?
📖 Explanation: Introducing extra routes provides alternative ways for packets to reach their destination, enhancing fault tolerance. However, each additional path adds routing complexity and may cause packets to traverse longer or more congested routes, potentially raising the average end‑to‑end latency.
Q18. When comparing datagram networks to circuit‑switched networks, which conceptual advantage is most directly related to resource utilization?
📖 Explanation: Datagram networks employ packet switching, meaning links are shared among many flows and bandwidth is consumed only while packets are in transit. This dynamic allocation contrasts with circuit‑switched networks that pre‑allocate a dedicated path, often leaving capacity idle when no data is sent.
Q19. In a scenario where two routers exchange routing updates using a link‑state protocol, what is the most likely consequence for the network’s convergence time compared to a distance‑vector protocol?
📖 Explanation: Link‑state protocols disseminate complete topology information to all routers, enabling each to compute shortest paths independently. This comprehensive knowledge typically leads to faster convergence after topology changes than distance‑vector protocols, which rely on incremental updates and can suffer from slower propagation of state changes.
Q20. A datagram network employs hierarchical routing with area aggregation. Which conceptual benefit does this provide?
📖 Explanation: Hierarchical routing groups routers into areas and summarizes routes between them, allowing each router to store only detailed routes for its own area and aggregated routes for others. This approach significantly trims routing table size, simplifying router memory requirements and speeding up lookup operations.
Q21. If a datagram network experiences a sudden surge in traffic that exceeds link capacity, which logical inference about packet delay is most accurate?
📖 Explanation: When traffic surpasses the link’s bandwidth, routers buffer excess packets, forming queues. As the queue lengthens, each newly arriving packet must wait longer before transmission, resulting in increased end‑to‑end delay for many packets until the traffic level subsides.
Q22. Consider a network where each router forwards packets based on the shortest‑path algorithm using link cost . If a link’s bandwidth doubles, how does its cost change?
📖 Explanation: The cost formula inversely relates cost to bandwidth. Doubling bandwidth makes . Hence the cost is halved, reflecting a more attractive route for the shortest‑path computation.
Q23. A designer proposes using a fixed‑size header of 20 bytes for all datagrams regardless of payload size. What analytical impact does this have on network efficiency for small payloads?
📖 Explanation: When payloads are small, a constant 20‑byte header constitutes a large portion of the total packet size, inflating overhead and reducing the ratio of useful data to total transmitted bits. This diminishes bandwidth efficiency compared to variable‑size headers that scale with payload.
Q24. In a datagram network, which conceptual reason explains why end‑to‑end reliability is typically handled by transport‑layer protocols rather than the network layer?
📖 Explanation: The network layer focuses on forwarding packets without maintaining state about individual flows. Transport‑layer protocols like TCP can monitor sequence numbers, generate acknowledgments, and request retransmission, offering end‑to‑end reliability directly to applications, which the stateless network layer cannot guarantee.
Q25. A network administrator observes that packets taking different paths arrive at the destination out of order. Which conceptual mechanism can be employed to mitigate this issue?
📖 Explanation: Out‑of‑order delivery is a natural consequence of variable path lengths in a datagram network. By incorporating sequence numbers and a reordering buffer at the receiver, the system can restore the original order before delivering data to the application, effectively hiding the underlying disorder.
Q26. If a datagram network uses a weighted‑fair‑queue (WFQ) scheduler, what logical inference can be made about how different traffic classes are treated?
📖 Explanation: WFQ allocates link capacity among flows based on assigned weights, ensuring that higher‑weight (priority) traffic obtains a proportionally larger share of the bandwidth while still guaranteeing a minimum service to lower‑weight flows, thus achieving fairness across classes.
Q27. When comparing the average hop count in a fully connected mesh versus a datagram network with hierarchical routing, which analytical observation is generally true?
📖 Explanation: Hierarchical routing aggregates routes and reduces the number of intermediate nodes a packet traverses, especially as the network grows. In contrast, a flat mesh may force packets through many direct links, increasing the average hop count for large numbers of nodes.
Q28. A datagram network implements dynamic routing that selects paths based on current queue lengths. Which conceptual advantage does this provide over static shortest‑path routing?
📖 Explanation: Dynamic routing that considers real‑time queue lengths can divert traffic away from congested links, balancing load and often lowering overall latency. Static shortest‑path algorithms ignore such transient conditions, potentially routing packets through heavily queued links and increasing delay.
Q29. In a scenario where each router maintains a separate forwarding table for IPv4 and IPv6, what analytical impact does this have on router memory usage?
📖 Explanation: Maintaining distinct tables for two protocol families requires storing additional entries and associated metadata, effectively increasing the memory footprint. While some shared structures might be possible, the overall effect is an approximate doubling of the routing information the router must manage.
Q30. If a datagram network employs a probabilistic load‑balancing algorithm that randomly selects among equal‑cost paths, what logical consequence can be expected over time?
📖 Explanation: Random selection among paths with identical metrics ensures that, over many packets, each path receives a comparable share of traffic, achieving statistical load balancing without requiring explicit coordination among routers.
Q31. A network uses datagram switching with a per‑hop TTL (Time‑to‑Live) field. Which conceptual purpose does TTL serve?
📖 Explanation: The TTL field is decremented by each router; when it reaches zero, the packet is discarded. This mechanism stops packets from circulating indefinitely due to routing loops, protecting network resources and ensuring that misrouted packets do not persist forever.