LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-21-2011, 11:35 AM   #1
tootz
Member
 
Registered: Feb 2011
Posts: 47

Rep: Reputation: 1
what does this program do?


wad does this program do? pls advice

for {set w 24} {$w < 25} {incr w} {
set udp_($w) [new Agent/UDP];
$ns_ attach-agent $node_(1) $udp_($w);

set null_($w) [new Agent/Null];
$ns_ attach-agent $node_($w) $null_($w);

set cbr_($w) [new Application/Traffic/CBR];
$cbr_($w) set rate_ 7.5Kb
$cbr_($w) set packetSize_ 100
$cbr_($w) attach-agent $udp_($w);
$ns_ connect $udp_($w) $null_($w);
$ns_ at 100.0 "$cbr_($w) start";
$ns_ at 800.0 "$cbr_($w) stop";
}
 
Old 03-21-2011, 11:36 AM   #2
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux, LFS, Slitaz
Posts: 3,071
Blog Entries: 1

Rep: Reputation: 973Reputation: 973Reputation: 973Reputation: 973Reputation: 973Reputation: 973Reputation: 973Reputation: 973
Where did you get it? What was it called?

Looks like a TCL script.

EDIT: Origin of this script: http://www.cs.virginia.edu/~cs757/sl...l-exercise.pdf

Last edited by szboardstretcher; 03-21-2011 at 11:41 AM.
 
1 members found this post helpful.
Old 03-21-2011, 11:40 AM   #3
tootz
Member
 
Registered: Feb 2011
Posts: 47

Original Poster
Rep: Reputation: 1
yup it is a tcl script, can u tell me which node did they attached it to?
wad does $ns_ attach-agent $node_(1) $udp_($w); do?

and why when i change the loop condition from
for {set w 24} {$w < 25} {incr w} {
to
for {set w 22} {$w < 25} {incr w} {

after this ns-2.34 will hang, why is this so?
is it in a inifinite loop?

Last edited by tootz; 03-21-2011 at 12:25 PM.
 
Old 03-21-2011, 12:38 PM   #4
anutherguy
Member
 
Registered: Jan 2011
Location: Wasington state
Distribution: Mint 10
Posts: 43

Rep: Reputation: 0
Unhappy Oops

Like a mrorn, because i am still new to linux, i opened said command by copy and paste into terminal. Bad Idea, it deleted the linux partition on my mac, said acsess denied, and rebooted the computer 3 time into mac osx. Never again.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Could someone program a SH / Bash program with Zenity to play radio based on a site? frenchn00b Programming 2 02-25-2011 04:16 PM
open source dvd/cd copy program? burning on the fly program? vieya Linux - Software 3 12-14-2009 09:16 PM
Total recovery: Which program? ghost4linux, YaST2? Best drive imaging program? lagu2653 Linux - Software 1 06-20-2005 01:44 PM
Stop java program(threaded program..should end cleanly) rmanocha Programming 4 11-09-2004 09:36 AM
Gtk-Warning but program still works... I close konsole, program closes Laptop2250 Linux - Software 2 11-14-2003 11:18 PM


All times are GMT -5. The time now is 02:08 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration