28-HDLC-frame Types-Modes of Operation-21-09-2023
28-HDLC-frame Types-Modes of Operation-21-09-2023
- Modes of operation
Types of HDLC Frames
HDLC Frames
Information frames
Used for error (ACK, NAK) and flow control (Don’t Send):
• Receive Ready (RR), SS=00
• ACKs frames up to N(R)-1 when piggyback not available
• REJECT (REJ), SS=01
• ACK indicating N(R) is first frame not received correctly.
Transmitter must resend N(R) and later frames
• Receive Not Ready (RNR), SS=10
• ACKs frame N(R)-1 & requests that no more I-frames be sent
• Selective REJECT (SREJ), SS=11
• Negative ACK for N(R) requesting that N(R) be selectively
retransmitted
Error Detection & Loss Recovery
11.11
Connection Establishment & Release
• Supervisory frames used to establish and release data link
connection
• In HDLC
• Set Asynchronous Balanced Mode (SABM)
• Disconnect (DISC)
• Unnumbered Acknowledgment (UA)
SABM UA
Data UA
transfer DISC
Addressing
• Three phases
• Initialization
• Data transfer
• Disconnect
Exchange of frame using NRM
B, I, 0, 0
N(R) B sends 3 info
X B, I, 1, 0
frames
B, I, 2, 0,F
A rejects fr1 B, SREJ, 1
A polls C C, RR, 0, P
C, RR, 0, F C nothing to
send
A polls B, B, SREJ, 1,P
requests
selective B, I, 1, 0 B resends fr1
retrans. fr1 B, I, 3, 0 Then fr 3 & 4
B, I, 4, 0, F
A send info fr0 B, I, 0, 5
to B, ACKs up to 4
Time
Frame Exchange using Asynchronous Balanced Mode
B, I, 1, 0 A, I, 1, 1 A ACKs fr0
X
B sends 5
frames B, I, 2, 1 A, I, 2, 1
B, I, 3, 2 A rejects
B, REJ, 1
fr1
B, I, 4, 3
A, I, 3, 1
B goes B, I, 1, 3
back to 1
B, I, 2, 4 B, RR, 2 A ACKs fr1
B, I, 3, 4
B, RR, 3 A ACKs fr2