Data Link Control 
1. Framing 
2. Flow and Error Control 
3. Protocols 
4. Noiseless Channels 
5. Noisy Channels 
6. HDLC 
7. Point-to-Point Protocol
FFrraammiinngg 
DDaattaa lliinnkk llaayyeerr nneeeeddss ttoo ppaacckk bbiittss iinnttoo ffrraammeess,, ssoo 
tthhaatt eeaacchh ffrraammee iiss ddiissttiinngguuiisshhaabbllee ffrroomm aannootthheerr 
Separate a message from one source to a 
destination, or from other messages to other 
destinations, by adding a sender address and a 
destination address 
Fixed-size framing: ATM (Chapter 18) 
Variable-size framing 
Need a way to define the end of the frame and the 
beginning of the next 
Character-oriented approach and bit-oriented approach 
Dr. Md. Abdur Razzaque 
Green Networking Research Group 
Dept. of Computer Science and Engineering, University of Dhaka
CChhaarraacctteerr--OOrriieenntteedd PPrroottooccoollss 
FFrraammee ssttrruuccttuurree 
• BByyttee ssttuuffffiinngg:: pprroocceessss ooff aaddddiinngg 11 eexxttrraa bbyyttee wwhheenneevveerr 
tthheerree iiss aa ffllaagg oorr eessccaappee cchhaarraacctteerr iinn tthhee tteexxtt 
Dr. Md. Abdur Razzaque 
Green Networking Research Group 
Universal Coding!!! 
Dept. of Computer Science and Engineering, University of Dhaka
BBiitt--OOrriieenntteedd PPrroottooccoollss 
FFrraammee ssttrruuccttuurree 
• Bit stuffing: process of adding one extra 0 whenever five consecutive 
1s follow a 0 in the data 
Dr. Md. Abdur Razzaque 
Green Networking Research Group 
Dept. of Computer Science and Engineering, University of Dhaka
FFllooww aanndd EErrrroorr CCoonnttrrooll 
Data link control = flow control + error control 
Flow control refers to a set of procedures used to restrict the amount 
of data that the sender can send before waiting for acknowledgement 
Error control in the data link layer is based on automatic repeat 
request (ARQ), which is the retransmission of data 
ACK, NAK(Negative ACK), Piggybacking (ACKs and NAKs in data 
frames) 
Dr. Md. Abdur Razzaque 
Green Networking Research Group 
Dept. of Computer Science and Engineering, University of Dhaka
NNooiisseelleessss CChhaannnneellss:: SSiimmpplleesstt 
PPrroottooccooll 
Simplest protocol with no flow or error control 
Dr. Md. Abdur Razzaque 
Green Networking Research Group 
Dept. of Computer Science and Engineering, University of Dhaka
SSiimmpplleesstt PPrroottooccooll 
Sender-site algorithm 
• Receiver-site algorithm 
Dr. Md. Abdur Razzaque 
Green Networking Research Group 
Dept. of Computer Science and Engineering, University of Dhaka
SSttoopp--aanndd--WWaaiitt PPrroottooccooll 
Simple tokens of ACK and flow control added 
Dr. Md. Abdur Razzaque 
Green Networking Research Group 
Dept. of Computer Science and Engineering, University of Dhaka
SSttoopp--aanndd--WWaaiitt PPrroottooccooll 
Sender-site algorithm 
• Receiver-site algorithm 
Dr. Md. Abdur Razzaque 
Green Networking Research Group 
Dept. of Computer Science and Engineering, University of Dhaka
SSttoopp--aanndd--WWaaiitt PPrroottooccooll:: 
EExxaammppllee 
Dr. Md. Abdur Razzaque 
Green Networking Research Group 
Dept. of Computer Science and Engineering, University of Dhaka
NNooiissyy CChhaannnneellss:: SSttoopp--aanndd--WWaaiitt 
AARRQQ 
Stop-and-wait Automatic Repeat Request (ARQ) 
Error correction in Stop-and-Wait ARQ is done by 
keeping a copy of the sent frame and 
retransmitting of the frame when the timer expires 
In Stop-and-Wait ARQ, we use sequence numbers 
to number the frames. The sequence numbers are 
based on modulo-2 arithmetic 
Acknowledgment number always announces in 
modulo-2 arithmetic the sequence number of the 
next frame expected. 
Dr. Md. Abdur Razzaque 
Green Networking Research Group 
Dept. of Computer Science and Engineering, University of Dhaka
SSttoopp--aanndd--WWaaiitt AARRQQ 
Dr. Md. Abdur Razzaque 
Green Networking Research Group 
Dept. of Computer Science and Engineering, University of Dhaka
SSttoopp--aanndd--WWaaiitt AARRQQ 
Sender-site algorithm 
Dr. Md. Abdur Razzaque 
Green Networking Research Group 
Dept. of Computer Science and Engineering, University of Dhaka
SSttoopp--aanndd--WWaaiitt AARRQQ 
Receiver-site algorithm 
Dr. Md. Abdur Razzaque 
Green Networking Research Group 
Dept. of Computer Science and Engineering, University of Dhaka
SSttoopp--aanndd--WWaaiitt AARRQQ:: EExxaammppllee 
Dr. Md. Abdur Razzaque 
Green Networking Research Group 
Dept. of Computer Science and Engineering, University of Dhaka
GGoo--BBaacckk--NN AARRQQ 
Pipelining improves the efficiency of the transmission 
In the Go-Back-N Protocol, the sequence numbers are modulo 2m, 
where m is the size of the sequence number field in bits 
The send window is an abstract concept defining an imaginary box of 
size 2m − 1 with three variables: Sf, Sn, and Ssize 
The send window can slide one or more slots when a valid 
acknowledgment arrives. 
Dr. Md. Abdur Razzaque 
Green Networking Research Group 
Dept. of Computer Science and Engineering, University of Dhaka
GGoo--BBaacckk--NN AARRQQ 
Receive window for Go-Back-N ARQ 
The receive window is an abstract concept defining an imaginary box 
of size 1 with one single variable Rn. The window slides when a 
correct frame has arrived; sliding occurs one slot at a time. 
Dr. Md. Abdur Razzaque 
Green Networking Research Group 
Dept. of Computer Science and Engineering, University of Dhaka
GGoo--BBaacckk--NN AARRQQ 
Sliding windows, Timers, ACK, Resending a frame 
Dr. Md. Abdur Razzaque 
Green Networking Research Group 
Dept. of Computer Science and Engineering, University of Dhaka
Go-Back-NN AARRQQ:: SSeenndd WWiinnddooww SSiizzee 
In Go-Back-N ARQ, the size of the send window must be less than 2m; 
the size of the receiver window is always 1 
Stop-and-Wait ARQ is a special case of Go-Back-N ARQ in which the 
size of the send window is 1 
Dr. Md. Abdur Razzaque 
Green Networking Research Group 
Dept. of Computer Science and Engineering, University of Dhaka
GGoo--BBaacckk--NN AARRQQ:: SSeennddeerr AAllggoorriitthhmm 
Dr. Md. Abdur Razzaque 
Green Networking Research Group 
Dept. of Computer Science and Engineering, University of Dhaka
GGoo--BBaacckk--NN AARRQQ:: RReecceeiivveerr AAllggoorriitthhmm 
Dr. Md. Abdur Razzaque 
Green Networking Research Group 
Dept. of Computer Science and Engineering, University of Dhaka
GGoo--BBaacckk--NN AARRQQ:: EExxaammppllee 11 
Dr. Md. Abdur Razzaque 
Green Networking Research Group 
Dept. of Computer Science and Engineering, University of Dhaka
GGoo--BBaacckk--NN AARRQQ:: EExxaammppllee 22 
Dr. Md. Abdur Razzaque 
Green Networking Research Group 
Dept. of Computer Science and Engineering, University of Dhaka
SSeelleeccttiivvee RReeppeeaatt AARRQQ 
Sender window size 
• Receive window size 
Dr. Md. Abdur Razzaque 
Green Networking Research Group 
Dept. of Computer Science and Engineering, University of Dhaka
SSeelleeccttiivvee RReeppeeaatt AARRQQ 
Dr. Md. Abdur Razzaque 
Green Networking Research Group 
Dept. of Computer Science and Engineering, University of Dhaka
SSeelleeccttiivvee RReeppeeaatt AARRQQ:: WWiinnddooww 
SSiizzee The size of the sender and receiver window must be at most one-half 
of 2m 
Dr. Md. Abdur Razzaque 
Green Networking Research Group 
Dept. of Computer Science and Engineering, University of Dhaka
SSeelleeccttiivvee RReeppeeaatt AARRQQ:: SSeennddeerr--SSiittee 
AAllggoorriitthhmm 
Dr. Md. Abdur Razzaque 
Green Networking Research Group 
Dept. of Computer Science and Engineering, University of Dhaka
Selective RReeppeeaatt AARRQQ:: RReecceeiivveerr--SSiittee AAllggoorriitthhmm 
Dr. Md. Abdur Razzaque 
Green Networking Research Group 
Dept. of Computer Science and Engineering, University of Dhaka
SSeelleeccttiivvee RReeppeeaatt AARRQQ:: EExxaammppllee 
Dr. Md. Abdur Razzaque 
Green Networking Research Group 
Dept. of Computer Science and Engineering, University of Dhaka
PPiiggggyybbaacckkiinngg 
To improve the efficiency of the bidirectional protocols 
Piggybacking in Go-Back-N ARQ 
Dr. Md. Abdur Razzaque 
Green Networking Research Group 
Dept. of Computer Science and Engineering, University of Dhaka
HHDDLLCC 
• High-level Data Link Control 
• Two common transfer mode: normal response mode (NRM) and 
asynchronous balanced mode (ABM) 
Dr. Md. Abdur Razzaque 
Green Networking Research Group 
Dept. of Computer Science and Engineering, University of Dhaka
HHDDLLCC:: FFrraammeess 
• I(information)-frames, S(supervisory)-frames, U(unnumbered frame)- 
frames 
• Flag field: 01111110 to identify both the beginning and the end of a 
frame and serve as synchronization pattern for receiver 
• FCS field: 2- or 4-byte ITU-T CRC for error detection 
Dr. Md. Abdur Razzaque 
Green Networking Research Group 
Dept. of Computer Science and Engineering, University of Dhaka
HHDDLLCC:: FFrraammeess • Control Field: 1- or 2-byte segment of the frame used for flow and 
error control 
• Determine the type of frame and define its functionality 
• Control field for I-frame: P/F (poll/final bit for primary/secondary) 
Dr. Md. Abdur Razzaque 
Green Networking Research Group 
Dept. of Computer Science and Engineering, University of Dhaka
HHDDLLCC:: FFrraammeess 
• Control field for S-frame 
• Receive ready (RR), Receive not ready (RNR), Reject (REJ) Selective 
reject (SREJ) 
Dr. Md. Abdur Razzaque 
Green Networking Research Group 
Dept. of Computer Science and Engineering, University of Dhaka
HHDDLLCC:: FFrraammeess 
• Control field for U-frame 
Dr. Md. Abdur Razzaque 
Green Networking Research Group 
Dept. of Computer Science and Engineering, University of Dhaka
HHDDLLCC:: EExxaammppllee 11 
• Connection and disconnection 
Dr. Md. Abdur Razzaque 
Green Networking Research Group 
Dept. of Computer Science and Engineering, University of Dhaka
HHDDLLCC:: EExxaammppllee 22 • Piggybacking without error 
Dr. Md. Abdur Razzaque 
Green Networking Research Group 
Dept. of Computer Science and Engineering, University of Dhaka
HHDDLLCC:: EExxaammppllee 33 
• Piggybacking with error 
Dr. Md. Abdur Razzaque 
Green Networking Research Group 
Dept. of Computer Science and Engineering, University of Dhaka
HHDDLLCC:: BBiitt SSttuuffffiinngg aanndd 
UUnnssttuuffffiinngg 
Dr. Md. Abdur Razzaque 
Green Networking Research Group 
Dept. of Computer Science and Engineering, University of Dhaka
PPooiinntt--ttoo--PPooiinntt PPrroottooccooll:: PPPPPP 
One of the most common protocols for point-to-point access 
Many Internet users who need to connect their home computer to the 
server of an Internet service provider use PPP 
A point-to-point link protocol is required to control and manage the 
transfer of data 
PPP defines/provides 
the format of the frame to be exchanged between devices 
how two devices negotiate the establishment of the link and the exchange of data 
how network layer data are encapsulated in the data link frame 
how two devices can authenticate each other 
multiple network layer services 
connection over multiple links 
Network address configuration 
But, several services are missing for simplicity 
no flow control, simple error control (detection and discard), no sophisticate 
addressing for multipoint configuration 
Dr. Md. Abdur Razzaque 
Green Networking Research Group 
Dept. of Computer Science and Engineering, University of Dhaka
PPPPPP FFrraammee • Flag: 01111110 the same as HDLC, but it treated as a byte because of 
PPP is a byte-oriented protocol 
• Address: 11111111 (broadcast address) 
• Control: No need because PPP has no flow control and limited error 
control 
• PPP is a byte-oriented protocol using byte stuffing with the escape byte 
01111101 
Dr. Md. Abdur Razzaque 
Green Networking Research Group 
Dept. of Computer Science and Engineering, University of Dhaka
PPPPPP:: TTrraannssiittiioonn SSttaatteess 
Dr. Md. Abdur Razzaque 
Green Networking Research Group 
Dept. of Computer Science and Engineering, University of Dhaka
PPPPPP:: MMuullttiipplleexxiinngg 
• PPP uses another set of other protocols to establish the link, authenticate 
the parties, and carry the network layer data 
• Three sets of protocols defined for powerful PPP: LCP, two APs, several 
NCPs 
Dr. Md. Abdur Razzaque 
Green Networking Research Group 
Dept. of Computer Science and Engineering, University of Dhaka
LLCCPP:: EEnnccaappssuullaatteedd iinn aa FFrraammee 
Dr. Md. Abdur Razzaque 
Green Networking Research Group 
Dept. of Computer Science and Engineering, University of Dhaka
LLCCPP:: CCoommmmoonn OOppttiioonnss 
Options are inserted in the information field 
of the configuration packets 
Dr. Md. Abdur Razzaque 
Green Networking Research Group 
Dept. of Computer Science and Engineering, University of Dhaka
AAuutthheennttiiccaattiioonn 
Authentication means validating the 
identity of a user who needs to access 
PPP is designed for use over dial-up links 
Þ User authentication is necessary 
PPP has two protocols for authentication 
Password Authentication Protocol (PAP) 
Challenge Handshake Authentication Protocol 
(CHAP) 
Dr. Md. Abdur Razzaque 
Green Networking Research Group 
Dept. of Computer Science and Engineering, University of Dhaka
PPaasssswwoorrdd AAuutthheennttiiccaattiioonn 
PPrroottooccooll (PPAAPP) 
Dr. Md. Abdur Razzaque 
Green Networking Research Group 
Dept. of Computer Science and Engineering, University of Dhaka
CChhaalllleennggee HHaannddsshhaakkee 
AAuutthheennttiiccaattiioonn PPrroottooccooll (CCHHAAPP) 
• Three-way hand-shaking authentication protocol with greater security 
than PAP 
Dr. Md. Abdur Razzaque 
Green Networking Research Group 
Dept. of Computer Science and Engineering, University of Dhaka
NNeettwwoorrkk CCoonnttrrooll PPrroottooccooll:: NNCCPP 
PPP is a multiple-network layer protocol. 
It can carry a network data packet from protocols defined by the 
Internet, OSI, Xerox, DECnet, AppleTalk, Novel 
IPCP (IP Control Protocol) 
Configures the link used to carry IP packets in the Internet 
Dr. Md. Abdur Razzaque 
Green Networking Research Group 
Dept. of Computer Science and Engineering, University of Dhaka
IIPPCCPP PPaacckkeett 
IP Datagram in a PPP frame 
Dr. Md. Abdur Razzaque 
Green Networking Research Group 
Dept. of Computer Science and Engineering, University of Dhaka
MMuullttiippllee PPPPPP 
Dr. Md. Abdur Razzaque 
Green Networking Research Group 
Dept. of Computer Science and Engineering, University of Dhaka
EExxaammppllee (11) 
Dr. Md. Abdur Razzaque 
Green Networking Research Group 
Dept. of Computer Science and Engineering, University of Dhaka
EExxaammppllee (22) 
Dr. Md. Abdur Razzaque 
Green Networking Research Group 
Dept. of Computer Science and Engineering, University of Dhaka

Data link control

  • 1.
    Data Link Control 1. Framing 2. Flow and Error Control 3. Protocols 4. Noiseless Channels 5. Noisy Channels 6. HDLC 7. Point-to-Point Protocol
  • 2.
    FFrraammiinngg DDaattaa lliinnkkllaayyeerr nneeeeddss ttoo ppaacckk bbiittss iinnttoo ffrraammeess,, ssoo tthhaatt eeaacchh ffrraammee iiss ddiissttiinngguuiisshhaabbllee ffrroomm aannootthheerr Separate a message from one source to a destination, or from other messages to other destinations, by adding a sender address and a destination address Fixed-size framing: ATM (Chapter 18) Variable-size framing Need a way to define the end of the frame and the beginning of the next Character-oriented approach and bit-oriented approach Dr. Md. Abdur Razzaque Green Networking Research Group Dept. of Computer Science and Engineering, University of Dhaka
  • 3.
    CChhaarraacctteerr--OOrriieenntteedd PPrroottooccoollss FFrraammeessttrruuccttuurree • BByyttee ssttuuffffiinngg:: pprroocceessss ooff aaddddiinngg 11 eexxttrraa bbyyttee wwhheenneevveerr tthheerree iiss aa ffllaagg oorr eessccaappee cchhaarraacctteerr iinn tthhee tteexxtt Dr. Md. Abdur Razzaque Green Networking Research Group Universal Coding!!! Dept. of Computer Science and Engineering, University of Dhaka
  • 4.
    BBiitt--OOrriieenntteedd PPrroottooccoollss FFrraammeessttrruuccttuurree • Bit stuffing: process of adding one extra 0 whenever five consecutive 1s follow a 0 in the data Dr. Md. Abdur Razzaque Green Networking Research Group Dept. of Computer Science and Engineering, University of Dhaka
  • 5.
    FFllooww aanndd EErrrroorrCCoonnttrrooll Data link control = flow control + error control Flow control refers to a set of procedures used to restrict the amount of data that the sender can send before waiting for acknowledgement Error control in the data link layer is based on automatic repeat request (ARQ), which is the retransmission of data ACK, NAK(Negative ACK), Piggybacking (ACKs and NAKs in data frames) Dr. Md. Abdur Razzaque Green Networking Research Group Dept. of Computer Science and Engineering, University of Dhaka
  • 6.
    NNooiisseelleessss CChhaannnneellss:: SSiimmpplleesstt PPrroottooccooll Simplest protocol with no flow or error control Dr. Md. Abdur Razzaque Green Networking Research Group Dept. of Computer Science and Engineering, University of Dhaka
  • 7.
    SSiimmpplleesstt PPrroottooccooll Sender-sitealgorithm • Receiver-site algorithm Dr. Md. Abdur Razzaque Green Networking Research Group Dept. of Computer Science and Engineering, University of Dhaka
  • 8.
    SSttoopp--aanndd--WWaaiitt PPrroottooccooll Simpletokens of ACK and flow control added Dr. Md. Abdur Razzaque Green Networking Research Group Dept. of Computer Science and Engineering, University of Dhaka
  • 9.
    SSttoopp--aanndd--WWaaiitt PPrroottooccooll Sender-sitealgorithm • Receiver-site algorithm Dr. Md. Abdur Razzaque Green Networking Research Group Dept. of Computer Science and Engineering, University of Dhaka
  • 10.
    SSttoopp--aanndd--WWaaiitt PPrroottooccooll:: EExxaammppllee Dr. Md. Abdur Razzaque Green Networking Research Group Dept. of Computer Science and Engineering, University of Dhaka
  • 11.
    NNooiissyy CChhaannnneellss:: SSttoopp--aanndd--WWaaiitt AARRQQ Stop-and-wait Automatic Repeat Request (ARQ) Error correction in Stop-and-Wait ARQ is done by keeping a copy of the sent frame and retransmitting of the frame when the timer expires In Stop-and-Wait ARQ, we use sequence numbers to number the frames. The sequence numbers are based on modulo-2 arithmetic Acknowledgment number always announces in modulo-2 arithmetic the sequence number of the next frame expected. Dr. Md. Abdur Razzaque Green Networking Research Group Dept. of Computer Science and Engineering, University of Dhaka
  • 12.
    SSttoopp--aanndd--WWaaiitt AARRQQ Dr.Md. Abdur Razzaque Green Networking Research Group Dept. of Computer Science and Engineering, University of Dhaka
  • 13.
    SSttoopp--aanndd--WWaaiitt AARRQQ Sender-sitealgorithm Dr. Md. Abdur Razzaque Green Networking Research Group Dept. of Computer Science and Engineering, University of Dhaka
  • 14.
    SSttoopp--aanndd--WWaaiitt AARRQQ Receiver-sitealgorithm Dr. Md. Abdur Razzaque Green Networking Research Group Dept. of Computer Science and Engineering, University of Dhaka
  • 15.
    SSttoopp--aanndd--WWaaiitt AARRQQ:: EExxaammppllee Dr. Md. Abdur Razzaque Green Networking Research Group Dept. of Computer Science and Engineering, University of Dhaka
  • 16.
    GGoo--BBaacckk--NN AARRQQ Pipeliningimproves the efficiency of the transmission In the Go-Back-N Protocol, the sequence numbers are modulo 2m, where m is the size of the sequence number field in bits The send window is an abstract concept defining an imaginary box of size 2m − 1 with three variables: Sf, Sn, and Ssize The send window can slide one or more slots when a valid acknowledgment arrives. Dr. Md. Abdur Razzaque Green Networking Research Group Dept. of Computer Science and Engineering, University of Dhaka
  • 17.
    GGoo--BBaacckk--NN AARRQQ Receivewindow for Go-Back-N ARQ The receive window is an abstract concept defining an imaginary box of size 1 with one single variable Rn. The window slides when a correct frame has arrived; sliding occurs one slot at a time. Dr. Md. Abdur Razzaque Green Networking Research Group Dept. of Computer Science and Engineering, University of Dhaka
  • 18.
    GGoo--BBaacckk--NN AARRQQ Slidingwindows, Timers, ACK, Resending a frame Dr. Md. Abdur Razzaque Green Networking Research Group Dept. of Computer Science and Engineering, University of Dhaka
  • 19.
    Go-Back-NN AARRQQ:: SSeennddWWiinnddooww SSiizzee In Go-Back-N ARQ, the size of the send window must be less than 2m; the size of the receiver window is always 1 Stop-and-Wait ARQ is a special case of Go-Back-N ARQ in which the size of the send window is 1 Dr. Md. Abdur Razzaque Green Networking Research Group Dept. of Computer Science and Engineering, University of Dhaka
  • 20.
    GGoo--BBaacckk--NN AARRQQ:: SSeennddeerrAAllggoorriitthhmm Dr. Md. Abdur Razzaque Green Networking Research Group Dept. of Computer Science and Engineering, University of Dhaka
  • 21.
    GGoo--BBaacckk--NN AARRQQ:: RReecceeiivveerrAAllggoorriitthhmm Dr. Md. Abdur Razzaque Green Networking Research Group Dept. of Computer Science and Engineering, University of Dhaka
  • 22.
    GGoo--BBaacckk--NN AARRQQ:: EExxaammppllee11 Dr. Md. Abdur Razzaque Green Networking Research Group Dept. of Computer Science and Engineering, University of Dhaka
  • 23.
    GGoo--BBaacckk--NN AARRQQ:: EExxaammppllee22 Dr. Md. Abdur Razzaque Green Networking Research Group Dept. of Computer Science and Engineering, University of Dhaka
  • 24.
    SSeelleeccttiivvee RReeppeeaatt AARRQQ Sender window size • Receive window size Dr. Md. Abdur Razzaque Green Networking Research Group Dept. of Computer Science and Engineering, University of Dhaka
  • 25.
    SSeelleeccttiivvee RReeppeeaatt AARRQQ Dr. Md. Abdur Razzaque Green Networking Research Group Dept. of Computer Science and Engineering, University of Dhaka
  • 26.
    SSeelleeccttiivvee RReeppeeaatt AARRQQ::WWiinnddooww SSiizzee The size of the sender and receiver window must be at most one-half of 2m Dr. Md. Abdur Razzaque Green Networking Research Group Dept. of Computer Science and Engineering, University of Dhaka
  • 27.
    SSeelleeccttiivvee RReeppeeaatt AARRQQ::SSeennddeerr--SSiittee AAllggoorriitthhmm Dr. Md. Abdur Razzaque Green Networking Research Group Dept. of Computer Science and Engineering, University of Dhaka
  • 28.
    Selective RReeppeeaatt AARRQQ::RReecceeiivveerr--SSiittee AAllggoorriitthhmm Dr. Md. Abdur Razzaque Green Networking Research Group Dept. of Computer Science and Engineering, University of Dhaka
  • 29.
    SSeelleeccttiivvee RReeppeeaatt AARRQQ::EExxaammppllee Dr. Md. Abdur Razzaque Green Networking Research Group Dept. of Computer Science and Engineering, University of Dhaka
  • 30.
    PPiiggggyybbaacckkiinngg To improvethe efficiency of the bidirectional protocols Piggybacking in Go-Back-N ARQ Dr. Md. Abdur Razzaque Green Networking Research Group Dept. of Computer Science and Engineering, University of Dhaka
  • 31.
    HHDDLLCC • High-levelData Link Control • Two common transfer mode: normal response mode (NRM) and asynchronous balanced mode (ABM) Dr. Md. Abdur Razzaque Green Networking Research Group Dept. of Computer Science and Engineering, University of Dhaka
  • 32.
    HHDDLLCC:: FFrraammeess •I(information)-frames, S(supervisory)-frames, U(unnumbered frame)- frames • Flag field: 01111110 to identify both the beginning and the end of a frame and serve as synchronization pattern for receiver • FCS field: 2- or 4-byte ITU-T CRC for error detection Dr. Md. Abdur Razzaque Green Networking Research Group Dept. of Computer Science and Engineering, University of Dhaka
  • 33.
    HHDDLLCC:: FFrraammeess •Control Field: 1- or 2-byte segment of the frame used for flow and error control • Determine the type of frame and define its functionality • Control field for I-frame: P/F (poll/final bit for primary/secondary) Dr. Md. Abdur Razzaque Green Networking Research Group Dept. of Computer Science and Engineering, University of Dhaka
  • 34.
    HHDDLLCC:: FFrraammeess •Control field for S-frame • Receive ready (RR), Receive not ready (RNR), Reject (REJ) Selective reject (SREJ) Dr. Md. Abdur Razzaque Green Networking Research Group Dept. of Computer Science and Engineering, University of Dhaka
  • 35.
    HHDDLLCC:: FFrraammeess •Control field for U-frame Dr. Md. Abdur Razzaque Green Networking Research Group Dept. of Computer Science and Engineering, University of Dhaka
  • 36.
    HHDDLLCC:: EExxaammppllee 11 • Connection and disconnection Dr. Md. Abdur Razzaque Green Networking Research Group Dept. of Computer Science and Engineering, University of Dhaka
  • 37.
    HHDDLLCC:: EExxaammppllee 22• Piggybacking without error Dr. Md. Abdur Razzaque Green Networking Research Group Dept. of Computer Science and Engineering, University of Dhaka
  • 38.
    HHDDLLCC:: EExxaammppllee 33 • Piggybacking with error Dr. Md. Abdur Razzaque Green Networking Research Group Dept. of Computer Science and Engineering, University of Dhaka
  • 39.
    HHDDLLCC:: BBiitt SSttuuffffiinnggaanndd UUnnssttuuffffiinngg Dr. Md. Abdur Razzaque Green Networking Research Group Dept. of Computer Science and Engineering, University of Dhaka
  • 40.
    PPooiinntt--ttoo--PPooiinntt PPrroottooccooll:: PPPPPP One of the most common protocols for point-to-point access Many Internet users who need to connect their home computer to the server of an Internet service provider use PPP A point-to-point link protocol is required to control and manage the transfer of data PPP defines/provides the format of the frame to be exchanged between devices how two devices negotiate the establishment of the link and the exchange of data how network layer data are encapsulated in the data link frame how two devices can authenticate each other multiple network layer services connection over multiple links Network address configuration But, several services are missing for simplicity no flow control, simple error control (detection and discard), no sophisticate addressing for multipoint configuration Dr. Md. Abdur Razzaque Green Networking Research Group Dept. of Computer Science and Engineering, University of Dhaka
  • 41.
    PPPPPP FFrraammee •Flag: 01111110 the same as HDLC, but it treated as a byte because of PPP is a byte-oriented protocol • Address: 11111111 (broadcast address) • Control: No need because PPP has no flow control and limited error control • PPP is a byte-oriented protocol using byte stuffing with the escape byte 01111101 Dr. Md. Abdur Razzaque Green Networking Research Group Dept. of Computer Science and Engineering, University of Dhaka
  • 42.
    PPPPPP:: TTrraannssiittiioonn SSttaatteess Dr. Md. Abdur Razzaque Green Networking Research Group Dept. of Computer Science and Engineering, University of Dhaka
  • 43.
    PPPPPP:: MMuullttiipplleexxiinngg •PPP uses another set of other protocols to establish the link, authenticate the parties, and carry the network layer data • Three sets of protocols defined for powerful PPP: LCP, two APs, several NCPs Dr. Md. Abdur Razzaque Green Networking Research Group Dept. of Computer Science and Engineering, University of Dhaka
  • 44.
    LLCCPP:: EEnnccaappssuullaatteedd iinnaa FFrraammee Dr. Md. Abdur Razzaque Green Networking Research Group Dept. of Computer Science and Engineering, University of Dhaka
  • 45.
    LLCCPP:: CCoommmmoonn OOppttiioonnss Options are inserted in the information field of the configuration packets Dr. Md. Abdur Razzaque Green Networking Research Group Dept. of Computer Science and Engineering, University of Dhaka
  • 46.
    AAuutthheennttiiccaattiioonn Authentication meansvalidating the identity of a user who needs to access PPP is designed for use over dial-up links Þ User authentication is necessary PPP has two protocols for authentication Password Authentication Protocol (PAP) Challenge Handshake Authentication Protocol (CHAP) Dr. Md. Abdur Razzaque Green Networking Research Group Dept. of Computer Science and Engineering, University of Dhaka
  • 47.
    PPaasssswwoorrdd AAuutthheennttiiccaattiioonn PPrroottooccooll(PPAAPP) Dr. Md. Abdur Razzaque Green Networking Research Group Dept. of Computer Science and Engineering, University of Dhaka
  • 48.
    CChhaalllleennggee HHaannddsshhaakkee AAuutthheennttiiccaattiioonnPPrroottooccooll (CCHHAAPP) • Three-way hand-shaking authentication protocol with greater security than PAP Dr. Md. Abdur Razzaque Green Networking Research Group Dept. of Computer Science and Engineering, University of Dhaka
  • 49.
    NNeettwwoorrkk CCoonnttrrooll PPrroottooccooll::NNCCPP PPP is a multiple-network layer protocol. It can carry a network data packet from protocols defined by the Internet, OSI, Xerox, DECnet, AppleTalk, Novel IPCP (IP Control Protocol) Configures the link used to carry IP packets in the Internet Dr. Md. Abdur Razzaque Green Networking Research Group Dept. of Computer Science and Engineering, University of Dhaka
  • 50.
    IIPPCCPP PPaacckkeett IPDatagram in a PPP frame Dr. Md. Abdur Razzaque Green Networking Research Group Dept. of Computer Science and Engineering, University of Dhaka
  • 51.
    MMuullttiippllee PPPPPP Dr.Md. Abdur Razzaque Green Networking Research Group Dept. of Computer Science and Engineering, University of Dhaka
  • 52.
    EExxaammppllee (11) Dr.Md. Abdur Razzaque Green Networking Research Group Dept. of Computer Science and Engineering, University of Dhaka
  • 53.
    EExxaammppllee (22) Dr.Md. Abdur Razzaque Green Networking Research Group Dept. of Computer Science and Engineering, University of Dhaka