• Keine Ergebnisse gefunden

( ) Tiny Web Services: Design and Implementation of Interoperable and Evolvable Sensor Networks

N/A
N/A
Protected

Academic year: 2021

Aktie "( ) Tiny Web Services: Design and Implementation of Interoperable and Evolvable Sensor Networks"

Copied!
28
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Tiny Web Services: Design and Implementation of Interoperable and Evolvable Sensor Networks

(Priyantha, Kansal, Goraczko, Zhao, 2008)

Dominique Im Obersteg Distributed Systems Seminar 2011, ETH Zurich

(2)

Evolutionary sensornets

Image: http://www.robotshop.com/blog/images/internet-of-things.jpg 1

(3)

Evolutionary sensornets

Single confined physical space (office, home,…)

Heterogeneous sensors

No direct access to sensor capabilities

Image: http://aycan.ca/house/plans/house-plan.jpg

Motion sensor

Floor & window sensor Temperature sensor

Medical alert system Home security system

2

(4)

Energy management

Evolutionary sensornets

Augment & evolve existing sensing infrastructure using soft- and hardware

New sensors may be added after deployment

Motion sensor

Floor & window sensor Temperature sensor

Medical alert system Home security system

Image: http://aycan.ca/house/plans/house-plan.jpg 3

(5)

Key challenges

Limited energy

Limited hardware capabilities

Sensors should have common API

Additional data size & processing cost for structured access

Image: http://inventionmachine.com/Portals/56687/images/challenges_ahead.jpg 4

(6)

Research goal

Quantification of resource cost for providing structured and programmatic access to sensor nodes

Minimize resource cost

Trade-off between interface generality and resource efficiency

 Find optimal solution

Image: http://smallbiztrends.com/wp-content/uploads/2011/01/iStock_000004996421XSmall.jpg 5

(7)

Web services

Image: http://download.oracle.com/docs/cd/B10468_13/tour/b10374/img/net2_01.gif 6

(8)

Advantages of web services

Interoperability

Improved programmability

Ease of integration through Internet

Reduces need for protocol translation

Image: Victorinox 7

(9)

Web service overheads

Application (Data) Presentation

(Data) Session

(Data) Transport (Segments)

Network (Packets) Data Link

(Frames) Physical

(Data)

Webservice Application Layer

Larger message size

Higher processing complexity

TCP/IP

Larger message size

Higher latency

8

(10)

Web service application design

Supporting duty cycled nodes

What about the other direction?

Event Sources

Notification Manager

Event Subscribers Subscription

Manager Subscription

Database

subscribe notify event

Event Subscribers Event

Sources

Notification Manager Subscription

Database Subscription

Manager

9

(11)

Web service application design

Web service method encapsulation

Specified by Web Service Description Language (WSDL)

XML parsing on sensor nodes

Only when URL encapsulation insufficient

XML Compression and optimization

LZW, XML-specific compression, method name encoding (single byte)

10

(12)

Web service application design

Brief summary

Overheads due increased message size and processing complexity

Duty cycled nodes to save resources

WSDL

If XML is needed, use compression/optimization

11

(13)

Network and transport layer design

Use persistent TCP connections

Only overhead is heartbeat message

Works only for HTTP 1.1

Disable delayed TCP acknowledgments

Delayed TCP ACKs reduce number of messages but introduce latency overhead

Use link layer retransmissions

Don’t wait for TCP timeouts

12

(14)

Network and transport layer design

Use low-power mode between TCP messages

Fixed minimum delay due to link capacities, hop count and packet size

Calculate or measure

Use 6lowpan to connect sensor nodes to IPv6 network

Provides way to transmit IPv6 packet over 802.15.4

Use link layer fragmentation

Split data in several TCP segments, acquire channel and send packet burst to reduce overhead

13

(15)

Network & transport layer design

Brief summary

Use persistent TCP connections (if possible)

Disable delayed TCP ACKs

Don‘t wait for TCP timeouts – use link layer retransmissions

Try to save energy between TCP messages

Use link layer fragmentation

14

(16)

Image: http://class7technology.wikispaces.com/file/view/stopwatch.jpg/78629245/stopwatch.jpg

Experiment

15

(17)

Experiment

16 Timing 2

(18)

Experiment

16 Timing 2

(19)

Experiment

16 Timing 2

(20)

Response time

Increased response time (~20 ms), still acceptable

Significant increase when payload is split in multiple packets

17

(21)

Energy consumption

Additional cost relatively small when message fits in a single packet

Frequent message exchanges significantly reduce lifetime

Lifetime computation based on timing and hardware data

Radio off during TCP msg transmission gaps Radio always on

18

(22)

Prototype

Image: http://www.wired.com/images_blogs/photos/uncategorized/2008/03/04/tiny_web_services1.jpg 19

(23)

Prototype system

Specifies supported method calls

Specifies how methods are encapsulated & transported

‚Resource-constrained

platform‘ with 802.15.4 radio Implemented on PC

20

(24)

Home energy management application

12 day period

Volunteer family

Motion sensors in living area, study room and each bedroom

Use data from home‘s security system

Smart-sockets on most-used entertainment electronics and lamps

Image: http://www.londonnfp.com/lnfp/images/family.jpg 21

(25)

Home energy management application

Energy Saver: control heating by motion data

22

(26)

Conclusion

Web service based evolutionary sensornets are flexible and extensible

Ease of access leads to many new possibilities

Proof of concept successful

More detailed experiments need to be performed to prove efficiency and scalability

23

(27)

Personal opinion & discussion

Web service application design evaluation

Low power mode between TCP transmissions

Battery lifetime

Multi-hop networks

Security

Image: http://www.tunezine.com/tunezine98_fichiers/Discussion.gif 24

(28)

Questions?

Image: http://images.huffingtonpost.com/2010-02-04-Questions.jpg 25

Referenzen

ÄHNLICHE DOKUMENTE

Since component classes defined in other application bundles are out of scope for the core bundle’s class loader, the ApplicationImpl will throw an exception when a component

Only files which have been changed are saved aka even if empty .json files are created at the start of the labelling process the database entries would not be created if the image

Besides a model of the Web Content Accessibility Guidelines and the techniques and failures, this ontology also contained several rules for inferring whether a web page satis- fies

The convergence of paradigms such as currently being monitored in the areas of Semantic Web, Web Services, Agents, Peer-to-Peer networks and Grid Computing requires multi-

The Web Coverage Processing Service (WCPS) defines a language for filtering and processing of multi- dimensional raster coverages, such as sensor, simulation, image, and

The combination of information extraction and multilingual generation enables on the one hand, multilingual presentation of the database content, and on the other hand, free

We apply our approach to a couple of concrete P ´olya urns that lead to limit laws with normal limit distributions, with non-normal limit distributions and with asymptotic

Four moral boundaries of legitimate profit-seeking in finance have been empirically described; these shaped the public perception of the crisis in Germany and in the UK as evidenced