IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container...

69

Transcript of IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container...

Page 1: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4
Page 2: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

IMPROVING EFFICIENCY, USABILITY AND SCALABILITY IN A SECURE, RESOURCE-CONSTRAINED WEB OF THINGSFloris Van den Abeele 28/09/2017

DEPARTMENT INTECRESEARCH GROUP IDLAB

Promoters: prof. Jeroen Hoebeke, prof. Ingrid MoermanExamination board: Prof. D. De Zutter, prof. E. De Poorter, prof. S. Latré, prof. D. Hughes, prof. S. Van Hoecke, dr. M. Kovatsch

http://phd.vdna.beDownload the digital dissertation

Page 3: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

1. INTRODUCTION3

Page 4: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

INTERNET OF THINGS: HOME AUTOMATION

4

Page 5: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

INTERNET OF THINGS: HOME AUTOMATION

5

Acquired by Google in 2014 for 3.2 billion USD

Page 6: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

INTERNET OF THINGS: TRANSPORT

6

Page 7: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

INTERNET OF THINGS: UTILITIES

7

Flanders starts the roll out of digital energy meters in 2019.

Page 8: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

INTERNET OF THINGS: EHEALTH

8

Page 9: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

INTERNET OF THINGS: EHEALTH

9

Real-time remote health monitoring

Page 10: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

INTERNET OF THINGS

11

“The Internet of Things is the combination of sensors, actuators, distributed computing power, wireless communication on the hardware side and applications and big data/analytics on the software side.” – Morgan Stanley

Data created by persons things

Everyday physical objects

Page 11: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

INTERNET OF THINGS

12

“The Internet of Things is the combination of sensors, actuators, distributed computing power, wireless communication on the hardware side and applications and big data/analytics on the software side.” – Morgan Stanley

Data created by persons things

Everyday physical objects

50 billion Internet-connected

devices by 2020 (Cisco)21 billion IoT units by 2020 (Gartner)

Page 12: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

13

Page 13: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

BREAKING THE VERTICAL SILOS IN IOTNEED FOR STANDARDS ON TOP OF CONNECTIVITY SOLUTIONS

……

Proprietary vertical solutionsproprietary protocols

& technologies

TODAY

Manu-factoringManu-

factoring LogisticsLogistics ……

Common, interoperable standards

Common, interoperable standards

Application enablementApplication enablement

……

TOMORROW

Manu-factoringManu-

factoring LogisticsLogistics ……

14

Page 14: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

WEB OF THINGS?• “The Web of Things is a refnement of the Internet of Things by integrating smart

things not only into the Internet, but into the Web Architecture.”• Designed for interoperability <-> Intranet of Things

15

Page 15: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

Improving Efciency, Usability and Scalability in a Secure, Resource-Constrained Web of Things

16

Page 16: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

CONSTRAINED DEVICESTiny, resource-constrained devices: networked embedded systems

Target < 1 USD

Target hundreds of

USD

17

Page 17: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

CONSTRAINED DEVICESTiny, resource-constrained devices: networked embedded systems

18

Target < 1 USD

Class 1 devices:~100KB ROM~10KB RAM

Low power, low costBattery lifetime: years

Smart phones:~100GB ROM

~4GB RAMExpensive

Battery lifetime: 1 day

Target hundreds of

USD

Page 18: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

RESOURCE-CONSTRAINED WEB OF THINGS

19

RESTful web services:Memory footprint less importantPlain-text encodings & headersAlways-on communication

RESTful embedded web services: Minimal memory footprint Compact encodings & headers Minimize communication

Page 19: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

RESOURCE-CONSTRAINED WEB OF THINGS

20

RESTful embedded web services: Minimal memory footprint Compact encodings & headers Minimize communication

RESTful web services:Memory footprint less importantPlain-text encodings & headersAlways-on communication

6lo/IPv6/UDP-DTLS/CoAP/CBOR IPv6/TCP-TLS/HTTP/JSON

Newtechnologies

Multi hop wireless networks, LPWANs

Page 20: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

RESOURCE-CONSTRAINED WEB OF THINGS

21

RESTful embedded web services: Minimal memory footprint Compact encodings & headers Minimize communication

RESTful web services:Memory footprint less importantPlain-text encodings & headersAlways-on communication

6lo/IPv6/UDP-DTLS/CoAP/CBOR IPv6/TCP-TLS/HTTP/JSON

Newtechnologies

Multi hop wireless networks, LPWANs

CoRE: Constrained RESTful Enviroments

Page 21: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

RESOURCE-CONSTRAINED WEB OF THINGS: EXAMPLE

22

CLIENTCLIENT SERVERSERVER

/s/t/s/t22.5°C

2.05 Content text/plain22.5°C

GET coap://server/s/t

CoAPDEVICERESOURCE

EMBEDDED WEB SERVER

Page 22: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

Improving Efciency, Usability and Scalability in a Secure, Resource-Constrained Web of Things

23

Page 23: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

2. RESEARCH24

Page 24: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

RESEARCH CHALLENGES IN CORE

25

Heterogeneity

Usability

Efcient Resource Utilization

Page 25: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

Internet

CHALLENGE I: EFFICIENT RESOURCE UTILIZATION

26

WSN

Resource efcient access control in an open WoT?• Authentication? Public keys, certifcates?• Security handshake: verbose?• Access control rules based on time, location, identity, resource?• Expend limited resources on unauthorized requests?

Page 26: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

RESEARCH CHALLENGES IN CORE

27

Heterogeneity

Usability

Efcient Resource Utilization

Page 27: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

CHALLENGE II: USABILITY

28

Req: GET coap://sensor/tempResp: 0x03 0xC0

Binary response without any visualization.How should data be rendered? What about actuators?

User interactions with constrained WoT devices?

Page 28: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

CHALLENGE II: USABILITY

29

Req: GET coap://sensor/tempResp: 0x03 0xC0

Binary response without any visualization.How should data be rendered? What about actuators?

User interactions with constrained WoT devices?

Limitations of constrained devices prohibit hosting a UI:• Simple index page based on the popular bootstrap template:

44.6KB JS, 38.4 KB CSS and 6.5 KB HTML = 89.6KB of data• C1 devices have ~100KB ROM to ft the operating system and application• Impact of additional communication.

Page 29: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

RESEARCH CHALLENGES IN CORE

30

Heterogeneity

Usability

Efcient Resource Utilization

Page 30: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

CHALLENGE III: HETEROGENEITY

31

Cross-domain service providers have to interface with domain-specifc: • Connectivity options• Standards and protocols• Application models• Data formats

Page 31: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

RESEARCH GOALS● New technologies for the constrained Web of Things BUT challenges remain:

● Efcient resource utilization: open standards should not threaten the operation of CoRE: e.g. battery lifetime.

● Usability: how to support user interactions in CoRE?● Heterogeneity: different application models, proprietary protocols

● Goal?Remove technical barriers for adopting open web standards in the constrained WoT in order to accelerate adoption and maximize interoperability

● How? Distributed Intelligence and Sensor Function Virtualization enable resourceful systems to extend constrained devices and solve these challenges.

32

Page 32: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

THE DISTRIBUTED INTELLIGENCE CONCEPT

33

Page 33: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

SENSOR (FUNCTION) VIRTUALIZATION

34

CLIENTCLIENT SERVERSERVER

/s/t/s/t22.5°C

2.05 Content text/plain22.5°C

GET coap://server/s/t

CoAPDEVICERESOURCE

Physical system

Page 34: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

SENSOR (FUNCTION) VIRTUALIZATION

35

CLIENTCLIENT SERVERSERVER

/s/t/s/t22.5°C

2.05 Content text/plain22.5°C

GET coap://server/s/t

CoAP

Virtual SensorVirtual Sensor

DEVICERESOURCE

Physical system

Page 35: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

SENSOR (FUNCTION) VIRTUALIZATION

36

CLIENTCLIENT SERVERSERVER

/s/t/s/t22.5°C

2.05 Content text/plain22.5°C

GET coap://server/s/t

CoAP

Virtual SensorVirtual Sensor

DEVICERESOURCE

Physical system

Hosted on resourceful systems: gateways, fog or cloud

Ofoad functionality: e.g. access control

Implement new features: e.g. virtual resources, caching

Page 36: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

3. RESULTS: EFFICIENT RESOURCE UTILIZATION USABILITY HETEROGENEITY

37

Page 37: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

SECURE SERVICE PROXY: DESIGN

38

Page 38: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

RESOURCE EFFICIENT ACCESS CONTROL

39

Page 39: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

RESOURCE EFFICIENT ACCESS CONTROL

40

Page 40: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

RESOURCE EFFICIENT ACCESS CONTROL

41

SSP

Page 41: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

LONG-LIVED DTLS SESSIONS REDUCE DELAY

42

Long-lived DTLS sessions cut the total transaction time (TTT) in half: median ~5000ms → 2000ms

Comparable TTTs to plain-text reference case

CoRE transaction: Setup DTLS session (handshake) Discover (GET .well-known/core) Read (GET /s) Write (PUT /a) Close DTLS session (Finished)

Page 42: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

LONG-LIVED DTLS SESSIONS SAVE ENERGY

43

Factor two reduction in median energy consumption.

Biggest energy savings stem from reduction in radio time.

Energy usage constrained device

Page 43: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

COMBINING OBSERVE SESSIONS SAVES ENERGY

44

Combine multiple CoAP observe sessions at the SSP

10% reduction in median energy consumption

Page 44: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

COMBINING OBSERVE SESSIONS SAVES ENERGY

45

Combine multiple CoAP observe sessions at the SSP

10% reduction in median energy consumption

More than three simultaneous sessions.

Page 45: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

3. RESULTS: EFFICIENT RESOURCE UTILIZATION USABILITY HETEROGENEITY

47

Page 46: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

TEMPLATE-BASED UI RENDERING

48

E2E UDP/CoAP or TCP/HTTP via GWUnaltered CoAP responses (e.g. binary encoding)

Page 47: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

TEMPLATE-BASED UI RENDERING

49

E2E UDP/CoAP or TCP/HTTP via GWUnaltered CoAP responses (e.g. binary encoding)

HTTP/CoAP proxy serves web interfaces to usersProxy and web interface translate CoAP responsesProxy contains a database of web templates

Standard web technology: → Web browser compatible→ Cross-platform support → Rich UI’s :e.g. responsive design

Page 48: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

WEB UI FOR RESOURCE DISCOVERY

50

Page 49: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

WEB UI FOR SENSING AND ACTUATING

51

Page 50: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

UI LOAD TIMES

52

Empi

rical

CD

F

Non-blocking template (AJAX) load time is independent of CoAP response time

Guarantees UI responsiveness regardless of round trip time to constrained device

Page 51: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

3. RESULTS: EFFICIENT RESOURCE UTILIZATION USABILITY HETEROGENEITY

53

Page 52: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

CLOUD PLATFORM FOR INTEGRATING HETEROGENEOUS DEVICES

54

CONSTRAINED DEVICES

Environmental sensors

(contiki)

Environmental sensors

(contiki)Monitoring

app

CoAP/UDP/6LoWPAN/802.15.4

Waste bins sensors (contiki)

Waste bins sensors (contiki)

Monitoring app

CoAP/UDP/6LoWPAN/802.15.4

Container tracker

(TinyOS)

Container tracker

(TinyOS)Proprietary application

TCP/IPv4/GPRS

Crane tracker(Embedded

Linux)

Crane tracker(Embedded

Linux)Monitoring

app

CoAP/UDP/IPv4/GPRS

Heterogeneity considered:● Different devices/OS: embedded linux, bare metal, contiki & tinyos● Proprietary vs standards-based communication● PUSH vs PULL communication model● Sleepy vs (near) always-on devices

Page 53: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

CLOUD PLATFORM FOR INTEGRATING HETEROGENEOUS DEVICES

55

Cloud platformCloud platform

CONSTRAINED DEVICES

Environmental sensors

(contiki)

Environmental sensors

(contiki)Monitoring

app

CoAP/UDP/6LoWPAN/802.15.4

Waste bins sensors (contiki)

Waste bins sensors (contiki)

Monitoring app

CoAP/UDP/6LoWPAN/802.15.4

Container tracker

(TinyOS)

Container tracker

(TinyOS)Proprietary application

TCP/IPv4/GPRS

Crane tracker(Embedded

Linux)

Crane tracker(Embedded

Linux)Monitoring

app

CoAP/UDP/IPv4/GPRS

ABSTRACTION LAYER

ABSTRACTION LAYER

CoAP server abstractionCoAP server abstraction

HTTP - CoAP proxy

HTTP - CoAP proxy

ACCESS LAYER

ACCESS LAYER

Aggregated pushAggregated push

Resource directory

L1

Resource directory

L1

On-site mirror server

On-site mirror server

Resource directory

L2

Resource directory

L2

Abstraction

Manager

Abstraction

Manager

Vertical Mapping prop. -

CoAP

Vertical Mapping prop. -

CoAP

Mirror ServerMirror Server

(Reverse) access mapper

(Reverse) access mapper

Page 54: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

CLOUD PLATFORM FOR INTEGRATING HETEROGENEOUS DEVICES

56

Cloud platformCloud platform

CONSTRAINED DEVICES

Environmental sensors

(contiki)

Environmental sensors

(contiki)Monitoring

app

CoAP/UDP/6LoWPAN/802.15.4

Waste bins sensors (contiki)

Waste bins sensors (contiki)

Monitoring app

CoAP/UDP/6LoWPAN/802.15.4

Container tracker

(TinyOS)

Container tracker

(TinyOS)Proprietary application

TCP/IPv4/GPRS

Crane tracker(Embedded

Linux)

Crane tracker(Embedded

Linux)Monitoring

app

CoAP/UDP/IPv4/GPRS

Control and management dashboardControl and management dashboard

Data broker + control platformData exchange/access/control/visibility

Data + eventsDiscover available resources + type

CoAP communicationCoAP communication

Report, …

Sensor reconfguration Get resource state

ABSTRACTION LAYER

ABSTRACTION LAYER

CoAP server abstractionCoAP server abstraction

HTTP - CoAP proxy

HTTP - CoAP proxy

ACCESS LAYER

ACCESS LAYER

Aggregated pushAggregated push

Resource directory

L1

Resource directory

L1

On-site mirror server

On-site mirror server

Resource directory

L2

Resource directory

L2

Abstraction

Manager

Abstraction

Manager

Shipper, Concierge, …

Vertical Mapping prop. -

CoAP

Vertical Mapping prop. -

CoAP

Mirror ServerMirror Server

(Reverse) access mapper

(Reverse) access mapper

Page 55: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

4. THE INTERNET OF …

57

Page 56: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

4. THE INTERNET OF … COWS!

58

Page 57: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

MONITORING DAIRY CATTLE

59

Monitor:• Temperature• Activity:

- Position- Movement- Eating/drinking duration

+ Cow calendar

Page 58: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

MONITORING DAIRY CATTLE

60

Monitor:• Temperature• Activity:

- Position- Movement- Eating/drinking duration

+ Cow calendar

Detect?• Heat• Illness • Lameness• Calving moment

How’s my cow?Where’s my cow?What is my cow doing?

Page 59: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

MONITORING DAIRY CATTLE

61

Wireless communication:• Low power: long battery life• Long range: big pastures• Low data rates: telemetry• Low cost: inexpensive system• Scale: herds with 100s of animals

LPWANs:Low Power Wide Area Networks

Page 60: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

LOW POWER WIDE AREA NETWORKS (LPWAN)

62

LPWAN features:• Low power• Low data rate• Long range• Scales (?)• Unlicensed spectrum

RANGE

BAN

DW

IDTH

LPWAN

Regulatory restrictions on air time: e.g. 0.1%, 1% or 10% Radio Duty Cycle time 0.36 3.6 36 seconds TX per hour

Page 61: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

THE WEB OF THINGS IS COMING TO LPWANS

63

The IETF is bringing the WoT to LPWANs, BUT:• LPWANs focus on upstream trafc.• RDC limitations as a new constraint

Are prior results applicable to LoRaWAN? Request/response model of CoRE in LoRaWAN?

Bidirectional trafc: up AND downstream messages Impact on scalability: hundreds, thousands of end

devices per gateway. Existing studies did not consider downstream trafc.

End devices Gateway(s)

WoT devices Gateway(s)

Monitoring process

Web service or client

Page 62: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

LORAWAN SCALABILITY STUDY IN NS-3

64

Modeled LoRaWAN in ns-3 and studied impact of:- Assigning data rates to end devices- Unconfrmed vs confrmed messages- Impact of more than one gateway

Page 63: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

LORAWAN SCALABILITY STUDY IN NS-3

65

Modeled LoRaWAN in ns-3 and studied impact of:- Assigning data rates to end devices- Unconfrmed vs confrmed messages- Impact of more than one gateway

Modeling the physical and MAC layer of LoRaWAN in ns-3:

Page 64: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

IMPACT OF BIDIRECTIONAL TRAFFIC?

66

One gateway

Packet Delivery Ratio for bidirectional trafc is signifcantly lower.Caused by Radio Duty Cycle limitations for gateways.Absence of acknowledgments leads to retransmissions which increases interference.

Page 65: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

IMPACT OF BIDIRECTIONAL TRAFFIC?

67

One gateway Two gateway Four gateway

PDR for bidirectional trafc is signifcantly lower.Caused by Radio Duty Cycle limitations for gateways.

As gateway density grows, the impact of the RDC limitations is reduced and the PDR increases.

Page 66: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

IMPACT OF BIDIRECTIONAL TRAFFIC?

68

One gateway Two gateway Four gateway

PDR for bidirectional trafc is signifcantly lower.Caused by Radio Duty Cycle limitations for gateways.

As gateway density grows, the impact of the RDC limitations is reduced and the PDR increases.

Use bidirectional trafc sparsely!

Page 67: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

5. SUMMARY69

Page 68: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

SUMMARY The Internet will become ubiquitous.

“The Internet will disappear” – E. Schmidt “Software eats the world, as everything gets connected”

• The Internet of Things will be diverse and will need to interoperate.• This dissertation researched how Distributed Intelligence and

Sensor Function Virtualization can aid the integration of the resource-constrained Web of Things into applications and services.

• This work contributed towards the goal of an open and secure WoT, where many heterogeneous devices co-exist and interoperate.

70

Page 69: IMPROVING EFFICIENCY, USABILITY AND CONSTRAINED WEB OF … · CoAP/UDP/ 6LoWPAN/ 802.15.4 Container tracker (TinyOS) Container tracker (TinyOS) Proprietary application TCP/ IPv4

Floris Van den AbeelePhD researcher

IDLAB

E floris.vandenabeeleuugent.beT +32 9 331 49 46

www.ugent.bewww.vdna.be

uflorisvdafloris-van-den-abeele-0b22a743