LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   select os for NS 2 (https://www.linuxquestions.org/questions/linux-software-2/select-os-for-ns-2-a-4175453719/)

bhupenpatel01 03-12-2013 01:18 AM

select os for NS 2
 
which os is best for NS 2 implementation

jschiwal 03-12-2013 01:21 AM

Moved: This thread is more suitable in Linux-Software and has been moved accordingly to help your question get the exposure it deserves.

knudfl 03-12-2013 01:30 AM

Welcome to LQ.

Best with ns2 : Depends what you want to do.
Different versions / different patching behaves different.

Some versions works perfectly on CentOS 6, Fedora, Slackware, etc.

Some old versions prefer old Ubuntu / Debian versions for best test results.

-

bhupenpatel01 03-12-2013 05:25 AM

am work on simple DOS attacks in NS 2
 
if any one know how to implement dos attack in NS 2.34
so please give me guide...

knudfl 03-12-2013 05:56 AM

# 4.

Suggest : Start with the LQ "dos-ns" threads :
LQ Search → Tag = ddos-ns

Other links
https://groups.google.com/forum/?fro...rm/EZFtYmk0NDk
http://www.youtube.com/watch?v=X8Gumjf80Ig

-

bhupenpatel01 03-12-2013 11:07 AM

change color
 
how to change the color of mobile node in the NS2.34
ex.. i want source node color green and destination color yellow

knudfl 03-12-2013 11:16 AM

1 Attachment(s)
# 6 .

Example file with colors : drop1.tcl
Please see lines 13 - 15.

Finding other examples :
$ cd ns-2.xx/tcl/ex/ ; $ grep -n color *.tcl
-

bhupenpatel01 03-12-2013 11:16 AM

Dos attack
 
if possible than please give me Tcl script for DOS attacks...

bhupenpatel01 03-12-2013 11:33 AM

#7
 
#7 i have add the color line but got this error:

can't read "n5": no such variable
while executing
"$n5 color 1 red"
(file "Dos.tcl" line 37)

knudfl 03-12-2013 11:55 AM

# 8 .

Google .. ns2 ddos.tcl ..
Example with code http://iptraceback.weebly.com/
> http://iptraceback.weebly.com/upload...34098/code.tcl
> code.tcl : Will actually work with any ns, and open nam, xgraph.

http://www.linuxquestions.org/questi...199/page2.html
> # 19 > integration-of-ip-spoofing.txt

http://hpds.ee.ncku.edu.tw/~smallko/ns2/ns2.htm
http://staff.washington.edu/dittrich/misc/ddos/

http://mohittahiliani.blogspot.dk/20...generator.html

https://groups.google.com/forum/?fro...rm/EZFtYmk0NDk

etc. etc.

knudfl 03-12-2013 12:05 PM

Post # 9 :

You should probably type ns instead of n5 !

Or use one of the examples found in ns-2.xx/tcl/ex/ ; I.e. $ grep -n color *.tcl
Example : web-traffic.tcl , lines 28..44 ( ns-2.34/tcl/ex/web-traffic.tcl )
Code:

# set up colors for nam
for {set i 1} {$i <= 30} {incr i} {
    set color [expr $i % 6]
    if {$color == 0} {
        $ns color $i blue
    } elseif {$color == 1} {
        $ns color $i red
    } elseif {$color == 2} {
        $ns color $i green
    } elseif {$color == 3} {
        $ns color $i yellow
    } elseif {$color == 4} {
        $ns color $i brown
    } elseif {$color == 5} {
        $ns color $i black
    }
}


knudfl 03-12-2013 12:09 PM

# 9

P.S. : Can you attach the file Dos.tcl ? Other members may be interested.

Attachments : The paper clip tool in th 'Advanced Editor'.
( Must be attached as Dos.tcl.txt ).

-

bhupenpatel01 03-12-2013 11:54 PM

Dos Attack
 
if possible please give me steps of tcl script implement for DoS attacks in NS-2.34 with wireless environment

knudfl 03-13-2013 02:42 AM

# 13 .

Wireless : Well, you'd already got one example : Please read post #10 ..
http://iptraceback.weebly.com/ > mipsimulation2.tcl
> http://iptraceback.weebly.com/upload...imulation2.tcl


And : Please respond to post # 12

-

bhupenpatel01 03-15-2013 03:45 AM

awk script for packet deliver ratio
 
i want to packet deliver ratio awk script for 25 node in wireless environment
hear my source node is 5 and destination node is 14
if any body know than please help me


All times are GMT -5. The time now is 02:06 AM.