IDS Simulation

73 views
Skip to first unread message

Dadi abdalkader

unread,
Nov 9, 2023, 4:28:55 PM11/9/23
to Network Simulator 2 (NS2)
Hi sir 
i wanna do a simple IDS simulation 
can u help me  

knudfl

unread,
Nov 10, 2023, 4:00:14 AM11/10/23
to Network Simulator 2 (NS2)
Hi.

idsaodv is mentioned / discussed in 66 threads at https://groups.google.com/g/ns-users
→  Search conversations within ns2 → Has the words       idsaodv
→  https://groups.google.com/g/ns-users/search?q=idsaodv

knudfl

unread,
Nov 10, 2023, 11:38:14 AM11/10/23
to Network Simulator 2 (NS2)
Example IDS patches ....
grayholeaodv-for-idsAODV-patched_ns235.patch
idsAODV-2-for-blackhole2013-patched_ns235.patch
idsAODV_ns235.patch
https://drive.google.com/drive/folders/0B7S255p3kFXNZ2lWZDBRSW40Q00?resourcekey=0-eBw6mJFKhSVGultqaD2rDA&usp=drive_link

Dadi abdalkader

unread,
Nov 10, 2023, 4:04:42 PM11/10/23
to Network Simulator 2 (NS2)
i used idsAODV_ns235.patch 
i got this error 
invalid command name "Agent/rtProto/idsAODV"
    while executing
"Agent/rtProto/idsAODV instproc init args {
        $self next $args
}       "
    (file "idsaodv.tcl" line 19)

knudfl

unread,
Nov 10, 2023, 5:09:21 PM11/10/23
to Network Simulator 2 (NS2)
Your errors :
idsaodv.tcl is not a simulation.   
idsaodv.tcl is data / commands to be used as a configuration file. 
Theoretically ..... as  idsaodv.tcl  is not used in any known simulations.


IDS is meant for preventing an attack.

Build example ...................
tar xvf ns-allinone-2.35_gcc5.tar.gz
https://drive.google.com/file/d/0B7S255p3kFXNVVlxR0ZNRGVORjQ/view?usp=sharing&resourcekey=0-EyPhoScBFDb7ul0VFk6FZQ
cd ns-allinone-2.35/
patch -p0 < blackholeaodv2013-ns235_1.patch
https://drive.google.com/file/d/0B7S255p3kFXNWWVDZzd2ZC14akE/view?usp=sharing
patch -p0 < idsAODV-2-for-blackhole2013-patched_ns235.patch
https://drive.google.com/file/d/0B7S255p3kFXNT0FjUTBTR21sMzg/view?usp=sharing
export CC=gcc-4.8 CXX=g++-4.8 && ./install
cd ns-2.35/
cp ns ns235-blackhole+idsaodv
sudo cp ns235-blackhole+idsaodv /usr/local/bin/
------------- Simulation ----------
ns235-blackhole+idsaodv idsaodv2.tcl

Dadi abdalkader

unread,
Nov 11, 2023, 11:59:33 AM11/11/23
to Network Simulator 2 (NS2)
yeah it's work for me thank you 
Reply all
Reply to author
Forward
0 new messages