SlideShare uma empresa Scribd logo
1 de 25
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

Mais conteúdo relacionado

Mais procurados

Chapter 4 data link layer
Chapter 4 data link layerChapter 4 data link layer
Chapter 4 data link layerNaiyan Noor
 
TDMA, FDMA, and CDMA
TDMA, FDMA, and CDMATDMA, FDMA, and CDMA
TDMA, FDMA, and CDMANajeeb Khan
 
Data link layer
Data link layerData link layer
Data link layerst2112
 
Chapter10 switching
Chapter10 switchingChapter10 switching
Chapter10 switchingSuneel Varma
 
Flow control in Computer Network
Flow control in Computer NetworkFlow control in Computer Network
Flow control in Computer NetworkAhtesham Ullah khan
 
Data link layer
Data link layerData link layer
Data link layersbkbca
 
CSMA /CD PPT ON SLIDESHARE
CSMA /CD PPT ON SLIDESHARECSMA /CD PPT ON SLIDESHARE
CSMA /CD PPT ON SLIDESHAREKhushboo Pal
 
switching techniques in data communication and networking
switching techniques in data communication and networkingswitching techniques in data communication and networking
switching techniques in data communication and networkingHarshita Yadav
 
4.4 diversity combining techniques
4.4   diversity combining techniques4.4   diversity combining techniques
4.4 diversity combining techniquesJAIGANESH SEKAR
 
Go back-n protocol
Go back-n protocolGo back-n protocol
Go back-n protocolSTEFFY D
 
Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)k33a
 
Flow control and error control
Flow control and error controlFlow control and error control
Flow control and error controlBHUVIJAYAVELU
 

Mais procurados (20)

Chapter 4 data link layer
Chapter 4 data link layerChapter 4 data link layer
Chapter 4 data link layer
 
Mac sub layer
Mac sub layerMac sub layer
Mac sub layer
 
TDMA, FDMA, and CDMA
TDMA, FDMA, and CDMATDMA, FDMA, and CDMA
TDMA, FDMA, and CDMA
 
Data link layer
Data link layerData link layer
Data link layer
 
Chapter10 switching
Chapter10 switchingChapter10 switching
Chapter10 switching
 
Flow control in Computer Network
Flow control in Computer NetworkFlow control in Computer Network
Flow control in Computer Network
 
Data link layer
Data link layerData link layer
Data link layer
 
IEEE 802.11
IEEE 802.11IEEE 802.11
IEEE 802.11
 
CSMA /CD PPT ON SLIDESHARE
CSMA /CD PPT ON SLIDESHARECSMA /CD PPT ON SLIDESHARE
CSMA /CD PPT ON SLIDESHARE
 
Dqdb
DqdbDqdb
Dqdb
 
FDDI
FDDIFDDI
FDDI
 
Convolutional codes
Convolutional codesConvolutional codes
Convolutional codes
 
Error control
Error controlError control
Error control
 
Flow Control
Flow ControlFlow Control
Flow Control
 
switching techniques in data communication and networking
switching techniques in data communication and networkingswitching techniques in data communication and networking
switching techniques in data communication and networking
 
Transport layer protocols : Simple Protocol , Stop and Wait Protocol , Go-Bac...
Transport layer protocols : Simple Protocol , Stop and Wait Protocol , Go-Bac...Transport layer protocols : Simple Protocol , Stop and Wait Protocol , Go-Bac...
Transport layer protocols : Simple Protocol , Stop and Wait Protocol , Go-Bac...
 
4.4 diversity combining techniques
4.4   diversity combining techniques4.4   diversity combining techniques
4.4 diversity combining techniques
 
Go back-n protocol
Go back-n protocolGo back-n protocol
Go back-n protocol
 
Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)
 
Flow control and error control
Flow control and error controlFlow control and error control
Flow control and error control
 

Destaque (10)

Check sum
Check sumCheck sum
Check sum
 
Chapter3
Chapter3Chapter3
Chapter3
 
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
 

Semelhante a Hdlc

DATA LINK CONTROL.pptx
DATA LINK CONTROL.pptxDATA LINK CONTROL.pptx
DATA LINK CONTROL.pptxODINARARCH
 
HDLC, PPP and SLIP
HDLC, PPP and SLIPHDLC, PPP and SLIP
HDLC, PPP and SLIPNaveen Kumar
 
data-link layer protocols
data-link layer protocols  data-link layer protocols
data-link layer protocols BE Smârt
 
Data link control & protocol concepts
Data link control & protocol conceptsData link control & protocol concepts
Data link control & protocol conceptsRaji Lakshmi
 
Computer Networks Unit 2 UNIT II DATA-LINK LAYER & MEDIA ACCESS
Computer Networks Unit 2 UNIT II DATA-LINK LAYER & MEDIA ACCESSComputer Networks Unit 2 UNIT II DATA-LINK LAYER & MEDIA ACCESS
Computer Networks Unit 2 UNIT II DATA-LINK LAYER & MEDIA ACCESSDr. SELVAGANESAN S
 
unit2-210710110327.pdf
unit2-210710110327.pdfunit2-210710110327.pdf
unit2-210710110327.pdfssuser3aa461
 
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 noteabdisani3
 
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-16IJMER
 

Semelhante a 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 layer protocols
data-link layer protocols  data-link layer protocols
data-link layer protocols
 
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
 
Computer Networks Unit 2 UNIT II DATA-LINK LAYER & MEDIA ACCESS
Computer Networks Unit 2 UNIT II DATA-LINK LAYER & MEDIA ACCESSComputer Networks Unit 2 UNIT II DATA-LINK LAYER & MEDIA ACCESS
Computer Networks Unit 2 UNIT II DATA-LINK LAYER & MEDIA ACCESS
 
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
 
Unit 3 - Data Link Layer - Part A
Unit 3 - Data Link Layer - Part AUnit 3 - Data Link Layer - Part A
Unit 3 - Data Link Layer - Part A
 
07 data linkcontrol
07 data linkcontrol07 data linkcontrol
07 data linkcontrol
 

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