6 Lo WPAN
6 Lo WPAN
6 Lo WPAN
6LoWPAN
Based On-
IP is Dead, Long Live IP for Wireless Sensor Networks
-Jonathan W. Hui -David E. Culler
2
Presented By
- Milan Jain MT12067
- Anil Sharma MT12063
Outline
Introduction
Network Design And Software Abstraction
Link Layer
Adaptation Layer
Network Layer
Evaluation
Application
Can We Implement this in Flyport?
References
3
Introduction
Internet of Things (IoT) and Wireless Sensor Networks
How This Started?
5
Internet Of Things(IoT)
“The Internet Protocol could and should be applied even to the smallest
devices”
Idea lead us to 6LoWPAN – “IPv6 over Low Power Wireless Personal Area
Networks”
6
7
How 6LoWPAN different from TCP/IP?
Transport Layer
TCP not that useful.
Application Layer
HTTP not much of use.
10
Network Design And Software
Abstraction
Network Design and Software Abstraction for IP
IPv6 Based Network Design
Each WSN node serves as an IP
router.
As border routers forward
datagrams at network layer,
they don’t maintain any
application layer state.
Peers communicate in terms of
the capabilities provided by the
layer below.
Link must allow network to
achieve high “best-effort”
datagram delivery.
To achieve reliable transport.
12
6LoWPAN with Traditional IP (Edge Router)
13
Software Abstraction
14
IP Link
IP Link - Nodes that are reachable over single hop.
Direct Connection at Physical Layer.
Emulated over different physical communication domains.
Properties:
Always-On
Best-Effort Reliability
Single Broadcast Domain
Problem:
Places too much policy in Link Layer.
Network Layer unaware about complex link-layer dynamics.
15
Proposed Model - Avoiding IP Link Emulation
16
17
Link layer
6LoWPAN
Introduction
Low power radios consume as much power when receiving or just even
listening when compared to transmitting.
Idle-listening completely dominates system energy consumption when
radio is not duty cycled.
Industry has not yet come to agreement on a link protocol for duty cycled
operation in Multihop Network.
Developed duty cycle link protocol, while keeping in mind use of IPv6
network layer above (Interoperability).
Duty-Cycled Radio – Transmitter can send packets to receiver at specific
times.
18
Goal to Design Duty-Cycled Links
Consume minimal power.
Provides following IP-friendly properties:
Always-On: Nodes able to communicate without establishing connection or
requiring any existing state.
Low Latency: Transmission delays to any neighboring node should be low.
Broadcast Capable: Able to broadcast frames to all neighboring nodes,
regardless of node density.
Synchronous Acks: Link should allow IP to achieve high “best-effort”
datagram delivery.
19
How They Achieved This Goal? - MMC
MMC – Arbitrate access to media between simultaneous
transmitters.
Improve on WiseMAC by embedding addressing and timing
Information into wakeup signal.
Techniques Used:
Sampled Listening
Synchronous Acks
Scheduling
Streaming
20
Sampled listening
Requires two primitives:
Wakeup signal when transmitting
Channel Sampling
Chirp frame – 802.15.4 compliant frame and contains
Destination Address
Rendezvous Time: Time remaining until actual data frame transmission.
Overhearing cost is reduced
Rendezvous time allows destination to power down for that time.
Reduces receive cost to that of receiving a chirp frame and the data
frame.
21
Synchronous Acks
Ack frame defined in 802.15.4 insufficient:
No addressing information.
Not Secured.
Cannot carry payload – Useful for hop-by-hop feedback
New Ack Frame Defined as 802.15.4 data frame:
Addressing and Security mechanisms can be used.
Also carry payload which can be utilized for:
Scheduling Optimizations
Network Layer Optimizations
22
Scheduling
Sample period and phase in payload of each ack.
How it is helpful?
Node can synchronize to any neighbor after single acked transmission.
If destination’s schedule is known, chirp duration can be reduced to small
synchronization guard time.
23
Streaming
To increase throughput and Energy Efficiency.
Transmitter can signal that another data frame will immediately
follow.
Node can send data frames back-to-back without delay after sending
a single chirp frame signal.
This allows both sender and receiver to amortize wake-up costs
across multiple frames.
24
Link Software Abstraction
Link layer maintains neighbor table that holds link specific state
about neighbors:
Link Addresses
Schedules
Frame Pending Indicator
Link Quality Statistics – Helpful in selecting routes
RSSI
Link Success Rates
Also provides feedback on each transmission and reception.
Indicates whether transmission attempt was Acked.
RSSI of Ack.
Also RSSI for each received frames.
25
ADAPTATION LAYER
Fragmentation & Header Compression
Why And How?
6LoWPAN Stack
28
Header Compression – RFC 4944 HC
Stateless – provide nodes flexibility to communicate with any neighbor in
compact form.
Two ways to compress header
Making assumptions about common values for IPv6 header fields in WSNs.
By removing redundant information about layers.
Payload length and Interface Identifiers(IID) are derived from the link header.
Doesn’t efficiently compress headers when communicating outside of
link-local scope or when using multicast.
When prefix is elided it is assumed to be CGP(Common Global Prefix) or
Link-Local Prefix.
29
IPv6 Header Compression
VTF Next Hop Limit Source Address Destination Address
Header
6LP_IPHC
IPv6 Header
30
Packet Format (After Compression)
VTF Next Hop Limit Source Address Destination Address
Header
VTF (Version, Traffic Class, Flow Label) – 1 Bit to indicate whether elided
or not.
Next Header – 1 Bit to indicate Next Header is elided and 6LP_NHC is
used.
Hop Limit – 2 Bits to indicate whether 1, 64 or 255 or carried inline.
Source and Destination Address (IPv6 Addresses) : 2 Bits each
Full 128-bit carried inline.
64-bit IID carried inline.
Bottom 16-bits of IID carried inline.
Fully elided.
31
Compression Efficiency
When prefix is elided it is assumed to be CGP(Common Global Prefix)
or Link-Local Prefix.
Possible compressions in various cases are:
Link-Local Unicast: 6 Bytes
Link-Local Multicast: 8 Bytes
Global Unicast: 11 Bytes
Multicast within WSN: 11 Bytes
Arbitrary IP Devices outside WSN: 25 Bytes
32
33
Network Layer
Forwarding And Routing
Why IPv6 for WSNs?
Much larger address space (128 Bits address).
Inclusion of various two layer protocols e.g., ARP and DHCP into IPv6
framework.
34
Network Layer - Introduction
Network Layer includes three services:
Configuration and Management
Forwarding
Routing
35
Neighbor Discovery
To detect each other’s presence and to find routers
36
Auto-configuration
IPv6 support both stateless and DHCPv6 autoconf methods to assign
unique address
Stateless:
Disseminates parameters to all nodes (like using RA message)
Low cost (single RA message)
Global parameters ?
Address generated by concatenating prefix with IID
37
Auto-Configuration – DHCPv6
DHCPv6:
It selectively assign parameters to individual nodes (means behave like a
central server)
Nodes request to central server for the unique address
Every WSN router act as a relay agent
38
Forwarding - Introduction
Separate from routing.
Responsibilities
Receive datagrams from an interface.
Next hop lookups in a forwarding table.
Submit message to appropriate interface.
39
Unicast forwarder
Applies three orthogonal mechanisms:
Hop-By-Hop Recovery
Ensures that datagram will reach to destination
Link layer ack indicates whether or not network layer was able to accept the
message.
So no need to rely on broadcast or continuous snooping.
Streaming
When submitting datagrams to the link, forwarder indicates whether other
packets for the same next-hop destination follow.
If first transmission succeeds, it is likely that remaining transmissions will
succeed.
Reduces average transmission cost.
Congestion Control
Congestion can cause queues to become full and decrease energy efficiency
due to forwarding failures.
Uses feedback to adjust transmission rates using an additive-increase,
multiplicative decrease control.
40
Quality of Service
Previous three things may induce higher latency due to forwarding delays
QoS allows upper layers to select forwarding policy.
Three mechanisms:
Upper layer tag datagrams as latency tolerant:
Upper layer tag datagrams as high priority
Queue reservation for different traffic classes.
Information about datagram is placed in an IPv6 Hop-by-Hop Option
header.
41
Multicast Forwarder
Simple controlled flood using Trickle.
42
Routing - Introduction
Why Routing ?
To establish reachability, forming paths, minimize routing metric
43
Contd..
45
Contd..
c) Selecting Default Routes
Top entry in the routing table is selected as the default route
Router randomly selects a small fraction of forwarded datagram for link quality
estimate (uses hop count information)
No need to generate explicit control packets
46
Host Routes
Inside RRO
contains a list of addresses, identifying the hosts that have forwarded the datagram.
RRO requires 2 byte per entry
Because all have same prefix
47
Routing overhead
Routing protocol configures both default and host routes
48
49
Evaluation
Results Presented in the Paper
Hardware Description
All the discussed techniques were implemented on TinyOS 2.x and
TelosB platform
TelosB
16-bit TI MSP430 MCU
48KB ROM, 10KB RAM
2.4 GHz, 250 kbps TI CC2420 IEEE 802.15.4 radio
AES-128 authentication
50
Experimental Setup
The power model is validated in a real world Home Monitoring
Application
Data collection
Temperature, Humidity
Network Statistics
Routing topology
7 nodes within 1-hop of border router
Other within 2 or 3.
Continued for 4 weeks
Computed Average duty Cycle and success rate for each node
51
Evaluation Metrics
52
Link Energy Cost
Total power was modeled using listen, receive, transmit costs
Any effect of
chirp length ?
53
Current Signature
54
Understanding the Graph
55
Take Aways
Chirp length effects transmission
Increasing sample rate reduces power draw when node is only listening
56
Network Energy Cost
Average power draw for a node maintaining network connectivity
57
Understanding the Graph
58
Take Away – Network Energy Cost
Transmit is more costly than other operations
59
Application Energy cost
Both host-only and router nodes source UDP datagram to a data server
through border router
N = Number of datagrams by a
node
D = Number of nodes to forward
60
Understanding the Graph
Why transmit power for Router Node is more than Host Node ?
61
How Proposed System Is Better?
63
64
Application
LessTricity – 6LoWPAN based Building Energy Saving and Management
System
Lesstricity – Building Energy Savings and Management
LessTricity system developed by consortium of companies in UK.
Easy Deployment.
Compatible with building’s existing
IT Infrastructure.
Energy Usage information can be
made available locally or over
Internet for remote monitoring.
Ex: Corporate Energy Usage
Monitoring.
End User Focus: Reduce energy
footprint of their operations, both
from cost saving and environment
responsibility point of view.
67
Can We Implement 6LoWPAN?
6LoWPAN
Can we implement 6lowpan?
IPv4
Network
Edge Router
Sensor Act
70
Thank You!!
71
QUESTIONS?
FEEDBACK/COMMENTS/SUGGESTIONS
6LoWPAN