|
||||||||||
HDLC Protocol Overview
HDLC Frame Structure:
The HDLC frame consists of Flag, Address, Control, Data, and CRC fields as shown. The bit length of each field is given below: Flag (both opening and closing flags): 8 bits (01111110
or 7E hex) Data (Payload): This is the information that is carried from node to
node. This is a variable field. Sometimes padded with extra bits to provide
fixed length. The polynomial used for 16 bit FCS: Closing Flag: It is same as Opening Flag. If no prior care is taken, it is possible that flag character (01111110) is present in data field. If present, then it will wrongly be interpreted as end of frame. To avoid this ambiguity, a transmitter will force a '0' bit after encountering 5 continuous 1s. At the receiving end, the receiver drops the '0' bit when encountered with 5 continuous 1s, and continues with the next bit. This way, the flag pattern (01111110) is avoided in the data field. Normally, synchronous links transmit all the time. But, useful information may not be present at all times. Idle flags [11111111] may be sent to fill the gap between useful frames. Alternatively, a series of flags [01111110] may be transmitted to fill gaps between frames instead of transmitting idle flags [11111111]. Continuous transmission of signals is required to keep both the transmitting and receiving nodes synchronized. Ex.: frame...flag...flag...flag...frame..flag..flag..frame...frame... PPP and SLIP use a subnet of HDLC protocol. ISDN's D channel uses a modified version of HDLC. Also, note that Cisco routers' uses HDLC as default serial link encapsulation protocol. HDLC Frame TypesThe control field in HDLC is also used to indicate the frame type. There are three types of frames supported by HDLC. These are: I Frames: These are information frames, and contain user data
I Frames are sequentially numbered, carry user data, poll and final bits, and message acknowledgements. S Frames performs any retransmission requests, and other supervisory controls. U Frames can be used to initialize secondaries.
|
||||||||||