2140709
Computer Networks
Unit-5
The Link layer and Local area networks
Introduction
global ISP
Unit: 5 – The Link layer and Local area networks | Darshan Institute of Engineering & Technology |
2
Link Layer Services
3
Link Layer Services – Cont…
4
Error Detection & Correction Technique
5
Parity Check
6
Parity Check – Cont…
7
Checksum
8
Checksum - Example
1 1 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0
1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
1 1 0 1 1 1 0 1 1 1 0 1 1 1 0 1 1
+
1 1 0 1 1 1 0 1 1 1 0 1 1 1 1 0 0
0 1 0 0 0 1 0 0 0 1 0 0 0 0 1 1
wraparound
sum
checksum
Note: when adding numbers, a carryout from the most significant bit needs to be added to the result
1 1 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0
1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
1 1 0 1 1 1 0 1 1 1 0 1 1 1 0 1 1
+
1 1 0 1 1 1 0 1 1 1 0 1 1 1 1 0 0
1 0 1 0 0 0 1 0 0 0 1 0 0 0 0 1 1
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
If one of the bits is a 0, then we can
say that error introduced into packet
sum
Sender
Receiver
9
Cyclic Redundancy Check
10
CRC – Example:1
CRC – Example:2
12
Multiple Access Links
13
Multiple Access Protocols
Categories of Multiple Access Protocol:
14
Multiple Access Protocols – Cont…
15
Multiple Access Protocols – Cont…
16
TDMA: Time Division Multiple Access
1
3
4
1
3
4
6-slot
frame
6-slot
frame
17
FDMA: Frequency Division Multiple Access
frequency bands
time
FDM cable
18
CDMA: Code Division Multiple Access
19
Pure Aloha Protocol
20
Pure ALOHA – Cont…
S-=G*e-2G
21
Slotted Aloha
22
Slotted Aloha – Cont…
23
CSMA/CD (CSMA with Collision Detection)
24
CSMA/CD – Cont…
25
Polling
26
Polling – Cont…
27
Token Passing
Unit: 5 – The Link layer and Local area networks | Darshan Institute of Engineering & Technology |
28
Ethernet
29
Ethernet – Cont…
30
Bit Stuffing
31
Bit Stuffing - Example
32
Byte Stuffing
33
Byte Stuffing - Example
34
ARP (Address Resolution Protocol)
35
How ARP Works?
36
How ARP Works?
37
Thank You