🎓 BookMCQ
← Back to 11. Data Link Control (DLC)

📝 Flow control and error control mechanisms DLC

Two Different Controls for Sending Data Frames

Data Link Control uses flow control and error control to manage frame exchange between adjacent nodes. Flow control prevents a sender from transmitting faster than the receiver can accept and process frames. Error control deals with damaged, lost, or duplicated frames. They are related parts of link reliability, but they solve different problems and use different protocol mechanisms on a shared link.

Receiver Regulation and Error Recovery Methods

Stop-and-wait flow control permits one outstanding frame before the sender waits for a response. Sliding-window methods allow several frames in transit and limit the range of unacknowledged sequence numbers. Error control may add acknowledgements, timers, sequence numbers, and retransmission rules, commonly forming Automatic Repeat reQuest (ARQ) procedures when the window permits.

Acknowledgements, Timers and Window Movement

A sender transmits a frame and follows the protocol's acknowledgement rule. When an acknowledgement arrives, the sender can advance its window and send more data. If the frame or acknowledgement is lost, a timer may expire and trigger retransmission. Sequence numbers let the receiver recognize duplicates, while receiver-advertised limits or acknowledgements regulate outstanding traffic.

Stop-and-Wait ARQ After a Lost Acknowledgement

Suppose a sender transmits frame 0 and the receiver accepts it, but the acknowledgement is lost. The sender's timer expires and frame 0 is sent again. A sequence number allows the receiver to recognize the repeated frame, discard its duplicate data, and return the acknowledgement. This prevents one lost acknowledgement from delivering the same payload twice.

Why Flow and Error Control Work Together

Flow control protects the receiving data-link entity from overload, while error control helps maintain correct frame delivery over an unreliable link. Sliding-window ARQ combines both by limiting outstanding frames and tracking acknowledgements. TCP also uses flow and error recovery concepts, but its mechanisms operate end to end at the transport layer rather than replacing link-level control.

Separating Receiver Overload from Transmission Errors

'Flow control corrects corrupted bits' is incorrect because corruption is handled by error detection and recovery. 'An acknowledgement always proves the application received data' is false because a link acknowledgement confirms a link-level event. 'Retransmission is the same as congestion control' is also wrong; retransmission repairs loss, whereas congestion control adjusts traffic offered to the network.

Reading ARQ and Window-Control Scenarios

For examinations, identify the sender's window size, outstanding sequence numbers, acknowledgement meaning, and timer action. Trace what happens when a data frame or acknowledgement is lost, and determine whether a duplicate is discarded. Distinguish stop-and-wait from sliding-window operation, and state whether a question concerns receiver flow control, error recovery, or network congestion.

Flow Control and Error Recovery Terms

  • Flow control - Prevents receiver overload.
  • Error control - Detects and recovers from frame loss.
  • ARQ - Uses acknowledgements and retransmissions.
  • Sequence number - Identifies a transmitted frame.
  • Sliding window - Limits outstanding frames.
  • Timeout - Triggers recovery after no response.
5
Easy
7
Medium
5
Hard

📝 All Flow control and error control mechanisms DLC MCQs

Q1. If a bit-oriented protocol uses the flag pattern 011111 to delimit frames, what is the most likely consequence when the data payload contains the same pattern without bit stuffing?

A.The receiver will treat the payload as a frame delimiter and truncate the frame ✅
B.The transmission will be automatically corrected by error control
C.The frame will be ignored but the payload remains intact
D.The protocol will switch to byte-oriented mode
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: Because the receiver relies on the unique flag to detect frame boundaries, an identical pattern in the payload will be mistaken for a delimiter. Without bit stuffing to break the pattern, the receiver will prematurely end the frame, causing loss of the remaining payload data.

Q2. Given that bit stuffing inserts a '0' after five consecutive '1's, how does this mechanism prevent false flag detection when the original data contains the sequence 011111?

A.It replaces the sequence with a different flag pattern
B.It inserts a '0' after the five '1's, breaking the flag ✅
C.It discards the offending bits
D.It changes the flag to a longer pattern
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: Bit stuffing works by inserting a '0' after any run of five '1's, which disrupts the exact 011111 pattern that identifies a flag. Consequently, the receiver never sees five consecutive '1's without an intervening '0', eliminating the chance of mistakenly detecting a flag inside the payload.

Q3. When a frame error is detected due to a missing flag, which recovery action aligns best with the protocol's flow‑control strategy?

A.Retransmit only the corrupted frame
B.Discard the frame and request a new one
C.Resynchronize by searching for the next flag pattern ✅
D.Terminate the connection
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: Flow control aims to keep the communication channel synchronized. If a flag is missing, the most appropriate step is to search the bit stream for the next valid flag, thereby re‑establishing alignment without unnecessarily discarding data or ending the session.

Q4. A transmission contains the bit sequence ...10111110... where the flag is 011111. Assuming correct bit stuffing, which statement must be true about the bits surrounding the flag?

A.The flag is preceded by at least six '1's
B.A '0' follows every run of five consecutive '1's
C.The flag appears only at the start of a frame
D.No bit stuffing is required before the flag ✅
💡 Difficulty: hard | ✅ Correct: D

📖 Explanation: Because the flag itself is defined as 011111, any occurrence of five consecutive '1's inside payload would be broken by a stuffed '0'. Therefore, the flag can appear without preceding stuffing, and the surrounding bits do not need additional manipulation; the flag is recognized directly.

Q5. If a receiver repeatedly detects the flag pattern 011111 inside data despite bit stuffing, what inference can be drawn about the sender's implementation?

A.The sender is correctly applying bit stuffing
B.The sender is omitting bit stuffing after five '1's ✅
C.The receiver is misinterpreting the flag
D.The protocol uses a different flag pattern
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: Repeated false flag detections indicate that the sender is not inserting the required '0' after five consecutive '1's. Without this insertion, the raw data can contain the flag pattern, leading the receiver to falsely identify delimiters and cause framing errors.

Q6. Compare bit‑oriented framing with byte‑oriented framing in terms of overhead and flexibility. Which statement best captures the trade‑off?

A.Bit‑oriented framing has higher overhead but less flexibility
B.Byte‑oriented framing reduces overhead but limits payload types
C.Bit‑oriented framing offers lower overhead and greater flexibility ✅
D.Byte‑oriented framing provides both lower overhead and higher flexibility
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: Bit‑oriented framing works at the individual bit level, allowing precise control of delimiters and efficient use of the channel, which reduces overhead. It also accommodates any type of payload because it does not depend on byte boundaries, giving it superior flexibility compared with byte‑oriented schemes.

Q7. Analyze why protocols are shifting toward bit‑oriented designs despite the historical prevalence of byte‑oriented methods. Which factor is most influential?

A.Legacy hardware constraints ✅
B.Improved error‑control algorithms
C.Increased need for multimedia data handling
D.Standardization by ISO
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: The migration is driven primarily by legacy hardware limitations that favor byte‑oriented processing. Overcoming these constraints requires redesigning hardware for bit‑level manipulation, which is costly. Therefore, the most influential factor remains the inertia of existing equipment, even as newer applications benefit from bit‑oriented flexibility.

Q8. Evaluate the impact of using the 8‑bit flag 011111 on the probability of accidental flag occurrence in a random data stream. Which effect is most accurate?

A.Probability increases linearly with stream length
B.Probability is negligible for typical payload sizes
C.Probability is high, requiring frequent stuffing ✅
D.Probability remains constant regardless of data length
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: In a random binary stream, the chance of encountering six consecutive bits matching the flag pattern is 126=1/64\frac{1}{2^6}=1/64. Over long transmissions this probability accumulates, making accidental flag occurrences relatively common and necessitating bit stuffing to preserve frame integrity.

Q9. What is a key difference between flag detection in bit‑oriented protocols and character detection in byte‑oriented protocols?

A.Bit‑oriented uses start‑stop bits
B.Byte‑oriented relies on parity bits
C.Bit‑oriented searches for a specific bit pattern, while byte‑oriented looks for a unique byte value ✅
D.Both use identical detection mechanisms
💡 Difficulty: easy | ✅ Correct: C

📖 Explanation: Bit‑oriented protocols identify frame boundaries by scanning for a predefined sequence of bits (e.g., 011111). In contrast, byte‑oriented protocols use a distinct byte value as a delimiter, which aligns with the natural byte boundaries of the data and simplifies detection but reduces flexibility.

Q10. In a scenario where the flag pattern 011111 appears twice within a single frame due to an error, what is the most likely outcome for the receiving side?

A.The frame will be split into three separate frames ✅
B.The entire transmission will be discarded
C.Only the first flag will be recognized, and the rest ignored
D.Error detection will trigger a retransmission request
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: If the flag appears unintentionally inside the payload, the receiver will interpret each occurrence as a frame delimiter. Consequently, the original frame is erroneously divided into multiple frames, leading to misinterpretation of the data and possible loss of information.

Q11. Apply the principle of bit stuffing to a payload segment that ends with the bits ...11111. What bits will be transmitted to preserve framing integrity?

A....111110... ✅
B....111111...
C....11111...
D....11110...
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: When five consecutive '1's are present, bit stuffing dictates inserting a '0' immediately after them. Thus, the original sequence ...11111 becomes ...111110 when transmitted, ensuring that the flag pattern 011111 cannot be falsely detected within the payload.

Q12. Synthesize a method for detecting framing errors that combines both flag verification and checksum validation. Which approach best embodies this synthesis?

A.Check the flag only, then compute checksum
B.Compute checksum first, then look for flag
C.Verify the flag, then validate checksum before processing payload ✅
D.Ignore flag and rely solely on checksum
💡 Difficulty: easy | ✅ Correct: C

📖 Explanation: A robust error‑detection scheme first confirms that the frame delimiters (flags) are correctly placed, guaranteeing proper alignment. Only after this alignment is assured does the receiver compute and compare the checksum, ensuring that the payload itself is uncorrupted. This two‑step process maximizes reliability.

Q13. Consider a protocol that uses the flag 011111 and employs bit stuffing. If the transmitted bit stream is ...0111110..., what does the receiver interpret after destuffing?

A.A complete frame with proper delimiters ✅
B.A flag followed by an extra '0'
C.An incomplete frame missing its ending flag
D.A single flag without payload
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: The transmitted sequence includes the flag (011111) followed by a stuffed '0' to prevent the flag pattern from appearing in the payload. After destuffing, the receiver removes the extra '0', leaving the original flag and correctly delimiting the frame, indicating a complete and valid frame.

Q14. Explain why bit‑oriented protocols are better suited for transmitting compressed video streams compared to byte‑oriented protocols. Which rationale is most compelling?

A.Compressed video uses fixed‑size packets
B.Bit‑oriented framing aligns with variable‑length codewords ✅
C.Video data requires parity bits
D.Byte‑oriented protocols cannot handle video at all
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: Compressed video often employs variable‑length coding (e.g., Huffman). Bit‑oriented framing can accommodate these irregular codeword lengths without imposing artificial byte boundaries, allowing the protocol to transmit the exact bit sequence efficiently and maintain synchronization through flag patterns and stuffing.

Q15. If a transmission error flips the sixth bit of the flag pattern 011111 to '0', how will this affect the receiver's framing process?

A.The receiver will still recognize the flag
B.The receiver will treat the pattern as data and miss the delimiter ✅
C.The frame will be rejected as corrupted
D.Error control will automatically correct the bit flip
💡 Difficulty: hard | ✅ Correct: B

📖 Explanation: Altering any bit of the flag destroys its unique pattern, preventing the receiver from recognizing it as a delimiter. Consequently, the receiver will interpret the altered sequence as ordinary payload data, causing loss of frame boundary information and likely leading to misaligned subsequent frames.

Q16. Define the flag pattern used in most bit‑oriented protocols discussed in the material.

A.1111110
B.11001100
C.11111 ✅
D.10101010
💡 Difficulty: easy | ✅ Correct: C

📖 Explanation: The text specifies that most protocols employ a special 8‑bit pattern flag, shown as 011111. This pattern serves as the delimiter that separates one frame from another in bit‑oriented framing.

Q17. What is the primary purpose of bit stuffing in a bit‑oriented framing scheme?

A.To increase transmission speed
B.To prevent accidental flag appearance in payload ✅
C.To encrypt the data
D.To reduce error rates
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: Bit stuffing inserts a '0' after any run of five consecutive '1's, breaking the exact flag pattern (011111) within the payload. This mechanism ensures that the receiver does not mistakenly identify payload bits as a frame delimiter, preserving proper framing and data integrity.

🔗 Related Topics (MCQs)