written 7.8 years ago by | • modified 2.8 years ago |
Mumbai University > Information Technology > Sem 4 > CN
Marks: 10M
Year: May 2016,Dec 2016
written 7.8 years ago by | • modified 2.8 years ago |
Mumbai University > Information Technology > Sem 4 > CN
Marks: 10M
Year: May 2016,Dec 2016
written 7.8 years ago by |
High-Level Data Control, also known as HDLC, is a bit oriented, switched and non-switched protocol. It is a data link control protocol, and falls within layer 2, the Data Link Layer of the Open Systems Interface (OSI) model.
It has been so widely implemented because it supports both half duplex and full duplex communication lines, point to point(peer to peer) and multi-point networks, and switched or non-switched channels. The procedures outlined in HDLC are designed to permit synchronous, code-transparent data transmission. Other benefits of HDLC are that the control information is always in the same position, and specific bit patterns used for control differ dramatically from those in representing data, which reduces the chance of errors.
It has also led to many subsets. Two subsets widely in use are Synchronous Data Link Control (SDLC) and Link Access Procedure-Balanced (LAP-B).
HDLC Frame Structure: HDLC uses the term "frame" to indicate an entity of data (or a protocol data unit) transmitted from one station to another. Figure below is a graphical representation of a HDLC frame with an information field.
Figure 1.HDLC frame
An HDLC frame with an information field
Field Name | Size(in bits) |
---|---|
Flag Field( F ) | 8 bits |
Address Field( A ) | 8 bits |
Control Field( C ) | 8 or 16 bits |
Information Field( I ) | Variable; Not used in some frames |
Frame Check Sequence( FCS ) | 16 or 32 bits |
Closing Flag Field( F ) | 8 bits |
A. THE FLAG FIELD
B. THE ADDRESS FIELD
The address field (A) identifies the primary or secondary stations involvement in the frame transmission or reception. Each station on the link has a unique address. In an unbalanced configuration, the A field in both commands and a response refers to the secondary station. In a balanced configuration, the command frame contains the destination station address and the response frame has the sending station's address.
C. CONTROL FIELD
HDLC uses the control field(C) to determine how to control the communications process. This field contains the commands, responses and sequences numbers used to maintain the data flow accountability of the link, defines the functions of the frame and initiates the logic to control the movement of traffic between sending and receiving stations. There three control field formats:
Figure 2. I-frame,S-frame,U-frame
Information Transfer Format:
The frame is used to transmit end-user data between two devices.
Supervisory Format:
The control field performs control functions such as acknowledgment of frames, requests for re-transmission, and requests for temporary suspension of frames being transmitted. Its use depends on the operational mode being used.
Unnumbered Format:
This control field format is also used for control purposes. It is used to perform link initialization, link disconnection and other link control functions.
THE POLL/FINAL BIT (P/F):
The 5th bit position in the control field is called the poll/final bit, or p/f bit. It can only be recognized when it is set to 1. If it is set to 0, it is ignored. The poll/final bit is used to provide dialogue between the primary station and secondary station. The primary station uses P=1 to acquire a status response from the secondary station. The P bit signifies a poll. The secondary station responds to the P bit by transmitting a data or status frame to the primary station with the P/F bit set to F=1. The F bit can also be used to signal the end of a transmission from the secondary station under Normal Response Mode.
THE INFORMATION FIELD:
This field is not always in a HDLC frame. It is only present when the Information Transfer Format is being used in the control field. The information field contains the actually data the sender is transmitting to the receiver.
D. THE FRAME CHECK SEQUENCE FIELD:
This field contains a 16 bit, or 32 bit cyclic redundancy check. It is used for error detection.