Discussion 13
1
CS 168, Summer 2025 @ UC Berkeley
Slides credit: Sylvia Ratnasamy, Rob Shakir, Peyrin Kao, Iuniana Oprescu
Wireless and Cellular 📱
Logistics
Wireless
What is wireless communication?
Transmit information without contact (e.g. with EM waves)
Wireless Signals
Wireless signals are not packets of data floating in space.
Wireless signals are waves that propagate in all directions.
A
B
How is wireless different from wired?
Wireless…
How is data encoded?
Physical Layer Modulation: Physical variations in signals map to digital values (i.e. 1 or 0)
Encoding Data Over Wireless Links
Wired link: Encode bits as electrical signals.
Wireless link:
0 0 1 1 0 0 0 0 0 1 0 1 0 1 1 1 1 0 0 0 0
Encoding Data Over Wireless Links – Modulation
Modulation: Impose our data signal on top of a carrier signal.
Amplitude Modulation (AM):
1 = Taller wave.
0 = Shorter wave.
Frequency Modulation (FM):
1 = Oscillate fast.
0 = Oscillate slow.
Original signal
+ Carrier signal
= Modulated signal
Other modulation strategies exist.
Path Loss is Messy
Wireless propagation is messy.
Color = strength of signal.
Medium Access Control
How to share the same transmission technology?
Key problem: wireless collisions are often unexpected (highly mobile, dynamic environment) and hard to detect (failure is the only indication)
How do we deal with a lack of reliability in networks?
CSMA in Wireless Networks
Key idea: listen for others on the medium and don’t transmit if busy
Notice: Signals propagate in all directions (not just toward the destination).
A
C
B
D
CSMA in Wireless Networks
If pairs are in range of each other, no problem!
A is quiet now.�My turn!
A
C
B
D
I hear A transmitting!
I'll wait for A to finish.
CSMA in Wireless Networks – Hidden Terminal Problem
Hidden terminal problem: two transmitters can’t hear each other
Problem: A and C are out-of-range. They can't detect each other sending.
A
C
B
All is quiet.�Time to send!
All is quiet.�Time to send!
???
CSMA in Wireless Networks – Exposed Terminal Problem
Exposed terminal problem:
Notice: We could have actually sent simultaneously.
A
C
B
D
All is quiet.�Time to send!
I hear B.
I'll be quiet.
This would have been okay!�But C didn't send.
MACA (Multiple Access with Collision Avoidance)
MACA fixes these problems problems that arise due to collisions at the sender!
A
B
RTS: "I want to send 1 MB."
CTS: "If you hear this, shut up.�I need to receive 1 MB."
A sends 1 MB.
MACA (Multiple Access with Collision Avoidance) – Solving Hidden Terminal Problem
MACA solves the hidden terminal problem.
A
C
B
RTS: "I want to send 1 MB."
CTS: "If you hear this, shut up.�I need to receive 1 MB."
B told me to be quiet.�I won't send.
A sends 1 MB.
C would have sent, but MACA saved the day!
MACA (Multiple Access with Collision Avoidance) – Solving Exposed Terminal Problem
MACA solves the exposed terminal problem, under certain assumptions.
A
C
B
D
I hear an RTS.�I'll be quiet for 1 time slot�to avoid clobbering the CTS.
RTS: "I want to send 1 MB."
CTS: "If you hear this, shut up. I'm receiving 1 MB."
B sends 1 MB.
C quiet at this time.
I didn't hear the CTS.�I'm not in receiver range.�I can send data!
C can send here too!�(After its own RTS/CTS.)
Cellular
How does cellular work?
How does cellular work?
High-Level View (0/4) – Registration
Step 0: Registration.
R1
R2
Mobility Manager
Database
P1
High-Level View (1/4) – Discovery
Step 1: Discovery.
R1
R2
P1
Database
Mobility Manager
High-Level View (2/4) – Attachment
Step 2: Attachment.
R1
R2
P1
Database
Mobility Manager
High-Level View (2/4) – Attachment
Step 2: Attachment.
R1
R2
P1
Database
Mobility Manager
High-Level View (3/4) – Data Exchange
Step 3: Data exchange.
R1
R2
P1
Database
Mobility Manager
High-Level View (4/4) – Handover
Step 4: Handover.
R1
R2
P1
Database
Mobility Manager
High-Level View (4/4) – Handover
Step 4: Handover.
R1
Database
Mobility Manager
R2
P1
High-Level View (4/4) – Handover
After handover, user has a new path through the network.
Step 3 (Data Exchange) and Step 4 (Handover) repeat as the user moves around.
R1
Database
Mobility Manager
R2
P1
Step 4: Handover
5. Connect to new tower using these slots.
2. Here's my signal strength to other towers.
Old Tower
Device
New Tower
1. Your signal strength is low. Measure signal to other towers.
3. User is coming your way...
4. OK. Here are radio slots for the user.
7. Handover complete!
Mobility Manager
6. I'm the new tower for the user.
Update user location in database.�Configure new path between user and Internet.
Roaming
R1
R2
P1
DB
Manager
Home network
R3
DB
Manager
Visited network
Internet
P2
R4
Worksheet
Question 1: True or False
Worksheet
Question 2: Cellular
Question 2: Cellular
Worksheet
Question 3: Wireless
Question 3: Wireless
Question 3: Wireless
Questions?
Feedback Form: https://tinyurl.com/cs168-su25-disc-feedback