Go to Pulse Home Page Pulse provides industry leading solutions, products and services for Data Communications, WAN and Computer Networking Call Pulse now for all your Datacomm, WAN and computer networking needs !

Click to go back one page

What is HDLC ?
High Level Data Link Control
Presented by:
Copyright 2000©

 

   

Protocol Overall Description:
Layer 2 of the OSI model is the data link layer. One of the most common layer 2 protocols is the HDLC protocol. In fact, many other common layer 2 protocols are heavily based on HDLC, particularly its framing structure: namely, SDLC, SS#7, LAPB ,LAPD and ADCCP (advanced data communications control procedure - used by ANSI). The basic framing structure of the HDLC protocol is shown below:

HDLC uses zero insertion/deletion process (commonly known as bit stuffing) to ensure that the bit pattern of the delimiter flag does not occur in the fields between flags. The HDLC frame is synchronous and therefore relies on the physical layer to provide method of clocking and synchronizing the transmission and reception of frames.

The HDLC protocol is defined by ISO for use on both point-to-point and multipoint (multidrop) data links. It supports full duplex transparent-mode operation and is now extensively used in both multipoint and computer networks.

HDLC Operation Modes:

HDLC has three operational modes:

 

  1. Normal Response Mode (NRM - Normal Response Mode is used in unbalanced configurations. In this mode, slave stations (or secondary) can only transmit when specially instructed by the master (primary station). The link may be point-to-point or multipoint. In the latter case only one primary station is allowed.
  2. Asynchronous Response Mode (ARM - Asynchronous Response Mode: This mode is used in unbalanced configurations. [unbalanced configurations]. It allows a secondary station to initiate a transmission without receiving permission from the primary station . This mode is normally used with point-to-point configurations and full duplex links and allows the secondary station to send frames asynchronously with respect to the primary station)
  3. Asynchronous Balanced Mode (ABM - The Asynchronous Balanced Mode (ABM), is used mainly on full duplex point-to-point links for computer to computer communications and for connections between a computer and a packed switched data network, in this case each station has an equal status and performs the role of both primary and secondary functions. This mode is used in the protocol set known as X.25.)

Frame Formats:

The standard frame of the HDLC protocol handles both data and control messages. It has the following format:

The length of the address field is commonly 0,8 or 16 bits, depending on the data link layer protocol.
For instance the SDLC use only 8 bit address, while SS#7 has no address field at all because it is always used in point to point links.

The 8 or 16 bit control field provides a flow control number and defines the frame type (control or data). The exact use and structure of this field depends upon the protocol using the frame.

Data is transmitted in the data field , which can vary in length depending upon the protocol using the frame. Layer 3 frames are carried in the data field.

Error Control is implemented by appending a cyclic redundancy check (CRC- The Frame Control Sequence (FCS) is the HDLC frame is in most cases - 16 bit wide , the generator polynomial used is normally CRC-CCITT: x^16+x^12+x^5+1) to the frame, which is 16 bits long in most protocols.

Frame Classes:

In the HDLC protocol , three classes of frames are used :

  1. Unnumbered frames - (Unnumbered frames are used for link management, for example they are used to set up the logical link between the primary station and a secondary station, and to inform the secondary station about the mode of operation which is used.)  are used for link management.
  2. Information frames - (Information frames are those who carry the actual data. The Information frames can be used to piggyback acknowledgment information relating to the flow of Information frames in the reverse direction when the link is being operated in ABM or ARM.) are used to carry the actual data.
  3. Supervisory frames - are used for error and flow control.

Frame types: Three classes of frames are used in HDLC. Some of the different types of frame in each class are described below.
Unnumbered frames are used for link management. SNRM (SNRM is one kind of unnumbered frame that is used to set up logical link between the primary and the secondary station and to inform the secondary station of the mode of operation to be used.)  and SABM (SABM is one kind of unnumbered frame that is used to set up logical link between the primary and the secondary station and to inform the secondary station of the mode of operation to be used.)  frames , for example, are used both to set up logical link between the primary and the secondary station and to inform the secondary station of the mode of operation to be used. A logical link is subsequently cleared by the primary station sending a DISC (DISC is one kind of unnumbered frame. It is used to clear a logical link)  frame. The UA (UA is one kind of unnumbered frame. It is used as an acknowledgment to other frames)  frame is used as an acknowledgment to the other frames in this class.
There are four types of supervisory frames but only RR (A kind of a supervisory frame, which means: Receiver Ready. The Receiver signals the the transmitter that both, the physical layer and the application layer above it are ready to process messages.)  and RNR (A kind of a supervisory frame , which means receiver not ready. This response is initiated by the application, if it is not ready, to process messagse. It means that layer 0 (the physical layer) is functional, but the application above it is not.) are used in both NRM and ABM These frames are used both to indicate the willingness or otherwise of a secondary station to receive an information frame from the primary station, and for acknowledgment purposes. REJ (A kind of frame that is used only in ABM which permits simultaneous two-way communication across a point to point link. It is used with the go back N procedure) and SREJ (A kind of frame that is used only in ABM which permits simultaneous two-way communication across a point to point link. It is used with a selective repeat transmission procedure) frames are used only in ABM which permits simultaneous two-way communication across a point to point link. The two frames are used to indicate to the other station that a sequence error has occurred, that is an information frame containing an out of sequence N(s) has been received. the SREJ frame is used with a selective repeat transmission procedure, whereas the REJ frame is used with a go back N procedure.

 

Protocol operation

The two basic functions in the protocol are link management and data transfer (which includes error and flow control).

Link management

. Prior to any kind of transmission (either between two stations connected by a point to point link or between a primary and secondary station a multidrop link) a logical connection (A logical connection between the two communication parties is accomplished by the exchange of two unnumbered frames. The procedure for setting a logical connection (In a multidrop link) is given below:The SNRM is first sent by the primary station with the poll bit set to 1 and the address of the appropriate secondary in the address field. The secondary responds with a UA frame with the final bit set and its own address in the address field. After all the data has been transferred, the link is clears by the primary sending a DISC frame and the secondary responding with a UA) between the two communication parties must be established.


Data transfer

. In NRM all data (information frames) if transferred under the control of the primary station. The unnumbered poll frame with the P bit set to 1 is normally used by the primary to poll a secondary. If the secondary has no data to transmit, it returns an RNR frame with the F bit set. If data is waiting, it transmits the data, typically as a sequence of information frames.
The two most important aspects associated with the data transfer phase are error control and flow control. Essentially, error control uses a continues RQ procedure with either a selective repeat or a go back N transmission strategy, while flow controls based on a window mechanism.

For more information Email To: ofirp@eng.tau.ac.il This Document Was written by: 1. Ziegler Alon 2. Kirshenberg Gilad 3. Paz Ofir This Document was based on the following books: 1. Data Communications , Computer Networks and Open Systems, by Fred Halsall 2. Data Communication ICs, High-Level Serial Communications, by Siemens



Click to go back one page

th11.jpg (990 bytes)

Home | Search | About | Offices | Manufacturers | Products | Services | Ordering
 Data101 | Training | Mailing | Hot ProductsDigital HQ | EmploymentEmail

 
Copyright© 2008 [Pulse, Inc.]. All rights reserved.
Pulse, Inc.
Tel: (toll free): 888-785-7393   Int'l: 1-951-694-1173  Fax: 1-951-694-1173 

Sales: sales