whitefield-framework / whitefield

Whitefield provides a simulation environment for wireless sensor networks by combining RF simulation provided by NS3 and network stack provided by popular IoT OSes such as Contiki/RIOT/OpenThread.
GNU General Public License v2.0
82 stars 24 forks source link

Support for different RPL objective functions #113

Closed Amrican10 closed 4 years ago

Amrican10 commented 4 years ago

Can Whitefield support different RPL objective functions (OFs)?

The current implementation supports only few OFs and cannot be configured through project-conf.h. The following repo uses different metrics and also additive OFs. I already used it using Cooja and it works fine.

https://github.com/Monica-/contiki_RPL_RFC6551

nyrahul commented 4 years ago

RPL OFs are to be supported in respective network stack implementation i.e., in Contiki, RIOT. Whitefield will automatically support all the OFs that are supported by respective stacklines. There is no change needed in Whitefield to support the OFs. Whitefield's MAC layer exports all the link layer feedback (LQI, RSSI, Num of retries per unicast packet) needed to support such OFs.

To use the mentioned contiki fork, you have to patch it to the Whitefield's contiki fork and then use it in Whitefield.

nyrahul commented 4 years ago

Nothing to fix here. RPL OFs have to be handled as part of the respective stackline implementations.