Skip to main content

Error correction vs detection, bit stuffing

Short answer

Error detection only identifies errors and requests retransmission; error correction identifies and corrects errors without retransmission. For bit stuffing with flag 01111110, insert a 0 after five consecutive 1s. The transmitted string is 0111101111100111110110.

What is the difference between Error Correcting and Error Detection process? A bit string 01111011111011111110 needs to be transmitted at the data link layer. What is the string actually transmitted after bit stuffing, if the flag pattern is 01111110?

Error correction vs error detection

PointError detectionError correction
PurposeOnly finds whether an error has occurredFinds and corrects the error without retransmission
RedundancyFewer redundant bitsMore redundant bits
MethodParity, checksum, CRCHamming code, convolutional codes (FEC)
Action after errorDiscard frame and ask for retransmission (ARQ)Receiver fixes the bits itself
ComplexitySimpleComplex
UseReliable links (Ethernet)Noisy links, satellite, where retransmission is costly

Bit stuffing numerical

Rule: with flag 01111110, insert a 0 after every five consecutive 1s of the data.

Data: 01111011111011111110 (20 bits).

 original : 0 1111 0 11111 0 1111111 0
 stuffed  : 0 1111 0 11111[0] 0 11111[0] 11 0
SegmentResult
0 1111 0011110 (no run of five 1s, sent unchanged)
11111 0five 1s, so insert 0: 111110, then the original 0
1111111 0after five 1s insert 0: 111110, then 11, then 0

Stuffed bit string (22 bits): 0111101111100111110110

Transmitted frame with flags: 01111110 0111101111100111110110 01111110.

✓ Answer checked by Claude Opus 5.5 (high effort)

All Computer Networks and Security chapter 3 questions →