Sample blackhole program not yielding expected result

25 views
Skip to first unread message

Memphisa R.

unread,
Jun 22, 2024, 8:49:59 AM (7 days ago) Jun 22
to ns-3-users
Good morning,

I am trying to execute the sample blackhole program for ns3.25 I downloaded from http://mohittahiliani.blogspot.com/2014/12/ns-3-blackhole-attack-simulation-in-ns-3.html
After manual patching, updating the blackhole  syntax with respect to ns3 changes, and execution, there is no compilation error however I do not get the expected result.
I am executing this on ns3.35, Ubuntu 20.04 but the patch and the sample code were written for ns3.25. I also checked changes from ns 3.25 to ns3.35 in changes.MD but I still cant figure this out. My guess is that the malicious behaviour of the evil node is not being enabled despite the declaration:

 AodvHelper malicious_aodv;  
 malicious_aodv.Set("IsMalicious",BooleanValue(true));

Could someone please guide me how to sort this? Any help would be greatly appreciated.

Expected result : 
expected.png

Actual result :
actual.png

aodv-routing-protocol.h
blackhole.cc
myapp.h
aodv-routing-protocol.cc
Reply all
Reply to author
Forward
0 new messages