What causes errors to occur in the first place?
Interference
What are the 2 types of error?
If a codeword is valid, is it uncorrupted?
No, we cannot guarantee that the codeword is uncorrupted even if it’s valid.
What is Block Coding?
It’s the basis of datawords and codewords.
A message is divided into blocks.
Each block has redundant bits added for error control which creates a codeword (ex: hamming code)
What is hamming distance?
The number of bits that differ between 2 words.
(NOTE: min hamming distance for error detection refers to the min HD between VALID codewords.)
What are linear block codes?
XOR of 2 valid codewords creates another valid codeword.
What is linear block code - Parity-check code?
Add 1 bit to the dataword to create codeword with parity bit. Even parity considered
What is linear block code - Cyclic codes?
Code word rotated to the left to create another valid codeword.
(Ex: 1011000 -> 0110001)
Performance-oriented, used in LAN/WAN.
What is Checksum?
Error detection for message of any length, typically used in network layer.
What is Forward error correction (FEC) for?
Used in real-time media, takes too long to retransmit so we add redundant bits that allow us to correct the error at the transport layer.
What are the 3 FEC techniques?
How does DLC frame data?
What 2 ways does the data-link layer implement flow control?
Data-link error control, what happens when error is detected? (2 outcomes)
What are the 2 DLC protocols for error and flow control?
What is byte stuffing?
Adding an ESC char whenever there is an ESC or FLAG in the text
What is bit stuffing?
Adding an extra 0 after 5 consecutive 1s so that 01111110 in the text does not get mistaken for a flag.