== Introduction ==
 
== Introduction ==
 +
* This tutorial is an introduction to IP-based sensor networks with Contiki. <br>
 +
* Contiki has supported IP networking, through the uIP TCP/IP stack, since its first released in 2003. In 2008, Cisco released the world's smallest IPv6 stack, called uIPv6, for Contiki. <br>
 +
* '''6LoWPAN:''' is an acronym of IPv6 over Low power Wireless Personal Area Networks. The 6LoWPAN group has defined encapsulation and header compression mechanisms that allow IPv6 packets to be sent to and received over IEEE 802.15.4 based networks. <br>
 +
* '''Basics of working with IPv6:'''<br>
 +
:+ First thing to know is the fact that IPv6 addresses contain several zeros that can be shortened in several forms, such as-<br>
 +
::<pre>FE80:0000:0000:0000:0000:0000:0000:F123 = FE80:0:0:0:0:0:0:F123 = FE80::F123</pre>
 +
:+ Additionally, the huge address space of IPv6 allows devices to have serverl addresses used for various purposes (for example, local communication, global communication)<br>
 +
::'''The loopback address (::1)''' is a similar address than 127.0.0.0 in IPv4 used to check the status of the interface (is good for checking if you have enabled IPv6 in your OS). <br>
 +
::'''The local-link addresses (FE80::/10)''' is used to communicate with devices in the same link (however, the link can be extended with Layer 2 switches).<br>
 +
::'''The global addresses (everything else)''' are used for communicating devices globally.<br>
 +
[[File:6LoWPANWSNNetwork.png|center|frame|6LoWPAN Wireless Sensor Network]]
    
== You will learn ==
 
== You will learn ==
Exception encountered, of type "Error"