







































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
An overview of mac protocols, focusing on frequency division multiple access (fdma) and random access (csma/cd). Fdma is a channel access method where the channel spectrum is divided into frequency bands, and each station is assigned a fixed frequency band. Csma/cd is a random access method where nodes transmit at full channel data rate without coordination, and collisions are detected and recovered from. Key ideas of random access include carrier sensing, collision detection, and randomness.
Typology: Study notes
1 / 47
This page cannot be seen from the preview
Don't miss anything!
CS 242: Computer NetworksWeek 12: Monday, 11/25/07Daniel BilarWellesley CollegeFall 2007
Understand, in layer 2 and below, a broadcast channelcan be shared on a LAN (multiple access)
Partitioning
Taking Turns
Random Access
Multiple Access Protocols
Aloha, CSMA/CD
Physical components for link layer traffic
Older: Repeaters, Bridges / Switches
Modern: Virtual LANs Some slides adapted and pictures gratefully acknowledged
from Schul, Rexford, Kurose
Signal propagation over physical links
Break sequence of bits into a frame
Avoid having multiple nodes speaking at once
Otherwise, collisions lead to garbled data
Distributed algorithm for sharing the channel
Algorithm determines which node cantransmit
Channel Partitioning: TDMA
Access to channel in "rounds"
Each station gets fixed length slot (length =packet transmission time) in each round
Unused slots go idle
Example: 6-station LAN
1,3,4 have packet, slots 2,5,6 idle
1
3
4
1
3
4
6-slotframe
Channel Partit. MAC protocols: FDMA
FDMA: frequency division multiple access ^
Channel spectrum divided into frequency bands ^
Each station assigned fixed frequency band ^
unused transmission time in frequency bands go idle ^
example: 6-station LAN, 1,3,4 have packet, frequencybands 2,5,6 idle
frequency bands
time
FDM cable
Control
token
passed from onenode to nextsequentially.
Token message
Concerns:
Token overhead
Latency
Single point offailure (token)
T data
(nothingto send)
T
Idea
“Happy go lucky!”
When node has packet to send
Transmit at full channel data rate R
No a priori coordination among nodes
Two or more transmitting nodes
➜
collision
Random access MAC protocol specifies:
How to detect collisions
How to recover from collisions
Examples
ALOHA and Slotted ALOHA
All frames same size
Time divided into equalslots (time to transmit aframe)
Nodes start to transmitframes only at start ofslots
Nodes are synchronized
If two or more nodestransmit, all nodes detectcollision
Operation
When node obtains freshframe, transmits in nextslot
Case
No collision
Node can send new framein next slot
Case
Collision
Node retransmits frame ineach subsequent slot withprobability
p
until success
Single active node cancontinuously transmitat full rate of channel
Highly decentralized:only slots in nodesneed to be in sync
Simple
Cons
Collisions, wasting slots
Idle slots
Nodes may be able todetect collision in lessthan time to transmitpacket
Clock synchronization
Unslotted Aloha: simpler, no synchronization
When frame first arrives, transmit immediately
Collision probability increases:
frame sent at t
0
collides with other frames sent in [t
1,t
Worse than slottedALOHA:
channel
used for usefultransmissions 18%of time!
Random Access: CSMA
We see that collisions hurt the efficiency ofALOHA protocol
At best, channel is useful 37% of the time
Idea:
Do not interrupt
CSMA (Carrier Sense Multiple Access) is atechnique that listens before transmission
If channel sensed idle: Transmit entire frame
If channel sensed busy, defer transmission
Collisions detected within short time
Colliding transmissions aborted, reducingwastage
Easy in wired LANs: measure signal strengths,compare transmitted, received signals
Difficult in wireless LANs: receiver shut offwhile transmitting