system@system-laptop:~/Dropbox/MTech_Project/final/helpfiles$ ns blackhole.tcl
num_nodes is set 7
INITIALIZE THE LIST xListHead
ns: _o107 hacker:
(_o107 cmd line 1)
invoked from within
"_o107 cmd hacker"
invoked from within
"catch "$self cmd $args" ret"
invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
(procedure "_o107" line 2)
(SplitObject unknown line 2)
invoked from within
"_o107 hacker"
tar xvf ns-allinone-2.35_gcc482.tar.gz
https://drive.google.com/file/d/0B7S255p3kFXNSGJCZ2YzUGJDVk0/view?usp=sharing
cd ns-allinone-2.35/
patch -p0 < blackhole-MohitTahiliani__ns235.patch
https://drive.google.com/file/d/0B7S255p3kFXNcEdWSThNVTkzUkk/view?usp=sharing
./install
cd ns-2.35/
cp ns ns235-Mohit
sudo cp ns235-Mohit /usr/local/bin/
ns235-Mohit blackhole.tcl
... then you will be sure the right 'ns' is used : ns235-MohitYea. Thanks a lot. This worked.
--
You received this message because you are subscribed to a topic in the Google Groups "Network Simulator 2 (NS2)" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ns-users/BbfGOidWUSM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ns-users+u...@googlegroups.com.
To post to this group, send email to ns-u...@googlegroups.com.
Visit this group at http://groups.google.com/group/ns-users.
For more options, visit https://groups.google.com/d/optout.
Soha@ubuntu:~$ ns-rushing-attack rushingattack-1.tcl
num_nodes is set 25
INITIALIZE THE LIST xListHead
Can't read "EnablehierRt_": no such variable
(object set line 1)
invoked from within
"Simulator set EnablehierRt_"
(Procedure "_o14" line 10)
(Node attach line 10)
invoked from within
"$node attach $ragent [node set rtagent_port_]
(procedure "_o3" line 105)
(simulator create-wireless-node line 105)
invoked from within
"_o3 create-wireless-node"
("eval" body line 1)
invoked from within
"eval $self create-wireless-node $args"
(procedure "_o3" line 24)
(Simulator node line 24)
invoked from within
"$ns node"
invoked from within
"Set n0 [$ns node]"
(file "rushingattack-1.tcl" line 73)
tar xvf ns-allinone-2.35_gcc5.tar.gz
https://drive.google.com/file/d/0B7S255p3kFXNVVlxR0ZNRGVORjQ/view?usp=sharing
cd ns-allinone-2.35/
patch -p0 < rushing-attacks_ns235.patch./install
cd ns-2.35/
cp ns ns-rushing-attack
sudo cp ns-rushing-attack /usr/local/bin/
................... Simulation, still in ns-2.35/ .........
ns-rushing-attack rushingattacks-1.tcl
( Or : ./ns rushingattacks-1.tcl )
Dropped packets : awk -f droppackets.awk out.tr >> dropped-packets.xgr
xgraph dropped-packets.xgr
ReceiveReply (Packet P)
replying node = Null
Reply_count= 0
initiate Route Discovery ()
Set time(RREP_WAIT_TIME)
Set Max_seq_No = 4294967295
While ( received _RREP)
{
IF Blacklist _table Contain( recived_RREP_nodeID)
{ discard RREP }
else {
IF ((Dest_Seq_No in RREP > node_Seq_No in source routing table) || (Dest_Seq_No in RREP =
node_source_Seq_No) && ( hop_count in RREP < node_hop_count in source routing table))
Add this RREP massage into RRT
Reply_count= Reply_count+1
}
IF ((Reply_count > 1) && (Dest_Seq_No in RREP < Max_Seq_No))
{
Update entry of P in routing table
Unicast data packets to the route specified in RREP
}
else {
Add this RREP massage into Blacklist _table
Remove this RREP massage from RRT
Broadcast_Alarm()
} }
// End of ReceiveRREP