19
Seung-Hoon Lee, Uichin Lee, Kang-won Lee*, Mario Gerla University of California, Los Angeles IBM T. J. Watson Research Center* Content Distribution in VANETs using Content Distribution in VANETs using Network Coding: The Effect of Disk Network Coding: The Effect of Disk I/O and Processing O/H I/O and Processing O/H

Seung-Hoon Lee, Uichin Lee, Kang-won Lee*, Mario Gerla University of California, Los Angeles

Embed Size (px)

DESCRIPTION

Content Distribution in VANETs using Network Coding: The Effect of Disk I/O and Processing O/H. Seung-Hoon Lee, Uichin Lee, Kang-won Lee*, Mario Gerla University of California, Los Angeles IBM T. J. Watson Research Center*. Content Distribution in Vehicular Ad-Hoc Networks (VANETs). - PowerPoint PPT Presentation

Citation preview

Page 1: Seung-Hoon Lee, Uichin Lee, Kang-won Lee*, Mario Gerla University of California, Los Angeles

Seung-Hoon Lee, Uichin Lee, Kang-won Lee*, Mario Gerla

University of California, Los AngelesIBM T. J. Watson Research Center*

Content Distribution in VANETs using Content Distribution in VANETs using Network Coding: The Effect of Disk I/O Network Coding: The Effect of Disk I/O and Processing O/Hand Processing O/H

Page 2: Seung-Hoon Lee, Uichin Lee, Kang-won Lee*, Mario Gerla University of California, Los Angeles

Applications ◦ Software updates and patches (e.g., navigation map, games)◦ Multimedia data downloads (e.g., videos, news, etc.)

Content Distribution in Content Distribution in Vehicular Ad-Hoc Networks (VANETs)Vehicular Ad-Hoc Networks (VANETs)

Page 3: Seung-Hoon Lee, Uichin Lee, Kang-won Lee*, Mario Gerla University of California, Los Angeles

◦ High mobility (i.e., highly dynamic networks)◦ Error-prone channel (due to obstacles, multi-path fading, etc.)

Content Distribution Challenges Content Distribution Challenges

Page 4: Seung-Hoon Lee, Uichin Lee, Kang-won Lee*, Mario Gerla University of California, Los Angeles

CarTorrent: BitTorrent-like CarTorrent: BitTorrent-like Cooperative Content Distribution in Cooperative Content Distribution in VANETsVANETs

Web Server

A file is divided into pieces

Exchange pieces via Vehicle-to-Vehicle Communications

Download a file (piece by piece)

Problem: Peer & Piece selection coupon collection problem

Cannot complete download!

Not useful!

Page 5: Seung-Hoon Lee, Uichin Lee, Kang-won Lee*, Mario Gerla University of California, Los Angeles

Using Network Coding: Using Network Coding: CodeTorrentCodeTorrent

Web Server

A file is divided into pieces

Network coding “effectively” mitigates the peer/piece selection problem and “improves” the performance!

Any linearly independent coded packet is helpful

Must consider network coding O/H!!1 more?

Page 6: Seung-Hoon Lee, Uichin Lee, Kang-won Lee*, Mario Gerla University of California, Los Angeles

Worst Case ScenarioWorst Case Scenario

Coded piece is not delivered!

Network coding must be carefully configured!

Should investigate “origin” of network coding O/H!!

Request

Page 7: Seung-Hoon Lee, Uichin Lee, Kang-won Lee*, Mario Gerla University of California, Los Angeles

Closer Look at Network Coding O/H

Request

Page 8: Seung-Hoon Lee, Uichin Lee, Kang-won Lee*, Mario Gerla University of California, Los Angeles

Closer Look at Network Coding O/H

Check memory

Cache Missing (Memory is limited)

Disk I/O

Blocks loaded to Memory

CPU O/H (Network Coding)

Coded Block generation+

X 1 X 2 X 3

e1 e2 e3

e1X1+e2X2+e3X3[e1,e2,e3]

Page 9: Seung-Hoon Lee, Uichin Lee, Kang-won Lee*, Mario Gerla University of California, Los Angeles

Network Coding O/H Model Overall process: Reading (cache miss) Encoding Sending Parallelization is feasible: Send an encoded “packet” ASAP Disk access O/H:

◦ Must read all the necessary data before encoding◦ Disk input rate is determined by the characteristics of a disk ◦ O/H is proportional to the number of pieces to be encoded

Encoding O/H◦ Per symbol encoding (∑eiXi) O/H: Linearly proportional to the cost

of a pair of Galois Field (GF) operations (multiplication & addition)◦ Encoding rate = (# pieces * GF <+,*> time)-1 ◦ O/H is proportional to the number of pieces to be encoded

1 K B Pkt

i-th generation

Piece

send(pkt)

encode(pkt)

read(pkts)

Page 10: Seung-Hoon Lee, Uichin Lee, Kang-won Lee*, Mario Gerla University of California, Los Angeles

Mitigating Coding Overheads

50MB

1 4

10MB x 5

Solutiion#1: divide a file into small generations◦ Problem: too many generation causes a coupon

collection problem◦ Conflicting goals: maximizing benefits of NC vs.

minimizing coding O/H

Page 11: Seung-Hoon Lee, Uichin Lee, Kang-won Lee*, Mario Gerla University of California, Los Angeles

Mitigating Coding Overheads

Sol#2: encode only a fraction of pieces (i.e., sparse coding)◦ Problem: how to find the right value?

Sol#3: pull a generation that is in the buffer of a remote node (remote buffer aware pulling)

Ex. Sparse Coding Rate: 50%

Gen 3Request Gen 3

Need Gen 1,3, 5,7

Page 12: Seung-Hoon Lee, Uichin Lee, Kang-won Lee*, Mario Gerla University of California, Los Angeles

Evaluating Impacts of Coding O/H Difficult to evaluate the overall impacts of

coding O/H in VANETs◦ Dynamic nature of VANETs (high mobility)◦ Large scale scenarios◦ Network Simulator (e.g., NS2, QualNet) only models

communication O/H Implement our measurement based models

into a network simulator (QualNet)

Page 13: Seung-Hoon Lee, Uichin Lee, Kang-won Lee*, Mario Gerla University of California, Los Angeles

Simulation Setup Communications

◦ 802.11b; 11Mbps + Two-ray ground propagation Mobility

◦ Real-track model w/ speed range of [0,20] m/s◦ UCLA area map: 2400m*2400m

Nodes◦ 3 APs: file sources◦ 200 nodes/40% interest level:

80 nodes are downloading a file O/H model

◦ Coding rate: 7.6 Mbps◦ Disk I/O rate: 38 MB/sec

Page 14: Seung-Hoon Lee, Uichin Lee, Kang-won Lee*, Mario Gerla University of California, Los Angeles

Simulation Results (1)

Delay without O/H◦ Small # of generations is a better choice◦ Larger # of generations more severe coupon collection

problem

Delay without O/H

Gen1

Gen5

Page 15: Seung-Hoon Lee, Uichin Lee, Kang-won Lee*, Mario Gerla University of California, Los Angeles

Simulation Results (2)

Delay with O/H (Buffer 50%: CPU O/H + Disk I/O)◦ Small # of generations is not a better choice any longer!!◦ Single generation scenario is even worse than “No coding” case.◦ Must carefully choose the number of generations!

Delay with O/H (Buffer 50%)

Page 16: Seung-Hoon Lee, Uichin Lee, Kang-won Lee*, Mario Gerla University of California, Los Angeles

Simulation Results (2)

Delay with O/H (Buffer 50%)

“U” shapeThe optimal point exists

Delay with O/H (Buffer 50%: CPU O/H + Disk I/O)◦ Small # of generations is not a better choice any longer!!◦ Single generation scenario is even worse than “No coding” case.◦ Must carefully choose the number of generations!

Page 17: Seung-Hoon Lee, Uichin Lee, Kang-won Lee*, Mario Gerla University of California, Los Angeles

Simulation Results (3)

Sparse coding rate must be carefully chosen.

Delay with Sparse Coding (50MB)

Page 18: Seung-Hoon Lee, Uichin Lee, Kang-won Lee*, Mario Gerla University of California, Los Angeles

Simulation Results (4)

Remote Buffer Aware Pulling (RBAP) ◦ Successfully reduces disk I/O O/H

Delay with RBAP (50MB)

Page 19: Seung-Hoon Lee, Uichin Lee, Kang-won Lee*, Mario Gerla University of California, Los Angeles

Conclusion Investigated the impacts of network coding O/H

◦ Disk I/O + Processing O/H Designed “measurement” based models Evaluated various strategies to mitigate O/H

◦ Multiple generations, sparse coding, buffer aware pulling Lessons learned: network coding must be

carefully configured to maximize its benefits Future work

◦ Good configuration? – must tune various factors, i.e., piece size, disk access/coding rate, and shared bandwidth

◦ Understand the impacts of O/H and study enhancement techniques (e.g., H/W acceleration) in various environments (e.g., embedded systems, Smart Phones)