35
[email protected] NoF’13 CCN Traffic Optimization for IoT erˆome Fran¸cois, Thibault Cholez, Thomas Engel

CCN Traffic Optimization for IoT - hal.inria.fr

  • Upload
    others

  • View
    2

  • Download
    0

Embed Size (px)

Citation preview

Page 1: CCN Traffic Optimization for IoT - hal.inria.fr

[email protected] NoF’13

CCN Traffic Optimization for IoT

Jerome Francois, Thibault Cholez, Thomas Engel

Page 2: CCN Traffic Optimization for IoT - hal.inria.fr

Introduction CCN Background Problem Definition Solution Evaluation Conclusion

Outline

1 Introduction

2 CCN Background

3 Problem Definition

4 Solution

5 Evaluation

6 Conclusion

2 / 25

Page 3: CCN Traffic Optimization for IoT - hal.inria.fr

Introduction CCN Background Problem Definition Solution Evaluation Conclusion

Outline

1 Introduction

2 CCN Background

3 Problem Definition

4 Solution

5 Evaluation

6 Conclusion

3 / 25

Page 4: CCN Traffic Optimization for IoT - hal.inria.fr

Introduction CCN Background Problem Definition Solution Evaluation Conclusion

Context

I Internet of ThingsI multi sites network with sensors and gatewaysI shared infrastructure of multiple owners for multiple service

providersI reliability, security, privacy... requirements

4 / 25

Page 5: CCN Traffic Optimization for IoT - hal.inria.fr

Introduction CCN Background Problem Definition Solution Evaluation Conclusion

Context

I Internet of ThingsI multi sites network with sensors and gatewaysI shared infrastructure of multiple owners for multiple service

providersI reliability, security, privacy... requirements

4 / 25

Page 6: CCN Traffic Optimization for IoT - hal.inria.fr

Introduction CCN Background Problem Definition Solution Evaluation Conclusion

CCN for Sensors

I Why?I CCN designed for distributed networking → scalabilityI ICN/CCN provides already many required basic

functionalities (security, naming)I → alleviates the need of additional protocol, e.g. resource

discovery protocolsI Contiki implementation available

I but:I CCN: pull-based mode (on demand information retrieving)I many IoT use cases where: push based model for sensor

(regular sensing or event based)

I → can we still use CCN for sensor communications on a pushbased manner?

5 / 25

Page 7: CCN Traffic Optimization for IoT - hal.inria.fr

Introduction CCN Background Problem Definition Solution Evaluation Conclusion

Outline

1 Introduction

2 CCN Background

3 Problem Definition

4 Solution

5 Evaluation

6 Conclusion

6 / 25

Page 8: CCN Traffic Optimization for IoT - hal.inria.fr

Introduction CCN Background Problem Definition Solution Evaluation Conclusion

Basics

I Key ideasI Data as a name, not a locationI Data is directly requested at the network level (no more

DNS: more security; less delay)I Anybody with the data can answerI Data is authenticated, not the connections it traversesI + caching at intermediate routers

I 2 types of packets Interest and DataI Consumer driven: broadcast Interest, waits for DataI Data transmitted in response, consumes the Interest

7 / 25

Page 9: CCN Traffic Optimization for IoT - hal.inria.fr

Introduction CCN Background Problem Definition Solution Evaluation Conclusion

Hierarchical namingI Routable prefix, persistence of the namesI Hierarchical aggregation for fast routing and forwardingI Dynamic generation of contentI Context-aware resolution (/ThisRoom/projector)

8 / 25

Page 10: CCN Traffic Optimization for IoT - hal.inria.fr

Introduction CCN Background Problem Definition Solution Evaluation Conclusion

Message sequence

Figure: Scheme of a minimal Content-Centric network

9 / 25

Page 11: CCN Traffic Optimization for IoT - hal.inria.fr

Introduction CCN Background Problem Definition Solution Evaluation Conclusion

Message sequence

Figure: Scheme of a minimal Content-Centric network

9 / 25

Page 12: CCN Traffic Optimization for IoT - hal.inria.fr

Introduction CCN Background Problem Definition Solution Evaluation Conclusion

Message sequence

Figure: Scheme of a minimal Content-Centric network

9 / 25

Page 13: CCN Traffic Optimization for IoT - hal.inria.fr

Introduction CCN Background Problem Definition Solution Evaluation Conclusion

Message sequence

Figure: Scheme of a minimal Content-Centric network

9 / 25

Page 14: CCN Traffic Optimization for IoT - hal.inria.fr

Introduction CCN Background Problem Definition Solution Evaluation Conclusion

Message sequence

Figure: Scheme of a minimal Content-Centric network

9 / 25

Page 15: CCN Traffic Optimization for IoT - hal.inria.fr

Introduction CCN Background Problem Definition Solution Evaluation Conclusion

Message sequence

Figure: Scheme of a minimal Content-Centric network

9 / 25

Page 16: CCN Traffic Optimization for IoT - hal.inria.fr

Introduction CCN Background Problem Definition Solution Evaluation Conclusion

Message sequence

Figure: Scheme of a minimal Content-Centric network

9 / 25

Page 17: CCN Traffic Optimization for IoT - hal.inria.fr

Introduction CCN Background Problem Definition Solution Evaluation Conclusion

Message sequence

Figure: Scheme of a minimal Content-Centric network

9 / 25

Page 18: CCN Traffic Optimization for IoT - hal.inria.fr

Introduction CCN Background Problem Definition Solution Evaluation Conclusion

Message sequence

Figure: Scheme of a minimal Content-Centric network

9 / 25

Page 19: CCN Traffic Optimization for IoT - hal.inria.fr

Introduction CCN Background Problem Definition Solution Evaluation Conclusion

Message sequence

Figure: Scheme of a minimal Content-Centric network

9 / 25

Page 20: CCN Traffic Optimization for IoT - hal.inria.fr

Introduction CCN Background Problem Definition Solution Evaluation Conclusion

Outline

1 Introduction

2 CCN Background

3 Problem Definition

4 Solution

5 Evaluation

6 Conclusion

10 / 25

Page 21: CCN Traffic Optimization for IoT - hal.inria.fr

Introduction CCN Background Problem Definition Solution Evaluation Conclusion

CCN deploymentI CCN faces → transparent IP network transversalI CCN at all sides: sensors, servers, user devicesI context of this work = sensor communication

optimization (low power devices)I → retrieved sensed information

I push based communicationI regular updates (every 10 sec, 5 minutes)I multiple consumers (with different update frequencies)

11 / 25

Page 22: CCN Traffic Optimization for IoT - hal.inria.fr

Introduction CCN Background Problem Definition Solution Evaluation Conclusion

Formal problemI Limited resources (CPU, memory, energy...)

I no broadcast / no multicast to every consumer at every time unitI example: temperature update every 10 sec, service need update every

5 minutes → overhead = 29 messages

I Problem definitionI M producers, K destinations, CCN routersI Disjoint sensed information → local problem

I 1 producer, N consumers C = c1, . . . , cN with samplingperiods ij

I Ri : Capi (available ressources)I objective: min(msg(Ri ))

12 / 25

Page 23: CCN Traffic Optimization for IoT - hal.inria.fr

Introduction CCN Background Problem Definition Solution Evaluation Conclusion

Outline

1 Introduction

2 CCN Background

3 Problem Definition

4 Solution

5 Evaluation

6 Conclusion

13 / 25

Page 24: CCN Traffic Optimization for IoT - hal.inria.fr

Introduction CCN Background Problem Definition Solution Evaluation Conclusion

Push-based communicationI CCN data forwarded when an interest is emitted =

pull model

I SotA propositionsI Jacobson et. al, ACM ReArch 2009: creation of a

rendez-vous point → transaction model, individual demandfrom the producer (no subscription mechanism)

I Carzaniga et. al, ACM SIGCOMM ICN 2011: disseminationof ephemeral messages → a new unicast table (nomulticast) based on IP routing for avoiding routing loops

14 / 25

Page 25: CCN Traffic Optimization for IoT - hal.inria.fr

Introduction CCN Background Problem Definition Solution Evaluation Conclusion

Push-based communicationI Approach overview

I subscription = content publicationsI sensor value disseminations

I → use the standard FIB to disseminate sensor valueI interest message towards the consumer content name prefix +

value as its suffixI /roomA/thermometer/value/20I → but does not work as there is no content in the other wayI use FIB for forwarding not requested content→ no PIT updateI → routing loop (interests are not consumed anymore →

last seen flag in FIB

15 / 25

Page 26: CCN Traffic Optimization for IoT - hal.inria.fr

Introduction CCN Background Problem Definition Solution Evaluation Conclusion

Simple filteringI Avoid sending useless dropped messages

I simple filteringI the router only forwards data to Ci at the period t only if the

consumer Ci has expressed its interest regarding this periodI → t is a multiple of the sampling period iiI →each Ci has to specificity its sampling period to Ri (smart

router)I need a counter in the FIB, one counter per subscriber =

optimal strategy

16 / 25

Page 27: CCN Traffic Optimization for IoT - hal.inria.fr

Introduction CCN Background Problem Definition Solution Evaluation Conclusion

Smart forwarding – gcd

I Use a limited number of counters CapiI Extreme case Capi = 1

I apply partially simple filteringI some packets still dropped → minimize it

I remove identicalsubscribed periods ii

I if multiples in subscribedperiods and keep thesmallest, e.g. i1 = 2 andi2 = 4 → forward packetsevery 2

I extend the previousconcept using the GCD(Greatest CommonDivisor)

17 / 25

Page 28: CCN Traffic Optimization for IoT - hal.inria.fr

Introduction CCN Background Problem Definition Solution Evaluation Conclusion

Smart forwardingI More counters, Capi > 1

I IST (Information Sampling Table) for tracking multiple countersI guarantee that each Ci receives the packets as subscribed or moreI → select G = {g1, . . . , gCapi} such that:

∀Ci ∈ C ,∃gk ∈ G , α ∈ N, gk × α = ii

I incremental IST updates

I heuristic: maximal GCDbetween two ii

1: T : new registered interval2: G .append(T )3: if |G | > Capi then4: g select ← gi ∈ G , ∀gk ∈

G , gcd(gi ,T ) ≥ gcd(gk ,T )5:

G .replace(g select, gcd(g select,T ))6: end if

18 / 25

Page 29: CCN Traffic Optimization for IoT - hal.inria.fr

Introduction CCN Background Problem Definition Solution Evaluation Conclusion

Outline

1 Introduction

2 CCN Background

3 Problem Definition

4 Solution

5 Evaluation

6 Conclusion

19 / 25

Page 30: CCN Traffic Optimization for IoT - hal.inria.fr

Introduction CCN Background Problem Definition Solution Evaluation Conclusion

MethodologyI Basic simulator

I limited functions necessary to assess our approachI no PIT or Content Store, no physical layer...

I ParametersI MAX T : maximal sampling interval that a consumer can subscribe

to,I p: number of consumers with a unique sampling interval expressed as

a proportion of MAXT

I #counters: number of available counters,I #steps = 5×MAX T the number of simulation step, 1 step = the

initial sampling period of the sensor

I StrategiesI s ∈ {pull , push, optimal , gcd , smart}I message overhead: fs = msgs/msgoptimal

I ii chosen randomlyI simulation executed 10 times

20 / 25

Page 31: CCN Traffic Optimization for IoT - hal.inria.fr

Introduction CCN Background Problem Definition Solution Evaluation Conclusion

Number of consumersI MAX T = 3000, #counters = 100I pull strategy → 2 messages (1 interest + 1 data)I prime numbers → gcd = 1 → gcd ∼ push (forwarding every packet)

I when p increasesI more consumers → higher

chance to have low iiincluding 1

I → all strategies tends to 1

I smart forwarding benefitI 1 < fsmart < 1.67I p < 0.04 a unique counter

per ii (equivalent tooptimal)

I worst case: 240 uniquesubscribed periods(p = 0.08)

21 / 25

Page 32: CCN Traffic Optimization for IoT - hal.inria.fr

Introduction CCN Background Problem Definition Solution Evaluation Conclusion

Number of consumers

I p = 0.05×MAX T

I smart forwarding strategy

I #counters and MAX T vary

I when #counters increases →overhead reduces faster with lesssubscribers (lower MAXT )

I fine tuning of Capi during the

design phase of the sensorI assumption: a maximal

overhead, a number ofsubscibers

I → number of counters

22 / 25

Page 33: CCN Traffic Optimization for IoT - hal.inria.fr

Introduction CCN Background Problem Definition Solution Evaluation Conclusion

Outline

1 Introduction

2 CCN Background

3 Problem Definition

4 Solution

5 Evaluation

6 Conclusion

23 / 25

Page 34: CCN Traffic Optimization for IoT - hal.inria.fr

Introduction CCN Background Problem Definition Solution Evaluation Conclusion

Conclusion

I CCN for distributed IoT communication

I Context: producers (sensors) regulary updating consumers

I A new push based mechanism to limit the message overheadbased on subscription requests

I Smart forwarding is close to the optimal forwarding and alwaysbetter than the standard pull based communication of CCN

I Future work: multiple-content producers

Acknowledgement: This work was partly funded by IoT6FP7 EU project under the grant agreement 288445.

24 / 25

Page 35: CCN Traffic Optimization for IoT - hal.inria.fr

[email protected] NoF’13

CCN Traffic Optimization for IoT

Jerome Francois, Thibault Cholez, Thomas Engel