SlideShare une entreprise Scribd logo
1  sur  25
HDLC and PPP
The Data Link Layer in the Internet
A home personal computer acting as an
internet host.
Technology like Ethernet cannot provide “high-level” functionality like
connection management and parameter negotiation
3
Point to Point Data Link Control
• One sender, one receiver, one link: easier than
broadcast link:
• No Media Access Control
• No need for explicit MAC addressing
• E.g., dialup link, ISDN line
• Popular point-to-point and high-level DLC protocols:
• PPP (point-to-point protocol)
• HDLC: High level data link control (Data link used to be
considered “high layer” in protocol stack). HDLC is also
used in multi-point links (one station many receivers)
• These protocols can often be run over other data link
technologies providing best of both worlds
– E.g., PPPoE, HDLC encapsulation by Ethernet
4
PPP Design Requirements [RFC
1557]
Functionality : (similar to link layer
services + extra management functions)
• 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
5
PPP Design Requirements (cont.)
The extra stuff:
• Connection liveness: 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
6
PPP non-requirements
• No error correction/recovery
(modems do one layer FEC, one layer packetization +
retransmission “under the covers” anyway; other
technologies are pretty reliable)
• No flow control
• Out of order delivery OK
Error recovery, flow control, data re-ordering
all relegated to higher layers!
7
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)
8
PPP Data Frame
• info: upper layer data being carried
• check: cyclic redundancy check for error
detection
Byte Stuffing
flag byte
pattern
in data
to send
flag byte pattern plus
stuffed byte in
transmitted data
10
PPP Data Control Protocol
Before exchanging network-
layer data, data link peers
must
• Configure PPP link (max.
frame length, authentication)
• Learn/configure network
layer information
– for IP: carry IP Control
Protocol (IPCP) msgs
(protocol field: 8021) to
configure/learn IP
address
11
Where does PPP get used?
• Dial-up – PPP over async serial, over
modem
• ADSL – PPP over Ethernet
• Backbone – Packet over SONET (POS)
• Why?
– Framing (dialup, POS)
– Efficiency (POS)
– Authentication, address negotiation (PPPoE)
High-Level Data Link Control (HDLC)
• HDLC was defined by ISO for use on both point-
to-point and multipoint data links.
• It supports full-duplex communication
• Other similar protocols are
– Synchronous Data Link Control (SDLC) by IBM
– Advanced Data Communication Control Procedure
(ADCCP) by ANSI
– Link Access Procedure, Balanced (LAP-B) by CCITT,
as part of its X.25 packet-switched network standard
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
• Defines three types of data transfer mode
– Normal Response mode
– Asynchronous Response mode
– Asynchronous Balanced mode
• Three types of frames
– Unnumbered
– information
– Supervisory
HDLC
• 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,
• Operates under the control of the primary station.
• Frames issued by a secondary station are called responses.
• The primary station maintains a separate logical link with
each secondary station.
– Combined station,
• Acts as both as primary and secondary station.
• Does not rely on other for sending data
HDLC
Primary
Secondary Secondary
Commands
Responses
Combined Combined
commands/Responses
Unbalanced Mode
Balanced mode
HDLC
• The three modes of data transfer operations are
– Normal Response Mode (NRM)
• Mainly used in terminal-mainframe networks. In this case,
• Secondaries (terminals) can only transmit when specifically
instructed by the primary station in response to a polling
• Unbalanced configuration, good for multi-point links
– Asynchronous Response Mode (ARM)
• Same as NRM except that the secondaries can initiate
transmissions without direct polling from the primary station
• Reduces overhead as no frames need to be sent to allow secondary
nodes to transmit
• Transmission proceeds when channel is detected idle , used mostly
in point-to-point-links
– Asynchronous Balanced Mode (ABM)
• Mainly used in point-to-point links, for communication between
combined stations
Non-operational Modes
• Normal Disconnected Mode
• Asynchronous Disconnected Mode
Both the above modes mean that the secondary node is
logically disconnected from the primary node
• Initialization Mode
– A node negotiates transmission parameters with the other node
E.g., flow control information
– Parameters negotiated in this mode are used during any of the
data transfer modes
Data Link Control HDLC frame
structure
(a) Frame
Format
(b) Control
field
format
Data Link Control
HDLC frame structure
(c) Extended address field (d) Extended control field
HDLC
• Flag: 01111110- start and ending delimiter. Bits are stuffed for flags in data
frames
• FCS: 16-bit CRC using generating polynomial
G(x) = x16 + x12 + x5 + 1
• Address field:
– mainly used in multidrop link configuration, and not used in point-to-point
– In unbalanced configuration, every secondary is assigned a unique address.
Contains address of secondary station in both command and response frames
– In balanced mode, command frame has destination address and response frame
has sending node’s address
– Group addresses are also possible. E.g., One command sent to all the
secondaries
• In I-frames, N(s) is the sequence number of the frame being sent, and R(s)
is the sequence number of the frame being expected.
• The P/F bit, known as the poll/final bit, is used with different meaning in
different contexts.
– It is used to indicate polling, to indicate the final I-frame, etc
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
HDLC
• There are four different supervisory frames
– 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=10, Receiver Not Ready (RNR), and N(R) has the
same meaning as above
– 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)
HDLC
• The unnumbered frames can be grouped
into the following categories:
– Mode-setting commands and responses
– Recovery commends and responses
– Miscellaneous commands and responses
Review of Link Layer
• Services
– Framing
– Error control
– Reliability
– Connection management
– Medium access control
– Switching
• Protocols, Standards
– Ethernet
– Token Ring
– FDDI
– Wireless
– PPP
– HDLC

Contenu connexe

Similaire à High level data link control and point to point protocol

Lecture 1 Network Reference Models Final.pptx
Lecture 1 Network Reference Models Final.pptxLecture 1 Network Reference Models Final.pptx
Lecture 1 Network Reference Models Final.pptxRonoh Kennedy
 
FRAME RELAY NETWORK.ppt
FRAME RELAY NETWORK.pptFRAME RELAY NETWORK.ppt
FRAME RELAY NETWORK.pptdeepaMS4
 
HDLC & basic protocols
HDLC & basic protocolsHDLC & basic protocols
HDLC & basic protocolsAkhil Kaushik
 
HDLC and Point to point protocol
HDLC and Point to point protocolHDLC and Point to point protocol
HDLC and Point to point protocolKinza Razzaq
 
Lecture 25 Link Layer - Error detection and Multiple Access.pptx
Lecture 25 Link Layer - Error detection and Multiple Access.pptxLecture 25 Link Layer - Error detection and Multiple Access.pptx
Lecture 25 Link Layer - Error detection and Multiple Access.pptxHanzlaNaveed1
 
datalinklayer-200201062315 (1).pptx
datalinklayer-200201062315 (1).pptxdatalinklayer-200201062315 (1).pptx
datalinklayer-200201062315 (1).pptxMeenaAnusha1
 
HDLC, PPP and SLIP
HDLC, PPP and SLIPHDLC, PPP and SLIP
HDLC, PPP and SLIPNaveen Kumar
 
transport.pptx
transport.pptxtransport.pptx
transport.pptxjatinder42
 
x.25,fram relay mod2.pptx
x.25,fram relay mod2.pptxx.25,fram relay mod2.pptx
x.25,fram relay mod2.pptxDharshanB8
 
Data link control & protocol concepts
Data link control & protocol conceptsData link control & protocol concepts
Data link control & protocol conceptsRaji Lakshmi
 
DATA LINK CONTROL.pptx
DATA LINK CONTROL.pptxDATA LINK CONTROL.pptx
DATA LINK CONTROL.pptxODINARARCH
 
CS553_ST7_Ch18-InternetProtocols.ppt
CS553_ST7_Ch18-InternetProtocols.pptCS553_ST7_Ch18-InternetProtocols.ppt
CS553_ST7_Ch18-InternetProtocols.pptUjjwalKumarTiwari4
 
Cs553 st7 ch18-internet_protocols
Cs553 st7 ch18-internet_protocolsCs553 st7 ch18-internet_protocols
Cs553 st7 ch18-internet_protocolsKathirKathiresan4
 

Similaire à High level data link control and point to point protocol (20)

High level data link control
High level data link controlHigh level data link control
High level data link control
 
Lecture 1 Network Reference Models Final.pptx
Lecture 1 Network Reference Models Final.pptxLecture 1 Network Reference Models Final.pptx
Lecture 1 Network Reference Models Final.pptx
 
FRAME RELAY NETWORK.ppt
FRAME RELAY NETWORK.pptFRAME RELAY NETWORK.ppt
FRAME RELAY NETWORK.ppt
 
HDLC & basic protocols
HDLC & basic protocolsHDLC & basic protocols
HDLC & basic protocols
 
HDLC and Point to point protocol
HDLC and Point to point protocolHDLC and Point to point protocol
HDLC and Point to point protocol
 
Data link layer
Data link layerData link layer
Data link layer
 
Lecture 25 Link Layer - Error detection and Multiple Access.pptx
Lecture 25 Link Layer - Error detection and Multiple Access.pptxLecture 25 Link Layer - Error detection and Multiple Access.pptx
Lecture 25 Link Layer - Error detection and Multiple Access.pptx
 
datalinklayer-200201062315 (1).pptx
datalinklayer-200201062315 (1).pptxdatalinklayer-200201062315 (1).pptx
datalinklayer-200201062315 (1).pptx
 
Frame Relay
Frame RelayFrame Relay
Frame Relay
 
datalink.ppt
datalink.pptdatalink.ppt
datalink.ppt
 
CAN.ppt
CAN.pptCAN.ppt
CAN.ppt
 
HDLC, PPP and SLIP
HDLC, PPP and SLIPHDLC, PPP and SLIP
HDLC, PPP and SLIP
 
transport.pptx
transport.pptxtransport.pptx
transport.pptx
 
x.25,fram relay mod2.pptx
x.25,fram relay mod2.pptxx.25,fram relay mod2.pptx
x.25,fram relay mod2.pptx
 
Data link control & protocol concepts
Data link control & protocol conceptsData link control & protocol concepts
Data link control & protocol concepts
 
DATA LINK CONTROL.pptx
DATA LINK CONTROL.pptxDATA LINK CONTROL.pptx
DATA LINK CONTROL.pptx
 
CS553_ST7_Ch18-InternetProtocols.ppt
CS553_ST7_Ch18-InternetProtocols.pptCS553_ST7_Ch18-InternetProtocols.ppt
CS553_ST7_Ch18-InternetProtocols.ppt
 
Cs553 st7 ch18-internet_protocols
Cs553 st7 ch18-internet_protocolsCs553 st7 ch18-internet_protocols
Cs553 st7 ch18-internet_protocols
 
unit2-210710110327.pptx
unit2-210710110327.pptxunit2-210710110327.pptx
unit2-210710110327.pptx
 
MVA slides lesson 2
MVA slides lesson 2MVA slides lesson 2
MVA slides lesson 2
 

Plus de sandhyakiran10

Chapter_1_Business_Information_Systems.ppt
Chapter_1_Business_Information_Systems.pptChapter_1_Business_Information_Systems.ppt
Chapter_1_Business_Information_Systems.pptsandhyakiran10
 
8.-OBJECT-ORIENTED-PROGRAMMING-USING-JAVA-Multithreading.pptx
8.-OBJECT-ORIENTED-PROGRAMMING-USING-JAVA-Multithreading.pptx8.-OBJECT-ORIENTED-PROGRAMMING-USING-JAVA-Multithreading.pptx
8.-OBJECT-ORIENTED-PROGRAMMING-USING-JAVA-Multithreading.pptxsandhyakiran10
 
OSI model - physical layer,Transmission medium, switching mechanisms, multipl...
OSI model - physical layer,Transmission medium, switching mechanisms, multipl...OSI model - physical layer,Transmission medium, switching mechanisms, multipl...
OSI model - physical layer,Transmission medium, switching mechanisms, multipl...sandhyakiran10
 
java - Introduction , control structures
java - Introduction , control structuresjava - Introduction , control structures
java - Introduction , control structuressandhyakiran10
 
Database Management system, database architecture unikkkkkkkkkkkkkkk
Database Management system, database architecture unikkkkkkkkkkkkkkkDatabase Management system, database architecture unikkkkkkkkkkkkkkk
Database Management system, database architecture unikkkkkkkkkkkkkkksandhyakiran10
 
Software Development Life Cycle (SDLC).pptx
Software Development Life Cycle (SDLC).pptxSoftware Development Life Cycle (SDLC).pptx
Software Development Life Cycle (SDLC).pptxsandhyakiran10
 
Data Communication.pptx
Data Communication.pptxData Communication.pptx
Data Communication.pptxsandhyakiran10
 

Plus de sandhyakiran10 (7)

Chapter_1_Business_Information_Systems.ppt
Chapter_1_Business_Information_Systems.pptChapter_1_Business_Information_Systems.ppt
Chapter_1_Business_Information_Systems.ppt
 
8.-OBJECT-ORIENTED-PROGRAMMING-USING-JAVA-Multithreading.pptx
8.-OBJECT-ORIENTED-PROGRAMMING-USING-JAVA-Multithreading.pptx8.-OBJECT-ORIENTED-PROGRAMMING-USING-JAVA-Multithreading.pptx
8.-OBJECT-ORIENTED-PROGRAMMING-USING-JAVA-Multithreading.pptx
 
OSI model - physical layer,Transmission medium, switching mechanisms, multipl...
OSI model - physical layer,Transmission medium, switching mechanisms, multipl...OSI model - physical layer,Transmission medium, switching mechanisms, multipl...
OSI model - physical layer,Transmission medium, switching mechanisms, multipl...
 
java - Introduction , control structures
java - Introduction , control structuresjava - Introduction , control structures
java - Introduction , control structures
 
Database Management system, database architecture unikkkkkkkkkkkkkkk
Database Management system, database architecture unikkkkkkkkkkkkkkkDatabase Management system, database architecture unikkkkkkkkkkkkkkk
Database Management system, database architecture unikkkkkkkkkkkkkkk
 
Software Development Life Cycle (SDLC).pptx
Software Development Life Cycle (SDLC).pptxSoftware Development Life Cycle (SDLC).pptx
Software Development Life Cycle (SDLC).pptx
 
Data Communication.pptx
Data Communication.pptxData Communication.pptx
Data Communication.pptx
 

Dernier

Book Review of Run For Your Life Powerpoint
Book Review of Run For Your Life PowerpointBook Review of Run For Your Life Powerpoint
Book Review of Run For Your Life Powerpoint23600690
 
How to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxHow to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxCeline George
 
demyelinated disorder: multiple sclerosis.pptx
demyelinated disorder: multiple sclerosis.pptxdemyelinated disorder: multiple sclerosis.pptx
demyelinated disorder: multiple sclerosis.pptxMohamed Rizk Khodair
 
An Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge AppAn Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge AppCeline George
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文中 央社
 
Observing-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxObserving-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxAdelaideRefugio
 
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...Nguyen Thanh Tu Collection
 
An overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismAn overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismDabee Kamal
 
How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17Celine George
 
male presentation...pdf.................
male presentation...pdf.................male presentation...pdf.................
male presentation...pdf.................MirzaAbrarBaig5
 
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...Gary Wood
 
diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....Ritu480198
 
Trauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical PrinciplesTrauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical PrinciplesPooky Knightsmith
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsSandeep D Chaudhary
 
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMDEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMELOISARIVERA8
 
ANTI PARKISON DRUGS.pptx
ANTI         PARKISON          DRUGS.pptxANTI         PARKISON          DRUGS.pptx
ANTI PARKISON DRUGS.pptxPoojaSen20
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code ExamplesPeter Brusilovsky
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...Nguyen Thanh Tu Collection
 
The Liver & Gallbladder (Anatomy & Physiology).pptx
The Liver &  Gallbladder (Anatomy & Physiology).pptxThe Liver &  Gallbladder (Anatomy & Physiology).pptx
The Liver & Gallbladder (Anatomy & Physiology).pptxVishal Singh
 

Dernier (20)

Book Review of Run For Your Life Powerpoint
Book Review of Run For Your Life PowerpointBook Review of Run For Your Life Powerpoint
Book Review of Run For Your Life Powerpoint
 
How to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxHow to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptx
 
demyelinated disorder: multiple sclerosis.pptx
demyelinated disorder: multiple sclerosis.pptxdemyelinated disorder: multiple sclerosis.pptx
demyelinated disorder: multiple sclerosis.pptx
 
An Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge AppAn Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge App
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
 
Observing-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxObserving-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptx
 
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
 
An overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismAn overview of the various scriptures in Hinduism
An overview of the various scriptures in Hinduism
 
How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17
 
male presentation...pdf.................
male presentation...pdf.................male presentation...pdf.................
male presentation...pdf.................
 
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
 
diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....
 
Trauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical PrinciplesTrauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical Principles
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMDEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
 
ANTI PARKISON DRUGS.pptx
ANTI         PARKISON          DRUGS.pptxANTI         PARKISON          DRUGS.pptx
ANTI PARKISON DRUGS.pptx
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
The Liver & Gallbladder (Anatomy & Physiology).pptx
The Liver &  Gallbladder (Anatomy & Physiology).pptxThe Liver &  Gallbladder (Anatomy & Physiology).pptx
The Liver & Gallbladder (Anatomy & Physiology).pptx
 
Including Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdfIncluding Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdf
 

High level data link control and point to point protocol

  • 2. The Data Link Layer in the Internet A home personal computer acting as an internet host. Technology like Ethernet cannot provide “high-level” functionality like connection management and parameter negotiation
  • 3. 3 Point to Point Data Link Control • One sender, one receiver, one link: easier than broadcast link: • No Media Access Control • No need for explicit MAC addressing • E.g., dialup link, ISDN line • Popular point-to-point and high-level DLC protocols: • PPP (point-to-point protocol) • HDLC: High level data link control (Data link used to be considered “high layer” in protocol stack). HDLC is also used in multi-point links (one station many receivers) • These protocols can often be run over other data link technologies providing best of both worlds – E.g., PPPoE, HDLC encapsulation by Ethernet
  • 4. 4 PPP Design Requirements [RFC 1557] Functionality : (similar to link layer services + extra management functions) • 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
  • 5. 5 PPP Design Requirements (cont.) The extra stuff: • Connection liveness: 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
  • 6. 6 PPP non-requirements • No error correction/recovery (modems do one layer FEC, one layer packetization + retransmission “under the covers” anyway; other technologies are pretty reliable) • No flow control • Out of order delivery OK Error recovery, flow control, data re-ordering all relegated to higher layers!
  • 7. 7 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)
  • 8. 8 PPP Data Frame • info: upper layer data being carried • check: cyclic redundancy check for error detection
  • 9. Byte Stuffing flag byte pattern in data to send flag byte pattern plus stuffed byte in transmitted data
  • 10. 10 PPP Data Control Protocol Before exchanging network- layer data, data link peers must • Configure PPP link (max. frame length, authentication) • Learn/configure network layer information – for IP: carry IP Control Protocol (IPCP) msgs (protocol field: 8021) to configure/learn IP address
  • 11. 11 Where does PPP get used? • Dial-up – PPP over async serial, over modem • ADSL – PPP over Ethernet • Backbone – Packet over SONET (POS) • Why? – Framing (dialup, POS) – Efficiency (POS) – Authentication, address negotiation (PPPoE)
  • 12. High-Level Data Link Control (HDLC) • HDLC was defined by ISO for use on both point- to-point and multipoint data links. • It supports full-duplex communication • Other similar protocols are – Synchronous Data Link Control (SDLC) by IBM – Advanced Data Communication Control Procedure (ADCCP) by ANSI – Link Access Procedure, Balanced (LAP-B) by CCITT, as part of its X.25 packet-switched network standard
  • 13. 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
  • 14. HDLC Overview • Defines three types of stations – Primary – Secondary – Combined • Defines three types of data transfer mode – Normal Response mode – Asynchronous Response mode – Asynchronous Balanced mode • Three types of frames – Unnumbered – information – Supervisory
  • 15. HDLC • 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, • Operates under the control of the primary station. • Frames issued by a secondary station are called responses. • The primary station maintains a separate logical link with each secondary station. – Combined station, • Acts as both as primary and secondary station. • Does not rely on other for sending data
  • 17. HDLC • The three modes of data transfer operations are – Normal Response Mode (NRM) • Mainly used in terminal-mainframe networks. In this case, • Secondaries (terminals) can only transmit when specifically instructed by the primary station in response to a polling • Unbalanced configuration, good for multi-point links – Asynchronous Response Mode (ARM) • Same as NRM except that the secondaries can initiate transmissions without direct polling from the primary station • Reduces overhead as no frames need to be sent to allow secondary nodes to transmit • Transmission proceeds when channel is detected idle , used mostly in point-to-point-links – Asynchronous Balanced Mode (ABM) • Mainly used in point-to-point links, for communication between combined stations
  • 18. Non-operational Modes • Normal Disconnected Mode • Asynchronous Disconnected Mode Both the above modes mean that the secondary node is logically disconnected from the primary node • Initialization Mode – A node negotiates transmission parameters with the other node E.g., flow control information – Parameters negotiated in this mode are used during any of the data transfer modes
  • 19. Data Link Control HDLC frame structure (a) Frame Format (b) Control field format
  • 20. Data Link Control HDLC frame structure (c) Extended address field (d) Extended control field
  • 21. HDLC • Flag: 01111110- start and ending delimiter. Bits are stuffed for flags in data frames • FCS: 16-bit CRC using generating polynomial G(x) = x16 + x12 + x5 + 1 • Address field: – mainly used in multidrop link configuration, and not used in point-to-point – In unbalanced configuration, every secondary is assigned a unique address. Contains address of secondary station in both command and response frames – In balanced mode, command frame has destination address and response frame has sending node’s address – Group addresses are also possible. E.g., One command sent to all the secondaries • In I-frames, N(s) is the sequence number of the frame being sent, and R(s) is the sequence number of the frame being expected. • The P/F bit, known as the poll/final bit, is used with different meaning in different contexts. – It is used to indicate polling, to indicate the final I-frame, etc
  • 22. 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
  • 23. HDLC • There are four different supervisory frames – 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=10, Receiver Not Ready (RNR), and N(R) has the same meaning as above – 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)
  • 24. HDLC • The unnumbered frames can be grouped into the following categories: – Mode-setting commands and responses – Recovery commends and responses – Miscellaneous commands and responses
  • 25. Review of Link Layer • Services – Framing – Error control – Reliability – Connection management – Medium access control – Switching • Protocols, Standards – Ethernet – Token Ring – FDDI – Wireless – PPP – HDLC