chapter 1: an easy introduction to the shared wireless medium

24
Wireless Connectivity: An Intuitive and Fundamental Guide Chapter 1: An Easy Introduction to the Shared Wireless Medium Petar Popovski Connectivity Section Department of Electronic Systems [email protected] Contributions to the slides: Israel Leyva-Mayorga Radoslaw Kotaba Abolfazl Amiri Alexandru-Sabin Bana Robin J. WIlliams

Upload: others

Post on 17-Apr-2022

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Chapter 1: An Easy Introduction to the Shared Wireless Medium

Wireless Connectivity: An Intuitive and Fundamental Guide

Chapter 1: An Easy Introduction to the Shared Wireless Medium

Petar PopovskiConnectivity Section

Department of Electronic [email protected]

Contributions to the slides:Israel Leyva-Mayorga

Radoslaw KotabaAbolfazl Amiri

Alexandru-Sabin BanaRobin J. WIlliams

Page 2: Chapter 1: An Easy Introduction to the Shared Wireless Medium

Chapters

1. An Easy Introduction to the Shared Wireless Medium 2. Random Access: How to Talk in Crowded Dark Room3. Access Beyond the Collision Model4. The Networking Cake: Layering and Slicing5. Packets Under the Looking Glass: Symbols and Noise6. A Mathematical View on a Communication Channel7. Coding for Reliable Communication8. Information-Theoretic View on Wireless Channel Capacity9. Time and frequency in wireless communications10. Space in wireless communications 11. Using Two, More, or a Massive Number of Antennas12. Wireless Beyond a Link: Connections and Networks

2Wireless Connectivity: An Intuitive and Fundamental Guide Chapter 1: An Easy Introduction to the Shared Wireless Medium

Page 3: Chapter 1: An Easy Introduction to the Shared Wireless Medium

3Wireless Connectivity: An Intuitive and Fundamental Guide Chapter 1: An Easy Introduction to the Shared Wireless Medium

Page 4: Chapter 1: An Easy Introduction to the Shared Wireless Medium

Basic tradeoff in a shared communication medium

• It offers an advantage when the same information needs to be broadcasted to multiple receiving devices

• When these devices become transmitters, we need to mitigate interference

4Wireless Connectivity: An Intuitive and Fundamental Guide Chapter 1: An Easy Introduction to the Shared Wireless Medium

Page 5: Chapter 1: An Easy Introduction to the Shared Wireless Medium

What will be learned in this chapter

• Specify a simple model for actors that share a communication medium

• Tackling the problems of “who talks first” and rendezvous

• How the assumption of half-duplex vs. full-duplex operation changes the design of a communication protocol

• Making a basic time-sharing communication protocol and illustrating the gap with the real-life operation

• A bit of advanced time-sharing: reservation and dynamic allocation

5Wireless Connectivity: An Intuitive and Fundamental Guide Chapter 1: An Easy Introduction to the Shared Wireless Medium

Page 6: Chapter 1: An Easy Introduction to the Shared Wireless Medium

Shared channel and its characteristicsSound waves and air analogyProperties:§ Half/full duplex§ Broadcast§ Interference

Other assumptions§ Omnidirectional transmission and reception

Making a simple wireless model

6Wireless Connectivity: An Intuitive and Fundamental Guide Chapter 1: An Easy Introduction to the Shared Wireless Medium

Page 7: Chapter 1: An Easy Introduction to the Shared Wireless Medium

A simple collision model

Special (pessimistic) case of fully destructive interferenceSuccessful transmission requires:§ Communicating devices

need to be within a communication range

§ No other simultaneous communication in receiver’s range (zero tolerance to interference)

§ If half-duplex: a receiver must be in a “listening state”

7

distance

data rate

timeZoya packet Z1

timeYoshi packet Z1

timeXia

timeWalt packet X1

packet X1

packet Z2

packet Z2

Transmission Reception Collision

Channel model

d0

Zoya

Yoshi

Xia

Walt

packet X1

Interference

Links

R

Wireless Connectivity: An Intuitive and Fundamental Guide Chapter 1: An Easy Introduction to the Shared Wireless Medium

Page 8: Chapter 1: An Easy Introduction to the Shared Wireless Medium

Wireless vs. wired

Wireless mediumü Flexibility to establish new

connections ü High resource utilization ✘ Coordination is required to avoid

interferenceü Natural broadcast capability✘ Extra mechanisms

are required for security

Wired medium✘ New connections require new

dedicated physical resources✘ Low resource utilizationü No coordination is required, each

user has its own medium✘ Broadcast is expensiveü Has in a way “embedded” security

8Wireless Connectivity: An Intuitive and Fundamental Guide Chapter 1: An Easy Introduction to the Shared Wireless Medium

Page 9: Chapter 1: An Easy Introduction to the Shared Wireless Medium

Broadcast and interference

Zoya

Basil

Yoshi

d

Xia

(a)

Zoya

Basil

Yoshi

Xia

(b)broadcast(cheap)

interference(expensive to manage)

9Wireless Connectivity: An Intuitive and Fundamental Guide Chapter 1: An Easy Introduction to the Shared Wireless Medium

Page 10: Chapter 1: An Easy Introduction to the Shared Wireless Medium

The first contact (1)

Who speaks first?Ideally, some hierarchy is in place and the higher tier entity initiates communication

But what if more than one high tier entity is present?Randomize the transmission of invites!

Zoya

Basil Bastian

Basil invite invite invite

invite invite inviteBastian

Zoya

invite

slot

invite

invite

invite

accept

Basil

Bastian

Zoya

Discrete time

Continuous time

10Wireless Connectivity: An Intuitive and Fundamental Guide Chapter 1: An Easy Introduction to the Shared Wireless Medium

Page 11: Chapter 1: An Easy Introduction to the Shared Wireless Medium

The first contact (2)

Rendezvous without coordinationDevices that have not yet started communication are not synchronized

This reduces the chance of collision, asInvites help Zoya adjust her clock

Note that "who speaks first?" is not a problem with full-duplex

11

Zoya

Basil Bastian

Basil invite invite invite

invite invite inviteBastian

Zoya

invite

slot

invite

invite

invite

accept

Basil

Bastian

Zoya

Discrete time

Continuous time

Wireless Connectivity: An Intuitive and Fundamental Guide Chapter 1: An Easy Introduction to the Shared Wireless Medium

Page 12: Chapter 1: An Easy Introduction to the Shared Wireless Medium

Multiple access with centralized controlThe base station splits the resources when multiple users are involvedTime Division Multiple Access (TDMA): The entire communication medium is assigned to one user for a fraction of time; based on frames and slots

ü Perfect for periodic trafficü Little signaling is requiredü Users can go to sleep in-between✘ Inefficient if the users

are inactive at their slots✘ Loss of synchronization

is critical

12

time…

slot

TDMA frame

… Zoya Yoshi Xia Walt Zoya Yoshi Xia Walt

Periodic, equal allocation

slot

TDMA frame

… Zoya Yoshi Zoya Zoya Yoshitime

Periodic, unequal allocation

Xia Zoya Yoshi

Wireless Connectivity: An Intuitive and Fundamental Guide Chapter 1: An Easy Introduction to the Shared Wireless Medium

Page 13: Chapter 1: An Easy Introduction to the Shared Wireless Medium

Metrics for communication protocols

We define a logical channel for the users; see Zoya’s in the figureEffective data rate Rc is calculated from a nominal data rate R and slot duration 𝑇Periodic, equal allocationFor K users over F observed frames

Periodic, unequal allocation

𝑅! =𝐹 ( 𝑅 ( 𝑇𝐹 ( 𝐾 ( 𝑇

=𝑅𝐾

[bps]

𝑅#(𝑇$) =< data bits sent over period 𝑇$ >

𝑇$[bps]

13

time…

slot

TDMA frame

… Zoya Yoshi Xia Walt Zoya Yoshi Xia Walt

Periodic, equal allocation

slot

TDMA frame

… Zoya Yoshi Zoya Zoya Yoshitime

Periodic, unequal allocation

Xia Zoya Yoshi

Wireless Connectivity: An Intuitive and Fundamental Guide Chapter 1: An Easy Introduction to the Shared Wireless Medium

Page 14: Chapter 1: An Easy Introduction to the Shared Wireless Medium

Signaling and metadata

These are needed to ensure a robust system operation

Adding a relatively short header at the start of the frame has numerous benefits:§ The base station can schedule the frame when needed

§ Unsynchronized devices can align with the header§ A single bit can indicate uplink or downlink frame

time… …

time…

T

TDMA frame

TFH

header

Periodic, full occupancy

Flexible scheduling

14Wireless Connectivity: An Intuitive and Fundamental Guide Chapter 1: An Easy Introduction to the Shared Wireless Medium

Page 15: Chapter 1: An Easy Introduction to the Shared Wireless Medium

Signaling and metadata: A simple system that (almost) worksHeader types§ H00: Link establishment frame§ H01: Start of link termination; wait for

indication from Basil§ H10: Downlink (DL) frame§ H11: Uplink (UL) frame

TFH: Header durationT : Frame duration

Assume %%"#

= &'

Slot as atomic unit with duration 𝑇( =%&= %"#

'

Uplink/downlink allocation

Link establishment

time

H10 Zoya receives

H11 Zoya sends

time

time

H00 Basil confirms

Xiareplies

15Wireless Connectivity: An Intuitive and Fundamental Guide Chapter 1: An Easy Introduction to the Shared Wireless Medium

Page 16: Chapter 1: An Easy Introduction to the Shared Wireless Medium

System in action with 3 terminals

time

slot 1 allocatedH00 Zoya H10

Zoyapowers on

Basil to Zoya Ø Ø H11 Zoya Ø Ø

Yoshi powers on

time

H00 YoshiXia

Xiapowers on

collision

Ø H00 Ø Ø

time

H00 Xia slot 2 allocated H00 Yoshi slot 3

allocated

Yoshi and Xia silent

H10 Basil to Zoya Ø Ø

H11 Zoya Xia Yoshi

16Wireless Connectivity: An Intuitive and Fundamental Guide Chapter 1: An Easy Introduction to the Shared Wireless Medium

Page 17: Chapter 1: An Easy Introduction to the Shared Wireless Medium

Still not a practical system

What happens if Zoya walks out of the cell?Basil employs a timeout mechanism

What happens if Zoya returns, unaware that Basil changed the allocation?

Zoya

Basil

Yoshi

d

Xia

Zoya

Basil

Yoshi

Xia

Simple models should be enriched and become robust to (a lot of) practical issues

17Wireless Connectivity: An Intuitive and Fundamental Guide Chapter 1: An Easy Introduction to the Shared Wireless Medium

Page 18: Chapter 1: An Easy Introduction to the Shared Wireless Medium

Making a dynamic TDMA (1)

User activity is rarely static Distinctive user requirementsTrade-offs between circuit switched and packet-switched operationCircuit-switchedü Minimal signaling✘ Low flexibility

Packet-switchedü Dynamic allocation of resources✘ High overhead

Increasing signaling increases flexibility

18Wireless Connectivity: An Intuitive and Fundamental Guide Chapter 1: An Easy Introduction to the Shared Wireless Medium

Page 19: Chapter 1: An Easy Introduction to the Shared Wireless Medium

Making a dynamic TDMA (2)

How many bits are required to allocate K users in a frame with F slots?

There are KFways to allocateFor a system that supports up to 𝐾"#$ active users, the frame header must contain at least log%𝐾& ≤ 𝐹 log%𝐾 ≤ 𝐹 log%𝐾"#$ additional bitsExample: For MAC address 𝐾"#$ = 2'(

time

T

TDMA frame

TFH

header

19Wireless Connectivity: An Intuitive and Fundamental Guide Chapter 1: An Easy Introduction to the Shared Wireless Medium

Page 20: Chapter 1: An Easy Introduction to the Shared Wireless Medium

Making a dynamic TDMA (3)

DL is easy UL is complicated…

Unless Xia’s packets are perfectly predictable Basil can:§ Guess it (e.g. polling)§ Learn it (reservation)Analogy with conference scenario (however, this assumes an additional channel for signaling)

Zoya

Basil

Yoshi

Xia

How does Basil know how to assign resources?

ZoyaBasil

Yoshi

d

Xia

20Wireless Connectivity: An Intuitive and Fundamental Guide Chapter 1: An Easy Introduction to the Shared Wireless Medium

Page 21: Chapter 1: An Easy Introduction to the Shared Wireless Medium

Short control packets and reservation

How does Basil know how to assign resources?It allows all users to send short reservation packets ↑overheadAllocates users according to their requirements

time

TDMA frame

TH

A

Tr Ta

H

FT

H…

time

TDMA frame

TH

A

TrTa

H

FT

H…

A

Basil transmits

Terminal transmits

Allocation in the next frame

Allocation in the same frame

21Wireless Connectivity: An Intuitive and Fundamental Guide Chapter 1: An Easy Introduction to the Shared Wireless Medium

Page 22: Chapter 1: An Easy Introduction to the Shared Wireless Medium

Evaluating overheadWe express overhead in relation to the duration of sending one bit

Data rate for a device that uses a single slot is !𝑅 = !""##"$#"%#$"

time

TDMA frame

TH

A

Tr Ta

H

FT

H…

time

TDMA frame

TH

A

TrTa

H

FT

H…

A

Basil transmits

Terminal transmits

Allocation in the next frame

Allocation in the same frame§ For simplicity, all transmissions are made at a nominal rate of 𝑅 bps

§ A data packet with 𝐷 = 𝑅𝑇 bits § A reservation packet with

𝑟 = log,(𝐹 + 1) bits § An allocation packet with

a = 𝐹 log, 𝐾-./ bits

@𝑅 =𝑅

2 + 𝑟 + 𝑎𝐷 + 𝐹

LARGE data packets improve efficiency

22Wireless Connectivity: An Intuitive and Fundamental Guide Chapter 1: An Easy Introduction to the Shared Wireless Medium

Page 23: Chapter 1: An Easy Introduction to the Shared Wireless Medium

Half-duplex vs. full-duplex TDMA

Ideal switching between transmission (TX) and reception (RX) is not the case in practice: turnaround timeAvoid frequent turnaround to increase efficiencyGain of full duplex: lower latency

time

TDMA frame

…H-D

… downlink transmission

…0 1 2 3

H-U

uplink transmission

H-D H-U

4 0 1

reservationslots

23Wireless Connectivity: An Intuitive and Fundamental Guide Chapter 1: An Easy Introduction to the Shared Wireless Medium

Page 24: Chapter 1: An Easy Introduction to the Shared Wireless Medium

Outlook and takeaways

§ Simple models for sharing the wireless channel§ Broadcasting nature of the wireless medium: interference = collisions§ We can consider the packet as an atomic unit,

but can also consider variable packet sizes§ Simple, yet practical, design principles for protocols§ Flexibility vs. overhead in protocol design§ Full vs. half-duplex: latency advantages in protocols

24Wireless Connectivity: An Intuitive and Fundamental Guide Chapter 1: An Easy Introduction to the Shared Wireless Medium