SlideShare a Scribd company logo
Application Layer Presentation Layer Session Layer Transport Layer Network Layer Data Link Layer Physical Layer Application Layer Presentation Layer Session Layer Transport Layer Network Layer Data Link Layer Physical Layer Network Layer Electrical and/or Optical Signals Application A Application B Data Link Layer Physical Layer Network Layer Data Link Layer Physical Layer Communication Network Figure 2.6 Review of seven layers
Data Link Control Framing Line Discipline/MAC Flow Control Error Control Addressing WCB/McGraw-Hill    The McGraw-Hill Companies, Inc., 1998
Data Link Layer WCB/McGraw-Hill    The McGraw-Hill Companies, Inc., 1998
WCB/McGraw-Hill    The McGraw-Hill Companies, Inc., 1998
Peer-to-peer protocols Two communicating entities are called peer processes. Communication between layer n+1 peers is virtual and is carried by layer n service Two meanings of peer-to-peer:  point-to-point (hop-by-hop):   end-to-end (user-to-user): Physical link network
1 2 Physical layer entity Data link layer entity 3 Network layer entity Physical Layer Data link Layer Physical Layer Data link Layer A B A B Packets Packets Frames (a) (b) Peer-to-peer protocol across a single hop 1. take packets 2. form frame 3. transfer through Physical layer 5. deliver to network layer Several pairs of data link & physical entities Only one network layer entity, a router may connect several different networks 4. Pass up 3 2 1 1 2 2 1 3 2 1 1 2 2 1 2 1 Medium
Physical Layer Data link Layer Physical Layer Data link Layer End system  Network Layer Network Layer Physical Layer Data link Layer Network Layer Physical Layer Data link Layer Network Layer Transport Layer Transport Layer Messages Messages Segments End system  Network Peer-to-peer protocol operating end-to-end across network
Medium A B 3 C 3 4 3 4 End System  End System  Network 1 2 Physical layer entity Data link layer entity Network layer entity Network layer entity Transport layer entity Figure 5.4 Peer-to-peer protocol operating end-to-end across network 1. Layer 4 not in middle  2.Data go up and down in router 3. Different paths 4. Out of order, delay, duplicate, lost 3 2 1 1 2 2 1 3 2 1 1 2 2 1 2 1 2 1 1 2 2 1 2 1 2 1 2 1 1 2 3 3 4
Service models Connection-oriented and connectionless Confirmed and unconfirmed A service may transfer in  constant bit rate  ( CBR) or  variant bit rate  (VBR)
1 2 3 4 5 Data Data Data Data ACK/NAK ACK/NAK ACK/NAK ACK/NAK End-to-end  Hop-by-hop Figure 5.7 Adaptation functions may be implemented end-to-end or hop-by-hop  Data are ACK or NAK by the other end Data are ACK or NAK by each hop 1 2 3 4 5 Data Data Data ACK/NAK Data
End-to-end versus hop-by-hop (cont.) Hop-by-hop: faster recovery & more reliable but more burden on middle nodes End-to-end: simpler and only at end-system QUESTIONS:  could hop-to-hop waivers end-to-end? NO. it is difficult for all elements in the hop-by-hop  chain to operate correctly, furthermore the errors  may be introduced in middle nodes --Adaptations are implemented at which layer(s)? Hop-by-hop:  End-by-End: Data link  & network layer Transport & application layer
End-to-end versus hop-by-hop (cont.) In case of error-detection and recovery: If frequent errors, use hop-by-hop , otherwise end-to-end Flow control and congestion control could be exercised on a hop-by-hop or end-to-end basis  or both. Security issue: may be hop-by-hop or end-by-end IPSec ( IP security protocol ) in Internet layer,  hop-by-hop/end-to-end? SSL ( Secure Socket Layer ) in transport layer, end-to-end SSH ( Secure Shell ) in application layer, end-to-end
ARQ (Automatic Repeat Request) protocols A technique used to ensure accurate delivery of a data stream despite errors during transmission Form a basis for peer-to-peer protocols Assume that There is a connection between peers The channel is error-prone A sequence of information blocks for transfer
Typical ARQ  protocols Assume unidirectional transmission, consider bidirectional transmission later Stop-and-wait ARQ Go-back-N ARQ Based on ARQs, Sliding-window flow control Reliable stream service (TCP preview) Data link layer protocols --HDLC ( High-level Data Link Control )   --PPP ( Point-to-Point protocol )
Stop-and-Wait ARQ Transmitter sends one frame and waits for acknowledgment Receiver acknowledges the receiving of the frame After receiving acknowledgment, transmitter sends the next frame In case the transmitted frame or returned acknowledgment was lost, the transmitter’s timer will time out, the transmitter resends the frame
A B One  frame  ACK Another  frame ACK time Another frame Figure 5.9 Stop-and-Wait ARQ Transmitter A sends one frame and waits for acknowledgment Receiver B acknowledges the receiving of the frame After receiving acknowledgment, transmitter A sends the next frame Any Problem with it? Transmitted frame may lost, the acknowledgment may lost. How to solve? Set up timer, when timer times out, resends the frame
(a)  Frame 1 lost or badly garbled A B One frame   Another  frame ACK The  frame ACK time Time-out Another frame (b)  ACK lost A B One frame   Another frame ACK the frame ACK time Time-out Another frame ACK Figure 5.9 Using timer to retransmit the frame when a frame or acknowledgement lost Any problem? Frame was received twice when ACK lost. How to solve it? Introduce sequence number (SN) into frame and discard  duplicate frame
Go-back-N ARQ Sends enough frames to keep channel busy and then waits for ACK ACK to one frame validates all frames ahead of this frame (called accumulated ACK) If ACK for a frame is not received before time out,  all outstanding frames are retransmitted.
A B fr 0 time fr 1 fr 2 fr 3 fr 4 fr 5 fr 6 fr 3 ACK1 error Out-of-sequence frames Go-Back-4: 4 frames are outstanding; so go back 4 fr 5 fr 6 fr 4 fr 7 fr 8 fr 9 ACK2 ACK3 ACK4 ACK5 ACK6 ACK7 ACK8 ACK9 Figure 5.13 Basic Go-back-N ARQ A sends 0,1,2,3 frames then waits for ACK ACK1 just comes in time and A sends one more frame: 4 ACK2  and 3 come and A sends frame 5 and 6 Frame 3 lost and no ACK for it B discards out-of-sequence frame 4,5,6  A exhausts its window (4 frames) and does not receive ACK, so resends all outstanding frames 3,4,5,6, called Go-back N
Sliding Window Protocols Bidirectional Protocol Each frame contains a sequence number Sliding window refers to a imaginary boxes at the transmitter and receiver. At any instant of time , the sender maintains a set of sequence numbers corresponding to the frames permitted to send. The receiver also maintains a receiver window corresponding to the set of frames permitted to accept
Sliding Window Figure 10-11 WCB/McGraw-Hill    The McGraw-Hill Companies, Inc., 1998
Sliding window The sequence number within a sender’s window  represents the no of frames sent but not yet acknowledged. The receiving window corresponds to the frames the receiver may accept.
WCB/McGraw-Hill    The McGraw-Hill Companies, Inc., 1998 Sender Sliding Window
Figure 10-13 WCB/McGraw-Hill    The McGraw-Hill Companies, Inc., 1998 Receiver Sliding Window
Figure 10-14 WCB/McGraw-Hill    The McGraw-Hill Companies, Inc., 1998 Sliding Window Example
Figure 10-14-continued WCB/McGraw-Hill    The McGraw-Hill Companies, Inc., 1998 Sender
WCB/McGraw-Hill    The McGraw-Hill Companies, Inc., 1998 Receiver

More Related Content

PPT
Lecture 6
Joe Christensen
 
PPTX
M.A.C (Medium Access Control)
JaironLanda
 
PPT
Aloha
mangal das
 
PDF
Snooping TCP
Sushant Kushwaha
 
PPT
MAC seminar
Mridula Sharma
 
PPT
Medium Access PROTOCOL b yENGR. FAWAD KHAN UET BANNU KP PAKISTAN
irfan sami
 
Lecture 6
Joe Christensen
 
M.A.C (Medium Access Control)
JaironLanda
 
Aloha
mangal das
 
Snooping TCP
Sushant Kushwaha
 
MAC seminar
Mridula Sharma
 
Medium Access PROTOCOL b yENGR. FAWAD KHAN UET BANNU KP PAKISTAN
irfan sami
 

What's hot (20)

PPT
3.Medium Access Control
Sonali Chauhan
 
PPTX
Csma cd and csma-ca
kazim Hussain
 
PPT
Mac
hinalala
 
PPTX
Chapter 11: Data Link Control
JeoffnaRuth
 
DOCX
seminar report on multiple access control protocol submitted by munesh
meenamunesh
 
PPT
Direct Link Lan
yanhul
 
PDF
Multiple Access in Computer Network
Hitesh Mohapatra
 
PPTX
Media Access Control (MAC Layer)
Meenakshi Paul
 
PPT
multiple access
AKSHIT KOHLI
 
PPT
12 multiple access
bheemsain
 
PPT
Multiple access in Communication Netwroks
aounraza007
 
PPT
13 atm
Hattori Sidek
 
PPT
Mac layer
Shubham Kansal
 
PPT
07 data linkcontrol
chameli devi group of institutions
 
PPTX
Demand Assigned Multiple Access
anushkashastri
 
PPSX
Mac protocols of adhoc network
shashi712
 
PPTX
The medium access sublayer
Lal Bahadur Gehlot
 
PPT
Mac sub layer
DIKSHA_LAHRANI
 
PPTX
Unit 3 - Data Link Layer - Part B
Chandan Gupta Bhagat
 
PPT
Mac adhoc (1)
hinalala
 
3.Medium Access Control
Sonali Chauhan
 
Csma cd and csma-ca
kazim Hussain
 
Chapter 11: Data Link Control
JeoffnaRuth
 
seminar report on multiple access control protocol submitted by munesh
meenamunesh
 
Direct Link Lan
yanhul
 
Multiple Access in Computer Network
Hitesh Mohapatra
 
Media Access Control (MAC Layer)
Meenakshi Paul
 
multiple access
AKSHIT KOHLI
 
12 multiple access
bheemsain
 
Multiple access in Communication Netwroks
aounraza007
 
Mac layer
Shubham Kansal
 
Demand Assigned Multiple Access
anushkashastri
 
Mac protocols of adhoc network
shashi712
 
The medium access sublayer
Lal Bahadur Gehlot
 
Mac sub layer
DIKSHA_LAHRANI
 
Unit 3 - Data Link Layer - Part B
Chandan Gupta Bhagat
 
Mac adhoc (1)
hinalala
 
Ad

Similar to application layers (20)

PDF
Ch05_OSI_Reference_Model - Compressed.pdf
mengeshasefa835
 
PPT
09 Data Link LayerFlow Control.ppt
ShaliniKumariGupta1
 
PPTX
Unit IV_Flow.pptx
TejasRao8
 
PPT
Flow Control (1).ppt
sarthakgithub
 
PDF
Chapter 7 - Data Link Control Protocols 9e
adpeer
 
PPTX
DLL services from the computer networks.pptx
ramakrihna
 
PPT
CN_unit2.ppt Data Link Layer characteristics, categories
VSrilakshmi2
 
PPT
computer_network_completenotes_unit2.ppt
VasundharaNam1
 
PPTX
Data link control & protocol concepts
Raji Lakshmi
 
PPTX
Datalink control(framing,protocols)
Hira Awan
 
PPT
Data_Link_Layer.ppt
NicetomeetYou2
 
PPT
Data Link Layer of OSI Model responsibilities
HemantPareek21
 
PPT
Data linkcontrol
Bablu Shofi
 
PPTX
CS3591- Computer Networks Unit-2 Transport layer
LOGANATHANK24
 
PPTX
Data Link Layer_Data Communications&Computer Neworks.pptx
AllankiSanyasiRao
 
PPT
3a data link layer
kavish dani
 
PPT
stop and wait _
SwatiHans10
 
PPT
Chapter 5 my_ppt
prachi thakor
 
PPTX
Unit 2 data link control
Vishal kakade
 
PPT
07 data linkcontrol
Srinivasa Rao
 
Ch05_OSI_Reference_Model - Compressed.pdf
mengeshasefa835
 
09 Data Link LayerFlow Control.ppt
ShaliniKumariGupta1
 
Unit IV_Flow.pptx
TejasRao8
 
Flow Control (1).ppt
sarthakgithub
 
Chapter 7 - Data Link Control Protocols 9e
adpeer
 
DLL services from the computer networks.pptx
ramakrihna
 
CN_unit2.ppt Data Link Layer characteristics, categories
VSrilakshmi2
 
computer_network_completenotes_unit2.ppt
VasundharaNam1
 
Data link control & protocol concepts
Raji Lakshmi
 
Datalink control(framing,protocols)
Hira Awan
 
Data_Link_Layer.ppt
NicetomeetYou2
 
Data Link Layer of OSI Model responsibilities
HemantPareek21
 
Data linkcontrol
Bablu Shofi
 
CS3591- Computer Networks Unit-2 Transport layer
LOGANATHANK24
 
Data Link Layer_Data Communications&Computer Neworks.pptx
AllankiSanyasiRao
 
3a data link layer
kavish dani
 
stop and wait _
SwatiHans10
 
Chapter 5 my_ppt
prachi thakor
 
Unit 2 data link control
Vishal kakade
 
07 data linkcontrol
Srinivasa Rao
 
Ad

More from Mahesh Kumar Attri (20)

PPT
Web technologies
Mahesh Kumar Attri
 
DOC
Plant layout
Mahesh Kumar Attri
 
PPT
Multiplexing
Mahesh Kumar Attri
 
PPT
Lect21 09-11
Mahesh Kumar Attri
 
PPT
work measurement
Mahesh Kumar Attri
 
PPTX
production management
Mahesh Kumar Attri
 
PPTX
Fom (pm)
Mahesh Kumar Attri
 
PPT
Errror Detection and Correction
Mahesh Kumar Attri
 
PPT
Data Communication
Mahesh Kumar Attri
 
PPT
Lecture 5
Mahesh Kumar Attri
 
PPT
International marketing
Mahesh Kumar Attri
 
PPT
OSI models
Mahesh Kumar Attri
 
PPT
1.prallelism
Mahesh Kumar Attri
 
PPT
As department
Mahesh Kumar Attri
 
PPT
2.computer org.
Mahesh Kumar Attri
 
PPT
1.prallelism
Mahesh Kumar Attri
 
PPT
Staffing & manpower planning(9)
Mahesh Kumar Attri
 
PPT
Science & art (2) 2
Mahesh Kumar Attri
 
Web technologies
Mahesh Kumar Attri
 
Plant layout
Mahesh Kumar Attri
 
Multiplexing
Mahesh Kumar Attri
 
Lect21 09-11
Mahesh Kumar Attri
 
work measurement
Mahesh Kumar Attri
 
production management
Mahesh Kumar Attri
 
Errror Detection and Correction
Mahesh Kumar Attri
 
Data Communication
Mahesh Kumar Attri
 
International marketing
Mahesh Kumar Attri
 
OSI models
Mahesh Kumar Attri
 
1.prallelism
Mahesh Kumar Attri
 
As department
Mahesh Kumar Attri
 
2.computer org.
Mahesh Kumar Attri
 
1.prallelism
Mahesh Kumar Attri
 
Staffing & manpower planning(9)
Mahesh Kumar Attri
 
Science & art (2) 2
Mahesh Kumar Attri
 

Recently uploaded (20)

PPTX
Agile Chennai 18-19 July 2025 | Emerging patterns in Agentic AI by Bharani Su...
AgileNetwork
 
PDF
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
PDF
Research-Fundamentals-and-Topic-Development.pdf
ayesha butalia
 
PDF
GDG Cloud Munich - Intro - Luiz Carneiro - #BuildWithAI - July - Abdel.pdf
Luiz Carneiro
 
PPTX
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
PDF
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
PDF
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
PPTX
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
PDF
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
PPTX
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
PDF
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
PPTX
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
PDF
How ETL Control Logic Keeps Your Pipelines Safe and Reliable.pdf
Stryv Solutions Pvt. Ltd.
 
PDF
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
PDF
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
PDF
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 
PPTX
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
PPTX
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
PDF
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
PDF
Doc9.....................................
SofiaCollazos
 
Agile Chennai 18-19 July 2025 | Emerging patterns in Agentic AI by Bharani Su...
AgileNetwork
 
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
Research-Fundamentals-and-Topic-Development.pdf
ayesha butalia
 
GDG Cloud Munich - Intro - Luiz Carneiro - #BuildWithAI - July - Abdel.pdf
Luiz Carneiro
 
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
How ETL Control Logic Keeps Your Pipelines Safe and Reliable.pdf
Stryv Solutions Pvt. Ltd.
 
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
Doc9.....................................
SofiaCollazos
 

application layers

  • 1. Application Layer Presentation Layer Session Layer Transport Layer Network Layer Data Link Layer Physical Layer Application Layer Presentation Layer Session Layer Transport Layer Network Layer Data Link Layer Physical Layer Network Layer Electrical and/or Optical Signals Application A Application B Data Link Layer Physical Layer Network Layer Data Link Layer Physical Layer Communication Network Figure 2.6 Review of seven layers
  • 2. Data Link Control Framing Line Discipline/MAC Flow Control Error Control Addressing WCB/McGraw-Hill  The McGraw-Hill Companies, Inc., 1998
  • 3. Data Link Layer WCB/McGraw-Hill  The McGraw-Hill Companies, Inc., 1998
  • 4. WCB/McGraw-Hill  The McGraw-Hill Companies, Inc., 1998
  • 5. Peer-to-peer protocols Two communicating entities are called peer processes. Communication between layer n+1 peers is virtual and is carried by layer n service Two meanings of peer-to-peer: point-to-point (hop-by-hop): end-to-end (user-to-user): Physical link network
  • 6. 1 2 Physical layer entity Data link layer entity 3 Network layer entity Physical Layer Data link Layer Physical Layer Data link Layer A B A B Packets Packets Frames (a) (b) Peer-to-peer protocol across a single hop 1. take packets 2. form frame 3. transfer through Physical layer 5. deliver to network layer Several pairs of data link & physical entities Only one network layer entity, a router may connect several different networks 4. Pass up 3 2 1 1 2 2 1 3 2 1 1 2 2 1 2 1 Medium
  • 7. Physical Layer Data link Layer Physical Layer Data link Layer End system  Network Layer Network Layer Physical Layer Data link Layer Network Layer Physical Layer Data link Layer Network Layer Transport Layer Transport Layer Messages Messages Segments End system  Network Peer-to-peer protocol operating end-to-end across network
  • 8. Medium A B 3 C 3 4 3 4 End System  End System  Network 1 2 Physical layer entity Data link layer entity Network layer entity Network layer entity Transport layer entity Figure 5.4 Peer-to-peer protocol operating end-to-end across network 1. Layer 4 not in middle 2.Data go up and down in router 3. Different paths 4. Out of order, delay, duplicate, lost 3 2 1 1 2 2 1 3 2 1 1 2 2 1 2 1 2 1 1 2 2 1 2 1 2 1 2 1 1 2 3 3 4
  • 9. Service models Connection-oriented and connectionless Confirmed and unconfirmed A service may transfer in constant bit rate ( CBR) or variant bit rate (VBR)
  • 10. 1 2 3 4 5 Data Data Data Data ACK/NAK ACK/NAK ACK/NAK ACK/NAK End-to-end Hop-by-hop Figure 5.7 Adaptation functions may be implemented end-to-end or hop-by-hop Data are ACK or NAK by the other end Data are ACK or NAK by each hop 1 2 3 4 5 Data Data Data ACK/NAK Data
  • 11. End-to-end versus hop-by-hop (cont.) Hop-by-hop: faster recovery & more reliable but more burden on middle nodes End-to-end: simpler and only at end-system QUESTIONS: could hop-to-hop waivers end-to-end? NO. it is difficult for all elements in the hop-by-hop chain to operate correctly, furthermore the errors may be introduced in middle nodes --Adaptations are implemented at which layer(s)? Hop-by-hop: End-by-End: Data link & network layer Transport & application layer
  • 12. End-to-end versus hop-by-hop (cont.) In case of error-detection and recovery: If frequent errors, use hop-by-hop , otherwise end-to-end Flow control and congestion control could be exercised on a hop-by-hop or end-to-end basis or both. Security issue: may be hop-by-hop or end-by-end IPSec ( IP security protocol ) in Internet layer, hop-by-hop/end-to-end? SSL ( Secure Socket Layer ) in transport layer, end-to-end SSH ( Secure Shell ) in application layer, end-to-end
  • 13. ARQ (Automatic Repeat Request) protocols A technique used to ensure accurate delivery of a data stream despite errors during transmission Form a basis for peer-to-peer protocols Assume that There is a connection between peers The channel is error-prone A sequence of information blocks for transfer
  • 14. Typical ARQ protocols Assume unidirectional transmission, consider bidirectional transmission later Stop-and-wait ARQ Go-back-N ARQ Based on ARQs, Sliding-window flow control Reliable stream service (TCP preview) Data link layer protocols --HDLC ( High-level Data Link Control ) --PPP ( Point-to-Point protocol )
  • 15. Stop-and-Wait ARQ Transmitter sends one frame and waits for acknowledgment Receiver acknowledges the receiving of the frame After receiving acknowledgment, transmitter sends the next frame In case the transmitted frame or returned acknowledgment was lost, the transmitter’s timer will time out, the transmitter resends the frame
  • 16. A B One frame ACK Another frame ACK time Another frame Figure 5.9 Stop-and-Wait ARQ Transmitter A sends one frame and waits for acknowledgment Receiver B acknowledges the receiving of the frame After receiving acknowledgment, transmitter A sends the next frame Any Problem with it? Transmitted frame may lost, the acknowledgment may lost. How to solve? Set up timer, when timer times out, resends the frame
  • 17. (a) Frame 1 lost or badly garbled A B One frame Another frame ACK The frame ACK time Time-out Another frame (b) ACK lost A B One frame Another frame ACK the frame ACK time Time-out Another frame ACK Figure 5.9 Using timer to retransmit the frame when a frame or acknowledgement lost Any problem? Frame was received twice when ACK lost. How to solve it? Introduce sequence number (SN) into frame and discard duplicate frame
  • 18. Go-back-N ARQ Sends enough frames to keep channel busy and then waits for ACK ACK to one frame validates all frames ahead of this frame (called accumulated ACK) If ACK for a frame is not received before time out, all outstanding frames are retransmitted.
  • 19. A B fr 0 time fr 1 fr 2 fr 3 fr 4 fr 5 fr 6 fr 3 ACK1 error Out-of-sequence frames Go-Back-4: 4 frames are outstanding; so go back 4 fr 5 fr 6 fr 4 fr 7 fr 8 fr 9 ACK2 ACK3 ACK4 ACK5 ACK6 ACK7 ACK8 ACK9 Figure 5.13 Basic Go-back-N ARQ A sends 0,1,2,3 frames then waits for ACK ACK1 just comes in time and A sends one more frame: 4 ACK2 and 3 come and A sends frame 5 and 6 Frame 3 lost and no ACK for it B discards out-of-sequence frame 4,5,6 A exhausts its window (4 frames) and does not receive ACK, so resends all outstanding frames 3,4,5,6, called Go-back N
  • 20. Sliding Window Protocols Bidirectional Protocol Each frame contains a sequence number Sliding window refers to a imaginary boxes at the transmitter and receiver. At any instant of time , the sender maintains a set of sequence numbers corresponding to the frames permitted to send. The receiver also maintains a receiver window corresponding to the set of frames permitted to accept
  • 21. Sliding Window Figure 10-11 WCB/McGraw-Hill  The McGraw-Hill Companies, Inc., 1998
  • 22. Sliding window The sequence number within a sender’s window represents the no of frames sent but not yet acknowledged. The receiving window corresponds to the frames the receiver may accept.
  • 23. WCB/McGraw-Hill  The McGraw-Hill Companies, Inc., 1998 Sender Sliding Window
  • 24. Figure 10-13 WCB/McGraw-Hill  The McGraw-Hill Companies, Inc., 1998 Receiver Sliding Window
  • 25. Figure 10-14 WCB/McGraw-Hill  The McGraw-Hill Companies, Inc., 1998 Sliding Window Example
  • 26. Figure 10-14-continued WCB/McGraw-Hill  The McGraw-Hill Companies, Inc., 1998 Sender
  • 27. WCB/McGraw-Hill  The McGraw-Hill Companies, Inc., 1998 Receiver