Difference between revisions of "Analyse of a real 6LoWPAN network using a Contiki-based sniffer module"

From Contiki
Jump to: navigation, search
Line 4: Line 4:
  
 
== 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>
 +
  
 
== You will learn ==
 
== You will learn ==
In this tutorial you will enable Contiki to sniff 6LoWPAN packets and visualize a real time wireless sensor network (WSN) in an interactive environment of Foren6. You will deploy UDP server-client IPv6 example on multiple Tmote-Sky and sniff the communication channel on one of the Tmote-Sky. You will install Foren6 and learn how to integrate a Tmote-sky with real-time diagnosis tool.<br><br>
+
This tutorial will walk you through the steps of setting up Contiki to sniff 6LoWPAN packets and visualize a real time wireless sensor network (WSN) in an interactive environment of Foren6. You will deploy UDP server-client IPv6 example on Tmote-Sky motes and sniff the packets on particular RF channel (1-26) (Note: In Contiki RF Channel range from 11-26) on a Tmote-Sky. You will install Foren6 and learn how to integrate a Tmote-sky with real-time diagnosis tool.<br><br>
  
 
== Foren6: A 6LoWPAN Diagnosis tool ==
 
== Foren6: A 6LoWPAN Diagnosis tool ==
Line 17: Line 21:
 
* Rewind the packet capture history, replay a previous packet trace and navigate through different overlays to pinpoint problems.<br><br><br>
 
* Rewind the packet capture history, replay a previous packet trace and navigate through different overlays to pinpoint problems.<br><br><br>
  
== Foren6 Installation guide ==
+
== Installation guide ==
 
Requirements:<br>
 
Requirements:<br>
 
* System with Linux/MacOS X <br><br>
 
* System with Linux/MacOS X <br><br>
 +
* For the purpose of this tutorial it is assumed that you already have a working Contiki 2.7 environment set up on your system and have access to at least three Tmote-Sky motes. Otherwise follow this link - http://anrg.usc.edu/contiki/index.php/Installation
  
Installation:<br>
+
Foren6 Installation:<br>
 
* Dependencies<br>
 
* Dependencies<br>
 
:sudo apt-get install -y libqt4-dev qt4-qmake cmake make libexpat1-dev tshark libpcap0.8-dev libc6-dev g++ gcc<br><br>
 
:sudo apt-get install -y libqt4-dev qt4-qmake cmake make libexpat1-dev tshark libpcap0.8-dev libc6-dev g++ gcc<br><br>
Line 34: Line 39:
 
== Configuring the sniffer for real time capture ==
 
== Configuring the sniffer for real time capture ==
 
== Results ==  
 
== Results ==  
 +
== Future Scope ==
 +
* You can also use Cooja (Network Simulator) to analyze an network. In Cooja use "Radio Message with a 6LoWPAN analyzer with pcap export" to store the packet capture in pcap format. Thus you can then use Wireshark or Foren6 to visualize the network and debug it. <br>
 +
:References: https://github.com/ejoerns/contiki-inga/wiki/Using-Wireshark-with-Contiki-and-Cooja<br>
 +
:::http://sourceforge.net/p/contiki/mailman/message/30604147/<br>
 +
:Tip: You will find the pcap file in contiki/tools/cooja/build/radiolog-xxxxxxx.pcap<br><br>
 +
 
== References ==
 
== References ==
 
http://cetic.github.io/foren6/index.html<br>
 
http://cetic.github.io/foren6/index.html<br>
Line 40: Line 51:
 
http://en.wikipedia.org/wiki/6LoWPAN<br>
 
http://en.wikipedia.org/wiki/6LoWPAN<br>
 
http://anrg.usc.edu/contiki/index.php/Collect_View<br>
 
http://anrg.usc.edu/contiki/index.php/Collect_View<br>
 +
http://cnds.eecs.jacobs-university.de/courses/adsl-2009/presentation-3.pdf<br>
 +
Understanding 6LoWPAN network: http://www.embedded.com/electronics-blogs/embedded-cloud-talkers/4236873/How-to-setup-a-6LoWPAN-network
 
More about Foren6, Video: https://www.youtube.com/watch?v=oildt3x6htw
 
More about Foren6, Video: https://www.youtube.com/watch?v=oildt3x6htw
  
 
[[Contiki_tutorials | Back to Contiki Tutorials]]
 
[[Contiki_tutorials | Back to Contiki Tutorials]]

Revision as of 13:30, 9 November 2014

Back to Contiki Tutorials

Introduction

  • This tutorial is an introduction to IP-based sensor networks with Contiki.
  • 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.
  • 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.


You will learn

This tutorial will walk you through the steps of setting up Contiki to sniff 6LoWPAN packets and visualize a real time wireless sensor network (WSN) in an interactive environment of Foren6. You will deploy UDP server-client IPv6 example on Tmote-Sky motes and sniff the packets on particular RF channel (1-26) (Note: In Contiki RF Channel range from 11-26) on a Tmote-Sky. You will install Foren6 and learn how to integrate a Tmote-sky with real-time diagnosis tool.

Foren6: A 6LoWPAN Diagnosis tool

Real layout of WSN

Foren6 is an effort to provide a non-intrusive 6LoWPAN network analysis tool. It leverages passive sniffer devices to reconstruct a visual and textual representation of network information to support real-world Internet of Things applications where other means of debug (cabled or network-based monitoring) are too costly or impractical.

  • Foren6 uses sniffers to capture 6LoWPAN traffic and renders the network state it in a GUI.
  • Foren6 captures all RPL-related information and identifies abnormal behaviors.
  • Multiple sniffers can be combined for extended coverage.
  • Rewind the packet capture history, replay a previous packet trace and navigate through different overlays to pinpoint problems.


Installation guide

Requirements:

  • System with Linux/MacOS X

  • For the purpose of this tutorial it is assumed that you already have a working Contiki 2.7 environment set up on your system and have access to at least three Tmote-Sky motes. Otherwise follow this link - http://anrg.usc.edu/contiki/index.php/Installation

Foren6 Installation:

  • Dependencies
sudo apt-get install -y libqt4-dev qt4-qmake cmake make libexpat1-dev tshark libpcap0.8-dev libc6-dev g++ gcc

  • Get the Source
git clone https://github.com/cetic/foren6.git

  • Install Foren6
cd foren6
make
sudo make install

Collect-view on Tmote-Sky

Configuring the sniffer for real time capture

Results

Future Scope

  • You can also use Cooja (Network Simulator) to analyze an network. In Cooja use "Radio Message with a 6LoWPAN analyzer with pcap export" to store the packet capture in pcap format. Thus you can then use Wireshark or Foren6 to visualize the network and debug it.
References: https://github.com/ejoerns/contiki-inga/wiki/Using-Wireshark-with-Contiki-and-Cooja
http://sourceforge.net/p/contiki/mailman/message/30604147/
Tip: You will find the pcap file in contiki/tools/cooja/build/radiolog-xxxxxxx.pcap

References

http://cetic.github.io/foren6/index.html
http://cetic.github.io/foren6/example2.html
http://cetic.github.io/foren6/install.html
http://en.wikipedia.org/wiki/6LoWPAN
http://anrg.usc.edu/contiki/index.php/Collect_View
http://cnds.eecs.jacobs-university.de/courses/adsl-2009/presentation-3.pdf
Understanding 6LoWPAN network: http://www.embedded.com/electronics-blogs/embedded-cloud-talkers/4236873/How-to-setup-a-6LoWPAN-network More about Foren6, Video: https://www.youtube.com/watch?v=oildt3x6htw

Back to Contiki Tutorials