How to add malicious or black hole nodes in ONE simulator?

208 Views Asked by At

I am trying to implement black hole attack using ONE simulator. How do I add malicious or black hole nodes in the simulator?

1

There are 1 best solutions below

0
Ari Keränen On

Make a new routing module that doesn't start any new transfers in the update method (see for example EpidemicRouter). Depending on which routing module you want to use for the non-malicious nodes, you may need to make your new module a subclass of that module.