Network coding for multicasting and unicasting in MANETs Muriel Médard LIDS Massachusetts Institute...

34
Network coding for multicasting and unicasting in MANETs Muriel Médard LIDS Massachusetts Institute of Technology
  • date post

    21-Dec-2015
  • Category

    Documents

  • view

    220
  • download

    0

Transcript of Network coding for multicasting and unicasting in MANETs Muriel Médard LIDS Massachusetts Institute...

Page 1: Network coding for multicasting and unicasting in MANETs Muriel Médard LIDS Massachusetts Institute of Technology.

Network coding for multicasting and unicasting in MANETs

Muriel Médard

LIDSMassachusetts Institute of Technology

Page 2: Network coding for multicasting and unicasting in MANETs Muriel Médard LIDS Massachusetts Institute of Technology.

Outline

2-pronged approach – theoretical developments in network coding and simple practical wireless approaches

Multicasting in dynamic environments: Optimization in dynamic environments [Zhao, Medard] Practical multicasting implementation (Codecast) [Park et

al.] Unicasting approaches:

Optimization for arbitrary codes [Sundararajan et al.] Practical unicasting implementation (Cope) [Katabi et al.]

Page 3: Network coding for multicasting and unicasting in MANETs Muriel Médard LIDS Massachusetts Institute of Technology.

Network coding for static multicast Finding min-cost multicast trees in traditional routed

networks requires solving the Steiner tree problem, which is NP-complete.

A multicast is feasible on a given network as long as the min-cut from the source to any destination is greater than or equal to the rate of the multicast [Ahlswede, Cai, Li, and Yeung].

Min-cost subgraph in coded networks can be found by solving a linear programming problem.

Furthermore, it can be found using a distributed algorithm [Lun et. al.].

Page 4: Network coding for multicasting and unicasting in MANETs Muriel Médard LIDS Massachusetts Institute of Technology.

Network coding for dynamic multicast Applications such as real-time video distribution and

teleconferencing has a multicast group that is changing continuously.

If there is a stochastic model, this becomes a dynamic programming problem [Lun, Médard, and Karger].

We assume no stochastic model for the changes of the multicast group.

Need to adjust the subgraph to cater for the needs of this dynamic multicast group, and at the same time, minimize the disturbances to the existing receivers.

In traditional routing networks, this problem corresponds to the Dynamic Steiner Tree (DST) problem.

Page 5: Network coding for multicasting and unicasting in MANETs Muriel Médard LIDS Massachusetts Institute of Technology.

Link rearrangements Occurs when some links in the subgraph is removed

causing alternate paths to be used for existing receivers.

Causes disruptions to the continuous service to the multicast group.

s

t1 t2

Node t3 joins the multicast group, causing link rearrangements to t1 and t2

s

t1 t2

t3

1 1

1 1

1

Page 6: Network coding for multicasting and unicasting in MANETs Muriel Médard LIDS Massachusetts Institute of Technology.

Code rearrangements Occurs when new incoming links are added to existing

nodes in the multicast subgraph.

Disruption to continuous service are generally smaller than that caused by link rearrangements.

1/2

1/2

1/2 1/2

1/2

1/2

1/21/2

s

t2

Node t3 joins the multicast group, causing code rearrangements to t1 and t2

1/2

1/2

1/2

1/2

1/2

1/21/2

s

t1 t2

t3

1/2

1/2

1/2 1/2

t1

Page 7: Network coding for multicasting and unicasting in MANETs Muriel Médard LIDS Massachusetts Institute of Technology.

Nonrearrangeble algorithm

Set up the initial subgraph using one of the algorithms for the static multicast problem.

To avoid link rearrangements, set the cost of the used links to a very small value, .

To avoid code rearrangements, each node in the current subgraph scans through its incoming links, and sets the cost of those unused ones to a very large value, M.

Finally, run the same algorithm for the new problem to obtain the new subgraph.

Page 8: Network coding for multicasting and unicasting in MANETs Muriel Médard LIDS Massachusetts Institute of Technology.

Rearrangeable algorithms

Algorithm for minimizing link rearrangements (MLR)

Focus on eliminating link rearrangements only, and ignore code rearrangements.

Simply set the cost of used links to . Motivation for this algorithm comes from the

observation that we are dealing with trees most of the time.

Can be decentralized.

Page 9: Network coding for multicasting and unicasting in MANETs Muriel Médard LIDS Massachusetts Institute of Technology.

Rearrangeable algorithms (Contd.) Algorithm for limiting multicast cost (LMC)

Introduce occasional rearrangements to keep the cost of the multicast close to optimal.

Run two programs in parallel, one determines the optimal subgraph, and the other determines the no-rearrangement subgraph.

If the cost of the no-rearrangement subgraph is higher than the optimal cost by a certain percentage, , switch to the optimal subgraph.

Centralized algorithm.

Page 10: Network coding for multicasting and unicasting in MANETs Muriel Médard LIDS Massachusetts Institute of Technology.

Rearrangeable algorithms (Contd.) -scaled algorithm

Scale the cost of used links by a parameter, , approximately equal to 1/(1+ ).

Auto-switching between the optimal subgraph and the no-rearrangement subgraph.

Can make a time-varying variable.

Page 11: Network coding for multicasting and unicasting in MANETs Muriel Médard LIDS Massachusetts Institute of Technology.

Simulation results – MLR algorithm

Per

cen

tag

e d

iffer

enc

e o

f th

e co

sts

of t

he

MLR

sub

gra

ph a

nd t

he o

ptim

al s

ubg

raph

Number of online steps

Page 12: Network coding for multicasting and unicasting in MANETs Muriel Médard LIDS Massachusetts Institute of Technology.

Simulation results – -scaled algorithm

= 0.75

Switching probability = 11.7%

Per

cen

tag

e d

iffer

enc

e o

f th

e co

sts

of t

he

-sc

aled

sub

grap

h a

nd t

he o

ptim

al s

ubgr

aph

Number of online steps

Page 13: Network coding for multicasting and unicasting in MANETs Muriel Médard LIDS Massachusetts Institute of Technology.

Simulation results – -scaled algorithm

4.4%

11.7%

2.1%

0%

Switching probability

Per

cen

tag

e d

iffer

enc

e o

f th

e co

sts

of t

he

-sc

aled

sub

grap

h a

nd t

he o

ptim

al s

ubgr

aph

Number of online steps

Page 14: Network coding for multicasting and unicasting in MANETs Muriel Médard LIDS Massachusetts Institute of Technology.

Future work

We propose to; Consider the use of feedback to implement

effective congestion control As a first step to consider designing

acknowledgements for degrees of freedom rather than for packets

Establish a protocol, with appropriate liveness properties, to desist pushing degrees of freedom from one node to downstream ones when acknowledgements have been received

Page 15: Network coding for multicasting and unicasting in MANETs Muriel Médard LIDS Massachusetts Institute of Technology.

Network coding – beyond multicast

a

Traditional algorithms rely on routing, based on wireline systems

Wireless systems instead produce natural broadcast Can we use incidental reception in an active manner,

rather than treat it as useless or as interference Complementary technique with respect to schemes

such UWB and MIMO that make use of additional, albeit possibly plentiful, resources over links

Network coding seeks instead to use available energy and degrees of freedom fully over networks

Page 16: Network coding for multicasting and unicasting in MANETs Muriel Médard LIDS Massachusetts Institute of Technology.

Network coding – beyond multicast

a b

Traditional algorithms rely on routing, based on wireline systems

Wireless systems instead produce natural broadcast Can we use incidental reception in an active manner,

rather than treat it as useless or as interference Complementary technique with respect to schemes

such UWB and MIMO that make use of additional, albeit possibly plentiful, resources over links

Network coding seeks instead to use available energy and degrees of freedom fully over networks

Page 17: Network coding for multicasting and unicasting in MANETs Muriel Médard LIDS Massachusetts Institute of Technology.

Network coding – beyond multicast

a b

a+b

a+b a+b

a b

Traditional algorithms rely on routing, based on wireline systems

Wireless systems instead produce natural broadcast Can we use incidental reception in an active manner,

rather than treat it as useless or as interference Complementary technique with respect to schemes

such UWB and MIMO that make use of additional, albeit possibly plentiful, resources over links

Network coding seeks instead to use available energy and degrees of freedom fully over networks

Extend this idea [Katabi et al 05, 06]

Page 18: Network coding for multicasting and unicasting in MANETs Muriel Médard LIDS Massachusetts Institute of Technology.

Opportunism (1)Opportunistic Listening:

Every node listens to all packets It stores all heard packets for a limited time

Node sends Reception Reports to tell its neighbors what packets it heard Reports are annotations to packets If no packets to send, periodically send reports

Page 19: Network coding for multicasting and unicasting in MANETs Muriel Médard LIDS Massachusetts Institute of Technology.

Opportunism (2)

Opportunistic Coding: Each node uses only local information Use your favorite routing protocol To send packet p to neighbor A, XOR p with

packets already known to A Thus, A can decode

But how to benefit multiple neighbors from a single transmission?

Page 20: Network coding for multicasting and unicasting in MANETs Muriel Médard LIDS Massachusetts Institute of Technology.

Efficient coding

Arrows show next-hop

D

A

B

C

Page 21: Network coding for multicasting and unicasting in MANETs Muriel Médard LIDS Massachusetts Institute of Technology.

Efficient coding

Arrows show next-hop

D

A

B

C

Bad Coding

C will get brown pkt but A can’t get blue pkt

Page 22: Network coding for multicasting and unicasting in MANETs Muriel Médard LIDS Massachusetts Institute of Technology.

Efficient coding

Arrows show next-hop

D

A

B

C

OK Coding

Both A & C get a packet

Page 23: Network coding for multicasting and unicasting in MANETs Muriel Médard LIDS Massachusetts Institute of Technology.

Efficient coding

Arrows show next-hop

D

A

B

C

Best Coding

A, B, and C, each gets a packet

To XOR n packets, each next-hop should have the n-1 packets encoded with the packet it wants

To XOR n packets, each next-hop should have the n-1 packets encoded with the packet it wants

Page 24: Network coding for multicasting and unicasting in MANETs Muriel Médard LIDS Massachusetts Institute of Technology.

But how does a node know what packets a neighbor has? Reception Reports But reception reports may get lost or arrive

too late Use Guessing

If I receive a packet I assume all nodes closer to sender have received it

Page 25: Network coding for multicasting and unicasting in MANETs Muriel Médard LIDS Massachusetts Institute of Technology.

Beyond fixed routes

BA DS

Route Chosen by Routing Protocol

B heard S’s transmission

S transmits No need for A transmission

Opportunistic Routing [BM05]

Piggyback on reception report to learn whether next-hop has the packet

cancel unnecessary transmissions

Page 26: Network coding for multicasting and unicasting in MANETs Muriel Médard LIDS Massachusetts Institute of Technology.

Pseudo Broadcast

Piggyback on 802.11 unicast which has collision detection and backoff Each XOR-ed packet is sent to the MAC address of one of

the intended receivers Put all cards in promiscuous mode

Our Solution:

Ideally, design a collision detection and back-off scheme for broadcast channels

In practice, we want a solution that works with off-the-shelf 802.11 drivers/cards

How to overhear

Page 27: Network coding for multicasting and unicasting in MANETs Muriel Médard LIDS Massachusetts Institute of Technology.

Experiment

40 nodes 400mx400m Senders and receivers are chosen randomly Flows are duplex (e.g., ping) Metric:

Total Throughput of the Network

Page 28: Network coding for multicasting and unicasting in MANETs Muriel Médard LIDS Massachusetts Institute of Technology.

Current 802.11

Number of flows in experiment

0

500

1000

1500

2000

2500 Net. Throughput (KB/s)

1 2 4 6 8 10 12 14 16 18 20

No Coding

Page 29: Network coding for multicasting and unicasting in MANETs Muriel Médard LIDS Massachusetts Institute of Technology.

Opportunistic Listening & Coding

Number of flows in experiment

0

500

1000

1500

2000

2500 Net. Throughput (KB/s)

1 2 4 6 8 10 12 14 16 18 20

Opportunistic Listening & Coding

No Coding

Page 30: Network coding for multicasting and unicasting in MANETs Muriel Médard LIDS Massachusetts Institute of Technology.

Add Opportunistic Routing

Number of flows in experiment

0

500

1000

1500

2000

2500 Net. Throughput (KB/s)

1 2 4 6 8 10 12 14 16 18 20

With Opportunistic Routing Opportunistic

Listening & Coding

No Coding

Page 31: Network coding for multicasting and unicasting in MANETs Muriel Médard LIDS Massachusetts Institute of Technology.

Our Scheme vs. Current (2-way Flows)

Number of flows in experiment

0

500

1000

1500

2000

2500 Net. Throughput (KB/s)

1 2 4 6 8 10 12 14 16 18 20

Our Scheme

Huge throughput improvement, particularly at high congestion

Huge throughput improvement, particularly at high congestion

No Coding

Page 32: Network coding for multicasting and unicasting in MANETs Muriel Médard LIDS Massachusetts Institute of Technology.

Completely random setting

40 nodes 400mx400m Senders and receivers are chosen randomly Flows are one way Metric:

Total Throughput of the Network

Page 33: Network coding for multicasting and unicasting in MANETs Muriel Médard LIDS Massachusetts Institute of Technology.

Number of flows in experiment

0

200

400

600

8001000

1200

1400

1600

1800

1 3 5 7 9 11 13 15 17 19 21

No Coding

Net. Throughput (KB/s)

Our Scheme vs. Current (1-way Flows)

Our Scheme

A Unicast Network Coding Scheme that Works Well in realistic Situations

A Unicast Network Coding Scheme that Works Well in realistic Situations

Page 34: Network coding for multicasting and unicasting in MANETs Muriel Médard LIDS Massachusetts Institute of Technology.

Future work

We propose to Allow mobility, which will complicate the issue of

opportunistic listening Consider schemes for developing codes that go

beyond XOR, Consider schemes which provide subgraphs over

which to perform network coding in non-multicast settings