SlideShare a Scribd company logo
1 of 13
CRC 
Cyclic Redundancy Check 
Prof. Chintan Patel 
Chintan.patel@marwadieducation.edu.in
Introduction 
• Most powerful and Easy to implement technique 
• Checksum calculation is based on summation while CRC is based on 
binary division 
• Cyclic Redundancy check bits are appended at the end of data unit. 
• If a K bit message is to be transmitted, the transmitter generates an r-bit 
sequence called as FCS(Frame check sequence). 
• So k+r bits are actually being transmitted. 
• Generator Polynomial : it is a predetermined number of length r+1 
which is used to generate FCS bits 
• NOTE : Generator polynomial is decided by sender and receiver by 
their mutual understanding. 
Prof. Chintan Patel
• Procedure at sender side : 
1. Determine size of original massage (k bits) 
2. Establish Generator Polynomial (r + 1 bits). 
3. Append r zeros with original message [x = (k (Message)+ r (zeros))] 
4. Divide this x by the generator polynomial. 
5. Append remainder(also considered as a FCS of r bits) with original 
message k. 
6. Transmit this data. 
• Procedure at Receiver side : 
1. Receive k + r bits 
2. Establish Generator Polynomial(r+1 bits) 
3. Divide this bits by generator polynomial. 
4. If remainder is all bits 0 , no error in transmission 
Prof. Chintan Patel
CRC Sender and Receiver 
Prof. Chintan Patel
Concepts……………….. 
1. How to represent a binary sequence using polynomial, and how to represent 
polynomial using binary sequence? 
7 
+ 0x 
– M1 = 0010,1101  M1(x) = 0x 
6 
+ 1x 
5 
+ 0x 
4 
+ 1x 
3 
+ 1x 
2 
+ 0x 
1 
+ 
0 
– 1x 
5 
+ x 
= x 
3 
+ x 
2 
+ 1 
2. How to subtract (or add) two polynomials? 
– Represent the polynomials using binary sequences 
– Perform bit-wise XOR between the two sequences 
– Convert the XOR result back to polynomial 
7 
+ x 
• M1(x) – M2(x)  M1 ⊕ M2 = 00101101 ⊕ 10000100 = 10101001 x 
5 
+ x 
3 
+ 1 
Prof. Chintan Patel
Polynomial Division 
• Dividing a polynomial with another one of lower degree is similar 
to normal polynomial division with “subtract” simple (XOR). 
Prof. Chintan Patel
Example 1 
• Given information 
– Generator polynomial = X3 + x + 1 
– Data part = X3 + x2 + 1 
• What will be FCS Value ? 
• What will be final bits transmitted by sender?. 
Prof. Chintan Patel
Solution 
• Convert polynomial to binary 
– Generator polynomial = 1011 (r + 1 = 4 bits) 
– Original Message = 1101 
• Append 3(r bits), 0’S with original message. 
• So it will be 1101000 
• Divide this sequence by 1011 
• Reminder or FCS Value = 001. 
• Append this reminder with original message. So it will be 1101001, 
which will be transmitted by sender 
Prof. Chintan Patel
Example 2 
• Use CRC with general polynomial x3 + 1 to encode 
the value: 10101111 
Prof. Chintan Patel
Example 3 
• Obtain the 4-bit CRC code word for the data bit sequence 
10011011100 (leftmost bit is the least significant) using the 
generator polynomial = 10101 
Prof. Chintan Patel
Solution 
Prof. Chintan Patel
Practice Examples 
1 P : 1001 
D : 101110 
2 P : 1101 
D : 10010110101 
3 P : 1011 
D : 11010011101100 
Prof. Chintan Patel
Prof. Chintan Patel

More Related Content

What's hot

Error Detection and Correction
Error Detection and CorrectionError Detection and Correction
Error Detection and Correction
TechiNerd
 
Circuit and packet_switching
Circuit and packet_switchingCircuit and packet_switching
Circuit and packet_switching
hoanv
 

What's hot (20)

Computer Networks - Error Detection & Error Correction
Computer Networks - Error Detection & Error CorrectionComputer Networks - Error Detection & Error Correction
Computer Networks - Error Detection & Error Correction
 
Cyclic redundancy check
Cyclic redundancy checkCyclic redundancy check
Cyclic redundancy check
 
Digital Communication 4
Digital Communication 4Digital Communication 4
Digital Communication 4
 
CRC implementation
CRC implementation CRC implementation
CRC implementation
 
Error Detection And Correction
Error Detection And CorrectionError Detection And Correction
Error Detection And Correction
 
Chapter 10
Chapter 10Chapter 10
Chapter 10
 
Cyclic Redundancy Check in Computers Network
Cyclic Redundancy Check in Computers Network Cyclic Redundancy Check in Computers Network
Cyclic Redundancy Check in Computers Network
 
Cyclic Redundancy Check
Cyclic Redundancy CheckCyclic Redundancy Check
Cyclic Redundancy Check
 
Chapter 11
Chapter 11Chapter 11
Chapter 11
 
Chapter 4 data link layer
Chapter 4 data link layerChapter 4 data link layer
Chapter 4 data link layer
 
Error Detection and Correction
Error Detection and CorrectionError Detection and Correction
Error Detection and Correction
 
Checksum explaination
Checksum explainationChecksum explaination
Checksum explaination
 
Data Communication & Computer network: Channel capacity
Data Communication & Computer network: Channel capacityData Communication & Computer network: Channel capacity
Data Communication & Computer network: Channel capacity
 
Data Link Layer Numericals
Data Link Layer NumericalsData Link Layer Numericals
Data Link Layer Numericals
 
Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)
 
Stop-and-Wait ARQ Protocol
Stop-and-Wait ARQ ProtocolStop-and-Wait ARQ Protocol
Stop-and-Wait ARQ Protocol
 
Multiple access protocol
Multiple access protocolMultiple access protocol
Multiple access protocol
 
Error control
Error controlError control
Error control
 
Point to-point protocol (ppp)
Point to-point protocol (ppp)Point to-point protocol (ppp)
Point to-point protocol (ppp)
 
Circuit and packet_switching
Circuit and packet_switchingCircuit and packet_switching
Circuit and packet_switching
 

Viewers also liked

Data Integrity Techniques: Aviation Best Practices for CRC & Checksum Error D...
Data Integrity Techniques: Aviation Best Practices for CRC & Checksum Error D...Data Integrity Techniques: Aviation Best Practices for CRC & Checksum Error D...
Data Integrity Techniques: Aviation Best Practices for CRC & Checksum Error D...
Philip Koopman
 
Ds4 artist week_11
Ds4 artist week_11Ds4 artist week_11
Ds4 artist week_11
SeungBum Kim
 
New error-detection (2)
New error-detection (2)New error-detection (2)
New error-detection (2)
Nitesh Singh
 
Network Manager소개 08년5월1
Network Manager소개 08년5월1Network Manager소개 08년5월1
Network Manager소개 08년5월1
uchung
 
Introduction of digital communication
Introduction of digital communicationIntroduction of digital communication
Introduction of digital communication
asodariyabhavesh
 
해 싱(Hashing)
해     싱(Hashing)해     싱(Hashing)
해 싱(Hashing)
KimKyungKun
 
Pure Aloha and Slotted Aloha
Pure Aloha and Slotted AlohaPure Aloha and Slotted Aloha
Pure Aloha and Slotted Aloha
Chun-Kang Luo
 
Information theory & coding (ECE)
Information theory & coding (ECE)Information theory & coding (ECE)
Information theory & coding (ECE)
nitmittal
 

Viewers also liked (20)

CRC Error coding technique
CRC Error coding techniqueCRC Error coding technique
CRC Error coding technique
 
Error detection and correction
Error detection and correctionError detection and correction
Error detection and correction
 
Chapter 03 cyclic codes
Chapter 03   cyclic codesChapter 03   cyclic codes
Chapter 03 cyclic codes
 
Data Integrity Techniques: Aviation Best Practices for CRC & Checksum Error D...
Data Integrity Techniques: Aviation Best Practices for CRC & Checksum Error D...Data Integrity Techniques: Aviation Best Practices for CRC & Checksum Error D...
Data Integrity Techniques: Aviation Best Practices for CRC & Checksum Error D...
 
Ds4 artist week_11
Ds4 artist week_11Ds4 artist week_11
Ds4 artist week_11
 
New error-detection (2)
New error-detection (2)New error-detection (2)
New error-detection (2)
 
Network Manager소개 08년5월1
Network Manager소개 08년5월1Network Manager소개 08년5월1
Network Manager소개 08년5월1
 
Digital transmission
Digital transmissionDigital transmission
Digital transmission
 
Basics of coding theory
Basics of coding theoryBasics of coding theory
Basics of coding theory
 
Introduction of digital communication
Introduction of digital communicationIntroduction of digital communication
Introduction of digital communication
 
해 싱(Hashing)
해     싱(Hashing)해     싱(Hashing)
해 싱(Hashing)
 
Advanced computer network
Advanced computer networkAdvanced computer network
Advanced computer network
 
Data link control protocol(3)
Data link control protocol(3)Data link control protocol(3)
Data link control protocol(3)
 
Ethertnet data transfer.ppt
Ethertnet data transfer.pptEthertnet data transfer.ppt
Ethertnet data transfer.ppt
 
Synthesis
SynthesisSynthesis
Synthesis
 
Checksum 101
Checksum 101Checksum 101
Checksum 101
 
Pure Aloha and Slotted Aloha
Pure Aloha and Slotted AlohaPure Aloha and Slotted Aloha
Pure Aloha and Slotted Aloha
 
Data link control protocol(2)
Data link control protocol(2)Data link control protocol(2)
Data link control protocol(2)
 
Data link control protocol(1)
Data link control protocol(1)Data link control protocol(1)
Data link control protocol(1)
 
Information theory & coding (ECE)
Information theory & coding (ECE)Information theory & coding (ECE)
Information theory & coding (ECE)
 

Similar to Crc

05 directnets errors
05 directnets errors05 directnets errors
05 directnets errors
jyang1983
 
Skr+3200+chapter+3+(kweh)
Skr+3200+chapter+3+(kweh)Skr+3200+chapter+3+(kweh)
Skr+3200+chapter+3+(kweh)
Ammar Shafiq
 
Error detection.
Error detection.Error detection.
Error detection.
Wasim Akbar
 
Lecture 4 from virtual university of pakistan
Lecture 4 from virtual university of pakistanLecture 4 from virtual university of pakistan
Lecture 4 from virtual university of pakistan
Saba Hanif
 
Oth1
Oth1Oth1
Oth1
b137
 
ERROR_DETECTION.pptx
ERROR_DETECTION.pptxERROR_DETECTION.pptx
ERROR_DETECTION.pptx
BeniamTekeste
 

Similar to Crc (20)

05 directnets errors
05 directnets errors05 directnets errors
05 directnets errors
 
Skr+3200+chapter+3+(kweh)
Skr+3200+chapter+3+(kweh)Skr+3200+chapter+3+(kweh)
Skr+3200+chapter+3+(kweh)
 
Error detection.
Error detection.Error detection.
Error detection.
 
Lecture08
Lecture08Lecture08
Lecture08
 
Lecture 4 from virtual university of pakistan
Lecture 4 from virtual university of pakistanLecture 4 from virtual university of pakistan
Lecture 4 from virtual university of pakistan
 
Coding theory updated
Coding theory updatedCoding theory updated
Coding theory updated
 
Digital Electronics – Unit I.pdf
Digital Electronics – Unit I.pdfDigital Electronics – Unit I.pdf
Digital Electronics – Unit I.pdf
 
network
networknetwork
network
 
ERROR DETECTION data communication and computer network.pptx
ERROR DETECTION data communication and computer network.pptxERROR DETECTION data communication and computer network.pptx
ERROR DETECTION data communication and computer network.pptx
 
Oth1
Oth1Oth1
Oth1
 
Computer Number System
Computer Number SystemComputer Number System
Computer Number System
 
5 digital datacomm
5 digital datacomm5 digital datacomm
5 digital datacomm
 
Number systems r002
Number systems  r002Number systems  r002
Number systems r002
 
ERROR_DETECTION.pptx
ERROR_DETECTION.pptxERROR_DETECTION.pptx
ERROR_DETECTION.pptx
 
Chapter 1 Digital Systems and Binary Numbers.ppt
Chapter 1 Digital Systems and Binary Numbers.pptChapter 1 Digital Systems and Binary Numbers.ppt
Chapter 1 Digital Systems and Binary Numbers.ppt
 
Chpater 6
Chpater 6Chpater 6
Chpater 6
 
Data Communications- Unit-4.pptx
Data Communications- Unit-4.pptxData Communications- Unit-4.pptx
Data Communications- Unit-4.pptx
 
Ch 10
Ch 10Ch 10
Ch 10
 
5. Error Coding
5. Error Coding5. Error Coding
5. Error Coding
 
Chapter 10: Error Correction and Detection
Chapter 10: Error Correction and DetectionChapter 10: Error Correction and Detection
Chapter 10: Error Correction and Detection
 

Recently uploaded

AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
ankushspencer015
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 

Recently uploaded (20)

Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 

Crc

  • 1. CRC Cyclic Redundancy Check Prof. Chintan Patel Chintan.patel@marwadieducation.edu.in
  • 2. Introduction • Most powerful and Easy to implement technique • Checksum calculation is based on summation while CRC is based on binary division • Cyclic Redundancy check bits are appended at the end of data unit. • If a K bit message is to be transmitted, the transmitter generates an r-bit sequence called as FCS(Frame check sequence). • So k+r bits are actually being transmitted. • Generator Polynomial : it is a predetermined number of length r+1 which is used to generate FCS bits • NOTE : Generator polynomial is decided by sender and receiver by their mutual understanding. Prof. Chintan Patel
  • 3. • Procedure at sender side : 1. Determine size of original massage (k bits) 2. Establish Generator Polynomial (r + 1 bits). 3. Append r zeros with original message [x = (k (Message)+ r (zeros))] 4. Divide this x by the generator polynomial. 5. Append remainder(also considered as a FCS of r bits) with original message k. 6. Transmit this data. • Procedure at Receiver side : 1. Receive k + r bits 2. Establish Generator Polynomial(r+1 bits) 3. Divide this bits by generator polynomial. 4. If remainder is all bits 0 , no error in transmission Prof. Chintan Patel
  • 4. CRC Sender and Receiver Prof. Chintan Patel
  • 5. Concepts……………….. 1. How to represent a binary sequence using polynomial, and how to represent polynomial using binary sequence? 7 + 0x – M1 = 0010,1101  M1(x) = 0x 6 + 1x 5 + 0x 4 + 1x 3 + 1x 2 + 0x 1 + 0 – 1x 5 + x = x 3 + x 2 + 1 2. How to subtract (or add) two polynomials? – Represent the polynomials using binary sequences – Perform bit-wise XOR between the two sequences – Convert the XOR result back to polynomial 7 + x • M1(x) – M2(x)  M1 ⊕ M2 = 00101101 ⊕ 10000100 = 10101001 x 5 + x 3 + 1 Prof. Chintan Patel
  • 6. Polynomial Division • Dividing a polynomial with another one of lower degree is similar to normal polynomial division with “subtract” simple (XOR). Prof. Chintan Patel
  • 7. Example 1 • Given information – Generator polynomial = X3 + x + 1 – Data part = X3 + x2 + 1 • What will be FCS Value ? • What will be final bits transmitted by sender?. Prof. Chintan Patel
  • 8. Solution • Convert polynomial to binary – Generator polynomial = 1011 (r + 1 = 4 bits) – Original Message = 1101 • Append 3(r bits), 0’S with original message. • So it will be 1101000 • Divide this sequence by 1011 • Reminder or FCS Value = 001. • Append this reminder with original message. So it will be 1101001, which will be transmitted by sender Prof. Chintan Patel
  • 9. Example 2 • Use CRC with general polynomial x3 + 1 to encode the value: 10101111 Prof. Chintan Patel
  • 10. Example 3 • Obtain the 4-bit CRC code word for the data bit sequence 10011011100 (leftmost bit is the least significant) using the generator polynomial = 10101 Prof. Chintan Patel
  • 12. Practice Examples 1 P : 1001 D : 101110 2 P : 1101 D : 10010110101 3 P : 1011 D : 11010011101100 Prof. Chintan Patel