Error detection code in the Data Link Layer [Explained]


Error detection code (parity check code): parity check code consists of n-1 bit information unit and 1 bit check element. The N-1 bit information unit is the valid data in the information we send, and the 1-bit check unit is used for error detection and redundancy code.

 

Odd check: if the number of 1 in this series is even, add 1 in front of it, and the number of 1 becomes odd, otherwise add 0;

Even check: if the number of 1 in this series is odd, add 1 in front of it, and the number of 1 becomes even, otherwise add 0;

 

For example: (1) 1111 odd check is 11111 even check is 01111

(2) 1110 odd check is 01110 even check is 11110

The characteristic of parity check code is that it can only detect odd bit errors, and the error detection ability is 50%, which cannot be corrected.

Error detection code (CRC cyclic redundancy check code): it is a polynomial division method to detect errors. Each bit string is regarded as a polynomial, and modulo-2 operation is adopted.

The calculation process of the sending end is: the data frame to be sent + the check sequence of r bits, get the data frame to be sent, and then perform modulo-2 division with the generated polynomial to take the remainder, which is the FCS frame check sequence to be added.

 

The calculation process of the receiving end is: when the receiving end receives the frame, it performs modulo-2 division with the generated polynomial, and then checks the remainder. If the remainder is 0, it means that the transmission process is normal, and then accepts the data. If it is not 0, it means that the transmission process is abnormal, and then discards the data.

 

The above is the knowledge explanation of “error detection code” brought by Shenzhen HDV photoelectric Technology Co., Ltd.The communication products produced by the company covers;

Module categories: optical fiber modules, Ethernet modules, optical fiber transceiver modules, optical fiber access modules, SSFP optical modules, and SFP optical fibers, etc.

ONU category: EPON ONU, AC ONU, optical fiber ONU, CATV ONU, GPON ONU, XPON ONU, etc.

OLT class: OLT switch, GPON OLT, EPON OLT, communication OLT, etc.

 

The above module products can provide support for different network scenarios. A professional and strong R&D team can help customers with technical issues, and a thoughtful and professional business team can help customers get high-quality services during pre-consultation and post-production work.  Welcome you to contact us for any kind of inquiry.

 

error detection code in data link layer, error detection code in networking, error detection in communication, error detection code in data transmission, error detection  types

 

WhatsApp Online Chat !