Documentos de Académico
Documentos de Profesional
Documentos de Cultura
ISO's High-level Data Link Control (HDLC) This standard corresponds to Layer 2 (the Data Link Layer) of the ISO 7-layered architecture. It is responsible for the errorfree 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.
Higher Layer
Physical Layer
Dial-Up Access
Router Router
Router
Point-to-Point Links
Hdlc
Broadcast Networks: All stations share a single communication channel Point-to-Point Networks: Pairs of hosts (or routers) are directly connected
Broadcast Network
Point-to-Point Network
Typically, local area networks (LANs) are broadcast and wide area networks (WANs) are point-to-point
HDLC Overview
Broadly HDLC features are as follows:
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
Uses physical layer clocking and synchronization to send and receive frames
HDLC Overview
Defines three types of stations
Primary Secondary Combined
HDLC-Types of stations
The three stations are :
Primary station
Has the responsibility of controlling the operation of data flow the link. Handles error recovery Frames issued by the primary station are called commands.
Secondary station,
Combined station,
Frames issued by a secondary station are called responses. The primary station maintains a separate logical link with each secondary station. Acts as both as primary and secondary station. Does not rely on other for sending data
Asynchronous balanced Mode (ABM) Used in configuring connections Either stations can send data, control information and commands
HDLC
Unbalanced Mode
Commands
Primary Responses Secondary Secondary
Balanced mode
Combined commands/Responses
Combined
1)Flag
Flag field Marks the beginning and end of frames (01111110) If the flag value exists in other fields, bit stuffingis used (if the sending station detects five consecutive 1s in other field, it stuffs (inserts) an extra 0 after the fifth 1. Whenever a 0 follows five consecutive 1 s, the receiver assumes the 0 was stuffed and remove it). Note that the flag field itself is not subject to bit stuffing and it is the only place where the flag pattern can appear
Bit stuffing
HDLC
There are three different classes of frames used in HDLC
Unnumbered frames, used in link setup and disconnection, and hence do not contain ACK. Information frames, which carry actual information. Such frames can piggyback ACK in case of ABM Supervisory frames, which are used for error and flow control purposes and hence contain send and receive sequence numbers
a)Information frames
Information frames Used to send data using either the go-back-n or selective repeat protocols N(R): piggyback acknowledgment indicating that all frames up to N(R)-1 has been received N(S): the number of the frame being sent P/F (poll/final) bit A primary station can request a response from a secondary station by sending a frame with P=1 (e.g., do you, secondary station, have data to send?) When a secondary station sends its last frame it sets F=1 in this frame
b) Supervisory frame
There are four different supervisory frames
SS=10, Receiver Not Ready (RNR), and N(R) has the same meaning as above SS=00, Receiver Ready (RR), and N(R) ACKs all frames received up to and including the one with sequence number N(R) - 1 SS=01, Reject; all frames with sequence number N(R) or higher are rejected, which in turns ACKs frames with sequence number N(R) -1 or lower. SS=11, Selective Reject; the receive rejects the frame with sequence number N(R)
c)Unnumbered Frame
Establish how the protocol will proceed. For example, Decide on which communication mode will be used (NRM, ARM, or ABM) Initialize the DLC function Manage disconnection requests Allow devices to exchange identities Run a test link
NR NS A Frame type
I,0,1
I,1,3
Go-Back-N ARQ
A B
S,REJ,1
26
S,SREJ,1
27
Timeout
A B
S,RR,2
28
Protocols, Standards