SlideShare uma empresa Scribd logo
1 de 34
HDLC, PPP & SLIP
PROTOCOLS



          By : Naveen Kumar
          M.E. ECE,
          NITTTR
CONTENTS
 Data link protocols

 HDLC Overview

 HDLC Basics

 HDLC Frame structure

 HDLC operation by some examples

 PPP introduction and Features

 PPP Frame structure

 SLIP Basics

 Applications of PPP & HDLC

 Summary                           2

 References
DATA LINK PROTOCOLS FOR POINT-TO-
    POINT LINKS
   HDLC (High-Level Data Link Control) :
    •   Widely used and influential standard (1979)
    •   Default protocol for serial links on Cisco routers
    •   PPP is based on a variant of HDLC
   PPP (Point-to-Point Protocol):
    •   Successor to SLIP (1992), with added functionality
    •   Used for dial-in and for high-speed routers.
   SLIP (Serial Line IP)
           First protocol for sending IP datagrams over dial-up links (from 1988)
           Encapsulation, not much else
                                                                                     3
HDLC OVERVIEW - DEFINITION
   High-Level Data Link Control (HDLC) ---- “King of the Link”
   It is a bit-oriented synchronous data link layer protocol developed by
    the International Organization for Standardization (ISO).
   It provide both connectionless service and connection oriented
    services.
   It supports Half and Full duplex transmission.
   It uses synchronous transmission. All transmissions are in the form of
    frames.

                                                                             4
HDLC OVERVIEW (CONTD.)
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
                                                          5
HDLC OVERVIEW (CONTD.)
   Why do we use it today?
       Framing
       Frame protection
       Error recovery
    o     Building Blocks
       SDLC is now a subset of HDLC.




                                        6
HDLC FAMILY




              7
HDLC BASICS
   Stations:
       Primary: sends data, controls the link with commands
       Secondary: receives data, responds to control messages
       Combined: can issue both commands and responses
   Link configuration:
       Unbalanced: one primary station, one or more secondary
        stations
       Balanced: two combined stations
                                                                 8
HDLC BASICS (CONTD.)
   Data transfer modes (not a complete set; these are most common)
       Normal response mode (NRM):
           Used with unbalanced configuration
           Primary initiates data transfer; secondary can only reply
       Asynchronous balanced mode (ABM):
           Used with balanced configurations
           Either side may send data at any time

        • Asynchronous response mode (ARM):
        o Used with an unbalanced configuration .

        oThe secondary may initiate transmission without explicit permission
                                                                               9
        of the primary.
HDLC FRAME FORMAT




                    10
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



                                                                          11
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.




                                                                                     12
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

                                                                                   13
CONTROL FIELD :

   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
                                                                        14
INFORMATION FIELD
o The information field is present only in I-frames and some U-

  frames.
o 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.




                                                                      15
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.




                                                                           16
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.



                                                                              17
HDLC OPERATION (CONTD.)
   One of the messages SNRM, SABM, SABME, … is used to set up
    the link initially.
        Sets the mode, and the length of sequence numbers
   UA is used as a positive acknowledgment for U-frames
   After setting up the link, data transfer can occur.
   The DISC message is used to terminate the connection.
   If a damaged U-frame is received, FRMR is sent as a reply.


                                                                 18
EXAMPLE
   Command to connect with balanced extended set mode


                             SABM

                                Time Out
            Station1                           Satation2
                             SABM

                              UA
EXAMPLE (CONT)
   Disc Command




                   Disc

       Station1           Station2

                   UA
EXAMPLE(CONT)
   Busy State



                      1,3,0


                     RNR,4
         Station 1            Station 2

                      RR

                      1,4,0
EXAMPLE (CONT)                          N(S)

   Full Duplex Data Exchange
                                               N(R)



                                1,0,0


                           1,0,1
         Station 1                                Station 2

                                1,1,3

                                1,1,4
POINT TO POINT DATA LINK CONTROL
   Goal of PPP
       Convey datagrams over a serial link
       Both synchronous or asynchronous serial links are supported
       Both bit or byte oriented transmissions are supported.
   Basically, PPP consists of
       One Link Control Protocol (LCP)
       Several Network Control Protocols (NCPs)


                                                                      23
PPP FEATURES
   Packet framing - encapsulation of network-layer datagram in data
    link frame
   Multi-protocol - carry network layer data of any network layer
    protocol (not just IP) at same time ability to demultiplex upwards
   Bit transparency - must carry any bit pattern in the data field
    (even if underlying channel can't)
   Error detection - not correction



                                                                         24
PPP FEATURES (CONTD.)
The extra stuff:
   Connection aliveness: detect, signal link failure to network layer
   Network layer address negotiation: endpoint can learn/configure
    each other’s network address and other characteristics.
   Authentication: who are you (or at least whose account do I bill for
    your dial-in time?)
        This information is used by traffic management software to
         control bandwidth to individual subscribers
   Management features: loopback detection
                                                                           25
LINK CONRTOL PROTOCOL (LCP)
   Link Control Protocol (LCP)
       Setup, configure, test and terminate PPP connection
       Supports various environments
   LCP negotiates
       Encapsulation format options
       Maximal packet sizes
       Identification and authentification of peers (!)
       Determination of proper link functionality
                                                              26
NETWORK CONTROL PROTOCOLS
(NCP)
   Network Control Protocols (NCPs)
       Helper to establish various network protocols
       IP uses "IPCP"
   Typical tasks
       Assignment and management of IP addresses
       Compression and authentication




                                                        27
PPP DATA FRAME
   Flag: delimiter (framing)
   Address: ignored. (historical)
   Control: ignored. (historical)
   Protocol: upper layer protocol to which frame delivered (e.g., PPP-
    LCP, IP, IPCP, etc)
   info: upper layer data being carried
   check: cyclic redundancy check for error detection




                                                                          28
SERIAL LINE IP (SLIP)
   Serial Line IP (SLIP)
       Asynchronous, character oriented, 8 bit, no parity
       Simple layer 2 frame format for serial lines
   Only provides framing
   Only encapsulates IP packets
   No flow control with XON/XOFF possible.
   Used in earlier "dial In" modem connections.


                                                             29
SLIP DISADVANTAGES
   IP addresses must be preconfigured
       No dynamic assignment

   No protocol (type) field
       Only defined to transport IP packets

   No Frame Check Sequence (FCS)
       Higher layers must care!
       But higher layers just use checksums (CRC would be better)

   Inconstant overhead
                                                                     30
       Depends on data pattern!
APPLICATIONS OF PPP & HDLC
   PPP :
       Dial-up – PPP over async. serial, over modem
       ADSL – PPP over Ethernet
       Backbone – Packet over SONET

   HDLC :
       In public networks that uses X.25 protocol
       ISDN D channel
       LLC in LAN (IEEE 802.2)
   Why?
       Framing (dialup)
       Efficiency
                                                       31
       Authentication, address negotiation (PPPoE)
SUMMARY
   Overview of HDLC & PPP protocols.
   Frame structures of these protocols are studied. Functions of some
    fields are similar.
   HDLC supports half & full duplex links while PPP supports only
    full duplex links.




                                                                         32
REFERENCES
   Behrouz A. Forouzan, “Data Communication and Networking(3rd
    Ed.)”, 4th Chapter 11 & 12.
   Andrew S. Tanenbaum, “Computer Networks (3rd Ed.)”, Chapter 3
    Data link Layer.
   Herbert Haas, “King of the link”, www.perihel.at/2/basics/04-
    HDLC.pdf




                                                                    33
34

Mais conteúdo relacionado

Mais procurados (20)

Chapter 4 data link layer
Chapter 4 data link layerChapter 4 data link layer
Chapter 4 data link layer
 
Selective repeat protocol
Selective repeat protocolSelective repeat protocol
Selective repeat protocol
 
Networking and Internetworking Devices
Networking and Internetworking DevicesNetworking and Internetworking Devices
Networking and Internetworking Devices
 
The medium access sublayer
 The medium  access sublayer The medium  access sublayer
The medium access sublayer
 
HDLC
HDLCHDLC
HDLC
 
Mobile computing (Wireless) Medium Access Control (MAC)
Mobile computing (Wireless) Medium Access Control (MAC)Mobile computing (Wireless) Medium Access Control (MAC)
Mobile computing (Wireless) Medium Access Control (MAC)
 
Multiple access protocol
Multiple access protocolMultiple access protocol
Multiple access protocol
 
Network Layer
Network LayerNetwork Layer
Network Layer
 
Csma cd and csma-ca
Csma cd and csma-caCsma cd and csma-ca
Csma cd and csma-ca
 
Distributed Operating System_1
Distributed Operating System_1Distributed Operating System_1
Distributed Operating System_1
 
Data link control
Data link controlData link control
Data link control
 
Ports & sockets
Ports  & sockets Ports  & sockets
Ports & sockets
 
Multiplexing
MultiplexingMultiplexing
Multiplexing
 
Unit 2 data link control
Unit 2 data link controlUnit 2 data link control
Unit 2 data link control
 
Ethernet and token ring
Ethernet and token ringEthernet and token ring
Ethernet and token ring
 
User datagram protocol (udp)
User datagram protocol (udp)User datagram protocol (udp)
User datagram protocol (udp)
 
Mobile Network Layer
Mobile Network LayerMobile Network Layer
Mobile Network Layer
 
Carrier Sense Multiple Access (CSMA)
Carrier Sense Multiple Access (CSMA)Carrier Sense Multiple Access (CSMA)
Carrier Sense Multiple Access (CSMA)
 
Distributed System ppt
Distributed System pptDistributed System ppt
Distributed System ppt
 
Ethernet
EthernetEthernet
Ethernet
 

Semelhante a HDLC, PPP and SLIP

Architectures of HDLC Controllers (A Study)
Architectures of HDLC Controllers (A Study)Architectures of HDLC Controllers (A Study)
Architectures of HDLC Controllers (A Study)VIT-AP University
 
7.MODBus and CANBus.pptx
7.MODBus and CANBus.pptx7.MODBus and CANBus.pptx
7.MODBus and CANBus.pptxusamamaqsod1
 
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
 
High speed Networking
High speed NetworkingHigh speed Networking
High speed Networkingsdb2002
 
High level data link control and point to point protocol
High level data link control and point to point protocolHigh level data link control and point to point protocol
High level data link control and point to point protocolsandhyakiran10
 
Data link control & protocol concepts
Data link control & protocol conceptsData link control & protocol concepts
Data link control & protocol conceptsRaji Lakshmi
 
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
 
HDLC & basic protocols
HDLC & basic protocolsHDLC & basic protocols
HDLC & basic protocolsAkhil Kaushik
 
Iaetsd implementation of hdlc protocol using verilog
Iaetsd implementation of hdlc protocol using verilogIaetsd implementation of hdlc protocol using verilog
Iaetsd implementation of hdlc protocol using verilogIaetsd Iaetsd
 
Demystifying the JESD204B High-speed Data Converter-to-FPGA interface
Demystifying the JESD204B High-speed Data Converter-to-FPGA interfaceDemystifying the JESD204B High-speed Data Converter-to-FPGA interface
Demystifying the JESD204B High-speed Data Converter-to-FPGA interfaceAnalog Devices, Inc.
 
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
 
Computer networks high speed swan,atm,frame realy
Computer networks high speed swan,atm,frame realyComputer networks high speed swan,atm,frame realy
Computer networks high speed swan,atm,frame realyDeepak John
 

Semelhante a HDLC, PPP and SLIP (20)

Data Link Control
Data Link ControlData Link Control
Data Link Control
 
Hdlc
HdlcHdlc
Hdlc
 
High level data link control
High level data link controlHigh level data link control
High level data link control
 
Architectures of HDLC Controllers (A Study)
Architectures of HDLC Controllers (A Study)Architectures of HDLC Controllers (A Study)
Architectures of HDLC Controllers (A Study)
 
Hdlc
HdlcHdlc
Hdlc
 
7.MODBus and CANBus.pptx
7.MODBus and CANBus.pptx7.MODBus and CANBus.pptx
7.MODBus and CANBus.pptx
 
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
 
High speed Networking
High speed NetworkingHigh speed Networking
High speed Networking
 
High level data link control and point to point protocol
High level data link control and point to point protocolHigh level data link control and point to point protocol
High level data link control and point to point protocol
 
Data link control & protocol concepts
Data link control & protocol conceptsData link control & protocol concepts
Data link control & protocol concepts
 
DLL Protocol.pptx
DLL Protocol.pptxDLL Protocol.pptx
DLL Protocol.pptx
 
Ppp
PppPpp
Ppp
 
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 & basic protocols
HDLC & basic protocolsHDLC & basic protocols
HDLC & basic protocols
 
Iaetsd implementation of hdlc protocol using verilog
Iaetsd implementation of hdlc protocol using verilogIaetsd implementation of hdlc protocol using verilog
Iaetsd implementation of hdlc protocol using verilog
 
Demystifying the JESD204B High-speed Data Converter-to-FPGA interface
Demystifying the JESD204B High-speed Data Converter-to-FPGA interfaceDemystifying the JESD204B High-speed Data Converter-to-FPGA interface
Demystifying the JESD204B High-speed Data Converter-to-FPGA interface
 
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
 
IJSTEV2I12120
IJSTEV2I12120IJSTEV2I12120
IJSTEV2I12120
 
Computer networks high speed swan,atm,frame realy
Computer networks high speed swan,atm,frame realyComputer networks high speed swan,atm,frame realy
Computer networks high speed swan,atm,frame realy
 

Mais de Naveen Kumar

Security in GSM(2G) and UMTS(3G) Networks
Security in GSM(2G) and UMTS(3G) NetworksSecurity in GSM(2G) and UMTS(3G) Networks
Security in GSM(2G) and UMTS(3G) NetworksNaveen Kumar
 
Mobile tower radiation
Mobile tower radiationMobile tower radiation
Mobile tower radiationNaveen Kumar
 
Ph.D Research proposal
Ph.D Research proposalPh.D Research proposal
Ph.D Research proposalNaveen Kumar
 
Cell Phone Antennas
Cell Phone AntennasCell Phone Antennas
Cell Phone AntennasNaveen Kumar
 
VHDL coding in Xilinx
VHDL coding in XilinxVHDL coding in Xilinx
VHDL coding in XilinxNaveen Kumar
 
Optimization in HFSS
Optimization in HFSSOptimization in HFSS
Optimization in HFSSNaveen Kumar
 
Free space optical communication
Free space optical communicationFree space optical communication
Free space optical communicationNaveen Kumar
 
A Multi-Band PIFA with Slotted Ground Plane
A Multi-Band PIFA with Slotted Ground Plane A Multi-Band PIFA with Slotted Ground Plane
A Multi-Band PIFA with Slotted Ground Plane Naveen Kumar
 
Study of Planar Inverted - F Antenna (PIFA) for mobile devices
Study of Planar Inverted - F Antenna (PIFA) for mobile devices Study of Planar Inverted - F Antenna (PIFA) for mobile devices
Study of Planar Inverted - F Antenna (PIFA) for mobile devices Naveen Kumar
 
A novel low profile planar inverted f antenna (pifa) for mobile handsets
A novel low profile planar inverted f antenna (pifa) for mobile handsetsA novel low profile planar inverted f antenna (pifa) for mobile handsets
A novel low profile planar inverted f antenna (pifa) for mobile handsetsNaveen Kumar
 
A compact planar inverted-F antenna with slotted ground plane
A compact planar inverted-F antenna with slotted ground planeA compact planar inverted-F antenna with slotted ground plane
A compact planar inverted-F antenna with slotted ground planeNaveen Kumar
 
Secure Socket Layer
Secure Socket LayerSecure Socket Layer
Secure Socket LayerNaveen Kumar
 
Adaptive Resonance Theory
Adaptive Resonance TheoryAdaptive Resonance Theory
Adaptive Resonance TheoryNaveen Kumar
 

Mais de Naveen Kumar (20)

Security in GSM(2G) and UMTS(3G) Networks
Security in GSM(2G) and UMTS(3G) NetworksSecurity in GSM(2G) and UMTS(3G) Networks
Security in GSM(2G) and UMTS(3G) Networks
 
Mobile tower radiation
Mobile tower radiationMobile tower radiation
Mobile tower radiation
 
Mobile security
Mobile securityMobile security
Mobile security
 
Ph.D Research proposal
Ph.D Research proposalPh.D Research proposal
Ph.D Research proposal
 
Wi-Fi Technology
Wi-Fi TechnologyWi-Fi Technology
Wi-Fi Technology
 
Cell Phone Antennas
Cell Phone AntennasCell Phone Antennas
Cell Phone Antennas
 
Thesis on PIFA
Thesis on PIFAThesis on PIFA
Thesis on PIFA
 
Electronics Quiz
Electronics QuizElectronics Quiz
Electronics Quiz
 
VHDL coding in Xilinx
VHDL coding in XilinxVHDL coding in Xilinx
VHDL coding in Xilinx
 
Optimization in HFSS
Optimization in HFSSOptimization in HFSS
Optimization in HFSS
 
Free space optical communication
Free space optical communicationFree space optical communication
Free space optical communication
 
A Multi-Band PIFA with Slotted Ground Plane
A Multi-Band PIFA with Slotted Ground Plane A Multi-Band PIFA with Slotted Ground Plane
A Multi-Band PIFA with Slotted Ground Plane
 
Study of Planar Inverted - F Antenna (PIFA) for mobile devices
Study of Planar Inverted - F Antenna (PIFA) for mobile devices Study of Planar Inverted - F Antenna (PIFA) for mobile devices
Study of Planar Inverted - F Antenna (PIFA) for mobile devices
 
A novel low profile planar inverted f antenna (pifa) for mobile handsets
A novel low profile planar inverted f antenna (pifa) for mobile handsetsA novel low profile planar inverted f antenna (pifa) for mobile handsets
A novel low profile planar inverted f antenna (pifa) for mobile handsets
 
A compact planar inverted-F antenna with slotted ground plane
A compact planar inverted-F antenna with slotted ground planeA compact planar inverted-F antenna with slotted ground plane
A compact planar inverted-F antenna with slotted ground plane
 
Secure Socket Layer
Secure Socket LayerSecure Socket Layer
Secure Socket Layer
 
Adaptive Resonance Theory
Adaptive Resonance TheoryAdaptive Resonance Theory
Adaptive Resonance Theory
 
UART
UARTUART
UART
 
AR model
AR modelAR model
AR model
 
VLSI routing
VLSI routingVLSI routing
VLSI routing
 

Último

Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusZilliz
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024The Digital Insurer
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfOverkill Security
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...apidays
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 

Último (20)

Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 

HDLC, PPP and SLIP

  • 1. HDLC, PPP & SLIP PROTOCOLS By : Naveen Kumar M.E. ECE, NITTTR
  • 2. CONTENTS  Data link protocols  HDLC Overview  HDLC Basics  HDLC Frame structure  HDLC operation by some examples  PPP introduction and Features  PPP Frame structure  SLIP Basics  Applications of PPP & HDLC  Summary 2  References
  • 3. DATA LINK PROTOCOLS FOR POINT-TO- POINT LINKS  HDLC (High-Level Data Link Control) : • Widely used and influential standard (1979) • Default protocol for serial links on Cisco routers • PPP is based on a variant of HDLC  PPP (Point-to-Point Protocol): • Successor to SLIP (1992), with added functionality • Used for dial-in and for high-speed routers.  SLIP (Serial Line IP)  First protocol for sending IP datagrams over dial-up links (from 1988)  Encapsulation, not much else 3
  • 4. HDLC OVERVIEW - DEFINITION  High-Level Data Link Control (HDLC) ---- “King of the Link”  It is a bit-oriented synchronous data link layer protocol developed by the International Organization for Standardization (ISO).  It provide both connectionless service and connection oriented services.  It supports Half and Full duplex transmission.  It uses synchronous transmission. All transmissions are in the form of frames. 4
  • 5. HDLC OVERVIEW (CONTD.) 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 5
  • 6. HDLC OVERVIEW (CONTD.)  Why do we use it today?  Framing  Frame protection  Error recovery o Building Blocks  SDLC is now a subset of HDLC. 6
  • 8. HDLC BASICS  Stations:  Primary: sends data, controls the link with commands  Secondary: receives data, responds to control messages  Combined: can issue both commands and responses  Link configuration:  Unbalanced: one primary station, one or more secondary stations  Balanced: two combined stations 8
  • 9. HDLC BASICS (CONTD.)  Data transfer modes (not a complete set; these are most common)  Normal response mode (NRM):  Used with unbalanced configuration  Primary initiates data transfer; secondary can only reply  Asynchronous balanced mode (ABM):  Used with balanced configurations  Either side may send data at any time • Asynchronous response mode (ARM): o Used with an unbalanced configuration . oThe secondary may initiate transmission without explicit permission 9 of the primary.
  • 11. 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 11
  • 12. 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. 12
  • 13. 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 13
  • 14. CONTROL FIELD :  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 14
  • 15. INFORMATION FIELD o The information field is present only in I-frames and some U- frames. o 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. 15
  • 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. 16
  • 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. 17
  • 18. HDLC OPERATION (CONTD.)  One of the messages SNRM, SABM, SABME, … is used to set up the link initially.  Sets the mode, and the length of sequence numbers  UA is used as a positive acknowledgment for U-frames  After setting up the link, data transfer can occur.  The DISC message is used to terminate the connection.  If a damaged U-frame is received, FRMR is sent as a reply. 18
  • 19. EXAMPLE  Command to connect with balanced extended set mode SABM Time Out Station1 Satation2 SABM UA
  • 20. EXAMPLE (CONT)  Disc Command Disc Station1 Station2 UA
  • 21. EXAMPLE(CONT)  Busy State 1,3,0 RNR,4 Station 1 Station 2 RR 1,4,0
  • 22. EXAMPLE (CONT) N(S)  Full Duplex Data Exchange N(R) 1,0,0 1,0,1 Station 1 Station 2 1,1,3 1,1,4
  • 23. POINT TO POINT DATA LINK CONTROL  Goal of PPP  Convey datagrams over a serial link  Both synchronous or asynchronous serial links are supported  Both bit or byte oriented transmissions are supported.  Basically, PPP consists of  One Link Control Protocol (LCP)  Several Network Control Protocols (NCPs) 23
  • 24. PPP FEATURES  Packet framing - encapsulation of network-layer datagram in data link frame  Multi-protocol - carry network layer data of any network layer protocol (not just IP) at same time ability to demultiplex upwards  Bit transparency - must carry any bit pattern in the data field (even if underlying channel can't)  Error detection - not correction 24
  • 25. PPP FEATURES (CONTD.) The extra stuff:  Connection aliveness: detect, signal link failure to network layer  Network layer address negotiation: endpoint can learn/configure each other’s network address and other characteristics.  Authentication: who are you (or at least whose account do I bill for your dial-in time?)  This information is used by traffic management software to control bandwidth to individual subscribers  Management features: loopback detection 25
  • 26. LINK CONRTOL PROTOCOL (LCP)  Link Control Protocol (LCP)  Setup, configure, test and terminate PPP connection  Supports various environments  LCP negotiates  Encapsulation format options  Maximal packet sizes  Identification and authentification of peers (!)  Determination of proper link functionality 26
  • 27. NETWORK CONTROL PROTOCOLS (NCP)  Network Control Protocols (NCPs)  Helper to establish various network protocols  IP uses "IPCP"  Typical tasks  Assignment and management of IP addresses  Compression and authentication 27
  • 28. PPP DATA FRAME  Flag: delimiter (framing)  Address: ignored. (historical)  Control: ignored. (historical)  Protocol: upper layer protocol to which frame delivered (e.g., PPP- LCP, IP, IPCP, etc)  info: upper layer data being carried  check: cyclic redundancy check for error detection 28
  • 29. SERIAL LINE IP (SLIP)  Serial Line IP (SLIP)  Asynchronous, character oriented, 8 bit, no parity  Simple layer 2 frame format for serial lines  Only provides framing  Only encapsulates IP packets  No flow control with XON/XOFF possible.  Used in earlier "dial In" modem connections. 29
  • 30. SLIP DISADVANTAGES  IP addresses must be preconfigured  No dynamic assignment  No protocol (type) field  Only defined to transport IP packets  No Frame Check Sequence (FCS)  Higher layers must care!  But higher layers just use checksums (CRC would be better)  Inconstant overhead 30  Depends on data pattern!
  • 31. APPLICATIONS OF PPP & HDLC  PPP :  Dial-up – PPP over async. serial, over modem  ADSL – PPP over Ethernet  Backbone – Packet over SONET  HDLC :  In public networks that uses X.25 protocol  ISDN D channel  LLC in LAN (IEEE 802.2)  Why?  Framing (dialup)  Efficiency 31  Authentication, address negotiation (PPPoE)
  • 32. SUMMARY  Overview of HDLC & PPP protocols.  Frame structures of these protocols are studied. Functions of some fields are similar.  HDLC supports half & full duplex links while PPP supports only full duplex links. 32
  • 33. REFERENCES  Behrouz A. Forouzan, “Data Communication and Networking(3rd Ed.)”, 4th Chapter 11 & 12.  Andrew S. Tanenbaum, “Computer Networks (3rd Ed.)”, Chapter 3 Data link Layer.  Herbert Haas, “King of the link”, www.perihel.at/2/basics/04- HDLC.pdf 33
  • 34. 34