High-level Data Link Control (HDLC)
uses the frame format described in our section: Asynchronous and Synchronous Communications
. This standard corresponds to Layer 2 (the Data Link Layer)
of the ISO 7-layered architecture. It is responsible for the error-free movement of data between network nodes.
The job of the HDLC layer is to ensure that data passed up to the next layer has been received exactly as transmitted
(i.e error free, without loss and in the correct order
). Another important job is flow control
, which ensures that data is transmitted only as fast as the receiver can receive it.
There are two distinct HDLC implementations: HDLC NRM
and HDLC Link Access Procedure Balanced (LAPB)
. Usually when referring to HDLC people mean LAPB or some variation.
LAPB is a bit-oriented synchronous protocol that provides complete data transparency in a full-duplex point-to-point operation. It supports a peer-to-peer link in that neither end of the link plays the role of the permanent master station. HDLC NRM (also known as SDLC
), on the other hand, has a permanent primary station with one or more secondary stations.
HDLC LAPB is a very efficient protocol
. A minimum of overhead is required to ensure flow control, error detection and recovery. If data is flowing in both directions (full duplex), the data frames themselves carry all the information required to ensure data integrity.
The concept of a frame window is used to send multiple frames before receiving confirmation that the first frame has been received correctly. This means that data can continue to flow in situations where there may be long “turnaround” time lags without stopping to wait for an acknowledgment. This kind of situation occurs, for instance in, satellite communication. The window sizes vary, but are typically 7 frames for most terrestrial lines and up to 128 frames for satellite links.
There are three categories of frames: