SlideShare une entreprise Scribd logo
1  sur  21
GO-BACK-N PROTOCOL
DONE BY:
STEFFY.D(140071601072)
SHEREEN FATHIMA.A(140071601068)
TASNIM TABASUM.R(140071601080)
COMPUTER NETWORKS LAB
B.S.ABDUR RAHMAN UNIVERSITY
CONTENTS
• ARQ
• Definition
• Why we need GBN?
• Sender window size.
• Receiver window size.
• Data packet is lost.
• Acknowledgement
• Advantages
Automatic Repeat Request(ARQ)
• Systems which automatically request the retransmission of missing
packets or packets with errors are called ARQ systems.
Three common schemes are used:
• Stop & Wait
• Go Back N
• Selective Repeat
DEFINITION
• Go-Back-N ARQ is a specific instance of the automatic repeat request
(ARQ) protocol, in which the sending process continues to send a number
of frames specified by a window size even without receiving an
acknowledgement(ACK) packet from the receiver.
• GBN is a practical approach of sliding window protocol.
Why we need GBN?
• To improve efficiency of transmission.
• To send more than one frames at a time.
• To reduce waiting time of the sender .
• (i.e.)Sender is waiting for an acknowledgement from the
receiver.
Sender sliding Window
• Sender can transmit N frames before receiving ACK.
• Its window size will be N.
• Sender will maintain a copy of sent packets in sent buffer until for the
particular sent packets are acknowledged.
• Sender will resend all packets if the timeout timer runs out.
• Once data get acknowledged by the receiver, that particular data will be
removed from the buffer.
Receiver sliding window
• Size of the window at the receiving
site is always 1 in this protocol.
• Receiver is always looking for a
specific frame to arrive in a specific
order.
• Any frame arriving out of order is
discarded and needs to be resent.
• Receiver window slides as shown in
fig. Receiver is waiting for frame 0
in part a.
Receiver sliding window
• Receiver sends positive ACK if a frame arrived safe and in order.
• The silence of the receiver causes the timer of the unacknowledged frame to expire.
• Then the sender resends all frames, beginning with the one with the expired timer.
• For example, suppose the sender has sent frame 6, but the timer for frame 3 expires (i.e.
frame 3 has not been acknowledged), then the sender goes back and sends frames 3, 4, 5,
6 again. Thus it is called Go-Back-N-ARQ
• The receiver does not have to acknowledge each frame received, it can send one
cumulative ACK for several frames.
Sender window size.
• Sender window size in GBN is N itself.
• N value must be greater than 1
• If N value is equal to 1,then it is stop & wait protocol.
Representation:
GBN=GB10=>N=10=>sender window size.
Receiver window size
• Receiver window size is always 1.
Let us consider an example,GB4=>N=4=>sender window size.
SENDER RECEIVER
3 2 1 0 0
1
0
2
3
1 2 3
Ack0
Ack1
Ack2
Ack3
Normal operation
Data packet is lost
0
1
2
3
3 2 1 0
SENDER RECEIVER
Ack 0
Ack 1
T0 timer
2
3
0 1
Retransmission
45
4
5
5
4
1
0
2
3
Acknowledgement
• There are two types of acknowledgement used in GBN
•Cumulative Acknowledgement
•Independent Acknowledgement
COMPARISON
Cumulative Acknowledgement
• Traffic is less
• Reliability is less
Independent Acknowledgement
• Traffic is more
• Reliability is more
Graphical Representations
Cumulative Acknowledgement
1 0
Independent Acknowledgement
0 1
0
1
0
1
Ack 0
Ack 1
1 0
sender
Receiver sender Receiver
0 1
Acknowledgement Timer
0
1
2
3Ack 2
Ack 4
3 2 1 0 0 1 2 3
Acknowledgement timer
sender
case: 1
Acknowledgement Timer is too big:
• ADVANTAGE :
More packets can be acknowledged at a time at the receiver
side.
• DISADVANTAGE:
Timeout(To) timer runs out at the sender side.
Case : 2
Acknowledgement Timer is too small:
• DISADVANTAGE: Acknowledgement will be send by the receiver for
every packets.
• So , Acknowledgement timer should not be too small or too big. It should
be a timer with fixed size.
• Timeout timer must be greater than the Acknowledgement timer.
Relation between window size and sequence
number
3 2 1 0
0
0
1
2
3To
3 0 121
0
1
2
3
2 3
Duplicate packets
ADVANTAGES
• The sender can send many frames at a time.
• Timer can be set for a group of frames.
• Only one ACK can acknowledge one or more frames.
• Efficiency is more.
• Waiting time is pretty low.
Points to be remembered
• Sender window size is N & N value must be greater than 1
• Receiver window size is always 1
• There are two types of acknowledgement in GBN
•Cumulative Acknowledgement
•Independent acknowledgement
Go-Back-N Protocol Explained

Contenu connexe

Tendances

Flow & Error Control
Flow & Error ControlFlow & Error Control
Flow & Error Controltameemyousaf
 
Sliding window protocol(ARQ technique)
Sliding window protocol(ARQ technique)Sliding window protocol(ARQ technique)
Sliding window protocol(ARQ technique)shilpa patel
 
Flow control & error control
Flow control & error controlFlow control & error control
Flow control & error controlManishTadhiyal
 
Congestion on computer network
Congestion on computer networkCongestion on computer network
Congestion on computer networkDisi Dc
 
QOS (Quality of Services) - Computer Networks
 QOS (Quality of Services) - Computer Networks QOS (Quality of Services) - Computer Networks
QOS (Quality of Services) - Computer NetworksIIIT Manipur
 
TCP- Transmission Control Protocol
TCP-  Transmission Control Protocol TCP-  Transmission Control Protocol
TCP- Transmission Control Protocol Akhil .B
 
Data link layer
Data link layerData link layer
Data link layersbkbca
 
Congestion control
Congestion controlCongestion control
Congestion controlAman Jaiswal
 
Multiple Access Protocal
Multiple Access ProtocalMultiple Access Protocal
Multiple Access Protocaltes31
 
Distance Vector Routing Protocols
Distance Vector Routing ProtocolsDistance Vector Routing Protocols
Distance Vector Routing ProtocolsKABILESH RAMAR
 
Network Layer,Computer Networks
Network Layer,Computer NetworksNetwork Layer,Computer Networks
Network Layer,Computer Networksguesta81d4b
 
MULTIPLE ACCESS PROTOCOL COMPUTER NETWORKS
MULTIPLE ACCESS PROTOCOL COMPUTER NETWORKS MULTIPLE ACCESS PROTOCOL COMPUTER NETWORKS
MULTIPLE ACCESS PROTOCOL COMPUTER NETWORKS garishma bhatia
 
Flow control in Computer Network
Flow control in Computer NetworkFlow control in Computer Network
Flow control in Computer NetworkAhtesham Ullah khan
 

Tendances (20)

Flow & Error Control
Flow & Error ControlFlow & Error Control
Flow & Error Control
 
Sliding window protocol(ARQ technique)
Sliding window protocol(ARQ technique)Sliding window protocol(ARQ technique)
Sliding window protocol(ARQ technique)
 
Flow control & error control
Flow control & error controlFlow control & error control
Flow control & error control
 
Congestion on computer network
Congestion on computer networkCongestion on computer network
Congestion on computer network
 
Media Access Control
Media Access ControlMedia Access Control
Media Access Control
 
QOS (Quality of Services) - Computer Networks
 QOS (Quality of Services) - Computer Networks QOS (Quality of Services) - Computer Networks
QOS (Quality of Services) - Computer Networks
 
Congestion control
Congestion controlCongestion control
Congestion control
 
TCP- Transmission Control Protocol
TCP-  Transmission Control Protocol TCP-  Transmission Control Protocol
TCP- Transmission Control Protocol
 
Congestion control in TCP
Congestion control in TCPCongestion control in TCP
Congestion control in TCP
 
Data link layer
Data link layerData link layer
Data link layer
 
Congestion control
Congestion controlCongestion control
Congestion control
 
Flow Control
Flow ControlFlow Control
Flow Control
 
Computer networks - Channelization
Computer networks - ChannelizationComputer networks - Channelization
Computer networks - Channelization
 
Multiple Access Protocal
Multiple Access ProtocalMultiple Access Protocal
Multiple Access Protocal
 
Multiple access protocol
Multiple access protocolMultiple access protocol
Multiple access protocol
 
Distance Vector Routing Protocols
Distance Vector Routing ProtocolsDistance Vector Routing Protocols
Distance Vector Routing Protocols
 
Network Layer,Computer Networks
Network Layer,Computer NetworksNetwork Layer,Computer Networks
Network Layer,Computer Networks
 
MULTIPLE ACCESS PROTOCOL COMPUTER NETWORKS
MULTIPLE ACCESS PROTOCOL COMPUTER NETWORKS MULTIPLE ACCESS PROTOCOL COMPUTER NETWORKS
MULTIPLE ACCESS PROTOCOL COMPUTER NETWORKS
 
Application layer protocols
Application layer protocolsApplication layer protocols
Application layer protocols
 
Flow control in Computer Network
Flow control in Computer NetworkFlow control in Computer Network
Flow control in Computer Network
 

En vedette

US APPAREL BOARDSHORT CATALOG 2017
US APPAREL BOARDSHORT CATALOG 2017US APPAREL BOARDSHORT CATALOG 2017
US APPAREL BOARDSHORT CATALOG 2017Joyce Orloff
 
Health and Wellness Coaching
Health and Wellness CoachingHealth and Wellness Coaching
Health and Wellness CoachingTIM ELLIS
 
NaHHA Annual Report 2014
NaHHA Annual Report 2014NaHHA Annual Report 2014
NaHHA Annual Report 2014iHawaiidigital
 
Hotel z pomysłem - Cinema Residence
Hotel z pomysłem - Cinema Residence Hotel z pomysłem - Cinema Residence
Hotel z pomysłem - Cinema Residence Cinema Hotel
 

En vedette (9)

Aug.11
Aug.11Aug.11
Aug.11
 
US APPAREL BOARDSHORT CATALOG 2017
US APPAREL BOARDSHORT CATALOG 2017US APPAREL BOARDSHORT CATALOG 2017
US APPAREL BOARDSHORT CATALOG 2017
 
SWISS BULLION
SWISS BULLIONSWISS BULLION
SWISS BULLION
 
Article
ArticleArticle
Article
 
Health and Wellness Coaching
Health and Wellness CoachingHealth and Wellness Coaching
Health and Wellness Coaching
 
Colombia - Chile - Peru GRI Brochure
Colombia - Chile - Peru GRI BrochureColombia - Chile - Peru GRI Brochure
Colombia - Chile - Peru GRI Brochure
 
NaHHA Annual Report 2014
NaHHA Annual Report 2014NaHHA Annual Report 2014
NaHHA Annual Report 2014
 
Gideon
GideonGideon
Gideon
 
Hotel z pomysłem - Cinema Residence
Hotel z pomysłem - Cinema Residence Hotel z pomysłem - Cinema Residence
Hotel z pomysłem - Cinema Residence
 

Similaire à Go-Back-N Protocol Explained

Computer network slides for easy prepration
Computer network slides for easy preprationComputer network slides for easy prepration
Computer network slides for easy preprationmqasimsheikh5
 
8th lec flow and error control
8th lec   flow and error control8th lec   flow and error control
8th lec flow and error controlInocentshuja Ahmad
 
Module15: Sliding Windows Protocol and Error Control
Module15: Sliding Windows Protocol and Error Control Module15: Sliding Windows Protocol and Error Control
Module15: Sliding Windows Protocol and Error Control gondwe Ben
 
Flow control
Flow controlFlow control
Flow controlSTEFFY D
 
Transport layer
Transport layerTransport layer
Transport layersteffy1996
 
Flow control
Flow controlFlow control
Flow controlsteffy D
 
Computer networks unit iv
Computer networks    unit ivComputer networks    unit iv
Computer networks unit ivJAIGANESH SEKAR
 
Flow Control & Error control in Data Link Layer .ppt
Flow Control & Error control in Data Link Layer .pptFlow Control & Error control in Data Link Layer .ppt
Flow Control & Error control in Data Link Layer .pptErAnjuBala
 
Unit IV_Flow.pptx
Unit IV_Flow.pptxUnit IV_Flow.pptx
Unit IV_Flow.pptxTejasRao8
 
New framing-protocols
New framing-protocolsNew framing-protocols
New framing-protocolsNitesh Singh
 
Simplex stop and_wait_protocol
Simplex stop and_wait_protocolSimplex stop and_wait_protocol
Simplex stop and_wait_protocolMusfira Ameer
 
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.pptnanisrikar276711
 
sliding window protocol for datalink layer.ppt
sliding window protocol for datalink layer.pptsliding window protocol for datalink layer.ppt
sliding window protocol for datalink layer.pptManimegalaM3
 

Similaire à Go-Back-N Protocol Explained (20)

Transport layer protocols : Simple Protocol , Stop and Wait Protocol , Go-Bac...
Transport layer protocols : Simple Protocol , Stop and Wait Protocol , Go-Bac...Transport layer protocols : Simple Protocol , Stop and Wait Protocol , Go-Bac...
Transport layer protocols : Simple Protocol , Stop and Wait Protocol , Go-Bac...
 
Computer network slides for easy prepration
Computer network slides for easy preprationComputer network slides for easy prepration
Computer network slides for easy prepration
 
Flow control main
Flow control mainFlow control main
Flow control main
 
8th lec flow and error control
8th lec   flow and error control8th lec   flow and error control
8th lec flow and error control
 
Introduction to TCP
Introduction to TCPIntroduction to TCP
Introduction to TCP
 
09 coms 525 tcpip - tcp 2
09   coms 525 tcpip - tcp 209   coms 525 tcpip - tcp 2
09 coms 525 tcpip - tcp 2
 
Flow Control.pptx
Flow Control.pptxFlow Control.pptx
Flow Control.pptx
 
Go back.pptx
Go back.pptxGo back.pptx
Go back.pptx
 
Module15: Sliding Windows Protocol and Error Control
Module15: Sliding Windows Protocol and Error Control Module15: Sliding Windows Protocol and Error Control
Module15: Sliding Windows Protocol and Error Control
 
Flow control
Flow controlFlow control
Flow control
 
Transport layer
Transport layerTransport layer
Transport layer
 
Flow control
Flow controlFlow control
Flow control
 
Computer networks unit iv
Computer networks    unit ivComputer networks    unit iv
Computer networks unit iv
 
Tcp(no ip) review part1
Tcp(no ip) review part1Tcp(no ip) review part1
Tcp(no ip) review part1
 
Flow Control & Error control in Data Link Layer .ppt
Flow Control & Error control in Data Link Layer .pptFlow Control & Error control in Data Link Layer .ppt
Flow Control & Error control in Data Link Layer .ppt
 
Unit IV_Flow.pptx
Unit IV_Flow.pptxUnit IV_Flow.pptx
Unit IV_Flow.pptx
 
New framing-protocols
New framing-protocolsNew framing-protocols
New framing-protocols
 
Simplex stop and_wait_protocol
Simplex stop and_wait_protocolSimplex stop and_wait_protocol
Simplex stop and_wait_protocol
 
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
 
sliding window protocol for datalink layer.ppt
sliding window protocol for datalink layer.pptsliding window protocol for datalink layer.ppt
sliding window protocol for datalink layer.ppt
 

Dernier

Engineering Drawing section of solid
Engineering Drawing     section of solidEngineering Drawing     section of solid
Engineering Drawing section of solidnamansinghjarodiya
 
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor CatchersTechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catcherssdickerson1
 
"Exploring the Essential Functions and Design Considerations of Spillways in ...
"Exploring the Essential Functions and Design Considerations of Spillways in ..."Exploring the Essential Functions and Design Considerations of Spillways in ...
"Exploring the Essential Functions and Design Considerations of Spillways in ...Erbil Polytechnic University
 
Indian Dairy Industry Present Status and.ppt
Indian Dairy Industry Present Status and.pptIndian Dairy Industry Present Status and.ppt
Indian Dairy Industry Present Status and.pptMadan Karki
 
Crystal Structure analysis and detailed information pptx
Crystal Structure analysis and detailed information pptxCrystal Structure analysis and detailed information pptx
Crystal Structure analysis and detailed information pptxachiever3003
 
System Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event SchedulingSystem Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event SchedulingBootNeck1
 
Transport layer issues and challenges - Guide
Transport layer issues and challenges - GuideTransport layer issues and challenges - Guide
Transport layer issues and challenges - GuideGOPINATHS437943
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
DM Pillar Training Manual.ppt will be useful in deploying TPM in project
DM Pillar Training Manual.ppt will be useful in deploying TPM in projectDM Pillar Training Manual.ppt will be useful in deploying TPM in project
DM Pillar Training Manual.ppt will be useful in deploying TPM in projectssuserb6619e
 
Mine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptxMine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptxRomil Mishra
 
Industrial Safety Unit-IV workplace health and safety.ppt
Industrial Safety Unit-IV workplace health and safety.pptIndustrial Safety Unit-IV workplace health and safety.ppt
Industrial Safety Unit-IV workplace health and safety.pptNarmatha D
 
Ch10-Global Supply Chain - Cadena de Suministro.pdf
Ch10-Global Supply Chain - Cadena de Suministro.pdfCh10-Global Supply Chain - Cadena de Suministro.pdf
Ch10-Global Supply Chain - Cadena de Suministro.pdfChristianCDAM
 
Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...121011101441
 
Energy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptxEnergy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptxsiddharthjain2303
 
Correctly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleCorrectly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleAlluxio, Inc.
 
11. Properties of Liquid Fuels in Energy Engineering.pdf
11. Properties of Liquid Fuels in Energy Engineering.pdf11. Properties of Liquid Fuels in Energy Engineering.pdf
11. Properties of Liquid Fuels in Energy Engineering.pdfHafizMudaserAhmad
 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptSAURABHKUMAR892774
 

Dernier (20)

Engineering Drawing section of solid
Engineering Drawing     section of solidEngineering Drawing     section of solid
Engineering Drawing section of solid
 
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor CatchersTechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
 
Designing pile caps according to ACI 318-19.pptx
Designing pile caps according to ACI 318-19.pptxDesigning pile caps according to ACI 318-19.pptx
Designing pile caps according to ACI 318-19.pptx
 
"Exploring the Essential Functions and Design Considerations of Spillways in ...
"Exploring the Essential Functions and Design Considerations of Spillways in ..."Exploring the Essential Functions and Design Considerations of Spillways in ...
"Exploring the Essential Functions and Design Considerations of Spillways in ...
 
Indian Dairy Industry Present Status and.ppt
Indian Dairy Industry Present Status and.pptIndian Dairy Industry Present Status and.ppt
Indian Dairy Industry Present Status and.ppt
 
Design and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdfDesign and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdf
 
Crystal Structure analysis and detailed information pptx
Crystal Structure analysis and detailed information pptxCrystal Structure analysis and detailed information pptx
Crystal Structure analysis and detailed information pptx
 
System Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event SchedulingSystem Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event Scheduling
 
Transport layer issues and challenges - Guide
Transport layer issues and challenges - GuideTransport layer issues and challenges - Guide
Transport layer issues and challenges - Guide
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
DM Pillar Training Manual.ppt will be useful in deploying TPM in project
DM Pillar Training Manual.ppt will be useful in deploying TPM in projectDM Pillar Training Manual.ppt will be useful in deploying TPM in project
DM Pillar Training Manual.ppt will be useful in deploying TPM in project
 
Mine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptxMine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptx
 
Industrial Safety Unit-IV workplace health and safety.ppt
Industrial Safety Unit-IV workplace health and safety.pptIndustrial Safety Unit-IV workplace health and safety.ppt
Industrial Safety Unit-IV workplace health and safety.ppt
 
Ch10-Global Supply Chain - Cadena de Suministro.pdf
Ch10-Global Supply Chain - Cadena de Suministro.pdfCh10-Global Supply Chain - Cadena de Suministro.pdf
Ch10-Global Supply Chain - Cadena de Suministro.pdf
 
Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...
 
Energy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptxEnergy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptx
 
POWER SYSTEMS-1 Complete notes examples
POWER SYSTEMS-1 Complete notes  examplesPOWER SYSTEMS-1 Complete notes  examples
POWER SYSTEMS-1 Complete notes examples
 
Correctly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleCorrectly Loading Incremental Data at Scale
Correctly Loading Incremental Data at Scale
 
11. Properties of Liquid Fuels in Energy Engineering.pdf
11. Properties of Liquid Fuels in Energy Engineering.pdf11. Properties of Liquid Fuels in Energy Engineering.pdf
11. Properties of Liquid Fuels in Energy Engineering.pdf
 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.ppt
 

Go-Back-N Protocol Explained

  • 1. GO-BACK-N PROTOCOL DONE BY: STEFFY.D(140071601072) SHEREEN FATHIMA.A(140071601068) TASNIM TABASUM.R(140071601080) COMPUTER NETWORKS LAB B.S.ABDUR RAHMAN UNIVERSITY
  • 2. CONTENTS • ARQ • Definition • Why we need GBN? • Sender window size. • Receiver window size. • Data packet is lost. • Acknowledgement • Advantages
  • 3. Automatic Repeat Request(ARQ) • Systems which automatically request the retransmission of missing packets or packets with errors are called ARQ systems. Three common schemes are used: • Stop & Wait • Go Back N • Selective Repeat
  • 4. DEFINITION • Go-Back-N ARQ is a specific instance of the automatic repeat request (ARQ) protocol, in which the sending process continues to send a number of frames specified by a window size even without receiving an acknowledgement(ACK) packet from the receiver. • GBN is a practical approach of sliding window protocol.
  • 5. Why we need GBN? • To improve efficiency of transmission. • To send more than one frames at a time. • To reduce waiting time of the sender . • (i.e.)Sender is waiting for an acknowledgement from the receiver.
  • 6. Sender sliding Window • Sender can transmit N frames before receiving ACK. • Its window size will be N. • Sender will maintain a copy of sent packets in sent buffer until for the particular sent packets are acknowledged. • Sender will resend all packets if the timeout timer runs out. • Once data get acknowledged by the receiver, that particular data will be removed from the buffer.
  • 7. Receiver sliding window • Size of the window at the receiving site is always 1 in this protocol. • Receiver is always looking for a specific frame to arrive in a specific order. • Any frame arriving out of order is discarded and needs to be resent. • Receiver window slides as shown in fig. Receiver is waiting for frame 0 in part a.
  • 8. Receiver sliding window • Receiver sends positive ACK if a frame arrived safe and in order. • The silence of the receiver causes the timer of the unacknowledged frame to expire. • Then the sender resends all frames, beginning with the one with the expired timer. • For example, suppose the sender has sent frame 6, but the timer for frame 3 expires (i.e. frame 3 has not been acknowledged), then the sender goes back and sends frames 3, 4, 5, 6 again. Thus it is called Go-Back-N-ARQ • The receiver does not have to acknowledge each frame received, it can send one cumulative ACK for several frames.
  • 9. Sender window size. • Sender window size in GBN is N itself. • N value must be greater than 1 • If N value is equal to 1,then it is stop & wait protocol. Representation: GBN=GB10=>N=10=>sender window size.
  • 10. Receiver window size • Receiver window size is always 1. Let us consider an example,GB4=>N=4=>sender window size. SENDER RECEIVER 3 2 1 0 0 1 0 2 3 1 2 3 Ack0 Ack1 Ack2 Ack3 Normal operation
  • 11. Data packet is lost 0 1 2 3 3 2 1 0 SENDER RECEIVER Ack 0 Ack 1 T0 timer 2 3 0 1 Retransmission 45 4 5 5 4 1 0 2 3
  • 12. Acknowledgement • There are two types of acknowledgement used in GBN •Cumulative Acknowledgement •Independent Acknowledgement
  • 13. COMPARISON Cumulative Acknowledgement • Traffic is less • Reliability is less Independent Acknowledgement • Traffic is more • Reliability is more
  • 14. Graphical Representations Cumulative Acknowledgement 1 0 Independent Acknowledgement 0 1 0 1 0 1 Ack 0 Ack 1 1 0 sender Receiver sender Receiver 0 1
  • 15. Acknowledgement Timer 0 1 2 3Ack 2 Ack 4 3 2 1 0 0 1 2 3 Acknowledgement timer sender
  • 16. case: 1 Acknowledgement Timer is too big: • ADVANTAGE : More packets can be acknowledged at a time at the receiver side. • DISADVANTAGE: Timeout(To) timer runs out at the sender side.
  • 17. Case : 2 Acknowledgement Timer is too small: • DISADVANTAGE: Acknowledgement will be send by the receiver for every packets. • So , Acknowledgement timer should not be too small or too big. It should be a timer with fixed size. • Timeout timer must be greater than the Acknowledgement timer.
  • 18. Relation between window size and sequence number 3 2 1 0 0 0 1 2 3To 3 0 121 0 1 2 3 2 3 Duplicate packets
  • 19. ADVANTAGES • The sender can send many frames at a time. • Timer can be set for a group of frames. • Only one ACK can acknowledge one or more frames. • Efficiency is more. • Waiting time is pretty low.
  • 20. Points to be remembered • Sender window size is N & N value must be greater than 1 • Receiver window size is always 1 • There are two types of acknowledgement in GBN •Cumulative Acknowledgement •Independent acknowledgement