πŸŽ“ BookMCQ
← Back to 11. Data Link Control (DLC)

πŸ“ HDLC frame structure and configurations (8 MCQs)

Fields That Make Up an HDLC Frame

An HDLC frame is organized around a flag at each end, with address, control, optional information, and frame check sequence fields between them. The structure supports frame delimitation, station identification, control, payload transfer, and error detection. Control-field length and interpretation depend on the frame format and whether normal or extended sequence numbering is used for the link. These fields are processed in a fixed order.

Address, Control, Information and FCS Roles

The opening and closing flags use 01111110. The address field identifies the secondary or destination station as defined by the link configuration. The control field identifies I, S, or U frame type and carries sequence or command information. The information field carries user data when required, while the FCS detects transmission errors.

Reading Frame Fields in Their Transmission Order

The receiver searches for a flag, reads the address and control fields, and determines how to interpret the remainder. If an information field is present, it extracts the payload. It then checks the FCS and processes the frame according to its type. The closing flag marks the frame end and prepares recognition of the next frame.

Separating I, S and U Frame Control Formats

An I-frame control field contains a send sequence number N(S), a receive sequence number N(R), and a poll/final bit. An S-frame uses a supervisory function code with N(R), while a U-frame uses control bits for unnumbered commands and responses. This distinction allows one outer frame structure to support data transfer and link management.

How Station Configuration Changes Control

In an unbalanced HDLC configuration, a primary station controls secondary stations, which normally transmit in response to permission. In a balanced configuration, two combined stations have equal status and can initiate transfer. Modes such as NRM and ABM define response behavior within these configurations, so configuration and operating mode should not be treated as synonyms.

Misreading the Fields and Configuration Names

'The information field appears in every frame' is incorrect because control frames may omit it. 'FCS identifies the destination station' confuses error checking with addressing. 'Balanced means both stations use separate primary and secondary roles' is false; balanced operation uses combined stations with equal link-control status and transmission authority during normal operation of the link, unlike primary-secondary control.

Labeling Frame Diagrams and Station Roles

For examinations, label both flags and the address, control, information, and FCS fields in order. Determine whether a control field belongs to an I, S, or U frame before interpreting its bits. Separately identify balanced or unbalanced configuration and the associated mode, then explain how station roles affect who may initiate transmission.

HDLC Frame Fields and Station Configurations

  • Flag - Delimits an HDLC frame.
  • Address - Identifies a link station.
  • Control - Specifies frame type and sequence data.
  • Information - Carries user payload.
  • FCS - Detects frame corruption.
  • Combined station - Can initiate balanced-link transmission.
2
Easy
4
Medium
2
Hard

πŸ“ All HDLC frame structure and configurations MCQs

Q1. In bit stuffing, an extra 0 is inserted after which bit pattern?

A.Five consecutive 1 bits
B.A 0 followed by five consecutive 1 bits βœ…
C.Six consecutive 1 bits
D.A 1 followed by five consecutive 0 bits
πŸ’‘ Difficulty: easy | βœ… Correct: B

πŸ“– Explanation: The bit‑stuffing rule states that whenever a 0 is followed by five consecutive 1s, a single 0 is inserted. This prevents the pattern from mimicking the flag sequence. Recognizing this rule allows the receiver to later remove the inserted bit, restoring the original data.

Q2. A transmitter sends the bit sequence 01111100111110 using bit stuffing. What will be the transmitted sequence?

A.01111100111110
B.0111111001111110
C.0111110001111100 βœ…
D.011111010011111010
πŸ’‘ Difficulty: medium | βœ… Correct: C

πŸ“– Explanation: The original pattern contains a 0 followed by five 1s, so a 0 is stuffed after the five 1s. The resulting sequence becomes 0 11111 0 00\,11111\,0\,0, which is 0111110001111100. This extra bit is later removed by the receiver during decoding.

Q3. If a receiver detects the flag pattern 0111111001111110 within a frame, what can be logically inferred about the transmitted data?

A.A stuffed bit was removed, restoring the flag. βœ…
B.The frame contains an error and must be discarded.
C.The sender failed to apply bit stuffing.
D.The flag pattern is part of the payload data.
πŸ’‘ Difficulty: medium | βœ… Correct: A

πŸ“– Explanation: When the receiver sees the flag pattern, it knows that any preceding stuffed bits have already been removed. The presence of the flag indicates proper bit‑stuffing processing, not an error, because the protocol guarantees that the flag can only appear after de‑stuffing.

Q4. Which statement best compares the overhead introduced by bit stuffing versus byte stuffing for a frame containing 1000 bits with an average of 2 occurrences of the flag pattern?

A.Bit stuffing adds roughly 2 bits, while byte stuffing adds 2 bytes. βœ…
B.Bit stuffing adds roughly 2 bytes, while byte stuffing adds 2 bits.
C.Both add the same number of bits.
D.Bit stuffing adds no overhead.
πŸ’‘ Difficulty: medium | βœ… Correct: A

πŸ“– Explanation: Each flag occurrence triggers one stuffed bit, so two flags add 2 bits. Byte stuffing would replace each flag with an escape byte plus the flag byte, adding roughly 2β€―bytes (16β€―bits). Thus bit stuffing incurs far less overhead for the same number of flag occurrences.

Q5. A frame of 1024 bits contains 8 occurrences of the flag pattern. Using bit stuffing, each occurrence adds one stuffed bit. What is the transmission efficiency (payload/original bits) expressed as a percentage?

A.0.992 βœ…
B.0.985
C.0.97
D.0.95
πŸ’‘ Difficulty: hard | βœ… Correct: A

πŸ“– Explanation: The frame carries 1024 payload bits and 8 stuffed bits, so total transmitted bits = 1024β€―+β€―8β€―=β€―1032. Efficiency = (1024β€―/β€―1032)β€―Γ—β€―100 β‰ˆβ€―99.22%, which rounds to 99.2β€―%. This shows that bit stuffing incurs very low overhead for a modest number of flags.

Q6. How does the receiver identify and remove stuffed bits during frame decoding?

A.It scans for the flag pattern and deletes preceding bits.
B.It removes any 0 that follows five consecutive 1s. βœ…
C.It replaces every occurrence of 0 with 1.
D.It ignores the first bit of each frame.
πŸ’‘ Difficulty: medium | βœ… Correct: B

πŸ“– Explanation: The receiver monitors the incoming bit stream for the specific pattern of five consecutive 1s followed by a 0. When this pattern is found, the trailing 0 is recognized as a stuffed bit and is discarded, thereby reconstructing the original data without the artificial insertion.

Q7. Design a protocol that avoids the need for bit stuffing while still preventing the flag sequence from appearing in payload. Which mechanism best achieves this?

A.Use a length field to specify frame size instead of delimiters.
B.Escape the flag sequence with a special escape character. βœ…
C.Transmit data only in ASCII characters.
D.Require the sender to encrypt the payload.
πŸ’‘ Difficulty: hard | βœ… Correct: B

πŸ“– Explanation: Escaping replaces any occurrence of the flag sequence in the payload with an escape character followed by a transformed version of the flag. This guarantees that the flag pattern never appears unintentionally, eliminating the need for bit stuffing while preserving frame boundary detection.

Q8. In asynchronous transfer mode, frames are delimited by:

A.A start and stop bit pair. βœ…
B.A fixed-length header.
C.A unique flag sequence.
D.A checksum field.
πŸ’‘ Difficulty: easy | βœ… Correct: A

πŸ“– Explanation: Asynchronous communication sends each character (or frame) framed by a start bit to signal the beginning and one or more stop bits to signal the end. This method provides clear delimiters without requiring a separate flag sequence, contrasting with synchronous modes that rely on shared timing or explicit flags.

πŸ”— Related Topics (MCQs)