[ns] find rtt at any time
hi all i want to see rtt of any packet at any time, whether packet reach late or in time at destinition, in ns-allinone-2.29 using sctp agent ( for see congestion ) can any one tell me about while i sent many requests at ns-users@ISI.EDU but not receive any single response my e-mail is[EMAIL PROTECTED] thanks _ Join the next generation of Hotmail and you could win the adventure of a lifetime http://www.imagine-msn.com/minisites/sweepstakes/mail/register.aspx
[ns] C++/Otcl connectivity sample program required.
Hello,Is there any one who has material about how to program a protocol in ns-2 if any one has it send urgently..I have exam please - What makes Sachin India's highest paid sports celebrity?, Share your knowledge on Yahoo! India Answers Send instant messages to your online friends - NOW
[ns] to recuperate a Mobile node coordinates?
Hello; I need some help please. how can I recuperate a mobile node coordinates to use them for my routing protocol? In fact ; I have already included the mobilenode.h (#include mobilenode.h) in my protocolxxx.h file and I put (MobileNode *node_ ) on it (exactly in the constructor) ,I tried to invocate the metod X() so I wrote :( node_ -X() ) ; I have a segmentation fault as a result when I try a TCL .So my second tentative was to use an instance of MobileNode and not a pointer any more what means ( MobileNode node_ ) and the call for the method is ( node_ .X() ) , I do not find a segmentation fault any more but I realize that the coordinates are always equals to 0.0 so I resume that there is a problem. Please ,I need help ,it is an emergency and so important ;it is for my project and I'm in short of time.What files I need to modify (*.h,*.cc,*.tcl or others) Thanks in advance. Fatma - Faites de Yahoo! votre page d'accueil sur le web pour retrouver directement vos services préférés : vérifiez vos nouveaux mails, lancez vos recherches et suivez l'actualité en temps réel. Cliquez ici.
[ns] DiffServ in NS
Hello all, I need to do flow classification based on sourcedest port ID and not node ID as it is proposed in the DiffServ module provided within NS. Do you know a simple way to achieve flow classification using sourcedest port ID ? Best regards, Julien.
[ns] Multiple simulations in NS
Hi, Can we run a tcl simulation multiple times, i.e from start to finish. If yes then how do we do it. Help would be appreciated. Tuhin Department of CS DU
Re: [ns] Multiple simulations in NS
Use a shell script. /#!/bin/csh/ *set* scriptTcl = dd0601.tcl foreach scen *(*1 2 3 4 5 6 7 8 9 10*)* *echo* ... *echo* Rodada $scen *echo* Comando: ns $scriptTcl $scen time ns $scriptTcl $scen *echo* ... end Rodada e Comando are portuguese words. Something like Round and Command. $scen is an integer argument passed to tcl script to set the file that contains the inicial node positions and node movement. Filippe Jabour http://www.gta.ufrj.br/~jabour/ Tuhin Kanti Sharma wrote: Hi, Can we run a tcl simulation multiple times, i.e from start to finish. If yes then how do we do it. Help would be appreciated. Tuhin Department of CS DU
[ns] Howto set transmission range ?
Hi, the topic howto set transmission range of a mobile node was discussed in the group previous time. We change the RXThresh (that is calculated by threshold.cc file in ns-2 file hierarchy according to radius) and Pt_ variables in simulation code for changing the value of transmission range. Am I right? CSThresh_ and CPThresh_ variable must be set by us ?
[ns] M/M/S and M/G/1 queue
Hello, I am writing to this site because I am interested in receive some information about script TCL. If everyone have some example of script TCL for queueing M/M/S model and M/G/1 model, you could send me on email reporting it. Also, I am interested in example applications of multiple connection nodes of zero queueing to a simple one node. I hope to receive some answer as soon as posible, Thank you in advance. Yours faithfully, Spartako
Re: [ns] Multiple simulations in NS
Ignore the * Consider as spaces. Filippe Jabour http://www.gta.ufrj.br/~jabour/ Filippe Jabour escreveu: Use a shell script. /#!/bin/csh/ *set* scriptTcl = dd0601.tcl foreach scen *(*1 2 3 4 5 6 7 8 9 10*)* *echo* ... *echo* Rodada $scen *echo* Comando: ns $scriptTcl $scen time ns $scriptTcl $scen *echo* ... end Rodada e Comando are portuguese words. Something like Round and Command. $scen is an integer argument passed to tcl script to set the file that contains the inicial node positions and node movement. Filippe Jabour http://www.gta.ufrj.br/~jabour/ Tuhin Kanti Sharma wrote: Hi, Can we run a tcl simulation multiple times, i.e from start to finish. If yes then how do we do it. Help would be appreciated. Tuhin Department of CS DU
[ns] Fwd: Problem with executin a simple tcl script
Hello to all, As you suppose, I'm new with NS, and I've a problem when I type the following: -'$ns ex1.tcl' and I receive an error message just like this: ns command not found. I've read in the general problems page and I found that : (Also, when I try typing the comamnd ns simple.tcl, and I get the error ns: command not found.) *Solution:* Well, you need to add nam' directory to the environment variable PATH or specify its location in the tcl script. (PATH is part of Unix, so if you're not sure how it works, please consult a local Unix expert or search the web on unix PATH.) But I'm trying to add my nam directory to environment variable path and I receive the following error message: file or directory don't exists (I'm typing PATH:$PATH:my nam directory). Could you help me? It's very important for me to solve this problem. Other thing, how can I find/modify the .bashrc file? I'm searching it in the etc directory but I can't find it. Thanks in advance.
Re: [ns] Multiple simulations in NS
thnx a lot for the reply... but i need to specify my requirements I need to run multiple simulations of a tcl script, based on the results wich Im collectin in cc file I need to get the best value for the simulation. Now wat I can do is run the simulation get the results and update variables in cc and then run the simulation again for the nxt value...so I need to control the executions thru tcl or cc. What happens is I can only get results after the simulation completes so I need to start the simulation again afresh can I link two tcl files can u suggest nething Ill b really greatful for help Tuhin On 5/15/06, Filippe Jabour [EMAIL PROTECTED] wrote: Ignore the * Consider as spaces. Filippe Jabour http://www.gta.ufrj.br/~jabour/ Filippe Jabour escreveu: Use a shell script. /#!/bin/csh/ *set* scriptTcl = dd0601.tcl foreach scen *(*1 2 3 4 5 6 7 8 9 10*)* *echo* ... *echo* Rodada $scen *echo* Comando: ns $scriptTcl $scen time ns $scriptTcl $scen *echo* ... end Rodada e Comando are portuguese words. Something like Round and Command. $scen is an integer argument passed to tcl script to set the file that contains the inicial node positions and node movement. Filippe Jabour http://www.gta.ufrj.br/~jabour/ Tuhin Kanti Sharma wrote: Hi, Can we run a tcl simulation multiple times, i.e from start to finish. If yes then how do we do it. Help would be appreciated. Tuhin Department of CS DU
Re: [ns] Fwd: Problem with executin a simple tcl script
The .bashrc file is at your home directory # .bashrc # User specific aliases and functions # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi HOME_NS=/usr/local/ns-allinone-2.29 NS_DIR=$HOME_NS/bin PATH=${PATH}:$NS_DIR:/sbin LD_LIBRARY_PATH=$HOME_NS/otcl-1.11:$HOME_NS/lib TCL_LIBRARY=$HOME_NS/tcl8.4.11/library export HOME_NS NS_DIR LD_LIBRARY_PATH TCL_LIBRARY Filippe Jabour http://www.gta.ufrj.br/~jabour/ David Planells escreveu: Hello to all, As you suppose, I'm new with NS, and I've a problem when I type the following: -'$ns ex1.tcl' and I receive an error message just like this: ns command not found. I've read in the general problems page and I found that : (Also, when I try typing the comamnd ns simple.tcl, and I get the error ns: command not found.) *Solution:* Well, you need to add nam' directory to the environment variable PATH or specify its location in the tcl script. (PATH is part of Unix, so if you're not sure how it works, please consult a local Unix expert or search the web on unix PATH.) But I'm trying to add my nam directory to environment variable path and I receive the following error message: file or directory don't exists (I'm typing PATH:$PATH:my nam directory). Could you help me? It's very important for me to solve this problem. Other thing, how can I find/modify the .bashrc file? I'm searching it in the etc directory but I can't find it. Thanks in advance.
[ns] Simulating an embedded ad-hoc wireless protocol
Greetings, I have an ad-hoc wireless protocol that has been implemented and fielded in an embedded system. I would like to simulate it for performance benchmarking. My problem is that the code is written in C and it has it's own custom implementation for the MAC, routing protocol, queueing, etc. I have just started looking into ns-2, and from what I understand, it requires the MAC, routing protocol, and message queue to be in seperate classes (inheriting from Agent, Mac, etc.). Is it possible to use ns-2 to simulate a node at the transport layer, and treat the rest as a black box? If not, do you have any suggestions/comments for simulating this firmware? Thanks in advance, Jeff S.
Re: [ns] Multiple simulations in NS
thnx for ure hlp, smehow my requirement is getting met with wat u hav just suggested. I need help just in a couple of more points: 1)/#!/bin/csh/ what is the significance of this? 2) While running the shell script, it gives : ns command not found. Can you please tell me why is it so? I'll be really thankful and greatful for ure help Tuhin Department of CS DU On 5/16/06, Tuhin Kanti Sharma [EMAIL PROTECTED] wrote: thnx a lot for the reply... but i need to specify my requirements I need to run multiple simulations of a tcl script, based on the results wich Im collectin in cc file I need to get the best value for the simulation. Now wat I can do is run the simulation get the results and update variables in cc and then run the simulation again for the nxt value...so I need to control the executions thru tcl or cc. What happens is I can only get results after the simulation completes so I need to start the simulation again afresh can I link two tcl files can u suggest nething Ill b really greatful for help Tuhin On 5/15/06, Filippe Jabour [EMAIL PROTECTED] wrote: Ignore the * Consider as spaces. Filippe Jabour http://www.gta.ufrj.br/~jabour/ Filippe Jabour escreveu: Use a shell script. /#!/bin/csh/ *set* scriptTcl = dd0601.tcl foreach scen *(*1 2 3 4 5 6 7 8 9 10*)* *echo* ... *echo* Rodada $scen *echo* Comando: ns $scriptTcl $scen time ns $scriptTcl $scen *echo* ... end Rodada e Comando are portuguese words. Something like Round and Command. $scen is an integer argument passed to tcl script to set the file that contains the inicial node positions and node movement. Filippe Jabour http://www.gta.ufrj.br/~jabour/ Tuhin Kanti Sharma wrote: Hi, Can we run a tcl simulation multiple times, i.e from start to finish. If yes then how do we do it. Help would be appreciated. Tuhin Department of CS DU
[ns] Modifying cw_ in mac-802_11.h
Hello, I am trying to modify cw_ in the mac-802_11.h file. Normally, it is cw_=(cw_1)+1. However, whenever I do something like cw_=cw_*5, for example, there is a Floating Exception (core dumped) error. Does anyone know why cw_ may be needed to be modified in a bitshifting manner or how to modify it more simply? Thank you in advance for the help. -Arnab
[ns] Using SFQ for wireless simulation...
Hi, Can anybody please tell me how to use or modify Stochastic Fair Queue for wireless netwok simulation. Thank you. regards, swapnil IIT Guwahati. A conclusion is simply the place where you got tired of thinking.
[ns] no such element in array
Hi, I am trying to do a wired-wireless simulation and when trying to run the simulation I get these weird errors: num_nodes is set 2 INITIALIZE THE LIST xListHead can't read Node_(26): no such element in array while executing return $Node_($id) (procedure _o3 line 3) (Simulator get-node-by-id line 3) invoked from within $self get-node-by-id [lindex $L 1] (procedure _o3 line 15) (Simulator compute-hier-routes line 15) invoked from within $self compute-hier-routes invoked from within if [Simulator hier-addr?] { $self compute-hier-routes } else { $self compute-flat-routes } (procedure _o3 line 2) (Simulator compute-routes line 2) invoked from within [Simulator instance] compute-routes (procedure Agent/rtProto/Static line 2) (Agent/rtProto/Static init-all line 2) invoked from within Agent/rtProto/Static init-all invoked from within if [info exists rtprotos_] { foreach proto [array names rtprotos_] { eval Agent/rtProto/$proto init-all $rtprotos_($proto) } } else { Agent/rtProto/St... (procedure _o959 line 3) (RouteLogic configure line 3) invoked from within [$self get-routelogic] configure (procedure _o3 line 5) (Simulator run line 5) invoked from within $ns run (file simulation.tcl line 332) I don't have a Node array, my node array is called n. It appears this is a internal problem in ns with the wired-wireless. If anyone could help me with this, it would be appreciated.
Re: [ns] no such element in array
I think you used a variable Node_(26) in your tcl script but it has not been created yet. Look into your tcl script at line 332. - Original Message - From: [EMAIL PROTECTED] To: ns-users@ISI.EDU Sent: Tuesday, May 16, 2006 5:55 AM Subject: [ns] no such element in array Hi, I am trying to do a wired-wireless simulation and when trying to run the simulation I get these weird errors: num_nodes is set 2 INITIALIZE THE LIST xListHead can't read Node_(26): no such element in array while executing return $Node_($id) (procedure _o3 line 3) (Simulator get-node-by-id line 3) invoked from within $self get-node-by-id [lindex $L 1] (procedure _o3 line 15) (Simulator compute-hier-routes line 15) invoked from within $self compute-hier-routes invoked from within if [Simulator hier-addr?] { $self compute-hier-routes } else { $self compute-flat-routes } (procedure _o3 line 2) (Simulator compute-routes line 2) invoked from within [Simulator instance] compute-routes (procedure Agent/rtProto/Static line 2) (Agent/rtProto/Static init-all line 2) invoked from within Agent/rtProto/Static init-all invoked from within if [info exists rtprotos_] { foreach proto [array names rtprotos_] { eval Agent/rtProto/$proto init-all $rtprotos_($proto) } } else { Agent/rtProto/St... (procedure _o959 line 3) (RouteLogic configure line 3) invoked from within [$self get-routelogic] configure (procedure _o3 line 5) (Simulator run line 5) invoked from within $ns run (file simulation.tcl line 332) I don't have a Node array, my node array is called n. It appears this is a internal problem in ns with the wired-wireless. If anyone could help me with this, it would be appreciated.
Re: [ns] Multiple simulations in NS
1)First you need to read some books about linux shell program. Then you will know what is the meaning of #!/bin/sh. 2) That is because your environment variable is not setting properly. a) you can change your environment variable The .bashrc file is at your home directory # .bashrc # User specific aliases and functions # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi HOME_NS=/usr/local/ns-allinone-2.29 NS_DIR=$HOME_NS/bin PATH=${PATH}:$NS_DIR:/sbin LD_LIBRARY_PATH=$HOME_NS/otcl-1.11:$HOME_NS/lib TCL_LIBRARY=$HOME_NS/tcl8.4.11/library export HOME_NS NS_DIR LD_LIBRARY_PATH TCL_LIBRARY b) if you do not want to change your environment variable ,you can use ./yourns2path/ns instead of ns - Original Message - From: Tuhin Kanti Sharma [EMAIL PROTECTED] To: ns-users@ISI.EDU; [EMAIL PROTECTED] Sent: Tuesday, May 16, 2006 3:33 AM Subject: Re: [ns] Multiple simulations in NS thnx for ure hlp, smehow my requirement is getting met with wat u hav just suggested. I need help just in a couple of more points: 1)/#!/bin/csh/ what is the significance of this? 2) While running the shell script, it gives : ns command not found. Can you please tell me why is it so? I'll be really thankful and greatful for ure help Tuhin Department of CS DU On 5/16/06, Tuhin Kanti Sharma [EMAIL PROTECTED] wrote: thnx a lot for the reply... but i need to specify my requirements I need to run multiple simulations of a tcl script, based on the results wich Im collectin in cc file I need to get the best value for the simulation. Now wat I can do is run the simulation get the results and update variables in cc and then run the simulation again for the nxt value...so I need to control the executions thru tcl or cc. What happens is I can only get results after the simulation completes so I need to start the simulation again afresh can I link two tcl files can u suggest nething Ill b really greatful for help Tuhin On 5/15/06, Filippe Jabour [EMAIL PROTECTED] wrote: Ignore the * Consider as spaces. Filippe Jabour http://www.gta.ufrj.br/~jabour/ Filippe Jabour escreveu: Use a shell script. /#!/bin/csh/ *set* scriptTcl = dd0601.tcl foreach scen *(*1 2 3 4 5 6 7 8 9 10*)* *echo* ... *echo* Rodada $scen *echo* Comando: ns $scriptTcl $scen time ns $scriptTcl $scen *echo* ... end Rodada e Comando are portuguese words. Something like Round and Command. $scen is an integer argument passed to tcl script to set the file that contains the inicial node positions and node movement. Filippe Jabour http://www.gta.ufrj.br/~jabour/ Tuhin Kanti Sharma wrote: Hi, Can we run a tcl simulation multiple times, i.e from start to finish. If yes then how do we do it. Help would be appreciated. Tuhin Department of CS DU
[ns] Problem while installing ns in windows
Hi, I was installing ns-allinone-2.29 under windows XP using Cygwin. Got the error: checking system version (for dynamic loading)... ./configure: line 6017: syntax error near unexpected token `(' ./configure: line 6017: 'case `(ac_space=' '; set | grep ac_space) 21' in' otcl-1.11 configuration failed! Exiting ... Can anyone help me? mbiswas - Love cheap thrills? Enjoy PC-to-Phone calls to 30+ countries for just 2¢/min with Yahoo! Messenger with Voice.
Re: [ns] Multiple simulations in NS
Another way is through 'for' loop, but make sure you break up this code (the one to be repeated) as one (or multiple) subroutines ('procs in tcl') written outside the 'for' loop. The code can then be repeatedly called at specific time intervals using $ns at time subroutine or proc from a 'for' loop. Time can be incremented appropriately in each run of for loop. But you must be careful to set the times (at which the code is being called as non-overlapping) and the final 'finish' procedure to be called at a time when you have finished invoking these sub-routines ('procs'). It worked for me, I 'm not sure about your exact requirements, but you can be able to update the variables in each run of the 'for' loop as you desire. BUT be careful while 'for' loops are stable, 'while' loops take much more effort in coding! Cheers. --- Tuhin Kanti Sharma [EMAIL PROTECTED] wrote: thnx for ure hlp, smehow my requirement is getting met with wat u hav just suggested. I need help just in a couple of more points: 1)/#!/bin/csh/ what is the significance of this? 2) While running the shell script, it gives : ns command not found. Can you please tell me why is it so? I'll be really thankful and greatful for ure help Tuhin Department of CS DU On 5/16/06, Tuhin Kanti Sharma [EMAIL PROTECTED] wrote: thnx a lot for the reply... but i need to specify my requirements I need to run multiple simulations of a tcl script, based on the results wich Im collectin in cc file I need to get the best value for the simulation. Now wat I can do is run the simulation get the results and update variables in cc and then run the simulation again for the nxt value...so I need to control the executions thru tcl or cc. What happens is I can only get results after the simulation completes so I need to start the simulation again afresh can I link two tcl files can u suggest nething Ill b really greatful for help Tuhin On 5/15/06, Filippe Jabour [EMAIL PROTECTED] wrote: Ignore the * Consider as spaces. Filippe Jabour http://www.gta.ufrj.br/~jabour/ Filippe Jabour escreveu: Use a shell script. /#!/bin/csh/ *set* scriptTcl = dd0601.tcl foreach scen *(*1 2 3 4 5 6 7 8 9 10*)* *echo* ... *echo* Rodada $scen *echo* Comando: ns $scriptTcl $scen time ns $scriptTcl $scen *echo* ... end Rodada e Comando are portuguese words. Something like Round and Command. $scen is an integer argument passed to tcl script to set the file that contains the inicial node positions and node movement. Filippe Jabour http://www.gta.ufrj.br/~jabour/ Tuhin Kanti Sharma wrote: Hi, Can we run a tcl simulation multiple times, i.e from start to finish. If yes then how do we do it. Help would be appreciated. Tuhin Department of CS DU __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com