using redundancy to enable interactive connectivity for ...€¦ · wifi and moving vehicles...

33
Using redundancy to enable interactive connectivity for moving vehicles Ratul Mahajan Microsoft Research Collaborators: Aruna Balasubramanian, Jitu Padhye, Sharad Agarwal, Abhinav Jain, Brian Levine, Arun Venkataramani, John Zahorjan, Brian Zill

Upload: others

Post on 03-Oct-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Using redundancy to enable interactive connectivity for ...€¦ · WiFi and moving vehicles Motivation for using WiFi: •Inexpensive, higher peak throughput • Increasing ubiquity

Using redundancy to enable interactive connectivity for moving vehicles

Ratul Mahajan

Microsoft Research

Collaborators: Aruna Balasubramanian, Jitu Padhye,

Sharad Agarwal, Abhinav Jain, Brian Levine, Arun Venkataramani, John Zahorjan, Brian Zill

Page 2: Using redundancy to enable interactive connectivity for ...€¦ · WiFi and moving vehicles Motivation for using WiFi: •Inexpensive, higher peak throughput • Increasing ubiquity

Increasing demand for connectivity from moving vehicles

Commuter Internet access

Seamless access between drivingand being stationary

Navigation units

• E.g., current traffic conditions

Many novel vehicular applications

• E.g., radio guides of current regions

ratul | kaist | jun '09 2

Page 3: Using redundancy to enable interactive connectivity for ...€¦ · WiFi and moving vehicles Motivation for using WiFi: •Inexpensive, higher peak throughput • Increasing ubiquity

Example devices driving the growth

ratul | kaist | jun '09 3

0

50

100

150

200

250

300

350

400

2006 2008 2010 2012 2014

Smar

tph

on

e u

sers

(m

illio

ns)

(Source: Park Associates, 2009)

Western Europe

Asia & Pacific

North America

-

20.00

40.00

60.00

80.00

100.00

120.00

2006 2008 2010 2012In

stal

led

bas

e (

mill

ion

s)(Source: Canalys, 2009)

EMEA

North America

Asia & Pacific

Smartphones Navigation units

Page 4: Using redundancy to enable interactive connectivity for ...€¦ · WiFi and moving vehicles Motivation for using WiFi: •Inexpensive, higher peak throughput • Increasing ubiquity

WLAN (E.g., WiFi)

WWAN(E.g., 3G, WiMax)

Cheaper

Higher peak txput

Longer range

More coverage

How to best enable such connectivity?

ratul | kaist | jun '09 4

Interested in popular applications • Web browsing, VoIP, e-mail, …

Page 5: Using redundancy to enable interactive connectivity for ...€¦ · WiFi and moving vehicles Motivation for using WiFi: •Inexpensive, higher peak throughput • Increasing ubiquity

This talk

Considers each possibility and shows that challenges are similar• Packet loss, inconsistent connectivity lead to poor

performance for interactive applications

• QoS mechanisms of wired networks do not work

Advocates the use of available redundancy• ViFi uses redundant BSes for WLAN settings

• PluriBus uses redundant capacity for WWAN settings

• Wiffler uses redundant technology

ratul | kaist | jun '09 5

Page 6: Using redundancy to enable interactive connectivity for ...€¦ · WiFi and moving vehicles Motivation for using WiFi: •Inexpensive, higher peak throughput • Increasing ubiquity

VanLAN: Our vehicular testbed

Uses MS campus shuttles as vehicular clients

• WiFi, EVDO (Sprint), WiMax (Clearwire)

• Zero driving overhead but limited control

11 WiFi basestations

ratul | kaist | jun '09 6

Page 7: Using redundancy to enable interactive connectivity for ...€¦ · WiFi and moving vehicles Motivation for using WiFi: •Inexpensive, higher peak throughput • Increasing ubiquity

Deployment of VanLAN

ratul | kaist | jun '09 7

Page 8: Using redundancy to enable interactive connectivity for ...€¦ · WiFi and moving vehicles Motivation for using WiFi: •Inexpensive, higher peak throughput • Increasing ubiquity

WiFi and moving vehicles

Motivation for using WiFi: • Inexpensive, higher peak throughput

• Increasing ubiquity can make it a useful option• City-wide meshes, enterprise campuses, hotspots and open APs

Key question: Can popular applications be supported using WiFi today?

• E.g., VoIP, Web browsing

Our answer: Yes, by leveraging base station redundancy

ratul | kaist | jun '09 8

Page 9: Using redundancy to enable interactive connectivity for ...€¦ · WiFi and moving vehicles Motivation for using WiFi: •Inexpensive, higher peak throughput • Increasing ubiquity

Disruptions(high packet loss)

ratul | kaist | jun '09

Experience of a moving vehicle using WiFi

9

Disruptions have small impact on non-interactive appsBut really hurt interactive apps

Page 10: Using redundancy to enable interactive connectivity for ...€¦ · WiFi and moving vehicles Motivation for using WiFi: •Inexpensive, higher peak throughput • Increasing ubiquity

How to reduce disruptions?

Traditional mechanisms have limited effectiveness

• Prioritization

• Over provisioning

• Retransmissions

Use redundant BSes in the vicinity

ratul | kaist | jun '09 10

Page 11: Using redundancy to enable interactive connectivity for ...€¦ · WiFi and moving vehicles Motivation for using WiFi: •Inexpensive, higher peak throughput • Increasing ubiquity

Hard handoff

Clients talk to exactly one BS

Current 802.11

Soft handoff

Clients talk to multiple BSes

ratul | kaist | jun '09

Wireless handoffs

11

Page 12: Using redundancy to enable interactive connectivity for ...€¦ · WiFi and moving vehicles Motivation for using WiFi: •Inexpensive, higher peak throughput • Increasing ubiquity

Hard handoff Soft handoff (ideal)

Disruption

ratul | kaist | jun '09

Comparing the two handoff policies

12

Page 13: Using redundancy to enable interactive connectivity for ...€¦ · WiFi and moving vehicles Motivation for using WiFi: •Inexpensive, higher peak throughput • Increasing ubiquity

Designing a practical soft handoff policy

ratul | kaist | jun '09 13

Goal: Leverage multiple BSes in range

• Inter-BS backplane is bandwidth-constrained

• Ensure timely delivery of packets

• Cannot do fine-grained scheduling of packets

Internet

These constraints rule out known diversity solutions

Page 14: Using redundancy to enable interactive connectivity for ...€¦ · WiFi and moving vehicles Motivation for using WiFi: •Inexpensive, higher peak throughput • Increasing ubiquity

Internet

AB

D

C Vehicle chooses anchor BS• Anchor responsible for vehicle’s

packets

Vehicle chooses a set of BSes in range to be auxiliaries• Leverage packets overheard by

auxiliaries

ViFi overview

ratul | kaist | jun '09 14

Page 15: Using redundancy to enable interactive connectivity for ...€¦ · WiFi and moving vehicles Motivation for using WiFi: •Inexpensive, higher peak throughput • Increasing ubiquity

(1) Source transmits a packet

(2) If destination receives, it transmits an ack

(3) If auxiliary overhears packet but not ack, it probabilistically relays to destination

(4) If destination received relay, it transmits an ack

(5) If no ack within retransmission interval, source retransmits

A B

D

C

A B

D

C

Downstream (to vehicle)

Upstream (from vehicle)

ViFi protocol

ratul | kaist | jun '09

Dest

Source

Dest

Source

15

Page 16: Using redundancy to enable interactive connectivity for ...€¦ · WiFi and moving vehicles Motivation for using WiFi: •Inexpensive, higher peak throughput • Increasing ubiquity

Losses are burstyLosses are independent

• Different senders receiver• Sender different receivers

A B

D

C

Upstream: From vehicle

Why is relaying effective?

ratul | kaist | jun '09

A B

D

C

Downstream: To vehicle

16

Page 17: Using redundancy to enable interactive connectivity for ...€¦ · WiFi and moving vehicles Motivation for using WiFi: •Inexpensive, higher peak throughput • Increasing ubiquity

Probability computation

Based on the knowledge of available auxiliaries and their connectivity to the destination

1. Makes a collective decision and limit the total number of relays

2. Prefers auxiliaries with better connectivity to destination

3. No per-packet coordination

ratul | kaist | jun '09 17

Page 18: Using redundancy to enable interactive connectivity for ...€¦ · WiFi and moving vehicles Motivation for using WiFi: •Inexpensive, higher peak throughput • Increasing ubiquity

ViFi implementation and evaluation

Implementation requires only software changes

• Built on top of ad hoc mode

• Uses broadcast mode transmissions

Evaluation based on deployment on VanLAN

• Results verified on another testbed

ratul | kaist | jun '09 18

Page 19: Using redundancy to enable interactive connectivity for ...€¦ · WiFi and moving vehicles Motivation for using WiFi: •Inexpensive, higher peak throughput • Increasing ubiquity

ratul | kaist | jun '09 19

WiFi ViFi

ViFi reduces disruptions

Page 20: Using redundancy to enable interactive connectivity for ...€¦ · WiFi and moving vehicles Motivation for using WiFi: •Inexpensive, higher peak throughput • Increasing ubiquity

ViFi improves VoIP performance

ratul | kaist | jun '09 20

0

20

40

60

80

100

0.5

> 100%

Traffic generated per G.729 codecDisruption: when MoS < 2

Len

gth

of

voic

e ca

ll b

efo

red

isru

pti

on

(se

con

ds)

ViF

i

WiF

i

Page 21: Using redundancy to enable interactive connectivity for ...€¦ · WiFi and moving vehicles Motivation for using WiFi: •Inexpensive, higher peak throughput • Increasing ubiquity

ViFi improves Web browsing performance

ratul | kaist | jun '09 21

0

20

40

60

80

100

0.5

0

0.2

0.4

0.6

0.8

1

0.5Median transfer time

(seconds)

> 50%

> 100%

Number of transfers before a stalled download

ViF

i

WiF

i

ViF

i

WiF

i

Workload: Repeated downloads of a 10 KB file

Page 22: Using redundancy to enable interactive connectivity for ...€¦ · WiFi and moving vehicles Motivation for using WiFi: •Inexpensive, higher peak throughput • Increasing ubiquity

WWAN and moving vehicles

Motivation for using WWAN: • Almost ubiquitous

• All-you-can-eat plans

Key question: Can applications that need a high degree of reliability be supported?

Our answer: Yes, by leveraging redundant capacity

ratul | kaist | jun '09 22

Page 23: Using redundancy to enable interactive connectivity for ...€¦ · WiFi and moving vehicles Motivation for using WiFi: •Inexpensive, higher peak throughput • Increasing ubiquity

Packet loss in the WWAN environment

Paths can have high loss rates

ratul | kaist | jun '09 23

WiMax

Expectation setting by network operators:

• “there can be lapses in the backhaul coverage or system congestion”

• “cancel a failed download and re-try in approximately 5 minutes”

Page 24: Using redundancy to enable interactive connectivity for ...€¦ · WiFi and moving vehicles Motivation for using WiFi: •Inexpensive, higher peak throughput • Increasing ubiquity

How to combat packet loss?

Traditional mechanisms have limited effectiveness• Prioritization

• Over provisioning

• Retransmissions

• No control over BSes

Uses redundant path capacity through erasure coding

ratul | kaist | jun '09 24

EVDO

WiMax

RTT (ms)

CD

F

Page 25: Using redundancy to enable interactive connectivity for ...€¦ · WiFi and moving vehicles Motivation for using WiFi: •Inexpensive, higher peak throughput • Increasing ubiquity

Existing erasure coding systems

1. Amount of overhead independent of load

• Redundant packets can steal capacity from data packets

• Under-protect even where additional capacity is available

2. Rely on receiving a threshold number of packets

• Hard to guarantee when losses and data rate are bursty

ratul | kaist | jun '09 25

Page 26: Using redundancy to enable interactive connectivity for ...€¦ · WiFi and moving vehicles Motivation for using WiFi: •Inexpensive, higher peak throughput • Increasing ubiquity

Opportunistic erasure coding

ratul | kaist | jun '09

Minimal interference and maximal

protection for data

No reliance on receiving a threshold number of packets

Send coded packets when and only when there is

instantaneous spare capacity in the system

Evolution codes greedily maximize the amount of data recovered by each

coded packet

26

Page 27: Using redundancy to enable interactive connectivity for ...€¦ · WiFi and moving vehicles Motivation for using WiFi: •Inexpensive, higher peak throughput • Increasing ubiquity

Evolution codes (1/2)

Encode over a window of packets sent in the last round trip time

• Aim for greedy, partial recovery of packets

Let W = window of packets; and r = fraction of packets at the receiver

• Assume all packets have the same probability

• Use the XOR operator for encoding packets

ratul | kaist | jun '09 27

Page 28: Using redundancy to enable interactive connectivity for ...€¦ · WiFi and moving vehicles Motivation for using WiFi: •Inexpensive, higher peak throughput • Increasing ubiquity

Evolution codes (2/2)

What should be the degree of a coded packet?

• Expected yield with degree x Y(x) = x ∙ (1 – r) ∙ rx-1

• The yield is maximized for x = -1 / log(r)

• Higher r => higher degree

ratul | kaist | jun '09 28

Page 29: Using redundancy to enable interactive connectivity for ...€¦ · WiFi and moving vehicles Motivation for using WiFi: •Inexpensive, higher peak throughput • Increasing ubiquity

Implementation of PluriBus

ratul | kaist | jun '09 29

Page 30: Using redundancy to enable interactive connectivity for ...€¦ · WiFi and moving vehicles Motivation for using WiFi: •Inexpensive, higher peak throughput • Increasing ubiquity

Performance of PluriBus

ratul | kaist | jun '09

Workload mimics that observed on the MS Connector

30

Page 31: Using redundancy to enable interactive connectivity for ...€¦ · WiFi and moving vehicles Motivation for using WiFi: •Inexpensive, higher peak throughput • Increasing ubiquity

Performance as a function of load

ratul | kaist | jun '09 31

Page 32: Using redundancy to enable interactive connectivity for ...€¦ · WiFi and moving vehicles Motivation for using WiFi: •Inexpensive, higher peak throughput • Increasing ubiquity

WiFi 3G

Cheap

Coverage

WiFi or 3G?

The two have disparate features

Why not use both?• WiFi where available, 3G as backup

• Use of redundancy in technology

Early results on Wiffler• Negative correlation between WiFi and 3G availability

• Application patience helps immensely

ratul | kaist | jun '09 32

WiFi + 3G

Cheap

Coverage

Page 33: Using redundancy to enable interactive connectivity for ...€¦ · WiFi and moving vehicles Motivation for using WiFi: •Inexpensive, higher peak throughput • Increasing ubiquity

Providing high performance connectivity aboard moving vehicles is particularly challenging for interactive apps

• Traditional mechanisms to counter packet losses are not effective

Using available redundancy is a promising approach

• ViFi uses redundant base stations

• PluriBus uses redundant capacity

• Both systems deployed and tested on a real vehicular testbed

More details at http://research.microsoft.com/vanlan/

ratul | kaist | jun '09 33

Conclusions