Lecture 15 Data Communication & Computer Network, HDLC
Lecture 15 Data Communication & Computer Network, HDLC
STATIONS
Commands
Primary
Responses
Secondary Secondary
Balanced mode
Combined Combined
commands/Responses
HDLC Defines three types of data
transfer mode
DATA TRANSFER
MODES
HDLC
FRAMES
(b) Control
field
format
HDLC
Flag: 01111110- indicates start and ending of frames
FCS: 16-bit CRC using generating polynomial
16 12 5
G(x) = x + x + x + 1
Address field:
When a primary station is sending a frame, the address field
contains the receiver identity
If a secondary station is sending the frame, the address field
contains the sender identity
In some cases, it contains a group or broadcast address
In I-frames, N(s) is the sequence number of the frame being sent, and
N(r) is the sequence number of the frame being expected.
The P/F bit, known as the poll/final bit, is used with different meaning in different
contexts.
It is used to indicate polling, to indicate the final I-frame, etc
HDLC
There are three different classes of frames
used in
HDLC
Unnumbered frames, used in link setup and
disconnection, and hence do not contain ACK.
Information frames, which carry actual information.
Such frames can piggyback ACK in case of ABM
Supervisory frames, which are used for error and
flow control purposes and hence contain send and
receive sequence numbers
HDLC
There are four different supervisory frames
SS=00, Receiver Ready (RR), and N(R) ACKs all frames
received up to and including the one with sequence
number N(R) - 1
SS=10, Receiver Not Ready (RNR), and N(R) has the
same meaning as above
SS=01, Reject; all frames with sequence number N(R) or
higher are rejected, which in turns ACKs frames with
sequence number N(R) -1 or lower.
SS=11, Selective Reject; the receive rejects the frame with
sequence number N(R)
HDLC
The unnumbered frames can be grouped into
the following categories:
Mode-setting commands and responses
Recovery commends and responses
Miscellaneous commands and responses
Review of Link Layer
Services
Framing
Error control
Reliability
Connection management
Medium access control
Switching
Protocols
PPP
HDLC
ANY QUESTIONS……??
•Thank you……
12/21/2013