Kamis, 25 September 2014 @Universitas Al-Azhar Indonesia Ardiansyah, M.Eng Networking Lab, Computer Engineering Study Program Department of Electrical Engineering, Universitas Indonesia
128-bit IPv6 address is written using 32 hexadecimal numbers. The format is x:x:x:x:x:x:x:x, where x is a 16-bit hexadecimal field, therefore each x represents four hexadecimal digits. Example address: 2035:0001:2BC5:0000 : 0000:087C:0000:000A Addresses: 2128 = 3.4×1038 = 3,400,000,000,000,000,000,000,000,000,000,000,000,000 8
Communication Model Routing & Mobility Type and Size of Applications Transmission & Compression Information & Network Security Information & Behavior Analysis What else? 21
goal, i6station provides: i6Station Model: a system architecture to build App open ecosystems. i6station enablers: A set of opensource software components. 25
IP Device IP Network (powered) LoWPAN-Extended IP Network IP/LoWPAN Router IP/LoWPAN Sensor Router IP Device IP Network (powered) LoWPAN-Extended IP Network 2007 – The IP/USN Arrives 26
Network management Low power (1-2 years lifetime on batteries) Storage limitations, low overhead Periodic sleep aware routing, low overhead Simplicity (CPU usage), low overhead Periodic sleep aware management, low overhead Low cost (<$10/unit) Stateless address generation Small or no routing tables Ease of Use, simple bootstrapping Space constraints Low bandwidth (<300kbps) Compressed addresses Low routing overhead Low packet overhead Low network overhead High density (<2-4? units/sq ft) Large address space – IPv6 Scalable and routable to *a node* Robust Easy to use and scalable IP network interaction Address routable from IP world Seamless IP routing Work end to end from IP network Compatible with SNMP, etc Challenges of IP/USN 27
How 6LoWPAN works - The router advertises the IPv6 prefix on the backhaul link, which is used by the edge router for auto configuration. - The edge router then configures the IPv6 prefix to its IEEE802.15.4 wireless interface. - The edge router starts advertising the IPv6 prefix, which is used by the three routers. - In turn the routers advertise the same prefix to the three hosts, which also register with the edge router. 33 Adhoc Network Simple Network Extended Network
IP over 802.15.4 Header Standard IPv6 header is 40 bytes [RFC 2460] Entire 802.15.4 MTU is 127 bytes [IEEE] Often data payload is small Fragmentation Interoperability means that applications need not know the constraints of physical links that might carry their packets IP packets may be large, compared to 802.15.4 max frame size IPv6 requires all links support 1280 byte packets [RFC 2460] Allow link-layer mesh routing under IP topology 802.15.4 subnets may utilize multiple radio hops per IP hop Similar to LAN switching within IP routing domain in Ethernet Allow IP routing over a mesh of 802.15.4 nodes Options and capabilities already well-defines Various protocols to establish routing tables Energy calculations and 6LoWPAN impact
Large IP Address & Header => 16 bit short address / 64 bit EUID Minimum Transfer Unit => Fragmentation Short range & Embedded => Multiple Hops Link frame ctrl src UID len chk dst UID link payload Network packet UDP datagram or TCP stream segment transport header application payload …, modbus, BacNET/IP, … , HTML, XML, …, ZCL 128 Bytes MAX 40 B + option s 1280 Bytes MIN cls flow len hops src IP dst IP net payload 16 B 16 B NH
Eliminate all fields in the IPv6 header that can be derived from the 802.15 .4 header in the common case Source address : derived from link address Destination address : derived from link address Length : derived from link frame length Traffic Class & Flow Label : zero Next header : UDP, TCP, or ICMP Additional IPv6 options follow as options Link frame ctrl src UID len chk dst UID Network packet 40 B 6LoWPAN adaptation header hops 3 B cls flow len hops src IP dst IP net payload NH
IEEE 802.15.4 Frame Format UDP IETF 6LoWPAN Format IP HC1 HC1: Source & Dest Local, next hdr=UDP IP: Hop limit UDP: 8-byte header (uncompressed) dsp Dispatch: Compressed IPv6 preamble SFD Len FCF DSN Dst16 Src16 D pan Dst EUID 64 S pan Src EUID 64 Fchk Network Header Application Data
length derived from link Subset of ports in compressed form Link frame ctrl src UID len chk dst UID Network packet 40 B 6LoWPAN adaptation header hop s cls flow len hops src IP dst IP appln payload NH 8 B UDP hdr 7 B
IEEE 802.15.4 Frame Format IETF 6LoWPAN Format HC1 HC1: Source & Dest Local, next hdr=UDP IP: Hop limit UDP: HC2+3-byte header (compressed) source port = P + 4 bits, p = 61616 (0xF0B0) destination port = P + 4 bits dsp Dispatch: Compressed IPv6 preamble SFD Len FCF DSN Dst16 Src16 D pan Dst EUID 64 S pan Src EUID 64 Fchk Network Header Application Data IP UDP HC2
DSN DSTPAN DST SRC Dispatch IPHC Hop Limit Source Address Destination Address NHC Ports Checksum Mesh Hop 11 bytes Length FCF DSN DSTPAN DST SRC Fragment Header Dispatch IPHC Hop Limit Source Address Destination Address NHC Ports Checksum Mesh Hop Fragmented 15 bytes Compressed IPv6 Compressed UDP Length FCF DSN DSTPAN DST SRC Dispatch IPHC Hop Limit NHC Ports Checksum Single Hop* 7 bytes 802.15.4 Link addresses of o riginator and final * including each of multiple IP hops
of IPv6 Datagrams http://tools.ietf.org/html/rfc4944 Updated by RFC 6282, RFC 6775 IPv6 Base Hop-by-Hop Routing Fragment Destination IPv6 Stacked Header Format IPv6 Options Payload 15.4 Header IPv6 HC Payload 15.4 Header Payload 15.4 Header IPv6 HC NH HC Payload 15.4 Header Fragmentation IPv6 HC NH HC Payload Dispatch Header 6LowPAN Stacked Adaptation Header Format
6LoWPAN by Use of Energy Harvesting Where, E(t) = remaining energy of the home automation node Ps(t) = total power output from energy harvesting source Pc(t) = total energy consumption of the automation node 46
Constrained Restful Environments Application Layer Protocol(CoAP) : IPv6 over Low power WPAN IEEE 802.15.4 network (6LoWPAN) : Routing over LLN (RPL) 6Lo IETF LLN(Low power Lossy Network) Working Group