Amazing technological breakthrough possible @S-Logix pro@slogix.in

Office Address

  • 2nd Floor, #7a, High School Road, Secretariat Colony Ambattur, Chennai-600053 (Landmark: SRM School) Tamil Nadu, India
  • pro@slogix.in
  • +91- 81240 01111

Social List

Procedure to Print Control Packets of RPL Routing Protocl in Cooja Simulator?

Rpl Control Packets In Contiki Cooja Simulator

Cooja Simulator Steps to Print Control Packets Of RPL Protocol

Description:

   The RPL protocol is designed using control packets such as DIO, DAO, and DIS that incurs control overheads during the construction DODAG structure. Once the DODAG structure is constructed by the network, the IoT nodes utilize trickle timer algorithm to maintain the network by sending the control messages. High consumption of control packets lead to higher energy consumption, congestion, and collisions. RPL protocol design employs four types of control packets. There are DIO, DIS, DAO, and DAO_ACK.

Step-1

  Open the file location -->contiki/core/net/rpl/rpl-icmp6.c

  this file used to print the RPL control packets
We should write the print statement below mentioned functions.

rpl_icmp6_dio_output()
rpl_icmp6_dis_output()
rpl_icmp6_dao_output()
rpl_icmp6_dao_ack_output()

Step-2

rpl_icmp6_dio_output(){
//inside the functiion write the print statement:
printf(“DIO from node id”);
}

rpl_icmp6_dis_output(){
inside the functiion write the print statement:
printf(“DIS from node id”);
}

rpl_icmp6_dao_output(){
inside the functiion write the print statement:
printf(“DAO from node id”);
}

rpl_icmp6_dao_ack_output(){
inside the functiion write the print statement:
printf(“DAO_ACK from node id”);
}