31
Wireless Connectivity: An Intuitive and Fundamental Guide Chapter 4: The Networking Cake: Layering and Slicing 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

Chapter 4: The Networking Cake: Layering and Slicing

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Chapter 4: The Networking Cake: Layering and Slicing

Wireless Connectivity: An Intuitive and Fundamental Guide

Chapter 4: The Networking Cake: Layering and Slicing

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 4: The Networking Cake: Layering and Slicing

Modules1. An easy introduction to the shared wireless medium 2. Random Access: How to Talk in Crowded Dark Room3. Access Beyond the Collision Model

4. 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 4: The Networking Cake: Layering and Slicing

Page 3: Chapter 4: The Networking Cake: Layering and Slicing

3Wireless Connectivity: An Intuitive and Fundamental Guide Chapter 4: The Networking Cake: Layering and Slicing

Page 4: Chapter 4: The Networking Cake: Layering and Slicing

How to make protocols for a scalable communication architecture

• Mass production of communication protocols and their modules

• Universal support over a large number of services

• Possibility to customize the protocoland support the actual requirements of a service

4Wireless Connectivity: An Intuitive and Fundamental Guide Chapter 4: The Networking Cake: Layering and Slicing

Page 5: Chapter 4: The Networking Cake: Layering and Slicing

What will be learned in this chapter

• How to implement the algorithms/protocols discussed in the previous chapters

• The fundamental ideas behind layering: modules as black boxes that can be reused by various services

• From simple to standard layering models

• The concept of cross-layer optimization

• Slicing and sharing of communication resources by heterogeneous services

5Wireless Connectivity: An Intuitive and Fundamental Guide Chapter 4: The Networking Cake: Layering and Slicing

Page 6: Chapter 4: The Networking Cake: Layering and Slicing

Components of a wireless node

Which components are needed to run a certain protocol?

A simple architecture leading to a good layered system design:

Each component is a black boxthat fulfills a specific task

6

DataSender DataCollector

TxModule RxModule

Zoya Yoshi

Wireless Connectivity: An Intuitive and Fundamental Guide Chapter 4: The Networking Cake: Layering and Slicing

Page 7: Chapter 4: The Networking Cake: Layering and Slicing

Components of a wireless node

Assume modules are interconnected with wires

Known source and destination§ No address requirement

No protocol requirements

Perfectly reliable

7communication link

DataSender DataCollector

TxModule RxModule

Zoya Yoshi

What about these?

Wireless Connectivity: An Intuitive and Fundamental Guide Chapter 4: The Networking Cake: Layering and Slicing

Page 8: Chapter 4: The Networking Cake: Layering and Slicing

More than one application

Apps include metadataSender packs metadata + dataTransfer between TX-Rx modulesData collector differentiates APP1 and APP2 data

8

APP1 APP2DataSender

DataCollector

TxModule RxModule

Zoya

dataAPP1

dataAPP2 dataAPP1

dataAPP2

dataAPP1 dataAPP2

Yoshi

Packets

Wireless Connectivity: An Intuitive and Fundamental Guide Chapter 4: The Networking Cake: Layering and Slicing

Page 9: Chapter 4: The Networking Cake: Layering and Slicing

Three important concepts in layering

1. Module reuseby different services

2. Information hidingremove unnecessary complexity

3. Service through a black boximplementation arbitrary as long as it follows interfaces

Example of a two-layer systemthrough a telegraph service.

9

APP1 APP2DataSender

DataCollector

TxModule RxModule

Zoya

dataAPP1

dataAPP2 dataAPP1

dataAPP2

dataAPP1 dataAPP2

Yoshi

Packets

Wireless Connectivity: An Intuitive and Fundamental Guide Chapter 4: The Networking Cake: Layering and Slicing

Page 10: Chapter 4: The Networking Cake: Layering and Slicing

Layers and cross-layerLayers may surprise: ordering, buffering…Solution: add sequential numbering and an expense of extra overheadOR… IF DataSender knows internal scheduling policy of TxModule

§ Supply L packets to meet the internal scheduling:this is an instance of cross-layer optimization

§ Introducing the need for two-way communication

10

DataSender 1 DataCollector 1

DataSender 2 DataCollector 2

TxModule

11

2

2

2112

22

1

1

TxModuleInput Output

Wireless Connectivity: An Intuitive and Fundamental Guide Chapter 4: The Networking Cake: Layering and Slicing

Page 11: Chapter 4: The Networking Cake: Layering and Slicing

Two-way communication

When DataSender needs to know that DataCollector has received the dataà signalingThere is intra-device signaling over wired connectionsas well as inter-device wireless signaling over the same medium as the data(recall the dark room from Chapter 2)The errors as most likely to occur over the wireless link

§ How to design a robust system?

11

DataSender

TxModule

Zoya

DataCollector

RxModule

DataSender

TxModule

DataCollector

RxModule

Yoshi

Data Signaling (Metadata)

Wireless Connectivity: An Intuitive and Fundamental Guide Chapter 4: The Networking Cake: Layering and Slicing

Page 12: Chapter 4: The Networking Cake: Layering and Slicing

Reliable service from a layer

Reliable black box§ One that informs the higher layer upon

the delivery or failure of a packet

§ Can be done by using ARQ with 1-bit ACK or NACK

Unreliable black box § Transmits packet once§ Higher layer ensures reliability§ Lower layer unaware

§ End-to-end principle

12

DataSender

TxModule

Zoya

DataCollector

RxModule

DataSender

TxModule

DataCollector

RxModule

Yoshi

datacheck

data

A/N

data

DataSender

TxModule

Zoya

DataCollector

RxModule

DataSender

TxModule

DataCollector

RxModule

Yoshi

data

data

datacheck datacheckA/NA/N

Wireless Connectivity: An Intuitive and Fundamental Guide Chapter 4: The Networking Cake: Layering and Slicing

Page 13: Chapter 4: The Networking Cake: Layering and Slicing

Layers in communication protocolsPHY: physical layer

§ Idle, Collision, Single TxMAC: medium access control layer

§ Perform desired random access§ Store S-slots, and pass higher

DL: data link layer§ Integrity check§ Individual ACK

Strictly following the layered structure may not be optimal:an example is not being able to decide if the source of error is noise or collision

Cross-layer design: merging MAC and DL• Highly dependent on PHY being able to tell between S and C

13

Basil

DL

MAC

PHY

DL

MAC

PHY

DL

MAC

PHY

Zoya

DL

MAC

PHY

Yoshi Xia

shared wirelessmedium

Wireless Connectivity: An Intuitive and Fundamental Guide Chapter 4: The Networking Cake: Layering and Slicing

Page 14: Chapter 4: The Networking Cake: Layering and Slicing

Layering models for multi-hop connections

Introducing the network layer§ Passes the packet Zoya2Xia to the ZoyaDL, instructing it to send to Yoshi§ YoshiDL unaware of contents, but YoshiNetwork is § YoshiNetwork supplies Zoya2Xia to YoshiDL instructing it to send to Xia

14

Yoshi

Zoya

Victoria Walt

Xia

Zoya2Xia Zoya2X

ia

OSI model TCP/IP model7-Application layer

Application6-Presentation layer

5-Session layer

4-Transport layer Transport

3-Network layer Internet (IP)

2-Data link (DL) layerNetwork interface

1-Physical layer (PHY)

a protocol stackWireless Connectivity: An Intuitive and Fundamental Guide Chapter 4: The Networking Cake: Layering and Slicing

Page 15: Chapter 4: The Networking Cake: Layering and Slicing

Connection and connectionless protocolsConnection-oriented✘ Initial handshake to establishü Low metadata afterwardsü Suitable for longer, frequent exchanges

Connectionlessü No prior setup✘ No readiness to receive, e.g., random accessü Suitable for multicast

15Wireless Connectivity: An Intuitive and Fundamental Guide Chapter 4: The Networking Cake: Layering and Slicing

Page 16: Chapter 4: The Networking Cake: Layering and Slicing

The standard layering models

16

OSI model TCP/IP model

7-Application layer

Application6-Presentation layer

5-Session layer

4-Transport layer Transport

3-Network layer Internet (IP)

2-Data link (DL) layerNetwork interface

1-Physical layer (PHY)

PHY (works with bits)+ DL (works with packets)___________________network interface

MAC – intersection of PHY and DL

Network layer (IP)for path discovery

Wireless Connectivity: An Intuitive and Fundamental Guide Chapter 4: The Networking Cake: Layering and Slicing

Page 17: Chapter 4: The Networking Cake: Layering and Slicing

The network layer

Path preference from Zoya to Xia§ Knowledge on path properties

Route discovery and overhead

Multi-path diversity§ Encoding and sending information through two or more communication resources§ Ideally, these resources should be statistically independent

17

Yoshi

Zoya

Victoria Walt

Xia

Zoya2Xia Zoya2X

ia

Wireless Connectivity: An Intuitive and Fundamental Guide Chapter 4: The Networking Cake: Layering and Slicing

Page 18: Chapter 4: The Networking Cake: Layering and Slicing

Route discovery

Incurring overhead

Most communication is dynamic• Feasibility of route discovery determined by the rate of change

Flooding – each node forwards overheard packets

Hybrid solution: clustering

18

YoshiWalt

Umer

Wireless Connectivity: An Intuitive and Fundamental Guide Chapter 4: The Networking Cake: Layering and Slicing

Page 19: Chapter 4: The Networking Cake: Layering and Slicing

Alternative wireless layering

Protocol stacks oriented towards wired networksDiversity eases moving the packet closer to the destination

19

Yoshi

Zoya

Victoria Walt

Xia

Zoya2Xia Zoya2X

ia

Zoya2Xia

Zoya2XiaZoya2Xia

Wireless Connectivity: An Intuitive and Fundamental Guide Chapter 4: The Networking Cake: Layering and Slicing

Page 20: Chapter 4: The Networking Cake: Layering and Slicing

Alternative wireless layering

Protocol stacks oriented towards wired networksDiversity eases moving the packet closer to the destinationUnion of devices = super-device

20

Yoshi

Zoya

Victoria Walt

Xia

Zoya2Xia Zoya2X

ia

Zoya2Xia

Zoya2XiaZoya2Xia

Wireless Connectivity: An Intuitive and Fundamental Guide Chapter 4: The Networking Cake: Layering and Slicing

Page 21: Chapter 4: The Networking Cake: Layering and Slicing

Alternative wireless layering

Protocol stacks oriented towards wired networksDiversity eases moving the packet closer to the destinationUnion of devices = super-device

21

Yoshi

Zoya

Victoria Walt

Xia

Zoya2Xia Zoya2X

ia

Zoya2Xia

Zoya2XiaZoya2XiaEfficiency can be increased:

Coordination within a super-device in dedicated resources§ Better integration of

data and coordination§ How to make scalable protocols

applicable to universal scenarios

Wireless Connectivity: An Intuitive and Fundamental Guide Chapter 4: The Networking Cake: Layering and Slicing

Page 22: Chapter 4: The Networking Cake: Layering and Slicing

Cross-layer design for multiple hopsSingle routing Z-V-W-XMAC collision at V between Z & WNetwork layer is aware of Z-V-W being in rangeWhen both Z AND W want to send, networkmay inform MAC to mitigate a collision

22

Yoshi

Zoya

Victoria Walt

Xia

Zoya2Xia Zoya2X

ia

Wireless Connectivity: An Intuitive and Fundamental Guide Chapter 4: The Networking Cake: Layering and Slicing

Page 23: Chapter 4: The Networking Cake: Layering and Slicing

Cross-layer design for multiple hops

Single routing Z-V-W-XMAC collision at V between Z & WMore efficient x-layer solution:V knows the packet W will sendIf Z AND W collide, V performs SIC

§ decodes packet from Z while W delivers a packet to X

§ pipelining the communication

23

Yoshi

Zoya

Victoria Walt

Xia

Zoya2Xia Zoya2X

ia

Wireless Connectivity: An Intuitive and Fundamental Guide Chapter 4: The Networking Cake: Layering and Slicing

Page 24: Chapter 4: The Networking Cake: Layering and Slicing

Cross-layer design for multiple hopsAssume multi-path diversity: Z-Y-X and Z-V-W-X• Probability p that a link is in outage• Users send ACK, allowing others to

overhear and cease transmission of analready known packet

• Y acks V, W hears ack and ceases TX.However, this loses the advantage of multi-path diversity

24

Yoshi

Zoya

Victoria Walt

Xia

Zoya2Xia Zoya2Xia

Wireless Connectivity: An Intuitive and Fundamental Guide Chapter 4: The Networking Cake: Layering and Slicing

Page 25: Chapter 4: The Networking Cake: Layering and Slicing

Slicing the wireless resourcesModular layered architecture offers multiple points for services to convergeVarious requirements of servicesSlicing offers flexible adjustment of the convergence throughout the layers

25

Analog parts (antennas, amplifiers, etc.)

Voice TV

PHY layer

Link + Networklayer

Voice TV

PHY layer

Link + Networklayer

Link + Networklayer

Voice TV

Network layer

Voice TV

Network layerLink layer Link layer

PHY layer PHY layer

Wireless Connectivity: An Intuitive and Fundamental Guide Chapter 4: The Networking Cake: Layering and Slicing

Page 26: Chapter 4: The Networking Cake: Layering and Slicing

Slicing the wireless resourcesin general, sharing of§ computation§ data storage§ connectivity

Тhe networking cake in action

26

Network layer

Voice TV

Network layerLink layer Link layer

PHY layer PHY layer

Wireless Connectivity: An Intuitive and Fundamental Guide Chapter 4: The Networking Cake: Layering and Slicing

Page 27: Chapter 4: The Networking Cake: Layering and Slicing

A primer on wireless slicing

Broadband: Zoya

Low-latency reliable control: Yoshi

Uplink more interesting than downlink • Users are competing for resources without coordinating with each other• Full coordination in the downlink

27

Zoya Yoshi

Basil

Wireless Connectivity: An Intuitive and Fundamental Guide Chapter 4: The Networking Cake: Layering and Slicing

Page 28: Chapter 4: The Networking Cake: Layering and Slicing

A primer on wireless slicing

28

Zoya Yoshi

Basil

time

time

time

time

time

Zoya Z1

Yoshi

Y1 Y2 Y4

Y1

Z2 Z3

Y3 Y3dropped

Z4

Y2

Z5 Z6 Z7

Y4

Z8 Z9

Zoya Z1

Yoshi

Y1 Y2

Z1 Z1

Y3

Y2 Y6

Basil

Z2 Z2 Z2 Z3 Z3 Z3 Z4 Z4 Z4

Y1

Y4 Y5 Y6

Y4 Y5

Z1 Z1 Z1 Z2 Z2 Z2 Z3 Z3 Z3 Z4 Z4 Z4

Y3

transmission reception collision

Non-orthogonal slicing

Orthogonal slicing

Wireless Connectivity: An Intuitive and Fundamental Guide Chapter 4: The Networking Cake: Layering and Slicing

Page 29: Chapter 4: The Networking Cake: Layering and Slicing

Orthogonal wireless slicing

𝐺 =𝐿 − 1𝐿

𝑅 [bps]

Yoshi has arrival probability 𝑎

• If 𝑎 < !", Yoshi succeeds

• If 𝑎 ≥ !", queueing delay tends to infinity

What if Yoshi’s packets should have zero latency? 𝐿 = 1, and then 𝐺 = 0

We have reached the limit of orthogonal slicing

29

Zoya Z1

Yoshi

Y1 Y2 Y4

Y1

Z2 Z3

Y3 Y3dropped

Z4

Y2

Z5 Z6 Z7

Y4

Z8 Z9time

time

Wireless Connectivity: An Intuitive and Fundamental Guide Chapter 4: The Networking Cake: Layering and Slicing

Page 30: Chapter 4: The Networking Cake: Layering and Slicing

Non-orthogonal wireless slicing

Using extra-collision SIC

Zoya uses relaxed requirements, allowing 𝜖! error probabilityYoshi also allows 𝜖" error probabilityZoya repeats her packets 𝐿 = 3 times𝑎# ≤ 𝜖!, then 𝐺 = $

#1 − 𝑎# [bps]

and 𝑎#%& ≤ 𝜖"

30

Zoya Z1

Yoshi

Y1 Y2

Z1 Z1

Y3

Y2 Y6

Basil

Z2 Z2 Z2 Z3 Z3 Z3 Z4 Z4 Z4

Y1

Y4 Y5 Y6

Y4 Y5

Z1 Z1 Z1 Z2 Z2 Z2 Z3 Z3 Z3 Z4 Z4 Z4

Y3

transmission reception collision

time

time

time(c)

Wireless Connectivity: An Intuitive and Fundamental Guide Chapter 4: The Networking Cake: Layering and Slicing

Page 31: Chapter 4: The Networking Cake: Layering and Slicing

Outlook and takeaways

§ Modularization of the design and implementation of a communication system

§ Three key concepts in layering

§ Multi-hop, route discovery, alternative layering

§ Cross-layer design of protocols

§ Orthogonal and non-orthogonal wireless resource slicing

31Wireless Connectivity: An Intuitive and Fundamental Guide Chapter 4: The Networking Cake: Layering and Slicing