Professional Documents
Culture Documents
Design Issues :
Design Issues of Data link layer are :
1. Service Provided to the Network Layer
2. Framing
3. Error Detection and Correction
4. Flow Control
SERVICE PROVIDED TO THE NETWORK LAYER
Each frame start and end with special bytes – Flag byte
In this method each frame starts and ends with a special bit
pattern like 0111110 called a flag byte .
When the sender data link layer encounters a five consecutive
ones in the data it automatically stuffs a 0 bit into the out going
bit stream .
When the receiver sees five consecutive 1’s followed by a 0 bit
it automatically destuffs the 0 bit and send data to network
layer .
BIT STUFFING
ERROR CONTROL
After solving the marking of the frame with start and end the data
link layer has to handle eventual errors in transmission or
detection. Ensuring that all frames are delivered to the network
layer at the destination and in proper order.
Unacknowledged connectionless service:
It is OK for the sender to output frames regardless of its reception.
Reliable connection-oriented service:
It is NOT OK.
ERROR DETECTION AND CORRECTION
2. Multiple Bit
Two or more non consecutive bits in data unit have changed from
1 to 0 or 0 to1 .
Example :
ERROR DETECTION AND CORRECTION
3. Burst Errors
Two or more consecutive bits in the data unit have changed
from 1 to 0 and 0 to 1 .
ERROR DETECTION AND CORRECTION TECHNIQUES
ERROR DETECTION
1.Parity Checker
2. Check Sum
3. Cyclic Redundancy Check
ERROR CORRECTION
1. Hamming Code
1.PARITY CHECKER
In the given word including the parity bit should It is the simplest
technique for detecting and correcting errors.
The MSB of an 8-bits word is used as the parity bit and the
remaining 7 bits are used as data or message bits.
The parity of 8-bits transmitted word can be either even parity or
odd parity.
Even parity: Even parity means the number of 1's in the given
word including the parity bit should be even (2,4,6,....).
Odd parity: Odd parity means the number of 1's be odd (1,3,5,....).
1.PARITY CHECKER
1.PARITY CHECKER
1.PARITY CHECKER
Example :
Drawbacks
It does not detect all types of errors .
Not suitable for multiple bit errors .
DISADVANTAGES
Single Parity check is not able to detect even no. of bit error.
For example, the Data to be transmitted is 101010. Codeword
transmitted to the receiver is 1010101 (we have used even parity).
Let’s assume that during transmission, two of the bits of code word
flipped to 1111101.On receiving the code word, the receiver finds the
no. of ones to be even and hence no error
2. CHECK SUM
In checksum error detection scheme, the data is divided into N
segments each of M bits.
In the sender’s end the segments are added using 1’s complement
arithmetic to get the sum. The sum is complemented to get the
checksum
Now, checksum segment is sent along with the data segment
At receivers end, all received segment are added using 1’s
complement arithmetic to get the sum. The sum is complemented.
If the result 0 data is accepted otherwise rejected.
2. CHECK SUM
DISADVANTAGES