HDLC PROTOCOL
BY AASHISH SATISH(1025958) ABHIJITH B.A(1025902) AJITH LLOYD HERI(1025962) DEEPTI RAGHU(1025963) PRIYANKA LOBO(1025935) SHASHANKA(1025944)
WHAT DOES HDLC STANDS FOR?
High link Data Link Control
overview
Reliable protocol
selective repeat or go-back-N
Full-duplex communication
receive and transmit at the same time
Bit-oriented protocol
use bits to stuff flags occurring in data
Flow control
adjust window size based on receiver capability
Two types of Connections
1
Normal Response mode
One way communication Also called as unbalanced mode
Primary station responsible for controlling the operation of data flow the link.
Unbalanced Mode
Secondary station, Operates under the control of the primary station. Frames issued by a secondary station are called responses.
Commands Primary Responses Secondary Secondary
Asynchronous Response mode
2
Two way communication Also called as balanced mode
Balanced mode
Combined commands/Responses
Combined station, Acts as both as primary and secondary station.
Combined
There are three different classes of frames used in HDLC
Information frames / I-Frames : As the name suggests it deals with the data / information
Unnumbered Frames / U-Frames:
Mainly concerned with the system messages
Supervisory frames / S-Frames :
Used for error and flow control purposes and hence contain send and receive sequence numbers, doesn't contain data
The frame formats in HDLC
DESCRIPTION
FLAG : Depicts the beginning and end of each frame. Address : Source / Destination address(1 byte or more) Control field Data field : contains the actual data (only present in
the I-Frame)
FCS Frequency Check Sequence: used in error control & flow control
The control field of different frame formats in HDLC
DESCRIPTION
Control field in I-Frame: First bit depicts the type of the frame i.e., if the first bit is 1 it is I-Frame. Next three bits gives the SEQUENCE NUMBER P/F : Poll/Final : if P = ON -> flow from source to destination. if P = OFF -> flow from destination to source Control field in S-Frame: First 2 bits depicts the type of the frame i.e., if the first 2 bits are 1 and 0, it is S-Frame. There are four different supervisory frames note : SS First two bits SS=00, Receiver Ready (RR) SS=10, Receiver Not Ready (RNR) SS=01, Reject SS=11, Selective Reject