Professional Documents
Culture Documents
• Outline
• Types of links
• Multi-access (shared single) link
• Point-to-point link
2
Purpose of multiplexing/MAC
• To share link bandwidth
3
MAC
• MAC: Medium Access Control or Media Access Control
• Set of functions to support the sharing of a single link by multiple endpoints
4
Types of links
• Multi-access links Switch
• Typically used to connect multiple hosts to a switch
• Cheaper than point-to-point links Host Host ...... Host
• Mostly used in wireless networks
• Sometimes in wired networks through hub
• Point-to-point links
• Typically used between switches Host
Switch Host
• Increasingly typical between hosts and switches in
wired networks (port costs are decreasing)
Host
5
Recall our multiple-link network
Switch
Host Host
Switch Switch
Host
Host
6
Multi-access wireless link between hosts and
switch
Multi-access wireless link
Host
Switch
Host
Switch Switch
802.11 wireless
Host Host
access point
Switch
Equivalent to:
Switch Switch
Host
Switch
Host
Switch Switch
Ethernet hub Host
Host
• Multi-access links
• Endpoint-to-switch
10
Classification of
Multiplexing/MAC techniques
Multiplexing/MAC techniques
12
Frequency Division Multiplexing (FDM)
• Each communication session is assigned its own frequency for the session
• A few control channels (frequencies) are set aside to allow users to send requests for frequencies
for their communication sessions (these requests are called "call setup signaling protocol
messages")
• Frequencies are released upon completion of the session (with "call release signaling protocol
messages")
• Modulation technique determines the required carrier spacing (e.g., 30 kHz for analog cellular)
and correspondingly the number of simultaneous sessions
• Examples
• Each broadcast radio and TV station is assigned a different carrier frequency – long-held “sessions”
• Analog cellular systems: two frequencies are assigned – one for reception, another for transmission to
each cellular caller
13
Time Division Multiplexing (TDM)
• Each communication session is assigned time slots for its session on one or more
frequencies
• A few control channels (time slots) are set aside to allow users to use for signaling
messages, i.e., to send requests for timeslots for their communication sessions
• Examples
• Classroom being shared by multiple classes one after another in time
• Digital cellular systems: US system has three users sharing one carrier frequency for a cellular
call
14
Use of circuit-based multiplexing on different
types of links
15
Forward and reverse channels
Reverse
channels Switch
• Frequency Division Duplex (FDD): use separate sets of frequencies for forward
and reverse channels (upstream and downstream)
• Time Division Duplex (TDD): same frequencies used in the two directions, but
different time slots
17
Hexagonal cell frequency plan
• R: Radius of a cell
18
Different reuse patterns (factors)
19
Packet-based multiplexing
• For point-to-point links
• Scheduling techniques
• For multi-access links
• Random access MAC schemes
20
Packet buffering
• Buffers hold packets waiting to be transmitted on output link
• FCFS: Single buffer
• Priority: As many buffers as there are priority classes
• When the transmitter is ready to choose the next packet for transmission
• FCFS: Select next packet in line if buffer is non-empty
• Priority: Check buffers in order of priority and transmit packet from the first non-empty
buffer
21
Examples of packet multiplexing
22
Packet-based multiplexing on a point-to-point link
between switches
Switch
Host 1 Host 2
Switch
input output
link link
23
Packet-based multiplexing on a point-to-point link
between switches
Switch
Host 1 Host 2
App. 2 App. 2
Switch
Host 3 Host 4
App. 1 App. 1
Two communication
sessions sharing this switch-to-switch link
24
Packet-based multiplexing on a point-to-point link
between a host and a switch
Packet-based
Host 1
App. 2 multiplexer
Host 2
App. 3 App. 2
Switch Switch
Host 3 Host 4
App. 3
25
Packet-based multiplexing on a point-to-point link
between a host and a switch
Host 1
App. 2
Host 2
App. 3 App. 2
Switch
Host 3 Host 4
App. 3
26
Random access MAC protocols
• No reservations are made; instead a host just sends data packets
27
Random-access MAC
(packet based sharing on multi-access links)
28
CSMA
• Carrier Sense Multiple Access
• sense carrier
• if idle, send
• wait for acknoledgement
• If there isn’t one, assume there was a collision, retransmit
• if busy, wait
• Vulnerable period
29
CSMA/CD
• CSMA/Collision Detection (CSMA/CD):
• In CSMA, if collision occurs, need to wait until damaged frames have fully
propagated. For long frames compared to propagation delay, this could lead
to significant waste of capacity. So add collision detection.
• Listen for collision and immediately suspend sending data if collision is
detected.
• Rule: Frames should be long enough to allow collision detection prior to the
end of transmission
30
CSMA/CA: 802.11
• Why CA (Collision Avoidance) and not CD?
• difficult to receive (sense collisions) when transmitting due to weak received
signals (fading)
• hidden station problem:
• Two mutually far away stations A and C want to send to B.
• At A and C, channel appears idle
• But collision occurs at B
32
Kurose and Ross’ slides
Random-access MAC protocols used in practice today
• Multi-access link
• Wired: Ethernet
– CSMA/CD scheme
33
Example of CSMA/CD: Ethernet
Ethernet protocol:
1. Each station listens before it transmits.
2. If the channel is busy, it waits until the channel goes idle, and then it transmits.
3. If the channel is idle it transmits immediately. Continue sensing.
4. If collision is detected, transmit a brief jamming signal, then cease transmission, wait
for a random time, and retransmit.
• collision detection is not by waiting for an ACK
34
Ethernet protocol support for DLL functions
• Destination and source MAC address fields
• for multiplexing
• CRC
• for error detection
• No sequence numbers/ACK numbers
• for error correction
• Pause feature
• for ON/OFF flow control (special control frame)
35