Principles of Wireless Sensor Networks

Similar documents
Principles of Wireless Sensor Networks

Principles of Wireless Sensor Networks. Routing, Zigbee, and RPL

Principles of Wireless Sensor Networks

Principles of Wireless Sensor Networks

Routing over Low Power and Lossy Networks

Mobile Communications

Principles of Wireless Sensor Networks

EL2745 Principles of Wireless Sensor Networks

WirelessHART: Applying Wireless Technology in Real-Time Industrial Process Control

Wireless Sensor Networks Module 2: Routing

Study of RPL DODAG Version Attacks

RPL: Routing for IoT. Bardh Prenkaj Dept. of Computer Science. Internet of Things A.A

Lesson 4 RPL and 6LoWPAN Protocols. Chapter-4 L04: "Internet of Things ", Raj Kamal, Publs.: McGraw-Hill Education

Principles of Wireless Sensor Networks. Medium Access Control and IEEE

Routing in the Internet of Things (IoT) Rolland Vida Convergent Networks and Services

WirelessHART, Technology and Deployment ( ETSI Nov. 09 ) Jean-Luc Griessmann, HART Communication Foundation Europe

Ad Hoc Networks: Issues and Routing

Proposed Node and Network Models for M2M Internet

IPv6 Stack. 6LoWPAN makes this possible. IPv6 over Low-Power wireless Area Networks (IEEE )

WPAN/WBANs: ZigBee. Dmitri A. Moltchanov kurssit/elt-53306/

Politecnico di Milano Advanced Network Technologies Laboratory. 6LowPAN

ICS 351: Today's plan. distance-vector routing game link-state routing OSPF

ECE 333: Introduction to Communication Networks Fall 2001

Design and Analysis of Routing Protocol for IPv6 Wireless Sensor Networks

Routing. Information Networks p.1/35

Content. 1. Introduction. 2. The Ad-hoc On-Demand Distance Vector Algorithm. 3. Simulation and Results. 4. Future Work. 5.

Wireless Sensor Networks

Principles of Wireless Sensor Networks. Fast-Lipschitz Optimization

Wireless Sensor Networks for Spacecraft DAMON PARSY, CEO OF BEANAIR

Wireless Sensor Networks

By Nick Giannaris. ZigBee

SECURE AND EFFICIENT HYBRID APPROACH FOR DATA TRANSMISSION IN ZIGBEE NETWORK

Analysis and Enhancement of RPL under Packet Drop Attacks

Routing Algorithms. CS158a Chris Pollett Apr 4, 2007.

ISA100.11a. Pengfei Ren.

Semainaire Objects connectés industriels, M2M, réseaux June 12th, 2014 IoT et Smart Cities: comment passer à l échelle

The P2P-RPL Routing Protocol for IPv6 Sensor Networks: Testbed Experiments

Communications Options for Wireless Sensor Networks. Marco Zennaro and Antoine Bagula ICTP and UWC Italy and South Africa

ns-3 RPL module: IPv6 Routing Protocol for Low power and Lossy Networks

IoT Roadmap in the IETF. Ines Robles

Ad Hoc Routing Protocols and Issues

System Architecture Challenges in the Home M2M Network

Static Routing NETWORK INFRASTRUCTURES NETKIT - LECTURE 4 MANUEL CAMPO, MARCO SPAZIANI

6LoWPAN (IPv6 based Low Power WPAN)

Guide to Wireless Communications, 3 rd Edition. Objectives

Mobile Ad-hoc Networks

CS164 Final Exam Winter 2013

Lecture 4. The Network Layer (cont d)

Homework 3 Discussion

Lecture 18 Solving Shortest Path Problem: Dijkstra s Algorithm. October 23, 2009

CS551 Ad-hoc Routing

A Performance Evaluation of RPL in Contiki

Outline. Routing. Introduction to Wide Area Routing. Classification of Routing Algorithms. Introduction. Broadcasting and Multicasting

CSC344 Wireless and Mobile Computing. Department of Computer Science COMSATS Institute of Information Technology

Communication and Networking in the IoT

The Open System Interconnect model

ICS 351: Today's plan. OSPF BGP Routing in general

Computer Science 425 Distributed Systems CS 425 / ECE 428. Fall 2013

arxiv: v1 [cs.ni] 8 Jun 2016

Fast-Lipschitz Optimization

Routing protocols in WSN

Mohammad Hossein Manshaei 1393

RF and network basics. Antonio Liñán Colina

Implementation of Gradient Routing in WSNs

Zigbee protocol stack overview

Shortcut Tree Routing using Neighbor Table in ZigBee Wireless Networks

cs/ee 143 Communication Networks

Routing Protocol for LLN (RPL) Configuration Guide, Cisco IOS Release 15M&T

Chapter 12. Routing and Routing Protocols 12-1

Fairness Example: high priority for nearby stations Optimality Efficiency overhead

Internet of Things: Latest Technology Development and Applications

A cluster based interference mitigation scheme for performance enhancement in IEEE

Exploring the ISA100.11a Standard. Exploring the ISA100.11a Standard. William (Bill) Ayers America s OneWireless Consultant.

The Emergence of Networking Abstractions and Techniques in TinyOS

Wireless Sensor Networks

What is an Ad Hoc Network?

Routing in a network

Introduction to Mobile Ad hoc Networks (MANETs)

1. The Internet 2. Principles 3. Ethernet 4. WiFi 5. Routing 6. Internetworking 7. Transport 8. Models 9. WiMAX & LTE 10. QoS 11. Physical Layer 12.

INTERNATIONAL JOURNAL OF COMMUNICATIONS Volume 12, Performance comparative analysis of LOADing-CTP and RPL routing protocols for LLNs

Lecture 13: Routing in multihop wireless networks. Mythili Vutukuru CS 653 Spring 2014 March 3, Monday

Study and Analysis of Routing Protocols RIP and DSR Using Qualnet V5

cs/ee 143 Communication Networks

Secure routing in IoT networks with SISLOF

Link Estimation and Tree Routing

Routing Protocols in MANETs

Lecture 9. Network Layer (cont d) Network Layer 1-1

What is Multicasting? Multicasting Fundamentals. Unicast Transmission. Agenda. L70 - Multicasting Fundamentals. L70 - Multicasting Fundamentals

Wireless and WiFi. Daniel Zappala. CS 460 Computer Networking Brigham Young University

ENSC 427: COMMUNICATION NETWORKS

Performance Evaluation of Routing Protocols in Lossy Links for Smart Building Networks

Integration of Wireless Sensor Network Services into other Home and Industrial networks

HART COMMUNICATION. A Digital Upgrade For Existing Plants

Mobile Communications. Ad-hoc and Mesh Networks

Data Networks. Lecture 1: Introduction. September 4, 2008

Politecnico di Milano Advanced Network Technologies Laboratory. 6LowPAN

Chapter 16 Networking

Youki Kadobayashi NAIST

6TiSCH. towards an IPv6-based Industrial Internet. Technical Track.

Chapter 09 Network Protocols

Transcription:

Principles of Wireless Sensor Networks https://www.kth.se/social/course/el2745/ Lecture 6 Routing Carlo Fischione Associate Professor of Sensor Networks e-mail:carlofi@kth.se http://www.ee.kth.se/ carlofi/ KTH Royal Institute of Technology Stockholm, Sweden September 22, 204 Carlo Fischione (KTH) Principles of Wireless Sensor Networks September 22, 204 / 46

Course content Part Part 2 Part 3 Part 4 Lec : Introduction to WSNs Lec 2: Introduction to Programming WSNs Lec 3: Wireless Channel Lec 4: Physical Layer Lec 5: Medium Access Control Layer Lec 6: Routing Lec 7: Distributed Detection Lec 8: Static Distributed Estimation Lec 9: Dynamic Distributed Estimation Lec 0: Positioning and Localization Lec : Time Synchronization Lec 2: Wireless Sensor Network Control Systems Lec 3: Wireless Sensor Network Control Systems 2 Lec 4: Summary and Project Presentations Carlo Fischione (KTH) Principles of Wireless Sensor Networks September 22, 204 2 / 46

Previous lecture Application Presentation Session Transport Routing MAC Phy When a node gets the right to transmit? What is the mechanism to get such a right? Carlo Fischione (KTH) Principles of Wireless Sensor Networks September 22, 204 3 / 46

Today s lecture Application Presentation Session Transport Routing MAC Phy On which path messages should be routed? Carlo Fischione (KTH) Principles of Wireless Sensor Networks September 22, 204 4 / 46

Today s learning goals What are the basic routing options? How to compute the shortest path? Which routing is used in standard protocols? Carlo Fischione (KTH) Principles of Wireless Sensor Networks September 22, 204 5 / 46

Outline Classification of routing protocols for WSNs The shortest path routing Routing algorithms in standardized protocol stacks Carlo Fischione (KTH) Principles of Wireless Sensor Networks September 22, 204 6 / 46

Outline Classification of routing protocols for WSNs The shortest path routing Routing algorithms in standardized protocol stacks ROLL RPL ZigBee ISA00 WirelessHART Carlo Fischione (KTH) Principles of Wireless Sensor Networks September 22, 204 7 / 46

Routing protocols Derive a mechanism that allows a packet sent from an arbitrary node to arrive at some destination node Routing information: data structures (e.g., tables) on how a given destination node can be reached by a source node Forwarding: Consult these data structures to forward a given packet to its next hop node Challenges Nodes may move, neighborhood relations change Carlo Fischione (KTH) Principles of Wireless Sensor Networks September 22, 204 8 / 46

Routing protocols classification When the routing protocol operates?. Proactive: protocol always tries to keep its routing tables up-to-date and active before tables are actually needed Example: Destination Sequence Distance Vector (DSDV), uses Bellman-Ford algorithm (see below) 2. On demand: route is only determined when needed by a node Example: Ad hoc On Demand Distance Vector (AODV), nodes remember where packets came from and populate routing tables accordingly 3. Hybrid: combine the previous two Carlo Fischione (KTH) Principles of Wireless Sensor Networks September 22, 204 9 / 46

But how paths are built and chosen? We have seen a general classification of routing In practice, How the routing structures (e.g., the tables) are built? How the decision to select next hop is taken? Carlo Fischione (KTH) Principles of Wireless Sensor Networks September 22, 204 0 / 46

Many options for routing. Path with minimum delay 2. Path with minimum packet error rate 3. Path with maximum total available battery capacity Path metric: Sum of battery levels Example: A-C-F-H 4. Path with minimum battery cost Path metric: Sum of reciprocal battery levels Example: A-D-H 5. Path with conditional max-min battery capacity Only take battery level into account when below a given level 6. Path with minimum variance in battery power levels 7. Path with minimum total transmission battery Carlo Fischione power (KTH) Principles of Wireless Sensor Networks September 22, 204 / 46

Many options for routing Is there a basic way to model all these options? Yes, the shortest path problem Carlo Fischione (KTH) Principles of Wireless Sensor Networks September 22, 204 2 / 46

Outline Classification of routing protocols for WSNs The shortest path routing Routing algorithms for standardized protocol stack ROLL RPL ZigBee ISA00 WirelessHART Carlo Fischione (KTH) Principles of Wireless Sensor Networks September 22, 204 3 / 46

The shortest path routing i s source j t destination The shortest path routing problem is a general optimization problem that models ALL the cases above for routing In the following, we study the basic version, when in the network there is one source and one destination Multiple sources multiple destinations scenarios are a simple extension Carlo Fischione (KTH) Principles of Wireless Sensor Networks September 22, 204 4 / 46

Definitions i s source j t destination N N A = {(i, j)} G = (N, A) a ij Number of nodes Set of nodes Set of arcs Network Routing cost on the link ij Examples: ) MAC delay i j 2) packet error rate i j What is the shortest (minimum cost) path from source s to destination t? Carlo Fischione (KTH) Principles of Wireless Sensor Networks September 22, 204 5 / 46

The Shortest Path optimization Problem min x s.t. (i,j) A a ijx ij x ij if i = s x ji = s i if i = t 0 otherwise x ij 0 (i, j) A j:(i,j) A j:(j,i) A x = [x 2, x 3,..., x in, x in+,...] x ij is a binary variable. It can be also real, but remarkably if the optimization problem is feasible, the unique optimal solution is binary The optimal solution gives the shorstest path source-destination Carlo Fischione (KTH) Principles of Wireless Sensor Networks September 22, 204 6 / 46

The Shortest Path Optimization Problem min x s.t. (i,j) A a ijx ij x ij if i = s x ji = s i if i = t 0 otherwise x ij 0 (i, j) A j:(i,j) A j:(j,i) A This problem is much more general and can be applied to. Routing over WSNs, used in ROLL RPL, WirelessHART... 2. Project management 3. The paragraphing problem 4. Dynamic programming 5.... Carlo Fischione (KTH) Principles of Wireless Sensor Networks September 22, 204 7 / 46

How to solve the Shortest Path Problem Since it is an optimization problem, one could use standard techniques of optimization theory, such as Lagrangian methods However, the solution can be achieved by combinatorial algorithms that don t use optimization theory at all We consider now such a combinatorial solution algorithm, the Generic shortest path algorithm The Generic shortest path algorithm is the foundation of other more advanced algorithms widely used for routing (e.g., in ROLL RPL) such as. Bellman-Ford method (see exercises) 2. Dijkstra method (see exercises) Carlo Fischione (KTH) Principles of Wireless Sensor Networks September 22, 204 8 / 46

Complementary slackness conditions for the Shortest Path Problem A label associated to a node d j = { scalar Proposition Let d, d 2,..., d N be scalars such that d j d i + a ij, (i, j) A Let P be a path starting at a node i and ending at a node i k. If d j = d i + a ij, (i, j) of P then P is a shortest path from i to i k. Carlo Fischione (KTH) Principles of Wireless Sensor Networks September 22, 204 9 / 46

Generic Shortest Path Algorithm: the idea in-nuce Complementary Slackness conditions (CS) is the foundation of the generic shortest path algorithm Some initial vector of labels is assigned to nodes (d, d 2,..., d N ) The arcs (i, j) that violate the CS condition d j > d i + a ij are selected and their labels redefined so that d j := d i + a ij This redefinition is continued until the CS condition d j d i + a ij is satisfied for all arcs (i, j) Carlo Fischione (KTH) Principles of Wireless Sensor Networks September 22, 204 20 / 46

Iterations of the Generic Shortest Path Algorithm Let initially be V = {} d = 0, d i =, i Iteration of the Generic Shortest Path Algorithm Remove a node i from the candidate list V. For each outgoing arc (i, j) A, if d j > d i + a ij, set d j := d i + a ij and add j to V if it does not already belong to V The removal rule gives Bellman-Ford method Dijkstra method Carlo Fischione (KTH) Principles of Wireless Sensor Networks September 22, 204 2 / 46

An example 3 2 2 Origin 4 3 3 Iteration Candidate List V Node Labels Node out of V {} (0,,, ) 2 {2, 3} (0,3,, ) 2 3 {3, 4} (0,3,,5) 3 4 {4, 2} (0,2,,4) 4 5 {2} (0,2,,4) 2 (0,2,,4) Generic shortest path algorithm [Bertsekas, 998] Carlo Fischione (KTH) Principles of Wireless Sensor Networks September 22, 204 22 / 46

Convergence of the algorithm (a) Proposition Consider the generic shortest path algorithm. (a) At the end of each iteration, the following conditions hold: If d j <, then d j is the length of some path that starts at and ends at j If i V, then either d i = or else d j d i + a ij, j such that (i, j) A Carlo Fischione (KTH) Principles of Wireless Sensor Networks September 22, 204 23 / 46

Convergence of the algorithm (b) Proposition (b) If the algorithm terminates, then upon termination, for all j with d j <, d j is the shortest distance from to j and { min (i,j) A (d i + a ij) if j d j= 0 if j = Carlo Fischione (KTH) Principles of Wireless Sensor Networks September 22, 204 24 / 46

Convergence of the algorithm (c) (d) Proposition (c) If the algorithm does not terminate, then there exists some node j and a sequence of paths that start at, ends at j, and have a length diverging to (d) The algorithm terminates if and only if there is no path that starts at and contains a cycle with negative length. Carlo Fischione (KTH) Principles of Wireless Sensor Networks September 22, 204 25 / 46

The convergence properties of the Generic Shortest Path Algorithm The convergence properties above are based on sound theoretical analysis They are the foundation over which routing protocols, such as the standardized ROLL RPL, are built Let s have a quick look at ROLL RPL and other standardized routing protocols Carlo Fischione (KTH) Principles of Wireless Sensor Networks September 22, 204 26 / 46

Outline Classification of routing protocols for WSNs The shortest path routing Routing for standardized protocols ROLL RPL ZigBee ISA00 WirelessHART Carlo Fischione (KTH) Principles of Wireless Sensor Networks September 22, 204 27 / 46

ROLL: Routing over Low Power Lossy Networks ROLL is a Working Group of the Internet Engineering Task Force www.ietf.org/dyn/wg/charter/roll-charter.html ROLL RPL, IPv6 Routing Protocol for Low Power and Lossy Networks RPL is intended for Industrial and home automation Healthcare Smart grids Carlo Fischione (KTH) Principles of Wireless Sensor Networks September 22, 204 28 / 46

ROLL RPL assumptions Networks with many embedded nodes with limited power, memory, and processing Networks interconnected by a variety of protocols, such as IEEE 802.5.4, Bluetooth, Low Power WiFi, wired or other low power Powerline communications End-to-end Internet Protocol-based solution to avoid the problem of non-interoperable networks interconnected by protocol translation gateways and proxies Traffic patterns Multipoint to Point (MP2P) Point to Multipoint (P2MP) Point-to-Point (P-2-P) Carlo Fischione (KTH) Principles of Wireless Sensor Networks September 22, 204 29 / 46

RPL is tree based RPL constructs destination-oriented directed acyclic graphs (DODAGs) i.e., trees sources-destinations Nodes build and maintain DODAGs by periodically multicasting messages, the DODAG Information Object (DIO), to their neighbors To join a DODAG, a node listens to the DIO messages sent by its neighbors and selects a subset of these nodes as its parents Packet forwarding metrics, the a ij see above:. Link reliability, 2. Packet delay, 3. Node energy consumption, 4. Expected transmissions count (ETX) 5.... Carlo Fischione (KTH) Principles of Wireless Sensor Networks September 22, 204 30 / 46

RPL DIO messages DODAG minimizes the cost to go to the root (destination node) based on the Objective Function DIO messages are broadcast to build the tree; DIO includes A nodes rank (its level) dj Packet forwarding metric aij A node selects a parent based on the received DIO message and calculates its rank Destination Advertisement Option (DAO) messages are sent periodically to notify parent about routes to children nodes Carlo Fischione (KTH) Principles of Wireless Sensor Networks September 22, 204 3 / 46

Example 0 Carlo Fischione (KTH) Principles of Wireless Sensor Networks September 22, 204 32 / 46

Example DIO 0 DIO DIO Carlo Fischione (KTH) Principles of Wireless Sensor Networks September 22, 204 32 / 46

Example 0 Carlo Fischione (KTH) Principles of Wireless Sensor Networks September 22, 204 32 / 46

Example DIO 0 DIO DIO DIO Carlo Fischione (KTH) Principles of Wireless Sensor Networks September 22, 204 32 / 46

Example 0 2 2 Carlo Fischione (KTH) Principles of Wireless Sensor Networks September 22, 204 32 / 46

Example 0 2 2 DIO DIO DIO DIO Carlo Fischione (KTH) Principles of Wireless Sensor Networks September 22, 204 32 / 46

Example 0 2 2 3 Carlo Fischione (KTH) Principles of Wireless Sensor Networks September 22, 204 32 / 46

Example DIO 0 DIO 2 2 3 DIO DIO DIO Carlo Fischione (KTH) Principles of Wireless Sensor Networks September 22, 204 32 / 46

Example 0 2 2 2 2 Carlo Fischione (KTH) Principles of Wireless Sensor Networks September 22, 204 32 / 46

Example 0 2 2 2 2 2 3 3 3 3 Carlo Fischione (KTH) Principles of Wireless Sensor Networks September 22, 204 32 / 46

Example 2 Carlo Fischione (KTH) Principles of Wireless Sensor Networks September 22, 204 33 / 46

Other standardized protocol stacks In the following there is mention of other protocol stacks with standardized routing If you have time, read them. There will not be question on them at the exam Carlo Fischione (KTH) Principles of Wireless Sensor Networks September 22, 204 34 / 46

ZigBee, www.zigbee.org ZigBee covers the networking and application layers on top of IEEE 802.5.4 Nodes: IEEE 802.5.4 nodes ZigBee coordinator: starts the network ZigBee router Networks: star, tree, mesh Routing No transport protocol for end-to-end reliability (only hop-by-hop) Tree routing: packets are sent to the coordinator, and then to the destination Mesh routing: AODV protocol for route discovery Carlo Fischione (KTH) Principles of Wireless Sensor Networks September 22, 204 35 / 46

ISA SP-00, www.isa.org Standard for non critical process applications tolerating delays up to 00ms It is based on IEEE 802.5.4 plus a new data link layer and adaptation layer between MAC and data link Frequency hopping Carlo Fischione (KTH) Principles of Wireless Sensor Networks September 22, 204 36 / 46

WirelessHART, www.hartcomm.org Released in September 2007 as part of HART 7 specifications An open communication standard designed for process measurements and control applications. Strict timing requirements 2. Security concerns Carlo Fischione (KTH) Principles of Wireless Sensor Networks September 22, 204 37 / 46

WirelessHART network Field device, attached to the plant process Handheld, a portable computer to configure devices, run diagnostic and perform calibrations Gateway, that connect host applications to field devices Network manager, responsible for configuring the network, scheduling and managing communication Carlo Fischione (KTH) Principles of Wireless Sensor Networks September 22, 204 38 / 46

WirelessHART network Topology: Star, Cluster, Mesh Central network manager: maintains up-to-date routes and communication schedules for the network Basic functionalities: Timer Network wide synchronization Communication security Reliable mesh networking Central network management Carlo Fischione (KTH) Principles of Wireless Sensor Networks September 22, 204 39 / 46

A Five Layers Architecture Carlo Fischione (KTH) Principles of Wireless Sensor Networks September 22, 204 40 / 46

Layers Physical layer: Similar to IEEE 802.5.4 2.4-2.4835 GHz, 26 channels, 250 Kbps per channel Data link layer: Network wide synchronization (a fundamental functionality) TDMA with strict 0ms time slots Periodical superfames Channel blacklisting: the network administrator removes the channels with high interference Pseudorandom change of the channel for robustness to fading TDMA security: industry-standard AES-28 ciphers and keys Carlo Fischione (KTH) Principles of Wireless Sensor Networks September 22, 204 4 / 46

WirelessHART MAC Carlo Fischione (KTH) Principles of Wireless Sensor Networks September 22, 204 42 / 46

WirelessHART Graph Routing Graph: collection of paths that connect network nodes Graph s paths are created by the network manager and downloaded to each node To send a packet, the source node writes a specific graph ID (determined by the destination) in the network header All network devices on the way to the destination must be pre-configured with graph information that specifies the neighbors to which the packets may be forwarded Carlo Fischione (KTH) Principles of Wireless Sensor Networks September 22, 204 43 / 46

WirelessHART Source Routing Source Routing is a supplement of the graph routing aiming at network diagnostics To send a packet to destination, the source node includes in the header an ordered list of devices through which the packet must travel As the packet is routed, each routing device utilizes the next network device address in the list to determine the next hop until the destination device is reached Carlo Fischione (KTH) Principles of Wireless Sensor Networks September 22, 204 44 / 46

Summary We have studied routing protocols The theoretical foundation of routing is the shortest path optimization problem It gives the basic mechanisms that aim at optimal routing These mechanisms are included in existing WSN standards such as ROLL RPL, ZigBee, ISA00, WirelessHart Carlo Fischione (KTH) Principles of Wireless Sensor Networks September 22, 204 45 / 46

Next Lecture By this lecture, we concluded the networking part of the course We move to the signal processing part Distributed detection, i.e., how to reliably detect the happening of events by a WSN Carlo Fischione (KTH) Principles of Wireless Sensor Networks September 22, 204 46 / 46