Professional Documents
Culture Documents
HDLC
5/1/2011 1
Objectives
HDLC
o Stations
o Link configurations
o Transfer Mode
o Frame Structure
5/1/2011 2
High-Level Data Link Control (HDLC)
HDLC was defined by ISO 3009, ISO 4335 for use on both point-to-point and
multipoint data links.
It supports full-duplex communication
Other similar protocols are
o Synchronous Data Link Control (SDLC) by IBM
o Advanced Data Communication Control Procedure (ADCCP) by ANSI
o Link Access Procedure, Balanced (LAP-B) by CCITT, as part of its X.25
packet-switched network standard
5/1/2011 3
HDLC Overview
Broadly HDLC features are as follows:
Reliable protocol
o selective repeat or go-back-N
Full-duplex communication
o receive and transmit at the same time
Bit-oriented protocol
o use bits to stuff flags occurring in data
Flow control
o adjust window size based on receiver capability
Uses physical layer clocking and synchronization to send and receive
frames
5/1/2011 4
HDLC Overview
Defines three types of stations
o Primary
o Secondary
o Combined
Defines three types of data transfer mode
o Normal Response mode (NRM)
o Asynchronous Response mode (ARM)
o Asynchronous Balanced mode (ABM)
Three types of frames
o Unnumbered
o Information
o Supervisory
5/1/2011 5
HDLC
The three stations are :
Primary station
o Has the responsibility of controlling the operation of data flow of the
link.
o Handles error recovery.
o Frames issued by the primary station are called commands.
Secondary station
o Operates under the control of the primary station.
o Frames issued by a secondary station are called responses.
o The primary station maintains a separate logical link with each
secondary station.
Combined station
o Acts as both as primary and secondary station.
o Does not rely on other for sending data
5/1/2011 6
HDLC Link Configurations
5/1/2011 7
HDLC Transfer Modes (NRM)
5/1/2011 8
HDLC Transfer Modes (NRM)
5/1/2011 9
HDLC Transfer Modes (ARM)
5/1/2011 10
HDLC Transfer Modes (ABM)
5/1/2011 11
HDLC Transfer Modes (ABM)
5/1/2011 12
HDLC
There are three different classes of frames used in HDLC
o Unnumbered frames used in link setup and disconnection, and hence
do not contain ACK.
o Information frames which carry actual information. Such frames can
piggyback ACK in case of ABM
o Supervisory frames which are used for error and flow control
purposes and hence contain send and receive sequence numbers
5/1/2011 13
Frame Structure Diagram
5/1/2011 14
Flag Fields
5/1/2011 15
Bit Stuffing
5/1/2011 16
Bit Stuffing
5/1/2011 17
Address Field
5/1/2011 18
Control Field
5/1/2011 19
Control Field
5/1/2011 20
Supervisory Frame
There are four different supervisory frames
o SS=00, Receiver Ready (RR), and N(R) ACKs all frames received up to
and including the one with sequence number N(R) - 1
o SS=10, Receiver Not Ready (RNR), and N(R) has the same meaning as
above
o 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.
o SS=11, Selective Reject; the receive rejects the frame with sequence
number N(R)
5/1/2011 21
Unnumbered Frame
The unnumbered frames can be grouped into the following categories:
o Mode-setting commands and responses
o Recovery commands and responses
o Miscellaneous commands and responses
5/1/2011 22
Poll/Final Bit
5/1/2011 23
Information Field
5/1/2011 24
Frame Check Sequence Field
FCS
Error detection
Normal code is 16 bit CRC
Optional 32 bit CRC (Frame length, Line reliability)
5/1/2011 25
References
[1] William Stallings, Data and Computer Communications, Prentice Hall, New
Jersey, 6th ed, 2000, ISBN 0-13-086388-2.
[2] James F. Kurose and Keith W. Ross, Computer Networking A Top-Down
Approach Featuring the Internet, …………………………….
5/1/2011 26