Unit 3
Unit 3
Syllabus
• Data link layer: Error Detection and Correction,
• Framing, flow and error control,
• Protocols - Noiseless channels (Simplest, Stop and Wait) and
• Noisy channels (Stop and Wait and Piggy Backing).
• Multiple Access Protocols.
• Random Access-ALOHA, CSMA.
• Wired LANs-IEEE standards,
• wireless LANs-Bluetooth,
• Cellular Telephony
Types of Errors
• Data can be corrupted during transmission. Some applications require
that errors be detected and corrected.
• In a single-bit error, only 1 bit in the data unit has changed
• Burst Error The term burst error means that 2 or more bits in the data
unit have changed from 1 to 0 or from 0 to 1.
Detection Versus Correction
• In error detection, we are looking only to see if any error has occurred.
• The answer is a simple yes or no. We are not even interested in the
number of errors.
• In error correction, we need to know the exact number of bits that are
corrupted and more importantly, their location in the message
Redundancy
• The central concept in detecting or correcting errors is redundancy.
• The sender adds redundant bits through a process that creates a relationship
between the redundant bits and the actual data bits.
• The receiver checks the relationships between the two sets of bits to detect or
correct the errors
• We can divide coding schemes into two broad categories: block coding and
convolution coding
Block Coding
• Since n > k, the number of
possible codewords is larger
than the number of possible
data words.
Example- 4B/5B block coding
• 16 out of 32 codewords are used for message transfer; the rest are
either used for other purposes or unused.
Error Detection- using block coding
• If the following two conditions are met, the receiver can detect a
change in the original codeword.
• In error correction, the receiver must find (or guess) the original codeword
sent.
• We can say that we need more redundant bits for error correction than for
error detection
• Example-Let us add more redundant bits to previous example ,if the receiver
can correct an error without knowing what was actually sent.