SlideShare a Scribd company logo
Link Level Flow
Control
Flow Control
Flow Control – specifies how much data the sender can transmit
before receiving permission or acknowledgement to continue from the
receiver.
Flow Control
Sliding WindowStop and Wait
Stop and Wait
Sender sends one frame at a time stops until it receives the confirmation
(Acknowledgement) from the receiver and then sends the next frame.
Acknowledgement – small control frame that a protocol (receiver side) sends
back to the sender saying that it has received an earlier frame.
Control frame – frame with header only. (No data is in control frame)
Timeout period may vary for different frame transmission.
Advantage:
◦ Simplicity
Disadvantage:
◦ Inefficiency i.e., it allows sender to have only one outstanding frame on the link.
Stop and Wait
Sliding Window
Sender can transmit several frames continuously before needing an ACK.
If ACK received by the sender before continuous transmission is finished,
sender can transmit.
An ACK can acknowledge the correct receipt of multiple frames at a receiver
(cumulative ACK).
Sender assigns a frame number to each frame. Frames are numbered “modulo
n”.
i.e., 0 to n-1, 0, 1, 2 …n-1, 0, 1, 2 …n-1, 0, 1 … n-1…
Sliding Window
Sliding Window
 Sender maintains three variables,
o Sender Window Size (SWS)
o Last ACK Received (LAR) – frame number of the last
acknowledgement received.
o Last Frame Sent (LFS) – frame number of the last frame
sent.
LFS – LAR ≤ SWS
Sliding Window
Moves to the right frame by frame,
when a frame is sent
Moves to the right, the size of
several frames at a time, when an
ACK is received
Sliding Window
o When an acknowledgement received, the sender moves LAR to the
right, thereby allowing the sender to transmit another frame.
o Sender has to buffer the frame up to SWS frames for retransmission
purpose.
Sliding Window
 Receiver maintains three variables,
o Receiver Window Size (RWS) – upper bound on the
number of out of order frames that the receiver is willing to
accept.
o Largest Acceptable Frame (LAF) – frame number of the
largest acceptable frame.
o Last Frame Received (LFR) – frame number of the last
frame received.
LAF – LFR ≤ RWS
Sliding Window
Moves to the right frame by
frame, when a frame is
received
Moves to the right the size of
the several frames at a time,
when an ACK is sent.
Sliding Window
 When a frame with sequence number SeqNum arrives,
If SeqNum ≤ LFR or SeqNum > LAF
- Discard it (the frame is outside the receiver window)
If LFR < SeqNum ≤ LAF
- Accept it
- Now the receiver needs to decide whether or not to send
an ACK
Sliding Window
Automatic Repeat Request
Automatic Repeat Request (ARQ)
 Retransmission of lost or damaged frame is referred as Automatic Repeat
Request.
 Retransmission taken place,
o When error occurs in frame, receiver sends an NAK (Negative
Acknowledgement) explicitly to the sender.
o When the sender’s timer expires (due to error frame, frame lost or
ACK lost), it triggers the retransmission.
Timeout – the expected delay for sender to receive ACK for the frame
Automatic Repeat Request
Selective
Repeat ARQ
Sliding Window
ARQ
Stop and Wait
ARQ
ARQ
Go – Back - N
ARQ
Stop and Wait ARQ
 Extension of stop and wait protocol.
 Receiver sends an ACK if frame is correctly received. Sender waits for an ACK
before transmitting the next frame.
Retransmission,
- If sender does not receive anything before timeout period expires
(due to frame lost or ACK lost), it retransmits the frame.
- Suppose if sender receives the NAK (error in frame or damaged
frame), it retransmits that error frame.
Stop and Wait ARQ
Sliding Window ARQ
Sliding Window ARQ
Two approaches,
 Go – Back – N ARQ
 Selective Repeat ARQ
Go – Back – N ARQ:
– Go – Back – N uses sliding window flow control protocol.
– If no errors occur the operations are similar to sliding window.
– A station may send multiple frames as allowed by the window.
Retransmission,
 Receiver sends a NAK ‘i’ if frame ‘i’ contains error (or) frame ‘i’ was lost (i.e., out of order frame). After that
receiver discards all frames until the error frame (or) lost frame was correctly retransmitted.
 If sender receives the NAK for frame ‘i’ it will retransmit frame ‘i’ and all frames i+1, i+2… which have been
sent, but not been acknowledged.
Sliding Window ARQ
Sliding Window ARQ
Sliding Window ARQ
Sliding Window ARQ
Selective Repeat ARQ
– Here sender only retransmits frames for which NAK is received.
Advantage over Go – Back – N,
 Fewer retransmissions
Disadvantages,
 More complex at sender and receiver.
 Each frame must be acknowledged individually (no cumulative
acknowledgement).
Receiver may receive out of sequence frames.
Sliding Window ARQ
For ACK / NAK loss, Go – Back – N is used. i.e., selective repeat
work similar to Go – Back – N.

More Related Content

What's hot

Multiple Access Protocal
Multiple Access ProtocalMultiple Access Protocal
Multiple Access Protocal
tes31
 
Flow control in Computer Network
Flow control in Computer NetworkFlow control in Computer Network
Flow control in Computer Network
Ahtesham Ullah khan
 
Data link layer
Data link layer Data link layer
Data link layer
Mukesh Chinta
 
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
Dr. SELVAGANESAN S
 
Error Detection And Correction
Error Detection And CorrectionError Detection And Correction
Error Detection And Correction
Renu Kewalramani
 
Introduction to Data-Link Layer
Introduction to Data-Link LayerIntroduction to Data-Link Layer
Introduction to Data-Link Layer
Abdullaziz Tagawy
 
Flow & Error Control
Flow & Error ControlFlow & Error Control
Flow & Error Controltameemyousaf
 
Chapter 4 data link layer
Chapter 4 data link layerChapter 4 data link layer
Chapter 4 data link layer
Naiyan Noor
 
Stop-and-Wait ARQ Protocol
Stop-and-Wait ARQ ProtocolStop-and-Wait ARQ Protocol
Stop-and-Wait ARQ Protocol
praneetayargattikar
 
Go back-n protocol
Go back-n protocolGo back-n protocol
Go back-n protocol
STEFFY D
 
Selective repeat protocol
Selective repeat protocolSelective repeat protocol
Selective repeat protocol
Manusha Dilan
 
HDLC(High level Data Link Control)
HDLC(High level Data Link Control)HDLC(High level Data Link Control)
HDLC(High level Data Link Control)
sonangrai
 
Flow control
Flow controlFlow control
Connection Establishment & Flow and Congestion Control
Connection Establishment & Flow and Congestion ControlConnection Establishment & Flow and Congestion Control
Connection Establishment & Flow and Congestion Control
Adeel Rasheed
 
Stop and-wait protocol
Stop and-wait protocolStop and-wait protocol
Stop and-wait protocol
Venkata Sreeram
 
Congestion control
Congestion controlCongestion control
Congestion control
Aman Jaiswal
 
Network Layer,Computer Networks
Network Layer,Computer NetworksNetwork Layer,Computer Networks
Network Layer,Computer Networks
guesta81d4b
 
TCP and UDP
TCP and UDP TCP and UDP
TCP and UDP
Ramesh Giri
 

What's hot (20)

Multiple Access Protocal
Multiple Access ProtocalMultiple Access Protocal
Multiple Access Protocal
 
Flow control in Computer Network
Flow control in Computer NetworkFlow control in Computer Network
Flow control in Computer Network
 
Quality of Service
Quality of ServiceQuality of Service
Quality of Service
 
Data link layer
Data link layer Data link layer
Data link layer
 
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
 
Error Detection And Correction
Error Detection And CorrectionError Detection And Correction
Error Detection And Correction
 
Introduction to Data-Link Layer
Introduction to Data-Link LayerIntroduction to Data-Link Layer
Introduction to Data-Link Layer
 
Flow & Error Control
Flow & Error ControlFlow & Error Control
Flow & Error Control
 
Chapter 4 data link layer
Chapter 4 data link layerChapter 4 data link layer
Chapter 4 data link layer
 
Stop-and-Wait ARQ Protocol
Stop-and-Wait ARQ ProtocolStop-and-Wait ARQ Protocol
Stop-and-Wait ARQ Protocol
 
The medium access sublayer
 The medium  access sublayer The medium  access sublayer
The medium access sublayer
 
Go back-n protocol
Go back-n protocolGo back-n protocol
Go back-n protocol
 
Selective repeat protocol
Selective repeat protocolSelective repeat protocol
Selective repeat protocol
 
HDLC(High level Data Link Control)
HDLC(High level Data Link Control)HDLC(High level Data Link Control)
HDLC(High level Data Link Control)
 
Flow control
Flow controlFlow control
Flow control
 
Connection Establishment & Flow and Congestion Control
Connection Establishment & Flow and Congestion ControlConnection Establishment & Flow and Congestion Control
Connection Establishment & Flow and Congestion Control
 
Stop and-wait protocol
Stop and-wait protocolStop and-wait protocol
Stop and-wait protocol
 
Congestion control
Congestion controlCongestion control
Congestion control
 
Network Layer,Computer Networks
Network Layer,Computer NetworksNetwork Layer,Computer Networks
Network Layer,Computer Networks
 
TCP and UDP
TCP and UDP TCP and UDP
TCP and UDP
 

Similar to Flow Control

session -7 - Sliding Window Protocol 1- N oisy Channels.ppt
session -7 - Sliding Window Protocol 1- N oisy Channels.pptsession -7 - Sliding Window Protocol 1- N oisy Channels.ppt
session -7 - Sliding Window Protocol 1- N oisy Channels.ppt
nanisrikar276711
 
Unit IV_Flow.pptx
Unit IV_Flow.pptxUnit IV_Flow.pptx
Unit IV_Flow.pptx
TejasRao8
 
PROTOCOL ICT.pptx
PROTOCOL ICT.pptxPROTOCOL ICT.pptx
PROTOCOL ICT.pptx
Aditya101713
 
Unit 2_ Flow & Error Control in computer networks
Unit 2_ Flow & Error Control in computer networksUnit 2_ Flow & Error Control in computer networks
Unit 2_ Flow & Error Control in computer networks
Balasubramanian699229
 
Reliablt transmission
Reliablt transmissionReliablt transmission
Reliablt transmission
Wasim Akbar
 
8th lec flow and error control
8th lec   flow and error control8th lec   flow and error control
8th lec flow and error control
Inocentshuja Ahmad
 
Flow control &amp; error control
Flow control &amp; error controlFlow control &amp; error control
Flow control &amp; error control
ManishTadhiyal
 
Sliding window and error control
Sliding window and error controlSliding window and error control
Sliding window and error control
Adil Mehmoood
 
Computer network slides for easy prepration
Computer network slides for easy preprationComputer network slides for easy prepration
Computer network slides for easy prepration
mqasimsheikh5
 
09 Data Link LayerFlow Control.ppt
09 Data Link LayerFlow Control.ppt09 Data Link LayerFlow Control.ppt
09 Data Link LayerFlow Control.ppt
ShaliniKumariGupta1
 
Micro project on ARQ
Micro project on ARQMicro project on ARQ
Micro project on ARQ
Faizaan Ahmed Khan
 
Protocols
ProtocolsProtocols
Sliding window protocol(ARQ technique)
Sliding window protocol(ARQ technique)Sliding window protocol(ARQ technique)
Sliding window protocol(ARQ technique)
shilpa patel
 

Similar to Flow Control (20)

session -7 - Sliding Window Protocol 1- N oisy Channels.ppt
session -7 - Sliding Window Protocol 1- N oisy Channels.pptsession -7 - Sliding Window Protocol 1- N oisy Channels.ppt
session -7 - Sliding Window Protocol 1- N oisy Channels.ppt
 
Lecture 20
Lecture 20Lecture 20
Lecture 20
 
Flowctrl
FlowctrlFlowctrl
Flowctrl
 
Unit IV_Flow.pptx
Unit IV_Flow.pptxUnit IV_Flow.pptx
Unit IV_Flow.pptx
 
Presentation on dll
Presentation on dllPresentation on dll
Presentation on dll
 
PROTOCOL ICT.pptx
PROTOCOL ICT.pptxPROTOCOL ICT.pptx
PROTOCOL ICT.pptx
 
6 data linkcontrol
6  data linkcontrol6  data linkcontrol
6 data linkcontrol
 
Unit 2_ Flow & Error Control in computer networks
Unit 2_ Flow & Error Control in computer networksUnit 2_ Flow & Error Control in computer networks
Unit 2_ Flow & Error Control in computer networks
 
Reliablt transmission
Reliablt transmissionReliablt transmission
Reliablt transmission
 
8th lec flow and error control
8th lec   flow and error control8th lec   flow and error control
8th lec flow and error control
 
Lecture 24
Lecture 24Lecture 24
Lecture 24
 
Flow control &amp; error control
Flow control &amp; error controlFlow control &amp; error control
Flow control &amp; error control
 
Sliding window and error control
Sliding window and error controlSliding window and error control
Sliding window and error control
 
Computer network slides for easy prepration
Computer network slides for easy preprationComputer network slides for easy prepration
Computer network slides for easy prepration
 
Arq protocol part 2
Arq protocol part 2Arq protocol part 2
Arq protocol part 2
 
09 Data Link LayerFlow Control.ppt
09 Data Link LayerFlow Control.ppt09 Data Link LayerFlow Control.ppt
09 Data Link LayerFlow Control.ppt
 
Micro project on ARQ
Micro project on ARQMicro project on ARQ
Micro project on ARQ
 
Lecture 23
Lecture 23Lecture 23
Lecture 23
 
Protocols
ProtocolsProtocols
Protocols
 
Sliding window protocol(ARQ technique)
Sliding window protocol(ARQ technique)Sliding window protocol(ARQ technique)
Sliding window protocol(ARQ technique)
 

More from selvakumar_b1985

Triggering transmission
Triggering transmissionTriggering transmission
Triggering transmission
selvakumar_b1985
 
Token ring
Token ringToken ring
Token ring
selvakumar_b1985
 
Subnetting
SubnettingSubnetting
Subnetting
selvakumar_b1985
 
Email Security
Email SecurityEmail Security
Email Security
selvakumar_b1985
 
RIP - Routing Information Protocol
RIP - Routing Information ProtocolRIP - Routing Information Protocol
RIP - Routing Information Protocol
selvakumar_b1985
 
Physical Mediums
Physical MediumsPhysical Mediums
Physical Mediums
selvakumar_b1985
 
OSPF - Routing Protocol
OSPF - Routing ProtocolOSPF - Routing Protocol
OSPF - Routing Protocol
selvakumar_b1985
 
Layering and Architecture
Layering and ArchitectureLayering and Architecture
Layering and Architecture
selvakumar_b1985
 
Issues in Data Link Layer
Issues in Data Link LayerIssues in Data Link Layer
Issues in Data Link Layer
selvakumar_b1985
 
Internetworking - IP
Internetworking - IPInternetworking - IP
Internetworking - IP
selvakumar_b1985
 
ICMP
ICMPICMP
Hybrid Channel Access Link
Hybrid Channel Access LinkHybrid Channel Access Link
Hybrid Channel Access Link
selvakumar_b1985
 
Hypertext Transfer Protocol
Hypertext Transfer ProtocolHypertext Transfer Protocol
Hypertext Transfer Protocol
selvakumar_b1985
 
Addressing Scheme IPv4
Addressing Scheme IPv4Addressing Scheme IPv4
Addressing Scheme IPv4
selvakumar_b1985
 
File Transfer Protocol
File Transfer ProtocolFile Transfer Protocol
File Transfer Protocol
selvakumar_b1985
 
Framing Protocols
Framing ProtocolsFraming Protocols
Framing Protocols
selvakumar_b1985
 
FDDI
FDDIFDDI
Ethernet
EthernetEthernet
Error control
Error controlError control
Error control
selvakumar_b1985
 
DNS
DNS DNS

More from selvakumar_b1985 (20)

Triggering transmission
Triggering transmissionTriggering transmission
Triggering transmission
 
Token ring
Token ringToken ring
Token ring
 
Subnetting
SubnettingSubnetting
Subnetting
 
Email Security
Email SecurityEmail Security
Email Security
 
RIP - Routing Information Protocol
RIP - Routing Information ProtocolRIP - Routing Information Protocol
RIP - Routing Information Protocol
 
Physical Mediums
Physical MediumsPhysical Mediums
Physical Mediums
 
OSPF - Routing Protocol
OSPF - Routing ProtocolOSPF - Routing Protocol
OSPF - Routing Protocol
 
Layering and Architecture
Layering and ArchitectureLayering and Architecture
Layering and Architecture
 
Issues in Data Link Layer
Issues in Data Link LayerIssues in Data Link Layer
Issues in Data Link Layer
 
Internetworking - IP
Internetworking - IPInternetworking - IP
Internetworking - IP
 
ICMP
ICMPICMP
ICMP
 
Hybrid Channel Access Link
Hybrid Channel Access LinkHybrid Channel Access Link
Hybrid Channel Access Link
 
Hypertext Transfer Protocol
Hypertext Transfer ProtocolHypertext Transfer Protocol
Hypertext Transfer Protocol
 
Addressing Scheme IPv4
Addressing Scheme IPv4Addressing Scheme IPv4
Addressing Scheme IPv4
 
File Transfer Protocol
File Transfer ProtocolFile Transfer Protocol
File Transfer Protocol
 
Framing Protocols
Framing ProtocolsFraming Protocols
Framing Protocols
 
FDDI
FDDIFDDI
FDDI
 
Ethernet
EthernetEthernet
Ethernet
 
Error control
Error controlError control
Error control
 
DNS
DNS DNS
DNS
 

Recently uploaded

一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
bakpo1
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
ankuprajapati0525
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
seandesed
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
MdTanvirMahtab2
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
Jayaprasanna4
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
Amil Baba Dawood bangali
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
AJAYKUMARPUND1
 
Democratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek AryaDemocratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek Arya
abh.arya
 
Event Management System Vb Net Project Report.pdf
Event Management System Vb Net  Project Report.pdfEvent Management System Vb Net  Project Report.pdf
Event Management System Vb Net Project Report.pdf
Kamal Acharya
 
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdfCOLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
Kamal Acharya
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
obonagu
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
Divya Somashekar
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Dr.Costas Sachpazis
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
ViniHema
 
Vaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdfVaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdf
Kamal Acharya
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
VENKATESHvenky89705
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
fxintegritypublishin
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
Kamal Acharya
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
Osamah Alsalih
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
JoytuBarua2
 

Recently uploaded (20)

一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
 
Democratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek AryaDemocratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek Arya
 
Event Management System Vb Net Project Report.pdf
Event Management System Vb Net  Project Report.pdfEvent Management System Vb Net  Project Report.pdf
Event Management System Vb Net Project Report.pdf
 
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdfCOLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
 
Vaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdfVaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdf
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
 

Flow Control

  • 2. Flow Control Flow Control – specifies how much data the sender can transmit before receiving permission or acknowledgement to continue from the receiver. Flow Control Sliding WindowStop and Wait
  • 3. Stop and Wait Sender sends one frame at a time stops until it receives the confirmation (Acknowledgement) from the receiver and then sends the next frame. Acknowledgement – small control frame that a protocol (receiver side) sends back to the sender saying that it has received an earlier frame. Control frame – frame with header only. (No data is in control frame) Timeout period may vary for different frame transmission. Advantage: ◦ Simplicity Disadvantage: ◦ Inefficiency i.e., it allows sender to have only one outstanding frame on the link.
  • 5. Sliding Window Sender can transmit several frames continuously before needing an ACK. If ACK received by the sender before continuous transmission is finished, sender can transmit. An ACK can acknowledge the correct receipt of multiple frames at a receiver (cumulative ACK). Sender assigns a frame number to each frame. Frames are numbered “modulo n”. i.e., 0 to n-1, 0, 1, 2 …n-1, 0, 1, 2 …n-1, 0, 1 … n-1…
  • 7. Sliding Window  Sender maintains three variables, o Sender Window Size (SWS) o Last ACK Received (LAR) – frame number of the last acknowledgement received. o Last Frame Sent (LFS) – frame number of the last frame sent. LFS – LAR ≤ SWS
  • 8. Sliding Window Moves to the right frame by frame, when a frame is sent Moves to the right, the size of several frames at a time, when an ACK is received
  • 9. Sliding Window o When an acknowledgement received, the sender moves LAR to the right, thereby allowing the sender to transmit another frame. o Sender has to buffer the frame up to SWS frames for retransmission purpose.
  • 10. Sliding Window  Receiver maintains three variables, o Receiver Window Size (RWS) – upper bound on the number of out of order frames that the receiver is willing to accept. o Largest Acceptable Frame (LAF) – frame number of the largest acceptable frame. o Last Frame Received (LFR) – frame number of the last frame received. LAF – LFR ≤ RWS
  • 11. Sliding Window Moves to the right frame by frame, when a frame is received Moves to the right the size of the several frames at a time, when an ACK is sent.
  • 12. Sliding Window  When a frame with sequence number SeqNum arrives, If SeqNum ≤ LFR or SeqNum > LAF - Discard it (the frame is outside the receiver window) If LFR < SeqNum ≤ LAF - Accept it - Now the receiver needs to decide whether or not to send an ACK
  • 14. Automatic Repeat Request Automatic Repeat Request (ARQ)  Retransmission of lost or damaged frame is referred as Automatic Repeat Request.  Retransmission taken place, o When error occurs in frame, receiver sends an NAK (Negative Acknowledgement) explicitly to the sender. o When the sender’s timer expires (due to error frame, frame lost or ACK lost), it triggers the retransmission. Timeout – the expected delay for sender to receive ACK for the frame
  • 15. Automatic Repeat Request Selective Repeat ARQ Sliding Window ARQ Stop and Wait ARQ ARQ Go – Back - N ARQ
  • 16. Stop and Wait ARQ  Extension of stop and wait protocol.  Receiver sends an ACK if frame is correctly received. Sender waits for an ACK before transmitting the next frame. Retransmission, - If sender does not receive anything before timeout period expires (due to frame lost or ACK lost), it retransmits the frame. - Suppose if sender receives the NAK (error in frame or damaged frame), it retransmits that error frame.
  • 18. Sliding Window ARQ Sliding Window ARQ Two approaches,  Go – Back – N ARQ  Selective Repeat ARQ Go – Back – N ARQ: – Go – Back – N uses sliding window flow control protocol. – If no errors occur the operations are similar to sliding window. – A station may send multiple frames as allowed by the window. Retransmission,  Receiver sends a NAK ‘i’ if frame ‘i’ contains error (or) frame ‘i’ was lost (i.e., out of order frame). After that receiver discards all frames until the error frame (or) lost frame was correctly retransmitted.  If sender receives the NAK for frame ‘i’ it will retransmit frame ‘i’ and all frames i+1, i+2… which have been sent, but not been acknowledged.
  • 22. Sliding Window ARQ Selective Repeat ARQ – Here sender only retransmits frames for which NAK is received. Advantage over Go – Back – N,  Fewer retransmissions Disadvantages,  More complex at sender and receiver.  Each frame must be acknowledged individually (no cumulative acknowledgement). Receiver may receive out of sequence frames.
  • 23. Sliding Window ARQ For ACK / NAK loss, Go – Back – N is used. i.e., selective repeat work similar to Go – Back – N.