[ns] regd cal load
If i have an ftp source(infinite send) attached to a tcp source. How do i calculate the load in that case? deepak __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
[ns] Bound variable
How would i access bound variable in some cpp class in another cpp class __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
[ns] C++ Debugging (NS2) Useful Info
Check out the link below for C++ debugging and how to make changes in Makefile (CFLAGS) http://www.cs.ust.hk/~cszyz/ns2-debug.html http://tagus.inesc-id.pt/~pestrela/ns2/ Good Luck! Have a burning question? Go to www.Answers.yahoo.com and get answers from real people who know.
[ns] Helpful Info regarding GDB / DDD and NS2
how to debug ns2 code using gdb or ddd Thanks to SamanaSrikanth and ameya. I found this on orkut. May be Pedro Estrela Should add this to his C++ debugging. ns - debug how to debug ns2 code using gdb or ddd? ok, so to enable debug information in ns, you need to do the following: in your ns-allinone directory, edit the install file. Look for the line : # Build Tcl8.3.2 (should be around line 173) In this section you need to add the option --enable-symbols to the line : ./configure --enable-gcc --disable-shared --prefix=$CUR_PATH || so it becomes: ./configure --enable-gcc --enable-symbols --disable-shared --prefix=$CUR_PATH || Now, still in the ns-allinone/install file, look for the tclcl section. # Build tclcl (should be around line 260) in this section, you need to add --enable-debug to your configure line, such that: ./configure || ... becomes ./configure --enable-debug || ... ok, we're done with this one. save and close. now, go into your ns-allinone/ns directory, and open your Makefile.in. Search for CFLAGS (should be around line 90), and change it from CFLAGS = $(CCOPT) $(DEFINE) to CFLAGS = -g $(CCOPT) $(DEFINE) ok, we're done with the editing. now go to your ns-allinone and type ./install. after everything is done, you should have debugging symbols enabled. so, now you recompile your code into ns, and open ns in gdb (gdb ns) and set the appropriate parameters to ns (e.g. your .tcl simulation file), and type run. When the app crashes, type bt to see the stack. you should see plenty of debug information now. let me know how it goes. the way I prefer the most is just add the -g flag information in the make file. That should add the debug symbols and then while running do following ddd ns once ur in graphical debugger, say set args filename ( any other args) run example.tcl that should give you a good graphical display of your code. debugging becomes easy and faster Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com Get your own web address. Have a HUGE year through Yahoo! Small Business. http://smallbusiness.yahoo.com/domains/?p=BESTDEAL
[ns] Regd eventrace-all
Can we attach a eventtrace to a single TCP agent? . I know that we could attach a single TCP agent to trace cwnd. Thanks, Deepak Expecting? Get great news right away with email Auto-Check. Try the Yahoo! Mail Beta. http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html
[ns] TCP HighSpeed-Limited Slow Start Fix
When Highspeed TCP is used I get Floating Point Exceptions. Here are the trace values: (gdb) bt #0 0x0807e193 in TcpAgent::limited_slow_start (this=0x86617a8, cwnd=2, max_ssthresh=100, increment=0.5) at tcp/tcp.cc:986 ** tcp.cc:986 double TcpAgent::limited_slow_start(double cwnd, double max_ssthresh, double increment) { int round = int(cwnd / (double(max_ssthresh)/2.0)); double increment1 = 1.0/(double(round)); if (increment increment1) increment = increment1; return increment; } ** If I need to fix this ,I should use the rfc3742. Any suggestions are welcome! //written as per RFC3742 and to avoid floating pt //error! if(cwnd = max_ssthresh) return increment; else { int round = int(cwnd/(double(max_ssthresh)/2.0)); double increment1 = 1.0/(double(round)); increment = increment1; return increment; } ** Get your own web address. Have a HUGE year through Yahoo! Small Business. http://smallbusiness.yahoo.com/domains/?p=BESTDEAL
Re: [ns] arithmatic in TCL for ns2
-- re-sending as I received delivery failure. Apologies for multiple responses. -- You need to typecast the variable in expression for precision. [dpanwar@UnixServer1 NS]$ ns % set a 18 18 % set b 1000 1000 % set x [expr double($a)/$b] 0.017999 To truncate the large float values, you may need to set the* tcl_precision* variable and get the desired result. % set tcl_precision 10 10 % set x [expr double($a)/$b] 0.018 With best regards, Deepak Panwar -- *Effort is important, but knowing where to make an effort makes all the difference!* On Wed, Feb 19, 2014 at 11:14 AM, Deepak Panwar deepakdeeppan...@gmail.comwrote: You need to typecast the variable in expression for precision. [dpanwar@UnixServer1 NS]$ ns % set a 18 18 % set b 1000 1000 % set x [expr double($a)/$b] 0.017999 To truncate the large float values, you may need to set the* tcl_precision* variable and get the desired result. % set tcl_precision 10 10 % set x [expr double($a)/$b] 0.018 With best regards, Deepak Panwar -- *Effort is important, but knowing where to make an effort makes all the difference!* On Wed, Feb 19, 2014 at 6:30 AM, ns-users-requ...@isi.edu wrote: Send Ns-users mailing list submissions to ns-users@isi.edu To subscribe or unsubscribe via the World Wide Web, visit http://mailman.isi.edu/mailman/listinfo/ns-users or, via email, send a message with subject or body 'help' to ns-users-requ...@isi.edu You can reach the person managing the list at ns-users-ow...@isi.edu When replying, please edit your Subject line so it is more specific than Re: Contents of Ns-users digest... Today's Topics: 1. arithmatic in TCL for ns2 (Muhammad Imran KHAN) 2. Re: running configuration..Installation of tclcl seems incomplete or can't be found automatically. (knudfl) -- Forwarded message -- From: Muhammad Imran KHAN exceptional_attract...@yahoo.com To: ns-users ns-users@isi.edu Cc: Date: Tue, 18 Feb 2014 09:25:32 + (GMT) Subject: [ns] arithmatic in TCL for ns2 Hi , I have some problem regarding arithmatic expressions. I have prepared a file .tcl and then I include it in main ns simulator file. For example, set x [expr $a / $b] ie. x = 18 /1000 , it gives me zero value rather than 0.018. Why ? what should I do Please? to get exact 0.018 . Thanks you so much for your kind help. Best Regards, Imran Khan
[ns] problem in wireless.tcl run
hi all... wn i run the wireless files on ns it gives the warning n does nt run... hw can i run these files...
[ns] problem executing wireless examples[uegent]
hi all i m facing following type of errors and warnigs when executing wireless.tcl files.. [EMAIL PROTECTED] examples]# ns simple-wireless.tcl num_nodes is set 2 warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl INITIALIZE THE LIST xListHead Starting Simulation... channel.cc:sendUp - Calc highestAntennaZ_ and distCST_ highestAntennaZ_ = 1.5, distCST_ = 550.0 SORTING LISTS ...DONE! NS EXITING... [EMAIL PROTECTED] examples]# ns wireless1.tcl num_nodes is set 3 warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl INITIALIZE THE LIST xListHead Loading connection pattern... couldn't read file ../mobility/scene/cbr-3-test: no such file or directory while executing source.orig ../mobility/scene/cbr-3-test (uplevel body line 1) invoked from within uplevel source.orig [list $fileName] invoked from within if [$instance_ is_http_url $fileName] { set buffer [$instance_ read_url $fileName] uplevel eval $buffer } else { uplevel source.orig [list $fileName] ... (procedure source line 8) invoked from within source $val(cp) (file wireless1.tcl line 121) [EMAIL PROTECTED] examples]# ns wireless2.tcl num_nodes is set 4 warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl INITIALIZE THE LIST xListHead *** NOTE: no connection pattern specified. Loading scenario file... couldn't read file ../mobility/scene/scen-3-test: no such file or directory while executing source.orig ../mobility/scene/scen-3-test (uplevel body line 1) invoked from within uplevel source.orig [list $fileName] invoked from within if [$instance_ is_http_url $fileName] { set buffer [$instance_ read_url $fileName] uplevel eval $buffer } else { uplevel source.orig [list $fileName] ... (procedure source line 8) invoked from within source $opt(sc) invoked from within if { $opt(sc) == } { puts *** NOTE: no scenario file specified. set opt(sc) none } else { puts Loading scenario file... source $op... (file wireless2.tcl line 183) [EMAIL PROTECTED] examples]# ns wireless3.tcl num_nodes is set 3 warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl INITIALIZE THE LIST xListHead *** NOTE: no connection pattern specified. *** NOTE: no scenario file specified. Starting Simulation... channel.cc:sendUp - Calc highestAntennaZ_ and distCST_ highestAntennaZ_ = 1.5, distCST_ = 550.0 SORTING LISTS ...DONE! warning: Route to base_stn not known: dropping pkt warning: Route to base_stn not known: dropping pkt warning: Route to base_stn not known: dropping pkt warning: Route to base_stn not known: dropping pkt warning: Route to base_stn not known: dropping pkt warning: Route to base_stn not known: dropping pkt warning: Route to base_stn not known: dropping pkt warning: Route to base_stn not known: dropping pkt warning: Route to base_stn not known: dropping pkt warning: Route to base_stn not known: dropping pkt warning: Route to base_stn not known: dropping pkt warning: Route to base_stn not known: dropping pkt warning: Route to base_stn not known: dropping pkt warning: Route to base_stn not known: dropping pkt warning: Route to base_stn not known: dropping pkt warning: Route to base_stn not known: dropping pkt warning: Route to base_stn not known: dropping pkt NS EXITING... - is it a bug? how can i reslove this problem plz help me. thanking you for attention. regards deepak