đ Connectionless vs Connection-oriented data link services (12 MCQs)
Two Service Models for Link-Layer Frame Delivery
A data link service may transfer frames without first establishing a logical connection, or it may establish link state before exchanging numbered data. In connectionless service, each frame is handled independently and carries the information needed for local delivery. Connection-oriented service maintains an agreed logical link context, often including sequencing and acknowledgement state for that particular link between adjacent interfaces and communication endpoints, rather than across an entire route.
Unacknowledged and Acknowledged Delivery Options
Connectionless delivery does not necessarily mean that errors are ignored: a protocol may acknowledge individual frames without creating a persistent connection. Connection-oriented service typically performs link establishment, uses sequence numbers, and manages acknowledgements and recovery. The service model describes protocol behavior, not whether the physical cable or radio channel remains connected.
Establishing, Using and Releasing a Logical Link
In a connection-oriented exchange, the peers first perform setup or link establishment, then send numbered information frames while tracking acknowledgements. They may retransmit frames after loss and release the logical connection when communication ends. In a connectionless exchange, the sender can transmit an individual frame when the medium-access rules permit, without this setup sequence.
HDLC Link Setup Compared with Ethernet Frames
A balanced HDLC link can establish a data-link connection and exchange numbered information frames with supervisory acknowledgements. Ordinary Ethernet frame delivery, by contrast, does not establish a reliable connection with every destination or acknowledge every frame at the link layer. Both carry frames, but their link-service behavior and control overhead differ substantially.
Choosing a Service According to the Link Requirement
Connectionless service has low setup overhead and suits technologies where higher layers handle end-to-end recovery or where individual frames are independently delivered. Connection-oriented service can provide ordered, controlled transfer on a link but needs state and control exchanges. Wireless LANs may acknowledge individual unicast frames while still operating without a persistent link-layer connection to each peer.
Avoiding Confusion Between Physical and Logical Connection
'Connectionless means no physical connection exists' confuses a service model with the medium. 'Every acknowledged frame requires a connection-oriented service' is false because acknowledgements can be per-frame. 'Ethernet is connection-oriented because a cable is plugged in' is also incorrect; its ordinary frame service does not establish a reliable logical session with each peer.
Comparing Setup, State and Acknowledgement Behavior
For examinations, compare whether setup is required, whether each frame is independent, and whether sequence numbers or acknowledgements maintain link state. Distinguish acknowledged connectionless delivery from connection-oriented transfer. When given a protocol example, discuss the service it actually provides rather than inferring its model from a physical cable or a point-to-point topology.
Connectionless and Connection-Oriented Service Terms
- Connectionless - Transfers frames without link setup.
- Connection-oriented - Maintains a logical link state.
- Acknowledgement - Confirms a frame was received.
- Sequence number - Tracks frame order.
- Link setup - Negotiates a logical connection.
- Unacknowledged service - Sends without per-frame confirmation.
đ All Connectionless vs Connection-oriented data link services MCQs
Q1. If a network switches from a connection-oriented service to a connectionless service, which immediate effect on packet delivery is most likely?
đ Explanation: When a connectionless service is used, the network no longer maintains a dedicated session, so packets are sent independently. This can result in packets arriving out of sequence because there is no ordering mechanism, whereas connectionâoriented services preserve order. The other choices describe effects that are either opposite or unrelated to the change.
Q2. Which statement best contrasts the overhead of connectionâoriented versus connectionless protocols?
đ Explanation: Connectionâoriented protocols must establish a session, which introduces additional control frames and state information, increasing overhead. In contrast, connectionless protocols send each packet independently with only a lightweight header, keeping overhead low. The other options misstate the mechanisms of acknowledgments and retransmissions.
Q3. Applying the principle of flow control, how does a connectionâoriented DLC typically manage buffer overflow compared to a connectionless DLC?
đ Explanation: Connectionâoriented DLC maintains state and can employ flowâcontrol mechanisms such as stopâandâwait or slidingâwindow protocols, allowing the sender to pause when the receiverâs buffer is full. Connectionless DLC lacks such coordination and generally cannot prevent overflow, often resulting in dropped frames. The other options either describe behaviors of connectionless services or are inaccurate.
Q4. Given that a connectionâoriented link establishes a session before data transfer, what can be inferred about its suitability for bursty traffic patterns?
đ Explanation: Because a connectionâoriented DLC must first negotiate parameters and may enforce a fixed window size, sudden spikes in data can be throttled or delayed, making it less responsive to bursty patterns. Connectionless services transmit each frame immediately without session constraints, handling bursts more naturally. Therefore the logical inference is that bursty traffic benefits from connectionless communication.
Q5. Evaluate the tradeâoff between reliability and latency when choosing between connectionless and connectionâoriented services for realâtime video streaming.
đ Explanation: Realâtime video demands minimal delay; using a connectionless DLC avoids the handshake and acknowledgment steps, reducing latency. However, without builtâin reliability mechanisms, packet loss may increase, lowering overall reliability. A connectionâoriented DLC would add acknowledgments and possible retransmissions, improving reliability but introducing delay, which can degrade video smoothness. Thus the tradeâoff favors connectionless for latencyâcritical applications.
Q6. Synthesize a scenario where a hybrid approach uses connectionless control frames with connectionâoriented data frames; which benefit does this architecture primarily provide?
đ Explanation: In a hybrid design, short control frames may be sent connectionlessly to benefit from immediate transmission, while larger data frames use a connectionâoriented session that provides acknowledgments and retransmission capabilities. This combination leverages the lowâlatency advantage of connectionless communication for control information, yet retains the reliability needed for bulk data transfer. The other statements either misrepresent the purpose or incorrectly claim elimination of error handling.
Q7. If a node experiences frequent packet loss, what cause is most directly linked to using a connectionless service without acknowledgment?
đ Explanation: Connectionless DLC transmits frames without establishing a session and typically does not implement acknowledgment or automatic retransmission. Consequently, when a frame is corrupted or lost on the medium, the sender is unaware and does not resend it, leading directly to higher observed packet loss. The other options either describe unrelated mechanisms or are characteristic of connectionâoriented services.
Q8. Analyze why a connectionâoriented DLC requires a threeâway handshake at the data link layer, while a connectionless DLC does not, focusing on state maintenance.
đ Explanation: A threeâway handshake in connectionâoriented DLC serves to negotiate parameters, allocate resources, and confirm that both ends have recorded the session state, ensuring reliable ordered delivery. Connectionless DLC lacks this exchange because it does not maintain state, sending frames independently. The handshake is not primarily for clock sync, encryption, or rate advertisement, though some of those may be negotiated later.
Q9. Apply the concept of error control to explain how a connectionless DLC can achieve comparable error detection to a connectionâoriented DLC without establishing a session.
đ Explanation: Even without a session, a connectionless DLC can achieve strong error detection by computing a cyclic redundancy check (CRC) for each individual frame. The receiver validates the CRC and discards corrupted frames. This perâframe approach provides comparable detection capability to connectionâoriented DLC, which may also use CRCs, but without the overhead of maintaining session state. The other options either depend on session state or delegate error handling elsewhere.
Q10. Given a network where the physical layer provides reliable bit transmission, what logical deduction can be made about the necessity of connectionâoriented DLC for error control?
đ Explanation: When the physical layer guarantees errorâfree bit transmission, the primary motivation for a connectionâoriented DLCâproviding error detection and correctionâdiminishes. While flow control may still be needed, the specific errorâcontrol function can be omitted, making a connectionâoriented DLC optional for that purpose. The other statements either overstate the impact or misinterpret the relationship between layers.
Q11. Differentiate the impact on network scalability when deploying connectionless versus connectionâoriented DLC across a large mesh of nodes.
đ Explanation: In a large mesh network, maintaining a separate session for each node pair (as required by connectionâoriented DLC) leads to significant state overhead, limiting the number of concurrent connections. Connectionless DLC, by transmitting independent frames without session state, reduces memory and processing demands on each node, enabling the network to scale to many more links. The other options misrepresent the scaling behavior.
Q12. What term describes a DLC service that does not require a prior session establishment?
đ Explanation: A DLC service that operates without establishing a session beforehand is defined as connectionless. It sends frames independently, without the overhead of connection setup, making it distinct from connectionâoriented services that require a session. The other terms refer to different characteristics, such as reliability or transmission mode, not the presence or absence of a session.