Shared Access Networks: Outline
Shared Access Networks: Outline
Shared Access Networks: Outline
Outline
Bus (Ethernet)
Token ring (FDDI)
Wireless (802.11)
Spring 2002
CS 461
Ethernet Overview
History
CSMA/CD
carrier sense
multiple access
collision detection
Frame Format
64
48
48
16
Preamble
Dest
addr
Src
addr
Type
Spring 2002
32
Body
CS 461
CRC
Ethernet (cont)
Addresses
CS 461
Transmit Algorithm
If line is idle
send immediately
upper bound message size of 1500 bytes
must wait 9.6us between back-to-back frames
If line is busy
wait until idle and transmit immediately
called 1-persistent (special case of p-persistent)
Spring 2002
CS 461
Algorithm (cont)
If collision
jam for 32 bits, then stop transmitting frame
minimum frame is 64 bytes (header + 46 bytes of data)
delay and try again
1st time: 0 or 51.2us
2nd time: 0, 51.2, or 102.4us
3rd time51.2, 102.4, or 153.6us
nth time: k x 51.2us, for randomly selected k=0..2n - 1
give up after several tries (usually 16)
exponential backoff
Spring 2002
CS 461
Collisions
A
(a)
(b)
(c)
(d)
Spring 2002
CS 461
Spring 2002
CS 461
Frame Format
8
48
48
Start of
frame
Control
Dest
addr
Src
addr
Spring 2002
Body
32
24
CRC
End of
frame
Status
CS 461
Spring 2002
CS 461
Algorithm (cont)
Each node measures TRT between successive tokens
if measured-TRT > TTRT: token is late so dont send
if measured-TRT < TTRT: token is early so OK to send
CS 461
10
Token Maintenance
Lost Token
no token when initializing ring
bit error corrupts token pattern
node holding token crashes
Spring 2002
CS 461
11
Maintenance (cont)
Monitoring for a Valid Token
should periodically see valid transmission (frame or token)
maximum gap = ring latency + max frame < = 2.5ms
set timer at 2.5ms and send claim frame if it fires
Spring 2002
CS 461
12
Wireless LANs
IEEE 802.11
Bandwidth: 1 - 11 Mbps
Physical Media
spread spectrum radio (2.4GHz)
diffused infrared (10m)
Spring 2002
CS 461
13
Spread Spectrum
Idea
spread signal over wider frequency band than required
originally designed to thwart jamming
Frequency Hopping
transmit over random sequence of frequencies
sender and receiver share
pseudorandom number generator
seed
CS 461
14
for each bit, send XOR of that bit and n random bits
random sequence known to both sender and receiver
called n-bit chipping code
802.11 defines an 11-bit chipping code
1
0
1
0
1
0
Spring 2002
CS 461
15
Collisions Avoidance
Similar to Ethernet
Problem: hidden and exposed nodes
Spring 2002
CS 461
16
MACAW
Sender transmits RequestToSend (RTS) frame
Receiver replies with ClearToSend (CTS) frame
Neighbors
see CTS: keep quiet
see RTS but not CTS: ok to transmit
Collisions
no collisions detection
known when dont receive CTS
exponential backoff
Spring 2002
CS 461
17
Supporting Mobility
Case 1: ad hoc networking
Case 2: access points (AP)
tethered
each mobile node associates with an AP
Distribution system
AP-1
AP-3
F
AP-2
A
G
H
Spring 2002
CS 461
18
Mobility (cont)
Scanning (selecting an AP)
When
active: when join or move
passive: AP periodically sends Beacon frame
Spring 2002
CS 461
19