CTTC presentation WSN in Contiki
-
Upload
tania-ellinidou -
Category
Engineering
-
view
189 -
download
2
Transcript of CTTC presentation WSN in Contiki
![Page 1: CTTC presentation WSN in Contiki](https://reader035.fdocumento.com/reader035/viewer/2022062223/587f591a1a28ab0d378b6d33/html5/thumbnails/1.jpg)
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](https://reader035.fdocumento.com/reader035/viewer/2022062223/587f591a1a28ab0d378b6d33/html5/thumbnails/2.jpg)
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](https://reader035.fdocumento.com/reader035/viewer/2022062223/587f591a1a28ab0d378b6d33/html5/thumbnails/3.jpg)
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](https://reader035.fdocumento.com/reader035/viewer/2022062223/587f591a1a28ab0d378b6d33/html5/thumbnails/4.jpg)
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](https://reader035.fdocumento.com/reader035/viewer/2022062223/587f591a1a28ab0d378b6d33/html5/thumbnails/5.jpg)
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](https://reader035.fdocumento.com/reader035/viewer/2022062223/587f591a1a28ab0d378b6d33/html5/thumbnails/6.jpg)
Server CodeInitializes RPL DAG
Sets up UDP connection
Waits for packets from client, receives and print them
![Page 7: CTTC presentation WSN in Contiki](https://reader035.fdocumento.com/reader035/viewer/2022062223/587f591a1a28ab0d378b6d33/html5/thumbnails/7.jpg)
Cooja Simulator
![Page 8: CTTC presentation WSN in Contiki](https://reader035.fdocumento.com/reader035/viewer/2022062223/587f591a1a28ab0d378b6d33/html5/thumbnails/8.jpg)
Cooja Simulator: Mote Output
![Page 9: CTTC presentation WSN in Contiki](https://reader035.fdocumento.com/reader035/viewer/2022062223/587f591a1a28ab0d378b6d33/html5/thumbnails/9.jpg)
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](https://reader035.fdocumento.com/reader035/viewer/2022062223/587f591a1a28ab0d378b6d33/html5/thumbnails/10.jpg)
1st Experiment (B6 Building)Batteries power supply
![Page 11: CTTC presentation WSN in Contiki](https://reader035.fdocumento.com/reader035/viewer/2022062223/587f591a1a28ab0d378b6d33/html5/thumbnails/11.jpg)
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](https://reader035.fdocumento.com/reader035/viewer/2022062223/587f591a1a28ab0d378b6d33/html5/thumbnails/12.jpg)
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](https://reader035.fdocumento.com/reader035/viewer/2022062223/587f591a1a28ab0d378b6d33/html5/thumbnails/13.jpg)
3rd Experiment (B6 Building)
![Page 14: CTTC presentation WSN in Contiki](https://reader035.fdocumento.com/reader035/viewer/2022062223/587f591a1a28ab0d378b6d33/html5/thumbnails/14.jpg)
4th Experiment (B6 Building)Batteries power supply
![Page 15: CTTC presentation WSN in Contiki](https://reader035.fdocumento.com/reader035/viewer/2022062223/587f591a1a28ab0d378b6d33/html5/thumbnails/15.jpg)
4th Experiment
![Page 16: CTTC presentation WSN in Contiki](https://reader035.fdocumento.com/reader035/viewer/2022062223/587f591a1a28ab0d378b6d33/html5/thumbnails/16.jpg)
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](https://reader035.fdocumento.com/reader035/viewer/2022062223/587f591a1a28ab0d378b6d33/html5/thumbnails/17.jpg)
5th Experiment (B4 Building) Client is sending a packet every 10 seconds
Running time: During the day
![Page 18: CTTC presentation WSN in Contiki](https://reader035.fdocumento.com/reader035/viewer/2022062223/587f591a1a28ab0d378b6d33/html5/thumbnails/18.jpg)
6th Experiment (B4 Building) Client is sending a packet every 20 seconds
Running time: During the day
![Page 19: CTTC presentation WSN in Contiki](https://reader035.fdocumento.com/reader035/viewer/2022062223/587f591a1a28ab0d378b6d33/html5/thumbnails/19.jpg)
7th Experiment (B4 Building)Client is sending a packet every 60 seconds
Running time: From 6pm until10am
![Page 20: CTTC presentation WSN in Contiki](https://reader035.fdocumento.com/reader035/viewer/2022062223/587f591a1a28ab0d378b6d33/html5/thumbnails/20.jpg)
8th Experiment (B4 Building) Client is sending a packet every 120 seconds
Running time: 2days
![Page 21: CTTC presentation WSN in Contiki](https://reader035.fdocumento.com/reader035/viewer/2022062223/587f591a1a28ab0d378b6d33/html5/thumbnails/21.jpg)
Network MetricsHistograms of simulation, that was running during the morning
Frequency: 10sec Frequency: 20sec
![Page 22: CTTC presentation WSN in Contiki](https://reader035.fdocumento.com/reader035/viewer/2022062223/587f591a1a28ab0d378b6d33/html5/thumbnails/22.jpg)
Network MetricsHistograms of simulation, that was running during days
Frequency: 60sec Frequency: 120sec
![Page 23: CTTC presentation WSN in Contiki](https://reader035.fdocumento.com/reader035/viewer/2022062223/587f591a1a28ab0d378b6d33/html5/thumbnails/23.jpg)
Network MetricsResults about Packet loss of different frequencies
![Page 24: CTTC presentation WSN in Contiki](https://reader035.fdocumento.com/reader035/viewer/2022062223/587f591a1a28ab0d378b6d33/html5/thumbnails/24.jpg)
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](https://reader035.fdocumento.com/reader035/viewer/2022062223/587f591a1a28ab0d378b6d33/html5/thumbnails/25.jpg)
Thank you for your attention.