Lecture Today: Slotted Vs Unslotted ALOHA Carrier Sensing Multiple Access Ethernet
Lecture Today: Slotted Vs Unslotted ALOHA Carrier Sensing Multiple Access Ethernet
DataLink Layer
slotted ALOHA
ALOHA
CSMA, CSMA/CD, CSMA/CA
DataLink Layer
Slotted ALOHA
Assumptions
all frames same size
time is divided into
equal size slots, time to
transmit 1 frame
nodes start to transmit
frames only at
beginning of slots
nodes are synchronized
if 2 or more nodes
transmit in slot, all
nodes detect collision
Operation
when node obtains fresh
frame, it transmits in next
slot
no collision, node can send
new frame in next slot
if collision, node
retransmits frame in each
subsequent slot with prob.
p until success
DataLink Layer
Slotted ALOHA
Pros
single active node can
continuously transmit
at full rate of channel
highly decentralized:
only slots in nodes
need to be in sync
simple
Cons
collisions, wasting slots
idle slots
nodes may be able to
detect collision in less
than time to transmit
packet
DataLink Layer
= q(1-q)N-1
At best: channel
used for useful
transmissions 37%
of time!
Total expected
utilization = Nq(1-q)N-1
DataLink Layer
transmit immediately
DataLink Layer
Even worse !
= 1/(2e) = .18
DataLink Layer
DataLink Layer
CSMA collisions
collision:
entire packet transmission
time wasted
note:
role of propagation delay in
determining collision probability
DataLink Layer
CSMA Efficiency
Key parameters:
Propagation delay (in seconds): tprop
packet transmission time ttrans
DataLink Layer
10
CSMA Efficiency
Decreases with tprop/ttrans
Decreases with increasing distance
between nodes.
link speed R.
DataLink Layer
11
collision detection:
easy in wired LANs: measure signal strengths,
compare transmitted, received signals
difficult in wireless LANs: receiver shut off while
transmitting
human analogy: the polite conversationalist
DataLink Layer
12
DataLink Layer
13
Ethernet
dominant wired LAN technology:
cheap $20 for 100Mbs!
first widely used LAN technology
Simpler, cheaper than token LANs and ATM
Kept up with speed race: 10 Mbps 10 Gbps
Metcalfes Ethernet
sketch
DataLink Layer
14
Star topology
Bus topology popular through mid 90s
Now star topology prevails
hub
DataLink Layer
15
DataLink Layer
16
Before attempting a
retransmission,
adapter waits a
random time, that is,
random access
DataLink Layer
17