Skip to content
This repository has been archived by the owner on Feb 2, 2024. It is now read-only.
/ RPL-Rank-Attacks Public archive

Implementation of a number of rank attacks on RPL using Cooja simulator

License

Notifications You must be signed in to change notification settings

arlotfi79/RPL-Rank-Attacks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RPL-Rank-Attacks

In this repository, we have used the Cooja simulator which is part of the Contiki OS to implement a number of rank attacks on RPL. RPL is the major protocol which is being used in IoT devices.

What to change

In order to implement the attacks in Cooja, some changes should be applied to the source codes. These changes are stated below for each attack:

  • Decreased Rank Attack:
    • RPL_CONF_MIN_HOPRANKINC is set to 0 in udp_sender.c of attacker node
    • RPL_MAX_RANKINC is set to 0 in rpl-private.h
    • rpl_recalculate_ranks() is removed from rpl-timers.c
  • Increased Rank Attack:
    • calculate_rank() return statement is set to INFINITE_RANK in rpl-mrhof.c
    • rpl_recalculate_ranks() is removed from rpl-timers.c
  • Worst Parent Selection Attack:
    • best_parent() return statement is changed to 'return p1_metric > p2_metric ? p1 : p2' in rpl-mrhof.c
    • rpl_recalculate_ranks() is removed from rpl-timers.c

About

Implementation of a number of rank attacks on RPL using Cooja simulator

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published