Unit-3:�Data link Layer �
Outline
Data Link layer
Data Link layer
(i) Error Recovery.
(ii) It performs the flow control operations.
(iii) User addressing.
(i) To perform the control of access to media.
(ii) It performs the unique addressing to stations directly connected to LAN.
(iii) Detection of errors.
Design issues with data link layer
Design issues with data link layer
Design issues with data link layer
Link layer services
Link layer services
Link layer services
Framing in Data Link Layer
Parts of a Frame
Types of Framing
Types of Framing
Types of Framing
–> Sender stuffs a bit to break the pattern i.e. here appends a 0 in data = 011101.
–>Receiver receives the frame.
–> If data contains 011101, receiver removes the 0 and reads the data.
FRAMING METHODS
1.Byte count
2.Flag bytes with byte stuffing
3.Flag bits with bit stuffing
4.Physical layer coding violations
16
1 FRAMING – BYTE COUNT
17
2 FRAMING – BYTE STUFFING
18
Need to escape extra ESCAPE bytes too!
Frame format
Stuffing examples
3 FRAMING – BIT STUFFING
19
Data bits
Transmitted bits with stuffing
Data Link Controls
Flow Control
Flow Control
Sender Window
Receiver Window
ERROR CONTROL
24
ERROR CONTROL
25
ERROR CONTROL
1.Single bit Error:
2. Burst Error:
26
PHASES IN ERROR CONTROL
27
ERROR CONTROL
28
ERROR CORRECTION :
29
ERROR CORRECTION :HAMMING
30
ERROR CORRECTION :HAMMING
31
ERROR DETECTION
32
ERROR DETECTING TECHNIQUES:
33
ERROR DETECTION-SINGLE PARITY CHECK�
1. Simple Parity check�Blocks of data from the source are subjected to a check bit or parity bit generator form, where a parity of :
34
ERROR DETECTION-SINGLE PARITY CHECK�
35
ERROR DETECTION-SINGLE PARITY CHECK
36
2. TWO-DIMENSIONAL PARITY CHECK:�
37
3. CHECKSUM:
38
3. CHECKSUM:
39
3. CHECKSUM:
40
4. CYCLIC REDUNDANCY CHECK:
41
4. CYCLIC REDUNDANCY CHECK:
It should have accurately one less bit than the divisor.
Joining it to the end of the data unit should create the resulting bit sequence precisely divisible by the divisor.
42
4. CYCLIC REDUNDANCY CHECK:
43
4. CYCLIC REDUNDANCY CHECK:EXAMPLE
44
4. CYCLIC REDUNDANCY CHECK:
45
DLL protocols: Elementary Data Link Protocols
Unrestricted Simplex Protocol�
Simplex Stop and Wait protocol�
Simplex Protocol for Noisy Channel�
Sliding Window protocols: Protocols Verification models
Go-Back-N ARQ�
The example of Go-Back-N ARQ is shown below in the figure.
Selective Repeat ARQ�
The example of the Selective Repeat ARQ protocol is shown below in the figure.
Difference between the Go-Back-N ARQ and Selective Repeat ARQ�
Go-Back-N ARQ | Selective Repeat ARQ |
If a frame is corrupted or lost in it,all subsequent frames have to be sent again. | In this, only the frame is sent again, which is corrupted or lost. |
If it has a high error rate,it wastes a lot of bandwidth. | There is a loss of low bandwidth. |
It is less complex. | It is more complex because it has to do sorting and searching as well. And it also requires more storage. |
It does not require sorting. | In this, sorting is done to get the frames in the correct order. |
It does not require searching. | The search operation is performed in it. |
It is used more. | It is used less because it is more complex. |
�
THANK YOU….