SlideShare a Scribd company logo
1 of 24
Presented by-
Bhupendra sahu
BCA 2nd year
DSVV Haridwar
Error Control
• Error control includes both error detection and error
correction.
• It allows the receiver to inform the sender if a frame
is lost or damaged during transmission and
coordinates the retransmission of those frames by
the sender.
• Error control in the data link layer is based on
automatic repeat request (ARQ). Whenever an error
is detected, specified frames are retransmitted.
According to Behrouz A.Forouzan
 At the sending node, a frame in a data-link layer need to be
changed to bits, transformed to be electromagnetic signals,
and transmitted through the transmission media.
 At the receiving node, electromagnetic signals are received,
transformed to bits and put together to create a frame.
 Since electromagnetic signals are susceptible to error, and a
frame is susceptible to error.
 The error need first to be detected . After detection, it need
to be either corrected at the receiver node or discarded and
retransmitted by sending node.
Error Types
Single-bit error
Multiple-bit error
Burst error
How error occurs
 A burst error is more likely to occur than a single bit
error because the duration of the noise signal is
normally longer than the duration of 1 bit,which
means that when noise affect data, it affects a set of
bits.
 The number of bits affected depends on the data rates
and the duration of noise.
 Ex-if we sending data at 1 kbps, a noise of 1/100 second
can affect 10 bits, if we sending data at 1 mbps the
same noise can affect 10,000 bits.
Two Basic forms of Error control:-
 Stop-and-wait error control
 Sliding window error control
Stop-and-Wait Error Control
 Stop-and-wait is the simplest of the error control
protocols
 A transmitter sends a frame then stops and waits for an
acknowledgment
 If a positive acknowledgment (ACK) is received, the next
frame is sent
 If a negative acknowledgment (NAK) is received, the
same frame is transmitted again
Stop-and-Wait Error Control (continued)
Sliding Window Error Control
 These techniques assume that multiple frames are in
transmission at one time
 A sliding window protocol allows the transmitter to
send a number of data packets at one time before
receiving any acknowledgments
 Depends on window size
 When a receiver does acknowledge receipt, the
returned ACK contains the number of the frame
expected next
Sliding Window Error Control (continued)
Sliding Window Error Control (continued)
 Older sliding window protocols numbered each frame
or packet that was transmitted
 More modern sliding window protocols number each
byte within a frame
 An example in which the packets are numbered,
followed by an example in which the bytes are
numbered:
Sliding Window Error Control (continued)
Sliding Window Error Control (continued)
Sliding Window Error Control (continued)
 Notice that an ACK is not always sent after each frame
is received
 It is more efficient to wait for a few received frames
before returning an ACK
 How long should you wait until you return an ACK?
Sliding Window Error Control (continued)
 Using TCP/IP, there are some basic rules concerning ACKs:
 Rule 1: If a receiver just received data and wants to send
its own data, piggyback an ACK along with that data
 Rule 2: If a receiver has no data to return and has just
ACKed the last packet, receiver waits 500 ms for another
packet
 If while waiting, another packet arrives, send the ACK
immediately
 Rule 3: If a receiver has no data to return and has just
ACKed the last packet, receiver waits 500 ms
 No packet, send ACK
Sliding Window Error Control (continued)
Sliding Window Error Control (continued)
 What happens when a packet is lost?
 As shown in the next slide, if a frame is lost, the
following frame will be “out of sequence”
 The receiver will hold the out of sequence bytes in a
buffer and request the sender to retransmit the
missing frame
Sliding Window Error Control (continued)
Sliding Window Error Control (continued)
 What happens when an ACK is lost?
 As shown in the next slide, if an ACK is lost, the sender
will wait for the ACK to arrive and eventually time out
 When the time-out occurs, the sender will resend the
last frame
Sliding Window Error Control (continued)
Error control

More Related Content

What's hot

data-link layer protocols
data-link layer protocols  data-link layer protocols
data-link layer protocols BE Smârt
 
Flow & Error Control
Flow & Error ControlFlow & Error Control
Flow & Error Controltameemyousaf
 
Routing algorithm
Routing algorithmRouting algorithm
Routing algorithmBushra M
 
Network Layer,Computer Networks
Network Layer,Computer NetworksNetwork Layer,Computer Networks
Network Layer,Computer Networksguesta81d4b
 
Go back-n protocol
Go back-n protocolGo back-n protocol
Go back-n protocolSTEFFY D
 
Multiple Access Protocal
Multiple Access ProtocalMultiple Access Protocal
Multiple Access Protocaltes31
 
Error Correction And Hamming Code Ibrar
Error Correction And Hamming Code IbrarError Correction And Hamming Code Ibrar
Error Correction And Hamming Code Ibraribrar562
 
Leaky Bucket & Tocken Bucket - Traffic shaping
Leaky Bucket & Tocken Bucket - Traffic shapingLeaky Bucket & Tocken Bucket - Traffic shaping
Leaky Bucket & Tocken Bucket - Traffic shapingVimal Dewangan
 
Flow control and error control
Flow control and error controlFlow control and error control
Flow control and error controlBHUVIJAYAVELU
 
Presentation Routing algorithm
Presentation Routing algorithmPresentation Routing algorithm
Presentation Routing algorithmBasit Hussain
 
Sliding window and error control
Sliding window and error controlSliding window and error control
Sliding window and error controlAdil Mehmoood
 

What's hot (20)

data-link layer protocols
data-link layer protocols  data-link layer protocols
data-link layer protocols
 
Flow & Error Control
Flow & Error ControlFlow & Error Control
Flow & Error Control
 
Routing algorithm
Routing algorithmRouting algorithm
Routing algorithm
 
Transport layer
Transport layerTransport layer
Transport layer
 
Sliding window protocol
Sliding window protocolSliding window protocol
Sliding window protocol
 
Data Link Layer| Error Detection
Data Link Layer| Error DetectionData Link Layer| Error Detection
Data Link Layer| Error Detection
 
Network Layer,Computer Networks
Network Layer,Computer NetworksNetwork Layer,Computer Networks
Network Layer,Computer Networks
 
Go back-n protocol
Go back-n protocolGo back-n protocol
Go back-n protocol
 
Multiple Access Protocal
Multiple Access ProtocalMultiple Access Protocal
Multiple Access Protocal
 
Check sum
Check sumCheck sum
Check sum
 
Error Correction And Hamming Code Ibrar
Error Correction And Hamming Code IbrarError Correction And Hamming Code Ibrar
Error Correction And Hamming Code Ibrar
 
Distance vector routing
Distance vector routingDistance vector routing
Distance vector routing
 
Stop-and-Wait ARQ Protocol
Stop-and-Wait ARQ ProtocolStop-and-Wait ARQ Protocol
Stop-and-Wait ARQ Protocol
 
Leaky Bucket & Tocken Bucket - Traffic shaping
Leaky Bucket & Tocken Bucket - Traffic shapingLeaky Bucket & Tocken Bucket - Traffic shaping
Leaky Bucket & Tocken Bucket - Traffic shaping
 
Multiple access protocol
Multiple access protocolMultiple access protocol
Multiple access protocol
 
Csma
CsmaCsma
Csma
 
Flow control and error control
Flow control and error controlFlow control and error control
Flow control and error control
 
Presentation Routing algorithm
Presentation Routing algorithmPresentation Routing algorithm
Presentation Routing algorithm
 
The medium access sublayer
 The medium  access sublayer The medium  access sublayer
The medium access sublayer
 
Sliding window and error control
Sliding window and error controlSliding window and error control
Sliding window and error control
 

Viewers also liked

Errror Detection and Correction
Errror Detection and CorrectionErrror Detection and Correction
Errror Detection and CorrectionMahesh Kumar Attri
 
Error control, parity check, check sum, vrc
Error control, parity check, check sum, vrcError control, parity check, check sum, vrc
Error control, parity check, check sum, vrcHuawei Technologies
 
Errors, Error Detection, and Error Control
Errors, Error Detection, and Error ControlErrors, Error Detection, and Error Control
Errors, Error Detection, and Error ControlAngel G Diaz
 
IEEE standards and Data Link Layer Protocol
IEEE standards and Data Link Layer ProtocolIEEE standards and Data Link Layer Protocol
IEEE standards and Data Link Layer ProtocolSajith Ekanayaka
 
oil gas industry guidelines | Michael Bowen
 oil gas industry guidelines | Michael Bowen oil gas industry guidelines | Michael Bowen
oil gas industry guidelines | Michael BowenMichael Bowen oil and gas
 
GROUP03_AMAK:ERROR DETECTION AND CORRECTION PPT
GROUP03_AMAK:ERROR DETECTION AND CORRECTION PPTGROUP03_AMAK:ERROR DETECTION AND CORRECTION PPT
GROUP03_AMAK:ERROR DETECTION AND CORRECTION PPTKrishbathija
 
Error Detection and Correction - Data link Layer
Error Detection and Correction - Data link LayerError Detection and Correction - Data link Layer
Error Detection and Correction - Data link LayerAbdullaziz Tagawy
 
Network Fundamentals: Ch7 - Data Link Layer
Network Fundamentals: Ch7 - Data Link LayerNetwork Fundamentals: Ch7 - Data Link Layer
Network Fundamentals: Ch7 - Data Link LayerAbdelkhalik Mosa
 
Error detection and correction
Error detection and correctionError detection and correction
Error detection and correctionSiddique Ibrahim
 
TCP/IP Model
TCP/IP ModelTCP/IP Model
TCP/IP Modelfarhan516
 
TCP-IP Reference Model
TCP-IP Reference ModelTCP-IP Reference Model
TCP-IP Reference ModelMukesh Tekwani
 
TCP/IP Network ppt
TCP/IP Network pptTCP/IP Network ppt
TCP/IP Network pptextraganesh
 
The Data Link Layer
The Data Link LayerThe Data Link Layer
The Data Link Layerrobbbminson
 

Viewers also liked (19)

Errror Detection and Correction
Errror Detection and CorrectionErrror Detection and Correction
Errror Detection and Correction
 
Error control, parity check, check sum, vrc
Error control, parity check, check sum, vrcError control, parity check, check sum, vrc
Error control, parity check, check sum, vrc
 
Flow control
Flow controlFlow control
Flow control
 
Errors, Error Detection, and Error Control
Errors, Error Detection, and Error ControlErrors, Error Detection, and Error Control
Errors, Error Detection, and Error Control
 
IEEE standards and Data Link Layer Protocol
IEEE standards and Data Link Layer ProtocolIEEE standards and Data Link Layer Protocol
IEEE standards and Data Link Layer Protocol
 
oil gas industry guidelines | Michael Bowen
 oil gas industry guidelines | Michael Bowen oil gas industry guidelines | Michael Bowen
oil gas industry guidelines | Michael Bowen
 
Datalinklayer tanenbaum
Datalinklayer tanenbaumDatalinklayer tanenbaum
Datalinklayer tanenbaum
 
DDL and Physical Layer
DDL and Physical LayerDDL and Physical Layer
DDL and Physical Layer
 
Data Link Layer
Data Link LayerData Link Layer
Data Link Layer
 
GROUP03_AMAK:ERROR DETECTION AND CORRECTION PPT
GROUP03_AMAK:ERROR DETECTION AND CORRECTION PPTGROUP03_AMAK:ERROR DETECTION AND CORRECTION PPT
GROUP03_AMAK:ERROR DETECTION AND CORRECTION PPT
 
Error Detection and Correction - Data link Layer
Error Detection and Correction - Data link LayerError Detection and Correction - Data link Layer
Error Detection and Correction - Data link Layer
 
Network Fundamentals: Ch7 - Data Link Layer
Network Fundamentals: Ch7 - Data Link LayerNetwork Fundamentals: Ch7 - Data Link Layer
Network Fundamentals: Ch7 - Data Link Layer
 
Error detection and correction
Error detection and correctionError detection and correction
Error detection and correction
 
TCP/IP Model
TCP/IP ModelTCP/IP Model
TCP/IP Model
 
Error correction, ARQ, FEC
Error correction, ARQ, FECError correction, ARQ, FEC
Error correction, ARQ, FEC
 
TCP-IP Reference Model
TCP-IP Reference ModelTCP-IP Reference Model
TCP-IP Reference Model
 
Flow Control
Flow ControlFlow Control
Flow Control
 
TCP/IP Network ppt
TCP/IP Network pptTCP/IP Network ppt
TCP/IP Network ppt
 
The Data Link Layer
The Data Link LayerThe Data Link Layer
The Data Link Layer
 

Similar to Error control

Unit IV_Flow.pptx
Unit IV_Flow.pptxUnit IV_Flow.pptx
Unit IV_Flow.pptxTejasRao8
 
CN UNIT-3 PPT R20 computer networks .pptx
CN UNIT-3 PPT R20 computer networks .pptxCN UNIT-3 PPT R20 computer networks .pptx
CN UNIT-3 PPT R20 computer networks .pptxSrinuM21
 
09 Data Link LayerFlow Control.ppt
09 Data Link LayerFlow Control.ppt09 Data Link LayerFlow Control.ppt
09 Data Link LayerFlow Control.pptShaliniKumariGupta1
 
Error detection and correction
Error detection and correctionError detection and correction
Error detection and correctionCathryn Kuteesa
 
Unit 2 data link control
Unit 2 data link controlUnit 2 data link control
Unit 2 data link controlVishal kakade
 
Flow Control (1).ppt
Flow Control (1).pptFlow Control (1).ppt
Flow Control (1).pptsarthakgithub
 
Different protocols for data communication networks
Different protocols for data communication networks Different protocols for data communication networks
Different protocols for data communication networks Nt Arvind
 
Data Link Control Protocols
Data Link Control ProtocolsData Link Control Protocols
Data Link Control ProtocolsTechiNerd
 
Data link control & protocol concepts
Data link control & protocol conceptsData link control & protocol concepts
Data link control & protocol conceptsRaji Lakshmi
 
Data linkcontrol
Data linkcontrolData linkcontrol
Data linkcontrolBablu Shofi
 
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
 
Datalink control(framing,protocols)
Datalink control(framing,protocols)Datalink control(framing,protocols)
Datalink control(framing,protocols)Hira Awan
 

Similar to Error control (20)

Unit IV_Flow.pptx
Unit IV_Flow.pptxUnit IV_Flow.pptx
Unit IV_Flow.pptx
 
CN UNIT-3 PPT R20 computer networks .pptx
CN UNIT-3 PPT R20 computer networks .pptxCN UNIT-3 PPT R20 computer networks .pptx
CN UNIT-3 PPT R20 computer networks .pptx
 
09 Data Link LayerFlow Control.ppt
09 Data Link LayerFlow Control.ppt09 Data Link LayerFlow Control.ppt
09 Data Link LayerFlow Control.ppt
 
Data link layer (Unit 2).pdf
Data link layer (Unit 2).pdfData link layer (Unit 2).pdf
Data link layer (Unit 2).pdf
 
Error detection and correction
Error detection and correctionError detection and correction
Error detection and correction
 
Flowctrl
FlowctrlFlowctrl
Flowctrl
 
stop and wait
stop and waitstop and wait
stop and wait
 
DATA LINK LAYER.pdf
DATA LINK LAYER.pdfDATA LINK LAYER.pdf
DATA LINK LAYER.pdf
 
Unit 2 data link control
Unit 2 data link controlUnit 2 data link control
Unit 2 data link control
 
07 data linkcontrol
07 data linkcontrol07 data linkcontrol
07 data linkcontrol
 
Presentation on dll
Presentation on dllPresentation on dll
Presentation on dll
 
Micro project on ARQ
Micro project on ARQMicro project on ARQ
Micro project on ARQ
 
Transport layer
Transport layerTransport layer
Transport layer
 
Flow Control (1).ppt
Flow Control (1).pptFlow Control (1).ppt
Flow Control (1).ppt
 
Different protocols for data communication networks
Different protocols for data communication networks Different protocols for data communication networks
Different protocols for data communication networks
 
Data Link Control Protocols
Data Link Control ProtocolsData Link Control Protocols
Data Link Control Protocols
 
Data link control & protocol concepts
Data link control & protocol conceptsData link control & protocol concepts
Data link control & protocol concepts
 
Data linkcontrol
Data linkcontrolData linkcontrol
Data linkcontrol
 
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
 
Datalink control(framing,protocols)
Datalink control(framing,protocols)Datalink control(framing,protocols)
Datalink control(framing,protocols)
 

Recently uploaded

How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17Celine George
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
dusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learningdusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learningMarc Dusseiller Dusjagr
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17Celine George
 
AIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptAIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptNishitharanjan Rout
 
Basic Intentional Injuries Health Education
Basic Intentional Injuries Health EducationBasic Intentional Injuries Health Education
Basic Intentional Injuries Health EducationNeilDeclaro1
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxPooja Bhuva
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsSandeep D Chaudhary
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsNbelano25
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Pooja Bhuva
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17Celine George
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxCeline George
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
 

Recently uploaded (20)

Call Girls in Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in  Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in  Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
 
How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
dusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learningdusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learning
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17
 
AIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptAIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.ppt
 
Basic Intentional Injuries Health Education
Basic Intentional Injuries Health EducationBasic Intentional Injuries Health Education
Basic Intentional Injuries Health Education
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf arts
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 

Error control

  • 1. Presented by- Bhupendra sahu BCA 2nd year DSVV Haridwar
  • 2. Error Control • Error control includes both error detection and error correction. • It allows the receiver to inform the sender if a frame is lost or damaged during transmission and coordinates the retransmission of those frames by the sender. • Error control in the data link layer is based on automatic repeat request (ARQ). Whenever an error is detected, specified frames are retransmitted.
  • 3. According to Behrouz A.Forouzan  At the sending node, a frame in a data-link layer need to be changed to bits, transformed to be electromagnetic signals, and transmitted through the transmission media.  At the receiving node, electromagnetic signals are received, transformed to bits and put together to create a frame.  Since electromagnetic signals are susceptible to error, and a frame is susceptible to error.  The error need first to be detected . After detection, it need to be either corrected at the receiver node or discarded and retransmitted by sending node.
  • 8. How error occurs  A burst error is more likely to occur than a single bit error because the duration of the noise signal is normally longer than the duration of 1 bit,which means that when noise affect data, it affects a set of bits.  The number of bits affected depends on the data rates and the duration of noise.  Ex-if we sending data at 1 kbps, a noise of 1/100 second can affect 10 bits, if we sending data at 1 mbps the same noise can affect 10,000 bits.
  • 9. Two Basic forms of Error control:-  Stop-and-wait error control  Sliding window error control
  • 10. Stop-and-Wait Error Control  Stop-and-wait is the simplest of the error control protocols  A transmitter sends a frame then stops and waits for an acknowledgment  If a positive acknowledgment (ACK) is received, the next frame is sent  If a negative acknowledgment (NAK) is received, the same frame is transmitted again
  • 12. Sliding Window Error Control  These techniques assume that multiple frames are in transmission at one time  A sliding window protocol allows the transmitter to send a number of data packets at one time before receiving any acknowledgments  Depends on window size  When a receiver does acknowledge receipt, the returned ACK contains the number of the frame expected next
  • 13. Sliding Window Error Control (continued)
  • 14. Sliding Window Error Control (continued)  Older sliding window protocols numbered each frame or packet that was transmitted  More modern sliding window protocols number each byte within a frame  An example in which the packets are numbered, followed by an example in which the bytes are numbered:
  • 15. Sliding Window Error Control (continued)
  • 16. Sliding Window Error Control (continued)
  • 17. Sliding Window Error Control (continued)  Notice that an ACK is not always sent after each frame is received  It is more efficient to wait for a few received frames before returning an ACK  How long should you wait until you return an ACK?
  • 18. Sliding Window Error Control (continued)  Using TCP/IP, there are some basic rules concerning ACKs:  Rule 1: If a receiver just received data and wants to send its own data, piggyback an ACK along with that data  Rule 2: If a receiver has no data to return and has just ACKed the last packet, receiver waits 500 ms for another packet  If while waiting, another packet arrives, send the ACK immediately  Rule 3: If a receiver has no data to return and has just ACKed the last packet, receiver waits 500 ms  No packet, send ACK
  • 19. Sliding Window Error Control (continued)
  • 20. Sliding Window Error Control (continued)  What happens when a packet is lost?  As shown in the next slide, if a frame is lost, the following frame will be “out of sequence”  The receiver will hold the out of sequence bytes in a buffer and request the sender to retransmit the missing frame
  • 21. Sliding Window Error Control (continued)
  • 22. Sliding Window Error Control (continued)  What happens when an ACK is lost?  As shown in the next slide, if an ACK is lost, the sender will wait for the ACK to arrive and eventually time out  When the time-out occurs, the sender will resend the last frame
  • 23. Sliding Window Error Control (continued)