SlideShare a Scribd company logo
HDLC By : AlaaHamedAbdElhamed Department : IS Section : 4
Definition High-Level Data Link Control (HDLC) is a bit-orientedsynchronousdata link layerprotocoldeveloped by the International Organization for Standardization (ISO). HDLC  provide both connectionless  service  and connection oriented services ………….. HDLC uses synchronous transmission. All transmissions are in the form of frames.
Station Types Primary : Has the responsibility for controlling the operation of the link. Frames issued by the primary are called commands. Secondary :Operates under the control of the primary station. Frames issued by the primary are called responses Combined : Combine features of both secondary and primary.
Data Link Configuration Unbalanced : Consists of one primary and one or more secondary stations and supports both full-duplex and half-duplex transmission Balanced :Consists of two combined stations and supports both full-duplex and half-duplex transmission
Data Transfer Mode Normal response mode (NRM):Used with an unbalanced configuration. The primary may initiate data transfer to a secondary, but a secondary may only transmit data in response to a command from the primary. Asynchronous balanced mode (ABM):Used with a balanced configuration. Either combined station may initiate transmission without receiving permission from the other combined station. Asynchronous response mode (ARM):Used with an unbalanced configuration . The secondary may initiate transmission without explicit permission of the primary. The primary still retains responsibility for the line, including initialization , error recovery, and logical disconnection.
Frame Structure
Flag Fields  Flag fields delimit the frame at both ends with the unique pattern 01111110. A single flag may be used as the closing flag for one frame and the opening flag for the next. The pattern 01111110 could be found inside a frame and thus using it as a delimiter will destruct inner structure of the frame thus a method name Bit Stuffing was used in which sender will insert 0 after occurrence of 5 consecutive 1
Bit Stuffing With the use of bit stuffing, arbitrary bit patterns can be inserted into the data field of the frame. This property is known as data transparency.
Bit Stuffing (Cont)
Frame Structure(Cont)
Address Field : The address field identifies the secondary station that transmitted or is to receive the frame. This field is not needed for point-to-point links, but is always included for the sake of uniformity. The address field is usually eight bits long but, by prior agreement, an extended format may be used in which the actual address length is a multiple of seven bits. The least significant bit of each octet is 1 or 0, depending on whether it is or is not the last octet of the address field. The single-octet address of 11111111 is interpreted as the all-stations address
Control Field : Define  three main types of frames :    1)Information frames (I-frames) carry the data to be transmitted for the user. Additionally, flow- and error-control data  are piggybacked on an information frame   2)Supervisory frames (S-frames) provide the ARQ mechanism when piggybacking is not used.   3)Unnumbered frames (U-frames) provide supplemental link control functions
Control Frames Structure
Frame Structure(Cont)
Information Field    The information field is present only in I-frames and some U-frames. The field can contain any sequence of bits but must consist of an integral number of octets. The length of the information field is variable up to some system-defined maximum.
FCS Field The frame check sequence (FCS) is an error-detecting code calculated from the remaining bits of the frame, exclusive of flags. The normal code is the 16-bit CRC CCITT . An optional 32-bit FCS, using CRC-32, may be employed if the frame length or the line reliability dictates this choice.
HDLC Operation The operation of HDLC involves three phases. First, one side or another initializes the data link so that frames may be exchanged in an orderly fashion. During this phase, the options that are to be used are agreed upon.  After initialization, the two sides exchange user data and the control information to exercise flow and error control. Finally, one of the two sides signals the termination of the operation.
HDLC Commands & Responses
Data Transfer The N(S) and N(R) fields of the I-frame are sequence numbers that support flow control and error control. N(R) is the acknowledgment for I-frames received; it enables the HDLC module  toindicate which number I-frame it expects to receive next. The receive-ready (RR) frame is used to acknowledge the last I-frame received by indicating the next I-frame expected.  Receive-not-ready (RNR) acknowledges an I-frame, as with RR, but also asks the peer entity to suspend transmission of Iframes. When the entity that issued RNR is again ready, it sends an RR.  REJ initiates the go-back-N ARQ. It indicates that the last I-frame received has been rejected and that retransmission of all I-frames beginning with number N(R) is required.  Selective reject (SREJ) is used to request retransmission of just a single frame.
How to Disconnect in HLDC Either HDLC module can initiate a disconnect, either on its own initiative if there is some sort of fault, or at the request of its higher-layer user. HDLC issues a disconnect by sending a disconnect (DISC) frame. The other side must accept the disconnect by replying with a UA. Note : See Commands Table to understand DISC and UA
Example Command to connect with balanced extended set mode Station1 Satation2 SABM Time Out SABM UA
Example (Cont) Disc Command Station1 Station2 Disc UA
Example(Cont) Busy State Station 2 Station 1 1,3,0 RNR,4 RR,0,P 1,4,0
Example (Cont) Full Duplex Data Exchange N(S) N(R) Station 2 Station 1 1,0,0 1,0,1 1,1,3 1,1,4
Thank You

More Related Content

What's hot

Hdlc ppt..
Hdlc ppt..Hdlc ppt..
Hdlc ppt..
Prince Pal Singh
 
HDLC and Point to point protocol
HDLC and Point to point protocolHDLC and Point to point protocol
HDLC and Point to point protocol
Kinza Razzaq
 
Chapter 4 data link layer
Chapter 4 data link layerChapter 4 data link layer
Chapter 4 data link layer
Naiyan Noor
 
Chapter 5 : Link Layer
Chapter 5 : Link LayerChapter 5 : Link Layer
Chapter 5 : Link Layer
Amin Omi
 
Flow & Error Control
Flow & Error ControlFlow & Error Control
Flow & Error Controltameemyousaf
 
Error detection and correction
Error detection and correctionError detection and correction
Error detection and correction
Maria Akther
 
Token bus
Token busToken bus
Token bus
Denver Rockfreak
 
Point To Point Protocol
Point To Point ProtocolPoint To Point Protocol
Point To Point ProtocolPhan Vuong
 
Media Access Control
Media Access ControlMedia Access Control
Media Access Control
VijayaLakshmi514
 
7. data link layer error detection and correction codes - parity and checksum
7. data link layer   error detection and correction codes - parity and checksum7. data link layer   error detection and correction codes - parity and checksum
7. data link layer error detection and correction codes - parity and checksum
JAIGANESH SEKAR
 
RANDOM ACCESS PROTOCOL IN COMMUNICATION
RANDOM ACCESS PROTOCOL IN COMMUNICATION           RANDOM ACCESS PROTOCOL IN COMMUNICATION
RANDOM ACCESS PROTOCOL IN COMMUNICATION
AMOGHA A K
 
Data link control protocol(4)
Data link control protocol(4)Data link control protocol(4)
Data link control protocol(4)
Jeffrey Des Binwag
 
IEEE 802.11 Architecture and Services
IEEE 802.11 Architecture and ServicesIEEE 802.11 Architecture and Services
IEEE 802.11 Architecture and Services
Sayed Chhattan Shah
 
Framing Protocols
Framing ProtocolsFraming Protocols
Framing Protocols
selvakumar_b1985
 
Point to-point protocol (ppp)
Point to-point protocol (ppp)Point to-point protocol (ppp)
Point to-point protocol (ppp)
Kongu Engineering College, Perundurai, Erode
 
CSMA /CD PPT ON SLIDESHARE
CSMA /CD PPT ON SLIDESHARECSMA /CD PPT ON SLIDESHARE
CSMA /CD PPT ON SLIDESHARE
Khushboo Pal
 
Data link control protocol(3)
Data link control protocol(3)Data link control protocol(3)
Data link control protocol(3)
Jeffrey Des Binwag
 
Token ring
Token ringToken ring
Token ring
selvakumar_b1985
 
Link state routing protocol
Link state routing protocolLink state routing protocol
Link state routing protocol
Aung Thu Rha Hein
 

What's hot (20)

Hdlc ppt..
Hdlc ppt..Hdlc ppt..
Hdlc ppt..
 
HDLC and Point to point protocol
HDLC and Point to point protocolHDLC and Point to point protocol
HDLC and Point to point protocol
 
Chapter 4 data link layer
Chapter 4 data link layerChapter 4 data link layer
Chapter 4 data link layer
 
Chapter 5 : Link Layer
Chapter 5 : Link LayerChapter 5 : Link Layer
Chapter 5 : Link Layer
 
Flow & Error Control
Flow & Error ControlFlow & Error Control
Flow & Error Control
 
Error detection and correction
Error detection and correctionError detection and correction
Error detection and correction
 
Icmp
IcmpIcmp
Icmp
 
Token bus
Token busToken bus
Token bus
 
Point To Point Protocol
Point To Point ProtocolPoint To Point Protocol
Point To Point Protocol
 
Media Access Control
Media Access ControlMedia Access Control
Media Access Control
 
7. data link layer error detection and correction codes - parity and checksum
7. data link layer   error detection and correction codes - parity and checksum7. data link layer   error detection and correction codes - parity and checksum
7. data link layer error detection and correction codes - parity and checksum
 
RANDOM ACCESS PROTOCOL IN COMMUNICATION
RANDOM ACCESS PROTOCOL IN COMMUNICATION           RANDOM ACCESS PROTOCOL IN COMMUNICATION
RANDOM ACCESS PROTOCOL IN COMMUNICATION
 
Data link control protocol(4)
Data link control protocol(4)Data link control protocol(4)
Data link control protocol(4)
 
IEEE 802.11 Architecture and Services
IEEE 802.11 Architecture and ServicesIEEE 802.11 Architecture and Services
IEEE 802.11 Architecture and Services
 
Framing Protocols
Framing ProtocolsFraming Protocols
Framing Protocols
 
Point to-point protocol (ppp)
Point to-point protocol (ppp)Point to-point protocol (ppp)
Point to-point protocol (ppp)
 
CSMA /CD PPT ON SLIDESHARE
CSMA /CD PPT ON SLIDESHARECSMA /CD PPT ON SLIDESHARE
CSMA /CD PPT ON SLIDESHARE
 
Data link control protocol(3)
Data link control protocol(3)Data link control protocol(3)
Data link control protocol(3)
 
Token ring
Token ringToken ring
Token ring
 
Link state routing protocol
Link state routing protocolLink state routing protocol
Link state routing protocol
 

Viewers also liked

Check sum
Check sumCheck sum
Check sum
Pooja Jaiswal
 
Chapter3
Chapter3Chapter3
Chapter3
Nagarajan
 
HDLC(high level data link control)
HDLC(high level data link control)HDLC(high level data link control)
HDLC(high level data link control)Anand Biradar
 
Farming system
Farming systemFarming system
Ethernet
EthernetEthernet
Ethernet
Mihika Shah
 
Linear block coding
Linear block codingLinear block coding
Linear block coding
jknm
 
Checksum 101
Checksum 101Checksum 101
Checksum 101
Ross Spencer
 
Multiple access control protocol
Multiple access control protocol Multiple access control protocol
Multiple access control protocol
meenamunesh
 

Viewers also liked (12)

The medium access sublayer
 The medium  access sublayer The medium  access sublayer
The medium access sublayer
 
Check sum
Check sumCheck sum
Check sum
 
Chapter3
Chapter3Chapter3
Chapter3
 
HDLC(high level data link control)
HDLC(high level data link control)HDLC(high level data link control)
HDLC(high level data link control)
 
Farming system
Farming systemFarming system
Farming system
 
Farming
FarmingFarming
Farming
 
Chapter 03 cyclic codes
Chapter 03   cyclic codesChapter 03   cyclic codes
Chapter 03 cyclic codes
 
Ethernet
EthernetEthernet
Ethernet
 
Linear block coding
Linear block codingLinear block coding
Linear block coding
 
Checksum 101
Checksum 101Checksum 101
Checksum 101
 
Multiple access protocol
Multiple access protocolMultiple access protocol
Multiple access protocol
 
Multiple access control protocol
Multiple access control protocol Multiple access control protocol
Multiple access control protocol
 

Similar to Hdlc

High level data link control
High level data link controlHigh level data link control
High level data link control
KarthigaGunasekaran1
 
Data Link Control
Data Link ControlData Link Control
Data Link Control
Meenakshi Paul
 
DATA LINK CONTROL.pptx
DATA LINK CONTROL.pptxDATA LINK CONTROL.pptx
DATA LINK CONTROL.pptx
ODINARARCH
 
HDLC, PPP and SLIP
HDLC, PPP and SLIPHDLC, PPP and SLIP
HDLC, PPP and SLIP
Naveen Kumar
 
Data link control & protocol concepts
Data link control & protocol conceptsData link control & protocol concepts
Data link control & protocol concepts
Raji Lakshmi
 
Hdlc
HdlcHdlc
unit2-210710110327.pdf
unit2-210710110327.pdfunit2-210710110327.pdf
unit2-210710110327.pdf
ssuser3aa461
 
DLL Protocol.pptx
DLL Protocol.pptxDLL Protocol.pptx
DLL Protocol.pptx
ubaidullah75790
 
transport layer
transport layertransport layer
transport layer
BishalWosti1
 
Advanced Network Chapter I: Which is very best lecture note
Advanced Network Chapter I: Which is very best lecture noteAdvanced Network Chapter I: Which is very best lecture note
Advanced Network Chapter I: Which is very best lecture note
abdisani3
 
Hdlc
HdlcHdlc
Different protocols for data communication networks
Different protocols for data communication networks Different protocols for data communication networks
Different protocols for data communication networks
Nt Arvind
 
Design and Implementation of HDLC Controller by Using Crc-16
Design and Implementation of HDLC Controller by Using Crc-16Design and Implementation of HDLC Controller by Using Crc-16
Design and Implementation of HDLC Controller by Using Crc-16
IJMER
 
HDLC & basic protocols
HDLC & basic protocolsHDLC & basic protocols
HDLC & basic protocols
Akhil Kaushik
 
HDLC-Protocol-Overview-Presentation.pdf
HDLC-Protocol-Overview-Presentation.pdfHDLC-Protocol-Overview-Presentation.pdf
HDLC-Protocol-Overview-Presentation.pdf
2O550Sujal
 
Chapter 7 - Data Link Control Protocols 9e
Chapter 7 - Data Link Control Protocols 9eChapter 7 - Data Link Control Protocols 9e
Chapter 7 - Data Link Control Protocols 9eadpeer
 

Similar to Hdlc (20)

Hdlc
HdlcHdlc
Hdlc
 
High level data link control
High level data link controlHigh level data link control
High level data link control
 
Data Link Control
Data Link ControlData Link Control
Data Link Control
 
DATA LINK CONTROL.pptx
DATA LINK CONTROL.pptxDATA LINK CONTROL.pptx
DATA LINK CONTROL.pptx
 
HDLC, PPP and SLIP
HDLC, PPP and SLIPHDLC, PPP and SLIP
HDLC, PPP and SLIP
 
Data link control & protocol concepts
Data link control & protocol conceptsData link control & protocol concepts
Data link control & protocol concepts
 
Hdlc
HdlcHdlc
Hdlc
 
Hdlc
HdlcHdlc
Hdlc
 
Hdlc
HdlcHdlc
Hdlc
 
unit2-210710110327.pdf
unit2-210710110327.pdfunit2-210710110327.pdf
unit2-210710110327.pdf
 
DLL Protocol.pptx
DLL Protocol.pptxDLL Protocol.pptx
DLL Protocol.pptx
 
transport layer
transport layertransport layer
transport layer
 
Advanced Network Chapter I: Which is very best lecture note
Advanced Network Chapter I: Which is very best lecture noteAdvanced Network Chapter I: Which is very best lecture note
Advanced Network Chapter I: Which is very best lecture note
 
Hdlc
HdlcHdlc
Hdlc
 
Different protocols for data communication networks
Different protocols for data communication networks Different protocols for data communication networks
Different protocols for data communication networks
 
Design and Implementation of HDLC Controller by Using Crc-16
Design and Implementation of HDLC Controller by Using Crc-16Design and Implementation of HDLC Controller by Using Crc-16
Design and Implementation of HDLC Controller by Using Crc-16
 
07 data linkcontrol
07 data linkcontrol07 data linkcontrol
07 data linkcontrol
 
HDLC & basic protocols
HDLC & basic protocolsHDLC & basic protocols
HDLC & basic protocols
 
HDLC-Protocol-Overview-Presentation.pdf
HDLC-Protocol-Overview-Presentation.pdfHDLC-Protocol-Overview-Presentation.pdf
HDLC-Protocol-Overview-Presentation.pdf
 
Chapter 7 - Data Link Control Protocols 9e
Chapter 7 - Data Link Control Protocols 9eChapter 7 - Data Link Control Protocols 9e
Chapter 7 - Data Link Control Protocols 9e
 

Hdlc

  • 1. HDLC By : AlaaHamedAbdElhamed Department : IS Section : 4
  • 2. Definition High-Level Data Link Control (HDLC) is a bit-orientedsynchronousdata link layerprotocoldeveloped by the International Organization for Standardization (ISO). HDLC provide both connectionless service and connection oriented services ………….. HDLC uses synchronous transmission. All transmissions are in the form of frames.
  • 3. Station Types Primary : Has the responsibility for controlling the operation of the link. Frames issued by the primary are called commands. Secondary :Operates under the control of the primary station. Frames issued by the primary are called responses Combined : Combine features of both secondary and primary.
  • 4. Data Link Configuration Unbalanced : Consists of one primary and one or more secondary stations and supports both full-duplex and half-duplex transmission Balanced :Consists of two combined stations and supports both full-duplex and half-duplex transmission
  • 5. Data Transfer Mode Normal response mode (NRM):Used with an unbalanced configuration. The primary may initiate data transfer to a secondary, but a secondary may only transmit data in response to a command from the primary. Asynchronous balanced mode (ABM):Used with a balanced configuration. Either combined station may initiate transmission without receiving permission from the other combined station. Asynchronous response mode (ARM):Used with an unbalanced configuration . The secondary may initiate transmission without explicit permission of the primary. The primary still retains responsibility for the line, including initialization , error recovery, and logical disconnection.
  • 7. Flag Fields Flag fields delimit the frame at both ends with the unique pattern 01111110. A single flag may be used as the closing flag for one frame and the opening flag for the next. The pattern 01111110 could be found inside a frame and thus using it as a delimiter will destruct inner structure of the frame thus a method name Bit Stuffing was used in which sender will insert 0 after occurrence of 5 consecutive 1
  • 8. Bit Stuffing With the use of bit stuffing, arbitrary bit patterns can be inserted into the data field of the frame. This property is known as data transparency.
  • 11. Address Field : The address field identifies the secondary station that transmitted or is to receive the frame. This field is not needed for point-to-point links, but is always included for the sake of uniformity. The address field is usually eight bits long but, by prior agreement, an extended format may be used in which the actual address length is a multiple of seven bits. The least significant bit of each octet is 1 or 0, depending on whether it is or is not the last octet of the address field. The single-octet address of 11111111 is interpreted as the all-stations address
  • 12. Control Field : Define three main types of frames : 1)Information frames (I-frames) carry the data to be transmitted for the user. Additionally, flow- and error-control data are piggybacked on an information frame 2)Supervisory frames (S-frames) provide the ARQ mechanism when piggybacking is not used. 3)Unnumbered frames (U-frames) provide supplemental link control functions
  • 15. Information Field The information field is present only in I-frames and some U-frames. The field can contain any sequence of bits but must consist of an integral number of octets. The length of the information field is variable up to some system-defined maximum.
  • 16. FCS Field The frame check sequence (FCS) is an error-detecting code calculated from the remaining bits of the frame, exclusive of flags. The normal code is the 16-bit CRC CCITT . An optional 32-bit FCS, using CRC-32, may be employed if the frame length or the line reliability dictates this choice.
  • 17. HDLC Operation The operation of HDLC involves three phases. First, one side or another initializes the data link so that frames may be exchanged in an orderly fashion. During this phase, the options that are to be used are agreed upon. After initialization, the two sides exchange user data and the control information to exercise flow and error control. Finally, one of the two sides signals the termination of the operation.
  • 18. HDLC Commands & Responses
  • 19. Data Transfer The N(S) and N(R) fields of the I-frame are sequence numbers that support flow control and error control. N(R) is the acknowledgment for I-frames received; it enables the HDLC module toindicate which number I-frame it expects to receive next. The receive-ready (RR) frame is used to acknowledge the last I-frame received by indicating the next I-frame expected. Receive-not-ready (RNR) acknowledges an I-frame, as with RR, but also asks the peer entity to suspend transmission of Iframes. When the entity that issued RNR is again ready, it sends an RR. REJ initiates the go-back-N ARQ. It indicates that the last I-frame received has been rejected and that retransmission of all I-frames beginning with number N(R) is required. Selective reject (SREJ) is used to request retransmission of just a single frame.
  • 20. How to Disconnect in HLDC Either HDLC module can initiate a disconnect, either on its own initiative if there is some sort of fault, or at the request of its higher-layer user. HDLC issues a disconnect by sending a disconnect (DISC) frame. The other side must accept the disconnect by replying with a UA. Note : See Commands Table to understand DISC and UA
  • 21. Example Command to connect with balanced extended set mode Station1 Satation2 SABM Time Out SABM UA
  • 22. Example (Cont) Disc Command Station1 Station2 Disc UA
  • 23. Example(Cont) Busy State Station 2 Station 1 1,3,0 RNR,4 RR,0,P 1,4,0
  • 24. Example (Cont) Full Duplex Data Exchange N(S) N(R) Station 2 Station 1 1,0,0 1,0,1 1,1,3 1,1,4