SlideShare a Scribd company logo
DCCN (Dr. Nadia Nawaz) 10-1
Part 3 Data Link Layer
Chapter 10 Error Detection and Correction
Chapter 11 Data Link Control
Chapter 12 Multiple Access
Chapter 13 Wired LANs: Ethernet
Chapter 14 Wireless LANs
Chapter 15 Connecting LANs, Backbone Networks, and Virtual LANs
DCCN (Dr. Nadia Nawaz) 10-2
Chapter 10 Error Detection and Correction
1. Introduction
2. Block Coding
3. Linear Block Codes
4. Cyclic Codes
5. Checksum
DCCN (Dr. Nadia Nawaz) 10-3
Type of Errors
• An electromagnetic signal is subject to interference from
heat, magnetism, and other forms of electricity
• Single-bit error: 0 → 1 or 1 → 0
• Burst error: 2 or more bits have changed
DCCN (Dr. Nadia Nawaz) 10-4
Single-Bit Error
• Only one bit of a given data unit is changed
• The least likely type of error in serial transmission
• Single-bit error can happen in parallel transmission
DCCN (Dr. Nadia Nawaz) 10-5
Burst Error
• Two or more bits in the data unit have changed
• Burst error does not necessarily mean that the errors occur in
consecutive bits
• Most likely to happen in a serial transmission
• Number of bits affected depends on the data rate and duration of noise
DCCN (Dr. Nadia Nawaz) 10-6
Redundancy
• Error detection uses the concept of redundancy, which
means adding extra (redundant) bits for detecting errors at
the destination
DCCN (Dr. Nadia Nawaz) 10-7
Error Control
• Detection Versus Correction
– Detection: error ? yes or no
– Correction: Need to know the exact number of bits that
are corrupted, and their location in the message
• Forward Error Correction Versus Retransmission
– Retransmission (resending) : Backward error correction
• Coding for redundancy
– Block coding: discussed in our textbook
– Convolution coding
DCCN (Dr. Nadia Nawaz) 10-8
Modular Arithmetic
• In modulo-N arithmetic, we use only the integers in the range 0 to N-
1, inclusive.
• Adding: 0 + 0 = 0 0 + 1 = 1 1 + 0 = 1 1 + 1 = 0
• Subtracting: 0 – 0 = 0 0 – 1 = 1 1 – 0 = 1 1 – 1 = 0
• XORing of two single bits or two words
DCCN (Dr. Nadia Nawaz) 10-9
Block Coding
• Divide the message into blocks, each ofDivide the message into blocks, each of kk bits, calledbits, called datawords.datawords.
• AddAdd rr redundant bits to each block to make the length n = k + r. Theredundant bits to each block to make the length n = k + r. The
resulting n-bit blocks are calledresulting n-bit blocks are called codewordscodewords
• Example:Example: 4B/5B block coding
– k = 4 and n = 5.
– 2k
= 16 datawords and 2n
= 32 codewords.
DCCN (Dr. Nadia Nawaz) 10-10
Error Detection in Block Coding
• Example:
Assume that k = 2 and n = 3
(Table 10.1)
The redundent bit is added by
Xor for example 0+1=1
DCCN (Dr. Nadia Nawaz) 10-11
Error Detection: Example
• Assume the sender encodes the dataword 01 as 011 and sends it
to the receiver. Consider the following cases:
1. The receiver receives 011 which is a valid codeword. The receiver
extracts the dataword 01 from it.
2. The codeword is corrupted during transmission, and 111 is
received. This is not a valid codeword and is discarded.
3. The codeword is corrupted during transmission, and 000 is
received. This is a valid codeword. The receiver incorrectly
extracts the dataword 00. Two corrupted bits have made the
error undetectable.
 An error-detecting code can detect only the types of errors for
which it is designed; other types of errors may remain
undetected
DCCN (Dr. Nadia Nawaz) 10-12
Error Correction in Block Coding
• Example:
Assume that k = 2 and r = 3
n = 5 (Table 10.2)
DCCN (Dr. Nadia Nawaz) 10-13
Error Correction: Example
• Assume the dataword is 01. The sender creates the codeword
01011. The codeword is corrupted during transmission, and
01001 is received. First, the receiver finds that the received
codeword is not in the table. This means an error has occurred.
The receiver, assuming that there is only 1 bit corrupted, uses the
following strategy to guess the correct dataword
1. Comparing the received codeword with the first codeword in the
table (01001 versus 00000), the receiver decides that the first
codeword is not the one that was sent because there are two
different bits. (the same for third or fourth one in the table)
2.. The original codeword must be the second one in the table
because this is the only one that differs from the received
codeword by 1 bit.
DCCN (Dr. Nadia Nawaz) 10-14
Cyclic Code: CRC
• Cyclic codes are special linear block codes with one extra property.Cyclic codes are special linear block codes with one extra property.
• If a codeword is cyclically shifted (rotated), the result is anotherIf a codeword is cyclically shifted (rotated), the result is another
codewordcodeword
• Cyclic Redundancy Check (CRC)
DCCN (Dr. Nadia Nawaz) 10-15
CRC Encoder and Decoder
DCCN (Dr. Nadia Nawaz) 10-16
Division in CRC Encoder
DCCN (Dr. Nadia Nawaz) 10-17
Division in CRC Decoder
DCCN (Dr. Nadia Nawaz) 10-18
Checksum
• Tendency is to replace the checksum with a CRC
• Not as strong as CRC in error-checking capability
• One’s complement arithmetic
– We can represent unsigned numbers between 0 and
2n
– 1 using only n bits
– If the number has more than n bits, the extra leftmost
bits need to be added to the n rightmost bits
(wrapping)
– A negative number can be represented by inverting
all bits. It is the same as subtracting the number from
2n
– 1
DCCN (Dr. Nadia Nawaz) 10-19
Checksum: Example
• The sender initializes the checksum to 0 and adds all data items
and the checksum. However, 36 cannot be expressed in 4 bits. The
extra two bits are wrapped and added with the sum to create the
wrapped sum value 6. The sum is then complemented, resulting in
the checksum value 9 (15 − 6 = 9).
1
1 1
0
DCCN (Dr. Nadia Nawaz) 10-20
Internet Checksum
Sender site:
1. The message is divided into 16-bit words.
2. The value of the checksum word is set to 0.
3. All words including the checksum are added using one’s complement
addition.
4. The sum is complemented and becomes the checksum.
5. The checksum is sent with the data.
Receiver site:
1. The message (including checksum) is divided into 16-bit words.
2. All words are added using one’s complement addition.
3. The sum is complemented and becomes the new checksum.
4. If the value of checksum is 0, the message is accepted; otherwise, it is
rejected.
DCCN (Dr. Nadia Nawaz) 10-21
Internet Checksum: Example
Ad

More Related Content

What's hot (20)

Error Detection And Correction
Error Detection And CorrectionError Detection And Correction
Error Detection And Correction
Renu Kewalramani
 
Sliding window protocol
Sliding window protocolSliding window protocol
Sliding window protocol
Shehara Abeythunga
 
What Is Sliding Window Protocol?
What Is Sliding Window Protocol?What Is Sliding Window Protocol?
What Is Sliding Window Protocol?
Simplilearn
 
Transport layer
Transport layer Transport layer
Transport layer
Mukesh Chinta
 
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
Abdullaziz Tagawy
 
Error Detection N Correction
Error Detection N CorrectionError Detection N Correction
Error Detection N Correction
Ankan Adhikari
 
Error Detection & Error Correction Codes
Error Detection & Error Correction CodesError Detection & Error Correction Codes
Error Detection & Error Correction Codes
ShahDhruv21
 
Introduction to switching & circuit switching
Introduction to switching & circuit switchingIntroduction to switching & circuit switching
Introduction to switching & circuit switching
Dr Rajiv Srivastava
 
Floating point representation
Floating point representationFloating point representation
Floating point representation
missstevenson01
 
Selective repeat protocol
Selective repeat protocolSelective repeat protocol
Selective repeat protocol
Manusha Dilan
 
Error control
Error controlError control
Error control
selvakumar_b1985
 
Error detection correction (CRC)
Error detection correction  (CRC)Error detection correction  (CRC)
Error detection correction (CRC)
Karam Munir Butt
 
Crc
CrcCrc
Crc
CHINTAN Patel
 
Multiple Access Protocal
Multiple Access ProtocalMultiple Access Protocal
Multiple Access Protocal
tes31
 
Error detection and correction
Error detection and correctionError detection and correction
Error detection and correction
Maria Akther
 
Packet switching
Packet switchingPacket switching
Packet switching
asimnawaz54
 
Parity check(Error Detecting Codes)
Parity check(Error Detecting Codes)Parity check(Error Detecting Codes)
Parity check(Error Detecting Codes)
Imesha Perera
 
Domain name system
Domain name systemDomain name system
Domain name system
Siddique Ibrahim
 
Computer networks - Channelization
Computer networks - ChannelizationComputer networks - Channelization
Computer networks - Channelization
Elambaruthi Elambaruthi
 
Link state routing protocol
Link state routing protocolLink state routing protocol
Link state routing protocol
Aung Thu Rha Hein
 
Error Detection And Correction
Error Detection And CorrectionError Detection And Correction
Error Detection And Correction
Renu Kewalramani
 
What Is Sliding Window Protocol?
What Is Sliding Window Protocol?What Is Sliding Window Protocol?
What Is Sliding Window Protocol?
Simplilearn
 
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
Abdullaziz Tagawy
 
Error Detection N Correction
Error Detection N CorrectionError Detection N Correction
Error Detection N Correction
Ankan Adhikari
 
Error Detection & Error Correction Codes
Error Detection & Error Correction CodesError Detection & Error Correction Codes
Error Detection & Error Correction Codes
ShahDhruv21
 
Introduction to switching & circuit switching
Introduction to switching & circuit switchingIntroduction to switching & circuit switching
Introduction to switching & circuit switching
Dr Rajiv Srivastava
 
Floating point representation
Floating point representationFloating point representation
Floating point representation
missstevenson01
 
Selective repeat protocol
Selective repeat protocolSelective repeat protocol
Selective repeat protocol
Manusha Dilan
 
Error detection correction (CRC)
Error detection correction  (CRC)Error detection correction  (CRC)
Error detection correction (CRC)
Karam Munir Butt
 
Multiple Access Protocal
Multiple Access ProtocalMultiple Access Protocal
Multiple Access Protocal
tes31
 
Error detection and correction
Error detection and correctionError detection and correction
Error detection and correction
Maria Akther
 
Packet switching
Packet switchingPacket switching
Packet switching
asimnawaz54
 
Parity check(Error Detecting Codes)
Parity check(Error Detecting Codes)Parity check(Error Detecting Codes)
Parity check(Error Detecting Codes)
Imesha Perera
 

Similar to Data Link Layer| Error Detection (20)

chap10..................................ppt
chap10..................................pptchap10..................................ppt
chap10..................................ppt
hasan2305101837
 
Error Detection and correction concepts in Data communication and networks
Error Detection and correction concepts in Data communication and networksError Detection and correction concepts in Data communication and networks
Error Detection and correction concepts in Data communication and networks
Nt Arvind
 
15CS46 - Data communication or computer networks 1_Module-3.ppt
15CS46 - Data communication or computer networks 1_Module-3.ppt15CS46 - Data communication or computer networks 1_Module-3.ppt
15CS46 - Data communication or computer networks 1_Module-3.ppt
ranjan317165
 
Computer Networks/Computer Engineering.pdf
Computer Networks/Computer Engineering.pdfComputer Networks/Computer Engineering.pdf
Computer Networks/Computer Engineering.pdf
abdnazar2003
 
1.4.pdf 1.4.pdf 1.4.pdf1.4.pdf1.4.pdf1.4.pdf
1.4.pdf 1.4.pdf 1.4.pdf1.4.pdf1.4.pdf1.4.pdf1.4.pdf 1.4.pdf 1.4.pdf1.4.pdf1.4.pdf1.4.pdf
1.4.pdf 1.4.pdf 1.4.pdf1.4.pdf1.4.pdf1.4.pdf
gagansaigudi
 
Chapter 10
Chapter 10Chapter 10
Chapter 10
bheemsain
 
New error-detection (2)
New error-detection (2)New error-detection (2)
New error-detection (2)
Nitesh Singh
 
New error-detection
New error-detectionNew error-detection
New error-detection
Nitesh Singh
 
Lecture8_Error Detection and Correction 232.pptx
Lecture8_Error Detection and Correction 232.pptxLecture8_Error Detection and Correction 232.pptx
Lecture8_Error Detection and Correction 232.pptx
MahabubAlam97
 
Error detection.
Error detection.Error detection.
Error detection.
Wasim Akbar
 
Chapter 10: Error Correction and Detection
Chapter 10: Error Correction and DetectionChapter 10: Error Correction and Detection
Chapter 10: Error Correction and Detection
JeoffnaRuth
 
اسس شبكات الفصل الثاني اسسس الشبكات الفصل الثاني.
اسس شبكات الفصل الثاني اسسس الشبكات الفصل الثاني.اسس شبكات الفصل الثاني اسسس الشبكات الفصل الثاني.
اسس شبكات الفصل الثاني اسسس الشبكات الفصل الثاني.
fma561793
 
Introduction to the Data Link Layer
Introduction to the Data Link LayerIntroduction to the Data Link Layer
Introduction to the Data Link Layer
Meenakshi Paul
 
10 Error Detection_and_Correction
10 Error Detection_and_Correction10 Error Detection_and_Correction
10 Error Detection_and_Correction
Ahmar Hashmi
 
Ch10
Ch10Ch10
Ch10
Vivek Kumar
 
4_Datalink__Error_Detection_and Correction.pdf
4_Datalink__Error_Detection_and Correction.pdf4_Datalink__Error_Detection_and Correction.pdf
4_Datalink__Error_Detection_and Correction.pdf
kenilpatel65
 
ERROR DETECTION IN DATA COMMUNICATION AND NETWORKING-1.pptx
ERROR DETECTION IN DATA COMMUNICATION AND NETWORKING-1.pptxERROR DETECTION IN DATA COMMUNICATION AND NETWORKING-1.pptx
ERROR DETECTION IN DATA COMMUNICATION AND NETWORKING-1.pptx
Asoa Anaaba Joseph
 
ch10 Error Detection and Correction.pptttt
ch10 Error Detection and Correction.ppttttch10 Error Detection and Correction.pptttt
ch10 Error Detection and Correction.pptttt
gurpreetk8199
 
708112464-Error-detection-and-Correction.ppt
708112464-Error-detection-and-Correction.ppt708112464-Error-detection-and-Correction.ppt
708112464-Error-detection-and-Correction.ppt
Bhumi521947
 
Error_Detection_and_correction.ppt
Error_Detection_and_correction.pptError_Detection_and_correction.ppt
Error_Detection_and_correction.ppt
KashfUlHuda1
 
chap10..................................ppt
chap10..................................pptchap10..................................ppt
chap10..................................ppt
hasan2305101837
 
Error Detection and correction concepts in Data communication and networks
Error Detection and correction concepts in Data communication and networksError Detection and correction concepts in Data communication and networks
Error Detection and correction concepts in Data communication and networks
Nt Arvind
 
15CS46 - Data communication or computer networks 1_Module-3.ppt
15CS46 - Data communication or computer networks 1_Module-3.ppt15CS46 - Data communication or computer networks 1_Module-3.ppt
15CS46 - Data communication or computer networks 1_Module-3.ppt
ranjan317165
 
Computer Networks/Computer Engineering.pdf
Computer Networks/Computer Engineering.pdfComputer Networks/Computer Engineering.pdf
Computer Networks/Computer Engineering.pdf
abdnazar2003
 
1.4.pdf 1.4.pdf 1.4.pdf1.4.pdf1.4.pdf1.4.pdf
1.4.pdf 1.4.pdf 1.4.pdf1.4.pdf1.4.pdf1.4.pdf1.4.pdf 1.4.pdf 1.4.pdf1.4.pdf1.4.pdf1.4.pdf
1.4.pdf 1.4.pdf 1.4.pdf1.4.pdf1.4.pdf1.4.pdf
gagansaigudi
 
New error-detection (2)
New error-detection (2)New error-detection (2)
New error-detection (2)
Nitesh Singh
 
New error-detection
New error-detectionNew error-detection
New error-detection
Nitesh Singh
 
Lecture8_Error Detection and Correction 232.pptx
Lecture8_Error Detection and Correction 232.pptxLecture8_Error Detection and Correction 232.pptx
Lecture8_Error Detection and Correction 232.pptx
MahabubAlam97
 
Error detection.
Error detection.Error detection.
Error detection.
Wasim Akbar
 
Chapter 10: Error Correction and Detection
Chapter 10: Error Correction and DetectionChapter 10: Error Correction and Detection
Chapter 10: Error Correction and Detection
JeoffnaRuth
 
اسس شبكات الفصل الثاني اسسس الشبكات الفصل الثاني.
اسس شبكات الفصل الثاني اسسس الشبكات الفصل الثاني.اسس شبكات الفصل الثاني اسسس الشبكات الفصل الثاني.
اسس شبكات الفصل الثاني اسسس الشبكات الفصل الثاني.
fma561793
 
Introduction to the Data Link Layer
Introduction to the Data Link LayerIntroduction to the Data Link Layer
Introduction to the Data Link Layer
Meenakshi Paul
 
10 Error Detection_and_Correction
10 Error Detection_and_Correction10 Error Detection_and_Correction
10 Error Detection_and_Correction
Ahmar Hashmi
 
4_Datalink__Error_Detection_and Correction.pdf
4_Datalink__Error_Detection_and Correction.pdf4_Datalink__Error_Detection_and Correction.pdf
4_Datalink__Error_Detection_and Correction.pdf
kenilpatel65
 
ERROR DETECTION IN DATA COMMUNICATION AND NETWORKING-1.pptx
ERROR DETECTION IN DATA COMMUNICATION AND NETWORKING-1.pptxERROR DETECTION IN DATA COMMUNICATION AND NETWORKING-1.pptx
ERROR DETECTION IN DATA COMMUNICATION AND NETWORKING-1.pptx
Asoa Anaaba Joseph
 
ch10 Error Detection and Correction.pptttt
ch10 Error Detection and Correction.ppttttch10 Error Detection and Correction.pptttt
ch10 Error Detection and Correction.pptttt
gurpreetk8199
 
708112464-Error-detection-and-Correction.ppt
708112464-Error-detection-and-Correction.ppt708112464-Error-detection-and-Correction.ppt
708112464-Error-detection-and-Correction.ppt
Bhumi521947
 
Error_Detection_and_correction.ppt
Error_Detection_and_correction.pptError_Detection_and_correction.ppt
Error_Detection_and_correction.ppt
KashfUlHuda1
 
Ad

More from Taimoor Muzaffar Gondal (20)

Basics of Computer
Basics of ComputerBasics of Computer
Basics of Computer
Taimoor Muzaffar Gondal
 
Lecture 04: Errors During the Measurement Process
Lecture 04: Errors During the Measurement ProcessLecture 04: Errors During the Measurement Process
Lecture 04: Errors During the Measurement Process
Taimoor Muzaffar Gondal
 
Introduction to Measurements-Lecture 01
Introduction to Measurements-Lecture 01Introduction to Measurements-Lecture 01
Introduction to Measurements-Lecture 01
Taimoor Muzaffar Gondal
 
Updated Lecture 01- History of Atom
Updated Lecture 01- History of AtomUpdated Lecture 01- History of Atom
Updated Lecture 01- History of Atom
Taimoor Muzaffar Gondal
 
Heat and Its Transfer
Heat and Its TransferHeat and Its Transfer
Heat and Its Transfer
Taimoor Muzaffar Gondal
 
Low, Medium and High Frequency Current
Low, Medium and High Frequency CurrentLow, Medium and High Frequency Current
Low, Medium and High Frequency Current
Taimoor Muzaffar Gondal
 
Rectification and Electrotherapy
Rectification and ElectrotherapyRectification and Electrotherapy
Rectification and Electrotherapy
Taimoor Muzaffar Gondal
 
Applications of EM Waves
Applications of EM WavesApplications of EM Waves
Applications of EM Waves
Taimoor Muzaffar Gondal
 
Electromagnetism Fundamentals
Electromagnetism FundamentalsElectromagnetism Fundamentals
Electromagnetism Fundamentals
Taimoor Muzaffar Gondal
 
Effects of Currents and Type of Cells and Batteries
Effects of Currents and Type of Cells and BatteriesEffects of Currents and Type of Cells and Batteries
Effects of Currents and Type of Cells and Batteries
Taimoor Muzaffar Gondal
 
Current Electricity
Current ElectricityCurrent Electricity
Current Electricity
Taimoor Muzaffar Gondal
 
Static Electricity
Static ElectricityStatic Electricity
Static Electricity
Taimoor Muzaffar Gondal
 
Lecture 01- Atomic Structure
Lecture 01- Atomic StructureLecture 01- Atomic Structure
Lecture 01- Atomic Structure
Taimoor Muzaffar Gondal
 
An Overview of PLC
An Overview of PLCAn Overview of PLC
An Overview of PLC
Taimoor Muzaffar Gondal
 
Regula falsi MATLAB Code
Regula falsi MATLAB CodeRegula falsi MATLAB Code
Regula falsi MATLAB Code
Taimoor Muzaffar Gondal
 
Newton's method for MATLAB Code
Newton's method for MATLAB CodeNewton's method for MATLAB Code
Newton's method for MATLAB Code
Taimoor Muzaffar Gondal
 
Langrange method for MATLAB Code
Langrange method for MATLAB CodeLangrange method for MATLAB Code
Langrange method for MATLAB Code
Taimoor Muzaffar Gondal
 
Jacobi method for MATLAB
Jacobi method for MATLAB Jacobi method for MATLAB
Jacobi method for MATLAB
Taimoor Muzaffar Gondal
 
Gauss seidal Matlab Code
Gauss seidal Matlab CodeGauss seidal Matlab Code
Gauss seidal Matlab Code
Taimoor Muzaffar Gondal
 
Finite difference Matlab Code
Finite difference Matlab CodeFinite difference Matlab Code
Finite difference Matlab Code
Taimoor Muzaffar Gondal
 
Lecture 04: Errors During the Measurement Process
Lecture 04: Errors During the Measurement ProcessLecture 04: Errors During the Measurement Process
Lecture 04: Errors During the Measurement Process
Taimoor Muzaffar Gondal
 
Effects of Currents and Type of Cells and Batteries
Effects of Currents and Type of Cells and BatteriesEffects of Currents and Type of Cells and Batteries
Effects of Currents and Type of Cells and Batteries
Taimoor Muzaffar Gondal
 
Ad

Recently uploaded (20)

ISO 9001 quality management systemPPT.pptx
ISO 9001 quality management systemPPT.pptxISO 9001 quality management systemPPT.pptx
ISO 9001 quality management systemPPT.pptx
mesfin608
 
Compiler Design_Syntax Directed Translation.pptx
Compiler Design_Syntax Directed Translation.pptxCompiler Design_Syntax Directed Translation.pptx
Compiler Design_Syntax Directed Translation.pptx
RushaliDeshmukh2
 
Prediction of Flexural Strength of Concrete Produced by Using Pozzolanic Mate...
Prediction of Flexural Strength of Concrete Produced by Using Pozzolanic Mate...Prediction of Flexural Strength of Concrete Produced by Using Pozzolanic Mate...
Prediction of Flexural Strength of Concrete Produced by Using Pozzolanic Mate...
Journal of Soft Computing in Civil Engineering
 
Lidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptx
Lidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptxLidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptx
Lidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptx
RishavKumar530754
 
Comprehensive-Event-Management-System.pptx
Comprehensive-Event-Management-System.pptxComprehensive-Event-Management-System.pptx
Comprehensive-Event-Management-System.pptx
dd7devdilip
 
Resistance measurement and cfd test on darpa subboff model
Resistance measurement and cfd test on darpa subboff modelResistance measurement and cfd test on darpa subboff model
Resistance measurement and cfd test on darpa subboff model
INDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR
 
Value Stream Mapping Worskshops for Intelligent Continuous Security
Value Stream Mapping Worskshops for Intelligent Continuous SecurityValue Stream Mapping Worskshops for Intelligent Continuous Security
Value Stream Mapping Worskshops for Intelligent Continuous Security
Marc Hornbeek
 
The Gaussian Process Modeling Module in UQLab
The Gaussian Process Modeling Module in UQLabThe Gaussian Process Modeling Module in UQLab
The Gaussian Process Modeling Module in UQLab
Journal of Soft Computing in Civil Engineering
 
ZJIT: Building a Next Generation Ruby JIT
ZJIT: Building a Next Generation Ruby JITZJIT: Building a Next Generation Ruby JIT
ZJIT: Building a Next Generation Ruby JIT
maximechevalierboisv1
 
Interfacing PMW3901 Optical Flow Sensor with ESP32
Interfacing PMW3901 Optical Flow Sensor with ESP32Interfacing PMW3901 Optical Flow Sensor with ESP32
Interfacing PMW3901 Optical Flow Sensor with ESP32
CircuitDigest
 
Data Structures_Searching and Sorting.pptx
Data Structures_Searching and Sorting.pptxData Structures_Searching and Sorting.pptx
Data Structures_Searching and Sorting.pptx
RushaliDeshmukh2
 
Novel Plug Flow Reactor with Recycle For Growth Control
Novel Plug Flow Reactor with Recycle For Growth ControlNovel Plug Flow Reactor with Recycle For Growth Control
Novel Plug Flow Reactor with Recycle For Growth Control
Chris Harding
 
DSP and MV the Color image processing.ppt
DSP and MV the  Color image processing.pptDSP and MV the  Color image processing.ppt
DSP and MV the Color image processing.ppt
HafizAhamed8
 
Compiler Design_Code Optimization tech.pptx
Compiler Design_Code Optimization tech.pptxCompiler Design_Code Optimization tech.pptx
Compiler Design_Code Optimization tech.pptx
RushaliDeshmukh2
 
2025 Apply BTech CEC .docx
2025 Apply BTech CEC                 .docx2025 Apply BTech CEC                 .docx
2025 Apply BTech CEC .docx
tusharmanagementquot
 
Compiler Design_Intermediate code generation new ppt.pptx
Compiler Design_Intermediate code generation new ppt.pptxCompiler Design_Intermediate code generation new ppt.pptx
Compiler Design_Intermediate code generation new ppt.pptx
RushaliDeshmukh2
 
Introduction to Zoomlion Earthmoving.pptx
Introduction to Zoomlion Earthmoving.pptxIntroduction to Zoomlion Earthmoving.pptx
Introduction to Zoomlion Earthmoving.pptx
AS1920
 
Artificial Intelligence introduction.pptx
Artificial Intelligence introduction.pptxArtificial Intelligence introduction.pptx
Artificial Intelligence introduction.pptx
DrMarwaElsherif
 
New Microsoft PowerPoint Presentation.pdf
New Microsoft PowerPoint Presentation.pdfNew Microsoft PowerPoint Presentation.pdf
New Microsoft PowerPoint Presentation.pdf
mohamedezzat18803
 
Data Structures_Linear Data Structure Stack.pptx
Data Structures_Linear Data Structure Stack.pptxData Structures_Linear Data Structure Stack.pptx
Data Structures_Linear Data Structure Stack.pptx
RushaliDeshmukh2
 
ISO 9001 quality management systemPPT.pptx
ISO 9001 quality management systemPPT.pptxISO 9001 quality management systemPPT.pptx
ISO 9001 quality management systemPPT.pptx
mesfin608
 
Compiler Design_Syntax Directed Translation.pptx
Compiler Design_Syntax Directed Translation.pptxCompiler Design_Syntax Directed Translation.pptx
Compiler Design_Syntax Directed Translation.pptx
RushaliDeshmukh2
 
Lidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptx
Lidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptxLidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptx
Lidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptx
RishavKumar530754
 
Comprehensive-Event-Management-System.pptx
Comprehensive-Event-Management-System.pptxComprehensive-Event-Management-System.pptx
Comprehensive-Event-Management-System.pptx
dd7devdilip
 
Value Stream Mapping Worskshops for Intelligent Continuous Security
Value Stream Mapping Worskshops for Intelligent Continuous SecurityValue Stream Mapping Worskshops for Intelligent Continuous Security
Value Stream Mapping Worskshops for Intelligent Continuous Security
Marc Hornbeek
 
ZJIT: Building a Next Generation Ruby JIT
ZJIT: Building a Next Generation Ruby JITZJIT: Building a Next Generation Ruby JIT
ZJIT: Building a Next Generation Ruby JIT
maximechevalierboisv1
 
Interfacing PMW3901 Optical Flow Sensor with ESP32
Interfacing PMW3901 Optical Flow Sensor with ESP32Interfacing PMW3901 Optical Flow Sensor with ESP32
Interfacing PMW3901 Optical Flow Sensor with ESP32
CircuitDigest
 
Data Structures_Searching and Sorting.pptx
Data Structures_Searching and Sorting.pptxData Structures_Searching and Sorting.pptx
Data Structures_Searching and Sorting.pptx
RushaliDeshmukh2
 
Novel Plug Flow Reactor with Recycle For Growth Control
Novel Plug Flow Reactor with Recycle For Growth ControlNovel Plug Flow Reactor with Recycle For Growth Control
Novel Plug Flow Reactor with Recycle For Growth Control
Chris Harding
 
DSP and MV the Color image processing.ppt
DSP and MV the  Color image processing.pptDSP and MV the  Color image processing.ppt
DSP and MV the Color image processing.ppt
HafizAhamed8
 
Compiler Design_Code Optimization tech.pptx
Compiler Design_Code Optimization tech.pptxCompiler Design_Code Optimization tech.pptx
Compiler Design_Code Optimization tech.pptx
RushaliDeshmukh2
 
Compiler Design_Intermediate code generation new ppt.pptx
Compiler Design_Intermediate code generation new ppt.pptxCompiler Design_Intermediate code generation new ppt.pptx
Compiler Design_Intermediate code generation new ppt.pptx
RushaliDeshmukh2
 
Introduction to Zoomlion Earthmoving.pptx
Introduction to Zoomlion Earthmoving.pptxIntroduction to Zoomlion Earthmoving.pptx
Introduction to Zoomlion Earthmoving.pptx
AS1920
 
Artificial Intelligence introduction.pptx
Artificial Intelligence introduction.pptxArtificial Intelligence introduction.pptx
Artificial Intelligence introduction.pptx
DrMarwaElsherif
 
New Microsoft PowerPoint Presentation.pdf
New Microsoft PowerPoint Presentation.pdfNew Microsoft PowerPoint Presentation.pdf
New Microsoft PowerPoint Presentation.pdf
mohamedezzat18803
 
Data Structures_Linear Data Structure Stack.pptx
Data Structures_Linear Data Structure Stack.pptxData Structures_Linear Data Structure Stack.pptx
Data Structures_Linear Data Structure Stack.pptx
RushaliDeshmukh2
 

Data Link Layer| Error Detection

  • 1. DCCN (Dr. Nadia Nawaz) 10-1 Part 3 Data Link Layer Chapter 10 Error Detection and Correction Chapter 11 Data Link Control Chapter 12 Multiple Access Chapter 13 Wired LANs: Ethernet Chapter 14 Wireless LANs Chapter 15 Connecting LANs, Backbone Networks, and Virtual LANs
  • 2. DCCN (Dr. Nadia Nawaz) 10-2 Chapter 10 Error Detection and Correction 1. Introduction 2. Block Coding 3. Linear Block Codes 4. Cyclic Codes 5. Checksum
  • 3. DCCN (Dr. Nadia Nawaz) 10-3 Type of Errors • An electromagnetic signal is subject to interference from heat, magnetism, and other forms of electricity • Single-bit error: 0 → 1 or 1 → 0 • Burst error: 2 or more bits have changed
  • 4. DCCN (Dr. Nadia Nawaz) 10-4 Single-Bit Error • Only one bit of a given data unit is changed • The least likely type of error in serial transmission • Single-bit error can happen in parallel transmission
  • 5. DCCN (Dr. Nadia Nawaz) 10-5 Burst Error • Two or more bits in the data unit have changed • Burst error does not necessarily mean that the errors occur in consecutive bits • Most likely to happen in a serial transmission • Number of bits affected depends on the data rate and duration of noise
  • 6. DCCN (Dr. Nadia Nawaz) 10-6 Redundancy • Error detection uses the concept of redundancy, which means adding extra (redundant) bits for detecting errors at the destination
  • 7. DCCN (Dr. Nadia Nawaz) 10-7 Error Control • Detection Versus Correction – Detection: error ? yes or no – Correction: Need to know the exact number of bits that are corrupted, and their location in the message • Forward Error Correction Versus Retransmission – Retransmission (resending) : Backward error correction • Coding for redundancy – Block coding: discussed in our textbook – Convolution coding
  • 8. DCCN (Dr. Nadia Nawaz) 10-8 Modular Arithmetic • In modulo-N arithmetic, we use only the integers in the range 0 to N- 1, inclusive. • Adding: 0 + 0 = 0 0 + 1 = 1 1 + 0 = 1 1 + 1 = 0 • Subtracting: 0 – 0 = 0 0 – 1 = 1 1 – 0 = 1 1 – 1 = 0 • XORing of two single bits or two words
  • 9. DCCN (Dr. Nadia Nawaz) 10-9 Block Coding • Divide the message into blocks, each ofDivide the message into blocks, each of kk bits, calledbits, called datawords.datawords. • AddAdd rr redundant bits to each block to make the length n = k + r. Theredundant bits to each block to make the length n = k + r. The resulting n-bit blocks are calledresulting n-bit blocks are called codewordscodewords • Example:Example: 4B/5B block coding – k = 4 and n = 5. – 2k = 16 datawords and 2n = 32 codewords.
  • 10. DCCN (Dr. Nadia Nawaz) 10-10 Error Detection in Block Coding • Example: Assume that k = 2 and n = 3 (Table 10.1) The redundent bit is added by Xor for example 0+1=1
  • 11. DCCN (Dr. Nadia Nawaz) 10-11 Error Detection: Example • Assume the sender encodes the dataword 01 as 011 and sends it to the receiver. Consider the following cases: 1. The receiver receives 011 which is a valid codeword. The receiver extracts the dataword 01 from it. 2. The codeword is corrupted during transmission, and 111 is received. This is not a valid codeword and is discarded. 3. The codeword is corrupted during transmission, and 000 is received. This is a valid codeword. The receiver incorrectly extracts the dataword 00. Two corrupted bits have made the error undetectable.  An error-detecting code can detect only the types of errors for which it is designed; other types of errors may remain undetected
  • 12. DCCN (Dr. Nadia Nawaz) 10-12 Error Correction in Block Coding • Example: Assume that k = 2 and r = 3 n = 5 (Table 10.2)
  • 13. DCCN (Dr. Nadia Nawaz) 10-13 Error Correction: Example • Assume the dataword is 01. The sender creates the codeword 01011. The codeword is corrupted during transmission, and 01001 is received. First, the receiver finds that the received codeword is not in the table. This means an error has occurred. The receiver, assuming that there is only 1 bit corrupted, uses the following strategy to guess the correct dataword 1. Comparing the received codeword with the first codeword in the table (01001 versus 00000), the receiver decides that the first codeword is not the one that was sent because there are two different bits. (the same for third or fourth one in the table) 2.. The original codeword must be the second one in the table because this is the only one that differs from the received codeword by 1 bit.
  • 14. DCCN (Dr. Nadia Nawaz) 10-14 Cyclic Code: CRC • Cyclic codes are special linear block codes with one extra property.Cyclic codes are special linear block codes with one extra property. • If a codeword is cyclically shifted (rotated), the result is anotherIf a codeword is cyclically shifted (rotated), the result is another codewordcodeword • Cyclic Redundancy Check (CRC)
  • 15. DCCN (Dr. Nadia Nawaz) 10-15 CRC Encoder and Decoder
  • 16. DCCN (Dr. Nadia Nawaz) 10-16 Division in CRC Encoder
  • 17. DCCN (Dr. Nadia Nawaz) 10-17 Division in CRC Decoder
  • 18. DCCN (Dr. Nadia Nawaz) 10-18 Checksum • Tendency is to replace the checksum with a CRC • Not as strong as CRC in error-checking capability • One’s complement arithmetic – We can represent unsigned numbers between 0 and 2n – 1 using only n bits – If the number has more than n bits, the extra leftmost bits need to be added to the n rightmost bits (wrapping) – A negative number can be represented by inverting all bits. It is the same as subtracting the number from 2n – 1
  • 19. DCCN (Dr. Nadia Nawaz) 10-19 Checksum: Example • The sender initializes the checksum to 0 and adds all data items and the checksum. However, 36 cannot be expressed in 4 bits. The extra two bits are wrapped and added with the sum to create the wrapped sum value 6. The sum is then complemented, resulting in the checksum value 9 (15 − 6 = 9). 1 1 1 0
  • 20. DCCN (Dr. Nadia Nawaz) 10-20 Internet Checksum Sender site: 1. The message is divided into 16-bit words. 2. The value of the checksum word is set to 0. 3. All words including the checksum are added using one’s complement addition. 4. The sum is complemented and becomes the checksum. 5. The checksum is sent with the data. Receiver site: 1. The message (including checksum) is divided into 16-bit words. 2. All words are added using one’s complement addition. 3. The sum is complemented and becomes the new checksum. 4. If the value of checksum is 0, the message is accepted; otherwise, it is rejected.
  • 21. DCCN (Dr. Nadia Nawaz) 10-21 Internet Checksum: Example