25
Contiki Project about RPL Protocol in WSN Soultana Ellinidou UnderGraduate Student at University of Western Macedonia , Kozani Department of Engineering Informatics & Telecommunications

CTTC presentation WSN in Contiki

Embed Size (px)

Citation preview

Page 1: CTTC presentation WSN in Contiki

Contiki Project about RPL Protocol in WSN

Soultana Ellinidou UnderGraduate Student at University of Western Macedonia , Kozani Department of Engineering Informatics & Telecommunications

Page 2: CTTC presentation WSN in Contiki

Introduction: Contiki platform Οpen source operating system for the Internet of Things. Focus on low-power wireless Internet of Things devices. Provides powerful low-power Internet communication. Supports fully standard IPv6 and IPv4, along with the recent low-power wireless standards: 6lowpan, RPL, CoAP.

Cooja simulator Contiki networks can be emulated before burned into hardware.

Easy and fast development: Contiki applications are written in standard C.

Page 3: CTTC presentation WSN in Contiki

Introduction: RPL Protocol IPv6 routing protocol for Low power and Lossy Networks

M2H &H2H Forms a tree like topology Supports both upward and downward routing RPL is responsible for getting routing info and forwarding packets

Needs to be optimized to gain performance and utilize constrained resources

DODAG

Page 4: CTTC presentation WSN in Contiki

Introduction: How RPL Protocol works

RPL uses 3 control messages:DODAG Information Object (DIO)DODAG Information Solicitation (DIS)DODAG Advertisement Object (DAO)

The path selection is provided by Objective Functions based on routing metric and constraints:

OF0 (hop count)ETX (Expected Transmission Count)

Page 5: CTTC presentation WSN in Contiki

Client-Relay CodeSets up UDP connection

Check if the mote is client or relay

If it is client, sends packet to UDP server periodically.

If it is relay, wait to receive packet from the client and then to resend it.

Page 6: CTTC presentation WSN in Contiki

Server CodeInitializes RPL DAG

Sets up UDP connection

Waits for packets from client, receives and print them

Page 7: CTTC presentation WSN in Contiki

Cooja Simulator

Page 8: CTTC presentation WSN in Contiki

Cooja Simulator: Mote Output

Page 9: CTTC presentation WSN in Contiki

NetworkDevices that we use in our network:

Zolertia motesCO2 sensor K30Raspberry Pi 2 (Gateway)

Cases:1 server, 1 relay, 1 client1 server, 4 relays, 1 client1 server, 7 relays, 1 client 1 server, 5 relays, 2 clients

Page 10: CTTC presentation WSN in Contiki

1st Experiment (B6 Building)Batteries power supply

Page 11: CTTC presentation WSN in Contiki

2nd Experiment (B6 Building)Nodes Neighbors

S #61 R #62R #62 R#64, R#65,

R#68R #64 R#62, R#65,

R#68R #65 R#64, R#62,

R#68R #68 R#64, R#65,

R#62C #63 R #68

Batteries power supply

Page 12: CTTC presentation WSN in Contiki

3rd Experiment (B6 Building)Nodes Neighbors

S #61 R #66, R#64R #66 R#64, R#69,

R#64,R#65, R#67, R#68

R #62 R#66, R#69, R#64,R#65, R#67, R#68

R #69 R#64, R#66, R#64,R#65, R#67, R#68

R #64 R#64, R#69, R#66,R#65, R#67, R#68

R #65 R#64, R#69, R#64,R#66, R#67, R#68

R #67 R#64, R#69, R#64,R#65, R#66, R7#68

R #68 R#64, R#69, R#64,R#65, R#67, R#66

C #63 R#66, R#68

Batteries power supply

Page 13: CTTC presentation WSN in Contiki

3rd Experiment (B6 Building)

Page 14: CTTC presentation WSN in Contiki

4th Experiment (B6 Building)Batteries power supply

Page 15: CTTC presentation WSN in Contiki

4th Experiment

Page 16: CTTC presentation WSN in Contiki

5th Experiment CTTC Building:Ground floor: 5 relies, 1 client, 1 Co2 sensor, 1 raspberry pi

1st floor: 2 relies, 1 server , 1 raspberry pi

Plug power supply

Page 17: CTTC presentation WSN in Contiki

5th Experiment (B4 Building) Client is sending a packet every 10 seconds

Running time: During the day

Page 18: CTTC presentation WSN in Contiki

6th Experiment (B4 Building) Client is sending a packet every 20 seconds

Running time: During the day

Page 19: CTTC presentation WSN in Contiki

7th Experiment (B4 Building)Client is sending a packet every 60 seconds

Running time: From 6pm until10am

Page 20: CTTC presentation WSN in Contiki

8th Experiment (B4 Building) Client is sending a packet every 120 seconds

Running time: 2days

Page 21: CTTC presentation WSN in Contiki

Network MetricsHistograms of simulation, that was running during the morning

Frequency: 10sec Frequency: 20sec

Page 22: CTTC presentation WSN in Contiki

Network MetricsHistograms of simulation, that was running during days

Frequency: 60sec Frequency: 120sec

Page 23: CTTC presentation WSN in Contiki

Network MetricsResults about Packet loss of different frequencies

Page 24: CTTC presentation WSN in Contiki

Future WorkComplete the RPL tests in your network for more settings(frequencies, time, number of motes).

Add a sensor to track the movement in the stairs.

Make a script to restart the client and server motes in the same time.

Communication between different network layer protocols.

Page 25: CTTC presentation WSN in Contiki

Thank you for your attention.