9 - Data Link Layer
9 - Data Link Layer
Networks
DCN(ITPC-205)
2
The first section discusses random-access protocols. Four
protocols, ALOHA, CSMA, CSMA/CD, and CSMA/CA, are
described in this section. These protocols are mostly used in
LANs and WANs.
The second section discusses controlled-access protocols. Three
protocols, reservation, polling, and token-passing, are described in
this section. Some of these protocol are used in LANs.
4
Random access protocol
– ALOHA
– Carrier Sense Multiple Access
– Carrier Sense Multiple Access with Collision Detection
– Carrier Sense Multiple Access with Collision Avoidance
6
Pure ALOHA
7
Pure ALOHA protocol
8
Pure ALOHA
9
Slotted ALOHA
10
Slotted ALOHA
11
Throughput of pure and slotted
ALOHA
The throughput for pure ALOHA is
S = G × e −2G .
The maximum throughput Smax = 0.184
when G= (1/2).
S = G × e−G.
12
Example 1
Solution
Average frame transmission time Tfr is 200 bits/200 kbps or
1 ms. The vulnerable time is 2 × 1 ms = 2 ms. This means
no station should send later than 1 ms before this station
starts transmission and no station should start sending
during the period (1 ms) that this station is sending.
Example 3
Solution
This situation is similar to the previous exercise except that
the network is using slotted ALOHA instead of pure
ALOHA. The frame transmission time is 200/200 kbps or 1
ms.
Example 4 (continued)
CSMA requires that each station first listen to the medium (or
check the state of the medium) before sending.
19
Carrier Sense Multiple Access
20
Carrier Sense Multiple Access
21
Carrier Sense Multiple Access
22
Carrier Sense Multiple Access
23
Carrier Sense Multiple Access with
Collision Detection (CSMA/CD)
24
Carrier Sense Multiple Access with
Collision Detection
25
Carrier Sense Multiple Access with
Collision Detection
26
Example 5
Solution
The minimum frame transmission time is Tfr = 2 × Tp =
512.2 μs. This means, in the worst case, a station needs to
transmit for a period of 512.2 μs to detect the collision. The
minimum size of the frame is 10 Mbps × 512.2 μs = 512 bits
or 64 bytes.
Carrier Sense Multiple Access with
Collision Detection
28
Carrier Sense Multiple Access with
Collision Avoidance (CSMA/CA)
29
Carrier Sense Multiple Access with
Collision Avoidance
30
Carrier Sense Multiple Access with
Collision Avoidance
31
CONTROLLED ACCESS
32
Reservation
33
Polling
34
Polling
35
Token Passing
36
CHANNELIZATION
37
Frequency-Division Multiple Access
(FDMA)
In FDMA, the available bandwidth of the common channel is divided into
bands that are separated by guard bands.
38
Time-Division Multiple Access
(TDMA)
In TDMA, the bandwidth is just one channel that is timeshared between
different stations.
12.42
Figure 12.24 Chip sequences
Figure 12.25 Data representation in CDMA
Figure 12.26 Sharing channel in CDMA
Suppose station 3 is listening to station 2.
[-1, -1, -3, +1] [+1, -1, +1, -1]= -4/4=-1 means bit 0
12.46
Figure 12.27 Digital signal created by four stations in CDMA
Figure 12.28 Decoding of the composite signal for one in CDMA