LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-12-2013, 01:18 AM   #1
bhupenpatel01
LQ Newbie
 
Registered: Mar 2013
Posts: 10

Rep: Reputation: Disabled
select os for NS 2


which os is best for NS 2 implementation
 
Old 03-12-2013, 01:21 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Moved: This thread is more suitable in Linux-Software and has been moved accordingly to help your question get the exposure it deserves.
 
1 members found this post helpful.
Old 03-12-2013, 01:30 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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.

-
 
Old 03-12-2013, 05:25 AM   #4
bhupenpatel01
LQ Newbie
 
Registered: Mar 2013
Posts: 10

Original Poster
Rep: Reputation: Disabled
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...
 
Old 03-12-2013, 05:56 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 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

-
 
Old 03-12-2013, 11:07 AM   #6
bhupenpatel01
LQ Newbie
 
Registered: Mar 2013
Posts: 10

Original Poster
Rep: Reputation: Disabled
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
 
Old 03-12-2013, 11:16 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 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
-
Attached Files
File Type: txt drop1.tcl.txt (2.8 KB, 16 views)

Last edited by knudfl; 03-12-2013 at 11:22 AM.
 
Old 03-12-2013, 11:16 AM   #8
bhupenpatel01
LQ Newbie
 
Registered: Mar 2013
Posts: 10

Original Poster
Rep: Reputation: Disabled
Dos attack

if possible than please give me Tcl script for DOS attacks...
 
Old 03-12-2013, 11:33 AM   #9
bhupenpatel01
LQ Newbie
 
Registered: Mar 2013
Posts: 10

Original Poster
Rep: Reputation: Disabled
#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)
 
Old 03-12-2013, 11:55 AM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 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.
 
Old 03-12-2013, 12:05 PM   #11
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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
    }
}

Last edited by knudfl; 03-12-2013 at 12:10 PM.
 
1 members found this post helpful.
Old 03-12-2013, 12:09 PM   #12
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 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 ).

-
 
Old 03-12-2013, 11:54 PM   #13
bhupenpatel01
LQ Newbie
 
Registered: Mar 2013
Posts: 10

Original Poster
Rep: Reputation: Disabled
Dos Attack

if possible please give me steps of tcl script implement for DoS attacks in NS-2.34 with wireless environment
 
Old 03-13-2013, 02:42 AM   #14
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 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

-
 
Old 03-15-2013, 03:45 AM   #15
bhupenpatel01
LQ Newbie
 
Registered: Mar 2013
Posts: 10

Original Poster
Rep: Reputation: Disabled
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
regarding select ashok.m Linux - Networking 2 08-10-2010 06:40 AM
select in vi adnanm Linux - Newbie 5 06-02-2007 05:36 AM
select() Kroenecker Programming 1 03-12-2006 01:01 AM
Select() did not select my socket thvo Programming 1 05-08-2005 12:20 AM
what os to select kevinasr Linux - Newbie 2 05-18-2003 06:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration