1 of 57

1

CS 168, Spring 2026 @ UC Berkeley

Slides credit: Sylvia Ratnasamy, Rob Shakir, Peyrin Kao, Raj Jain

Cellular

Lecture 25 (Wireless 2)

2 of 57

Brief History of Cellular Networks

Lecture 25, CS 168, Spring 2026

Why is Cellular Different?

  • Brief History
  • Standards
  • Challenge: Mobility

Cellular Networks

  • Infrastructure
  • High-Level View
  • Step 0: Registration
  • Step 1: Discovery
  • Step 2: Attachment
  • Step 3: Data Exchange
  • Step 4: Handover
  • Roaming and Other Features

3 of 57

Why Study Cellular?

Goal: Wireless mobile connectivity, e.g. watching video in a moving car.

  • Cellular is the dominant approach today.
    • Over 50% of web traffic originates from a cellular device!
  • Other technologies (e.g. satellite) also exist.

Active area of research!

  • New bandwidth-intensive mobile apps, e.g. virtual reality, self-driving cars.
  • Cellular network is facing severe scaling challenges.
    • Deploying towers and buying spectrum is expensive.
    • Traditional operators (AT&T, Verizon) don't have a reputation for rapid innovation.

Mobile Wireless Access

Cellular

Satellite

Free-Space Optics

Our focus today.

The whole area is ripe for disruption!

4 of 57

Brief History of Cellular Networks

Cellular networks are derived from the old telephone network.

  • Original purpose: Make phone calls wirelessly.

Martin Cooper made the first�mobile call on this Motorola phone.

Sold for $4,000 in 1983�(over $12,000 today).

Apparently worth over $40,000 today as an antique.

5 of 57

Brief History of Cellular Networks

Roots in the telephone network led to design choices that differ from the Internet.

The Internet:

  • Best-effort.
  • Per-flow or per-packet state.
  • Doesn't really track usage per user.

Cellular networks:

  • Resource reservations.
  • Per-user state in the network.
  • Emphasis on accountability.

In recent years, cellular networks evolved to be more compatible with the Internet.

  • Today, can think of cellular networks as Layer 2 networks within the Internet.

6 of 57

Cellular Network Standards

Lecture 25, CS 168, Spring 2026

Why is Cellular Different?

  • Brief History
  • Standards
  • Challenge: Mobility

Cellular Networks

  • Infrastructure
  • High-Level View
  • Step 0: Registration
  • Step 1: Discovery
  • Step 2: Attachment
  • Step 3: Data Exchange
  • Step 4: Handover
  • Roaming and Other Features

7 of 57

Cellular Standards Bodies

3GPP (3rd Generation Partnership Project) consortium oversees standardization efforts.

  • Includes equipment vendors and telecommunications companies.
  • Everyone must agree on protocols to achieve interoperability.

Standards ratified by ITU (International Telecom Union), part of the United Nations.

  • Politics are involved in approving standards!

8 of 57

Cellular Standards Evolution

New generation every 10 years: 1G, 2G, 3G, 4G, 5G.

  • 5G introduced in 2019, still being deployed.
  • 6G coming in 2030.

The marketing view:�Every generation is better than the last!

9 of 57

Cellular Standards Evolution

Each generation aims for a ~10x improvement along a few different dimensions:

  • Peak theoretical data rate.
  • Average data rate experienced by users.
  • Mobility: Connection while user travels at high speed.
  • Connection density: Number of devices in a specific era.
  • etc.

Light green = 4G quality along 8 different dimensions.

Dark green = 5G quality along those same dimensions.

10 of 57

Cellular Standards Evolution

In addition to performance evolution, there's also been an architectural evolution:

  • 1G:
    • Analog.
    • Designed for voice calls.
  • 2G/3G:
    • Mostly circuit-switched.
    • Focused on voice traffic. Some texting. Barely any Internet access.
  • LTE/4G onwards:
    • Packet-switched.
    • Voice just one of many different applications.

11 of 57

Cellular Standards Specifications

Cellular specifications are long and complicated.

  • Hundreds of documents. Thousands of pages.
  • Endless acronyms.
  • Obscure naming conventions.
  • Components/protocols are renamed in every generation!
    • "Base station" → "NodeB" → "evolved Node B (eNodeB)"�→ next-gen Node B (gNB)

In this class, we'll exercise some poetic license and invent our own terminology.

  • Loosely based on the LTE architecture.
  • Conceptually correct, but not an exact match to textbooks and real standards.

12 of 57

Challenge: Mobility

Lecture 25, CS 168, Spring 2026

Why is Cellular Different?

  • Brief History
  • Standards
  • Challenge: Mobility

Cellular Networks

  • Infrastructure
  • High-Level View
  • Step 0: Registration
  • Step 1: Discovery
  • Step 2: Attachment
  • Step 3: Data Exchange
  • Step 4: Handover
  • Roaming and Other Features

13 of 57

Key Challenge: Mobility

What fundamental new requirements does mobility introduce?

  • Discovery: What cell tower should a mobile device connect to?
  • Authentication: Should the tower provide service to this device?
  • Seamless communication: No disruption to new/ongoing application sessions.
  • Accountability: Enforcing resource limits based on the user's service plan.

14 of 57

Cellular Infrastructure

Lecture 25, CS 168, Spring 2026

Why is Cellular Different?

  • Brief History
  • Standards
  • Challenge: Mobility

Cellular Networks

  • Infrastructure
  • High-Level View
  • Step 0: Registration
  • Step 1: Discovery
  • Step 2: Attachment
  • Step 3: Data Exchange
  • Step 4: Handover
  • Roaming and Other Features

15 of 57

Infrastructure Components (1/5): Radio Towers

Inside a radio tower:

  • Radio transceiver: Converts data to signals sent over the air interface.
  • Radio controller: Decides how to allocate radio resources.
    • Traditionally near the tower, but sometimes in the cloud now.

Radio Tower

Range of tower

Antenna

Transceiver

Controller

16 of 57

Infrastructure Components (1/5): Radio Towers

Simplified model: Radio controller is like a CPU running a scheduler.

  • Decide who gets to transmit when, and on what frequency.
  • Each block represents one part of the spectrum at one time slot.

Time

Frequency

Purple user gets these frequencies...

...at these times.

17 of 57

Infrastructure Components: Radio Access Network

Each operator has a radio access network of many towers.

  • Neighboring towers are assigned non-overlapping frequency ranges.
  • Towers in more populated areas can get allocated more frequencies.

Cellular Radio Access Network (RAN)

18 of 57

Infrastructure Components: Cellular Core

The cellular core is the "backend" of the cellular network.

Cellular Radio Access Network (RAN)

R1

R2

P1

Mobility Manager

Database

Cellular Core

To Internet

19 of 57

Infrastructure Components (2/5 and 3/5): Radio Gateway, Packet Gateway

Data-plane components (routers):

  • Radio gateway: Boundary between RAN and core.
  • Packet gateway: Boundary between cellular network and rest of Internet.

Cellular Radio Access Network (RAN)

R1

R2

P1

Mobility Manager

Database

Cellular Core

To Internet

R1 and R2 are radio gateways.

P1 is the packet gateway.�(There could be multiple).

Wired links between towers and radio gateways.

20 of 57

Infrastructure Components (4/5 and 5/5): Mobility Manager, Database

Control-plane components:

  • Mobility manager: Handles authentication, mobility, location tracking, etc.
  • Database: Stores information about customers.

Cellular Radio Access Network (RAN)

R1

R2

P1

Mobility Manager

Database

Cellular Core

To Internet

Manager can access database.

Manager can configure gateways and towers.

21 of 57

Infrastructure Components: Summary

  • Cell towers (arranged in a RAN).
  • Data plane: Radio gateways, packet gateways.
  • Control plane: Mobility manager, database.

Cellular Radio Access Network (RAN)

R1

R2

P1

Mobility Manager

Database

Cellular Core

To Internet

22 of 57

High-Level View

Lecture 25, CS 168, Spring 2026

Why is Cellular Different?

  • Brief History
  • Standards
  • Challenge: Mobility

Cellular Networks

  • Infrastructure
  • High-Level View
  • Step 0: Registration
  • Step 1: Discovery
  • Step 2: Attachment
  • Step 3: Data Exchange
  • Step 4: Handover
  • Roaming and Other Features

23 of 57

High-Level View (0/4) – Registration

Step 0: Registration.

  • User registers for the service. Database is updated.

R1

R2

Mobility Manager

Database

P1

24 of 57

High-Level View (1/4) – Discovery

Step 1: Discovery.

  • User wants to connect.
  • User device discovers available towers and picks one.

R1

R2

P1

Database

Mobility Manager

25 of 57

High-Level View (2/4) – Attachment

Step 2: Attachment.

  • Device asks the tower to connect.
  • Tower checks with mobility manager if connection is allowed.

R1

R2

P1

Database

Mobility Manager

26 of 57

High-Level View (2/4) – Attachment

Step 2: Attachment.

  • If manager approves request, it configures a path between user and Internet.

R1

R2

P1

Database

Mobility Manager

27 of 57

High-Level View (3/4) – Data Exchange

Step 3: Data exchange.

  • User can now send and receive data!
  • Packets travel along the path configured in previous step.

R1

R2

P1

Database

Mobility Manager

28 of 57

High-Level View (4/4) – Handover

Step 4: Handover.

  • Device might move away from old tower, closer to a new tower.
  • Device, old tower, new tower, and manager work together to switch towers.

R1

R2

P1

Database

Mobility Manager

29 of 57

High-Level View (4/4) – Handover

Step 4: Handover.

  • Manager configures a new path through the network for the user.
  • Handover must be seamless. We can't interrupt the user's connection!
    • User's IP address should stay the same.

R1

Database

Mobility Manager

R2

P1

30 of 57

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

31 of 57

High-Level View – Roaming

One last feature is roaming: User connecting to a different network.

  • Example: User visiting a different country.
  • Mostly works the same as what we've seen.
  • Main difference: Managers in the visited and home networks must coordinate.

R1

R2

P1

DB

Manager

Home network

R1

R2

P1

DB

Manager

Visited network

Internet

32 of 57

Step 0: Registration

Lecture 25, CS 168, Spring 2026

Why is Cellular Different?

  • Brief History
  • Standards
  • Challenge: Mobility

Cellular Networks

  • Infrastructure
  • High-Level View
  • Step 0: Registration
  • Step 1: Discovery
  • Step 2: Attachment
  • Step 3: Data Exchange
  • Step 4: Handover
  • Roaming and Other Features

33 of 57

Identifying User Devices: IMSI

When you register for a service, you receive an IMSI (International Mobile Subscriber Identity).

  • Uniquely identifies a user's subscription.
  • Securely stored in hardware (SIM) card.
  • IMSI stays the same if you switch phones, but keep the same service plan.

MCC�(3 digits)

MNC�(2–3 digits)

MSIN�(9–10 digits)

Mobile Country Code

Mobile Network Code

Mobile Subscriber Identification Number

IMSI (no more than 15 digits)

34 of 57

Identifying User Devices: IMSI, IMEI, IP, MSISDN

Different ways to identify a user device:

  • IMSI: Identifies a user subscription.
  • IP address: Assigned on attachment, typically retained across handovers.
    • Can change each time you attach to the network.
  • IMEI (International Mobile Equipment Identity): Identifies a physical device.
    • Identifies device manufacturer and model.
    • Burned into hardware. Stays the same even if you switch plans.
  • MSISDN: Your phone number.
    • Operator maps your phone number to your IMSI.

35 of 57

Step 0: Registration

  • User registers for the service.
  • Operator stores user's IMSI and plan information in the database.
  • Establishes a shared key known only by the user and operator.
    • User: Stored in SIM card.
    • Operator: Stored in database.

R1

R2

Mobility Manager

Database

P1

36 of 57

Step 1: Discovery

Lecture 25, CS 168, Spring 2026

Why is Cellular Different?

  • Brief History
  • Standards
  • Challenge: Mobility

Cellular Networks

  • Infrastructure
  • High-Level View
  • Step 0: Registration
  • Step 1: Discovery
  • Step 2: Attachment
  • Step 3: Data Exchange
  • Step 4: Handover
  • Roaming and Other Features

37 of 57

Step 1: Discovery

Towers transmit periodic beacons to announce their presence.

  • Beacons transmitted on a dedicated control channel.
    • Avoids interfering with data.
    • Each frequency range has its own control channel.�Avoids beacons interfering with each other.
  • Beacons identify the network operator.
    • User compares beacon against the network ID (in the user's IMSI).

User measures signal strength to different towers,�and picks the tower (belonging to its operator)�with the best signal.

38 of 57

Discovery: Finding Control Channel

Bootstrapping problem: How does the user know which control channel to listen to?

  • Scan all frequencies.
    • Slow, but sometimes unavoidable.
  • At registration, pre-configure device with a list of frequency channels.
  • Cache previously-used channels.

Note: During handovers, the old tower tells the user the channel on the new tower.

  • No need to scan! Handovers take 0.01s–0.1s.
  • Contrast with attachment, which takes 10s–100s.

39 of 57

Step 2: Attachment

Lecture 25, CS 168, Spring 2026

Why is Cellular Different?

  • Brief History
  • Standards
  • Challenge: Mobility

Cellular Networks

  • Infrastructure
  • High-Level View
  • Step 0: Registration
  • Step 1: Discovery
  • Step 2: Attachment
  • Step 3: Data Exchange
  • Step 4: Handover
  • Roaming and Other Features

40 of 57

Step 2: Attachment

1. User sends attach request to tower, containing user's IMSI.

2. Tower forwards request to mobility manager.

3. Mobility manager processes the request, by looking up the IMSI in database.

  • Use secret key to authenticate: Is the user who they claim to be?
  • Use database to check service parameters: Did user pay their bills?

R1

R2

Mobility Manager

Database

P1

1

2

3

41 of 57

Step 2: Attachment

4. If request is approved, mobility manager configures the data plane.

  • Assign an IP address to the user.
  • Tell the tower how many resources to allocate for this user.
  • Configure tower and routers to create a path from user to Internet.
  • Initialize counters to track the device's usage.

R1

R2

Database

P1

Mobility Manager

42 of 57

Step 2: Attachment

5. If request is approved, mobility manager records information in the database,� mapping the user's IMSI to their current:

  • Location (tower).
  • Path to the Internet (radio gateway, packet gateway).
  • IP address.

R1

R2

Mobility Manager

Database

P1

43 of 57

Step 2: Attachment

1. User sends attach request to tower, containing user's IMSI.�2. Tower forwards request to mobility manager.�3. Mobility manager processes the request, by looking up the IMSI in database.�4. If request is approved, mobility manager configures the data plane.�5. If request is approved, mobility manager records information in the database.

Note: All communication so far is over dedicated control channels.

R1

R2

Database

P1

1

4

5

Mobility Manager

2

4

4

3

44 of 57

Step 3:�Data Exchange

Lecture 25, CS 168, Spring 2026

Why is Cellular Different?

  • Brief History
  • Standards
  • Challenge: Mobility

Cellular Networks

  • Infrastructure
  • High-Level View
  • Step 0: Registration
  • Step 1: Discovery
  • Step 2: Attachment
  • Step 3: Data Exchange
  • Step 4: Handover
  • Roaming and Other Features

45 of 57

Step 3: Data Exchange

Device can now send and receive packets with its IP address!

How does the network know how to forward packets?

  • Users are constantly moving.
  • Traditional routing algorithms won't converge.

R1

R2

P1

46 of 57

Step 3: Data Exchange with Tunnels

Solution: Mobility manager configures a path from user to Internet using tunnels.

Result is different from traditional IP networks:

  • No direct forwarding on the user's IP address!
  • Requires installing per-user state in the network.

R2

P1

If I get a packet exiting the green tunnel, send it into the blue tunnel.

R1

If I get a packet exiting the pink tunnel, send it into the green tunnel.

47 of 57

Step 3: Data Exchange with Tunnels

How do we tell if a packet is traveling through a tunnel? Use encapsulation.

User's IP

[Payload]

User's IP

[Payload]

User's IP

[Payload]

R1

R2

P1

Blue Tunnel

User's IP

[Payload]

User sends plain IP packet. No need to think about tunnels.

User's IP

[Payload]

Blue Tunnel

Cellular network adds extra header.

Blue Tunnel

User's IP

[Payload]

Packet forwarded through cellular network. No need to think about user IP!

Extra header removed, and plain IP packet sent to rest of Internet.

48 of 57

Step 4: Handover

Lecture 25, CS 168, Spring 2026

Why is Cellular Different?

  • Brief History
  • Standards
  • Challenge: Mobility

Cellular Networks

  • Infrastructure
  • High-Level View
  • Step 0: Registration
  • Step 1: Discovery
  • Step 2: Attachment
  • Step 3: Data Exchange
  • Step 4: Handover
  • Roaming and Other Features

49 of 57

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.

50 of 57

Step 4: Handover

Handover is complicated.

  • Cooperative process between user, towers, manager, and gateways.
  • More involved when we have to change the radio or packet gateways being used.

Handover must be seamless.

  • User's IP address cannot change.
  • User is still sending/receiving data during handover.
  • Old tower can buffer data it receives during handover.
  • After handover, old tower transfers buffer to new tower.

Decisions are made by the operator.

  • Device reports signal strength, but old tower chooses the new tower.
  • Benefit: Operator has more control, e.g. for load-balancing.
  • Drawback: Slower, requires extra round-trips.

51 of 57

Roaming and Other Features

Lecture 25, CS 168, Spring 2026

Why is Cellular Different?

  • Brief History
  • Standards
  • Challenge: Mobility

Cellular Networks

  • Infrastructure
  • High-Level View
  • Step 0: Registration
  • Step 1: Discovery
  • Step 2: Attachment
  • Step 3: Data Exchange
  • Step 4: Handover
  • Roaming and Other Features

52 of 57

Roaming

Visitor and home networks must establish a roaming agreement.

  • Visited network uses device's network code (in IMSI) to learn the home network.
  • Need home network's help to authenticate user.
  • Need to update home network's database with user's location.

R1

R2

P1

DB

Manager

Home network

R3

DB

Manager

Visited network

Internet

P2

R4

53 of 57

Roaming

Two common ways to configure path from user to Internet.

  • Home routing: Tunnel traffic through the home network's packet gateway.
  • Benefit: Home network can track user.
  • Drawback: Packets takes longer path to Internet.

R1

R2

DB

Manager

Home network

R3

R4

DB

Manager

Visited network

Internet

P2

P1

54 of 57

Roaming

Two common ways to configure path from user to Internet.

  • Local breakout: Tunnel traffic through the visitor network's packet gateway.
  • Drawback: Harder for home network to track user.
  • Benefit: Packets takes shorter path to Internet.

R1

R2

P1

DB

Manager

Home network

R3

R4

DB

Manager

Visited network

Internet

P2

55 of 57

Additional Operations

Other operations in cellular networks:

  • Lawful intercept:
    • Allows law enforcement to wiretap specific subscribers.
    • Operators must be able to fulfill wiretap requests.
  • Stolen phone registries:
    • Users can report their phone stolen.
    • If someone connects stolen phone to network, the phone can be tracked.
    • Use IMEI (burned into phone) to identify the stolen phone.

These operations are possible because of centralized control.

56 of 57

Design Reflections

Stateful networks are complex and challenging!

  • Must store per-user state in the network.
  • Must reconfigure tunnels each time the user moves.
  • Requires extreme optimization to scale well.

Alternate designs:

  • Change IPs on handover:
    • Benefit: Can use standard routing protocols.
    • Drawback: TCP connections break when IPs change.
  • Tunnels.
    • Drawback: Must store per-user state for routing.
    • Benefit: Can use standard routing protocols.

Possible solution: QUIC is an alternate Layer 4 protocol that allows changing IPs.

57 of 57

Summary: Cellular

Cellular networks are based on a very different design philosophy:

  • Authentication and accountability are primary goals.
  • Allocation of radio bandwidth is based on reservations.
  • Lots of in-network state that is dynamic and per-user.
  • Mobility is the central challenge.

Cellular networks have evolved from a standalone voice network, to being an integral part of the Internet.

  • We've been able to seamlessly integrate cellular networks into the Internet.
  • Cellular architecture continues to evolve toward the Internet architecture.