HDLC, PPP & Slip P: Rotocols
HDLC, PPP & Slip P: Rotocols
PROTOCOLS
By : Naveen Kumar
M.E. ECE,
NITTTR
CONTENTS
Data link protocols
HDLC Overview
HDLC Basics
HDLC Frame structure
HDLC operation by some examples
First protocol for sending IP datagrams over dial-up links (from 1988)
Reliable protocol
Full-duplex communication
Bit-oriented protocol
Flow control
Framing
Frame protection
Error recovery
o Building Blocks
HDLC FAMILY
HDLC BASICS
Stations:
Link configuration:
Data transfer modes (not a complete set; these are most common)
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
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 :
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.
CONTROL FIELD :
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
15
FCS FIELD
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
18
EXAMPLE
SABM
Time Out
Station1
Satation2
SABM
UA
EXAMPLE (CONT)
Disc Command
Disc
Station1
Station2
UA
EXAMPLE(CONT)
Busy State
1,3,0
Station 1
RNR,4
RR
1,4,0
Station 2
EXAMPLE (CONT)
N(S)
1,0,0
Station 1
1,0,1
1,1,3
1,1,4
Station 2
Goal of PPP
23
PPP FEATURES
link frame
Bit transparency - must carry any bit pattern in the data field (even
if underlying channel can't)
24
Authentication: who are you (or at least whose account do I bill for
your dial-in time?)
LCP negotiates
IP uses "IPCP"
Typical tasks
27
Protocol: upper layer protocol to which frame delivered (e.g., PPPLCP, IP, IPCP, etc)
28
29
SLIP DISADVANTAGES
No dynamic assignment
Inconstant overhead
30
PPP :
HDLC :
ISDN D channel
Why?
Framing (dialup)
Efficiency
31
SUMMARY
HDLC supports half & full duplex links while PPP supports only
full duplex links.
32
REFERENCES
33
34