[ns] Accessing to Physical Layer fields From Mac Layer?
Dear Ns users, How Can you Access PLCP Header ( Physical Layer Field ) From Mac Layer ? I need field SIGNAL and LENGTH From PLCP Header on Mac Layer. Best Regards Hamid Reza Now that's room service! Choose from over 150,000 hotels in 45,000 destinations on Yahoo! Travel to find your fit. http://farechase.yahoo.com/promo-generic-14795097
[ns] 'recv' function under Agent/Ping class
Sir, In the ping program 'ping.tcl', a 'recv' function has been defined under the class 'Agent/Ping'. Please tell me where this 'recv' function has been called from, as i could not find any place in ' ping.tcl' where it has been called. The exact from ping.tcl code is #Define a 'recv' function for the class 'Agent/Ping' Agent/Ping instproc recv {from rtt} { $self instvar node_ puts node [$node_ id] received ping answer from \ $from with round-trip-time $rtt ms. } It would be very nice if you could give me a detailed explanantion of each line and the variables in the attached code.
Re: [ns] 'recv' function under Agent/Ping class
In the ping program 'ping.tcl', a 'recv' function has been defined under the class 'Agent/Ping'. Please tell me where this 'recv' function has been called from, as i could not find any place in ' ping.tcl' where it has been called. See the PingAgent::recv() member function (apps/ping.cc file in the NS source tree). Focus there on the lines 199-207. The tcl command (including the function name - recv) is written to the out buffer as string and the tcl interpreter invoked by calling tcl.eval(out); The C++ sources are very well documented. hih --Joachim The exact from ping.tcl code is #Define a 'recv' function for the class 'Agent/Ping' Agent/Ping instproc recv {from rtt} { $self instvar node_ puts node [$node_ id] received ping answer from \ $from with round-trip-time $rtt ms. } It would be very nice if you could give me a detailed explanantion of each line and the variables in the attached code.
[ns] Loss=Sent Packets - Received Packets or Lines with Event d marked?
Hi, in loss calculation i had some problems. When I calculate, loss in simulation Loss=Sent Packets - Received Packets is different of the number of times the event d is maked? Its correct? thanks -- Alessandro Vivas Andrade
[ns] Deadline Miss
Hello ns-users I need a script or an algorithm to calculate the number of deadline miss form the trace file in a 802.11e EDCA network using the new wireless format, and then make graphs to evaluate differences between 802.11 and 802.11e. Can somebody help me??? best regards Naviga e telefona senza limiti con Tiscali Scopri le promozioni Tiscali adsl: navighi e telefoni senza canone Telecom http://abbonati.tiscali.it/adsl/
Re: [ns] Loss=Sent Packets - Received Packets or Lines with Event d marked?
there are several places where a packet may be dropped, and not al of then properly log such event. Also, be sure stop measuring only after all in-flight pakcets have been received pedro vale estrela On 1/19/07, Alessandro Vivas [EMAIL PROTECTED] wrote: Hi, in loss calculation i had some problems. When I calculate, loss in simulation Loss=Sent Packets - Received Packets is different of the number of times the event d is maked? Its correct? thanks -- Alessandro Vivas Andrade
Re: [ns] How to disable all the trace outputs
Google is your friend http://www.google.pt/search?hl=en-enq=%2Fdev%2Fnull+ns2+tracemeta On 1/19/07, babak [EMAIL PROTECTED] wrote: Hi Pedro, How can I write the trace to /dev/null. What should I wirte in the tcl file Thanks for your attention Babak - Original Message - From: Pedro Vale Estrela [EMAIL PROTECTED] To: 'babak' [EMAIL PROTECTED]; ns-users@ISI.EDU Sent: Friday, January 19, 2007 1:08 AM Subject: RE: [ns] How to disable all the trace outputs a) Don't call ns trace-all or a similar lines b) write the trace to /dev/null -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of babak Sent: quinta-feira, 18 de Janeiro de 2007 10:47 To: ns-users@ISI.EDU Subject: [ns] How to disable all the trace outputs Dear All, I'm simulating a wireless network with 500 nodes. I have turned off all the trace options in my tcl file. However, still lines are appending to the output file and after a while the file gets huge. It really make the simulation slow. Does anybody know how can I turn off tracing completely? Thanks for your attention Babak.
[ns] how to compile a cc file???
Hi guys! I change something in ns-allinone-2.28\ns-2.28\mac\mac-802_11.cc file and after saving it, I run the command make clean; make (I am using cygwin). The change is just a print statement that should appear in the simulation result. After that, I run the tcl simulation code again, but the changes that I made are not appearing in the result. Am I on the right track? How to chnage things in cc files? thanks for your help. -azee
[ns] Having problem installing ns 2.1b7...gives this error message
I want to use ns 2.1b7 cos the version I got has an ATM patch already which I need for my thesis.I try to configure it and I get the error message below. ___ [EMAIL PROTECTED] Desktop]# cd ns-2-snapshot-20010224/ [EMAIL PROTECTED] ns-2-snapshot-20010224]# ./configure loading cache ./config.cache No .configure file found in current directory Continuing with default options... checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking build system type... i686-pc-linux-gnu checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking for c++... c++ checking whether the C++ compiler (c++ ) works... yes checking whether the C++ compiler (c++ ) is a cross-compiler... no checking whether we are using GNU C++... yes checking whether c++ accepts -g... yes checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for string.h... yes checking for main in -lXbsd... no checking for socket in -lsocket... no checking for gethostbyname in -lnsl... yes checking for dcgettext in -lintl... no checking for getnodebyname in -ldnet_stub... no checking that c++ can handle -O2... no checking standard STL is available... no checking for tcl.h... -I../tcl8.3.2/generic checking for libtcl8.3... -L/usr/local/lib -ltcl8.3 checking for init.tcl... ../tcl8.3.2/library checking for tclsh8.3.2... no checking for tclsh8.3... /usr/local/bin/tclsh8.3 checking for tk.h... no checking for libtk8.3... no checking for tk.tcl... no checking for otcl.h... -I../otcl-1.0a6 checking for libotcl1.0a6... no configure: error: Installation of otcl seems incomplete or can't be found automatically. Please correct the problem by telling configure where otcl is using the argument --with-otcl=/path/to/package (perhaps after installing it), or the package is not required, disable it with --with-otcl=no. [EMAIL PROTECTED] Desktop]# cd ns-2-snapshot-20010224/ [EMAIL PROTECTED] ns-2-snapshot-20010224]# ./configure loading cache ./config.cache No .configure file found in current directory Continuing with default options... checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking build system type... i686-pc-linux-gnu checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking for c++... c++ checking whether the C++ compiler (c++ ) works... yes checking whether the C++ compiler (c++ ) is a cross-compiler... no checking whether we are using GNU C++... yes checking whether c++ accepts -g... yes checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for string.h... yes checking for main in -lXbsd... no checking for socket in -lsocket... no checking for gethostbyname in -lnsl... yes checking for dcgettext in -lintl... no checking for getnodebyname in -ldnet_stub... no checking that c++ can handle -O2... no checking standard STL is available... no checking for tcl.h... -I../tcl8.3.2/generic checking for libtcl8.3... -L/usr/local/lib -ltcl8.3 checking for init.tcl... ../tcl8.3.2/library checking for tclsh8.3.2... no checking for tclsh8.3... /usr/local/bin/tclsh8.3 checking for tk.h... no checking for libtk8.3... no checking for tk.tcl... no checking for otcl.h... -I../otcl-1.0a6 checking for libotcl1.0a6... no configure: error: Installation of otcl seems incomplete or can't be found automatically. Please correct the problem by telling configure where otcl is using the argument --with-otcl=/path/to/package (perhaps after installing it), or the package is not required, disable it with --with-otcl=no. __ Even when I use the arguments specified in the last 4 lines of the error message,I still get the same thing.Someone pls help cos I'm getting behind schedule already on this project.Thanks a lot. Best regards, Brenda
[ns] Having problem installing ns 2.1b7...gives this error message
I want to use ns 2.1b7 cos the version I got has an ATM patch already which I need for my thesis.I try to configure it and I get the error message below. __ _ [EMAIL PROTECTED] Desktop]# cd ns-2-snapshot-20010224/ [EMAIL PROTECTED] ns-2-snapshot-20010224]# ./configure loading cache ./config.cache No .configure file found in current directory Continuing with default options... checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking build system type... i686-pc-linux-gnu checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking for c++... c++ checking whether the C++ compiler (c++ ) works... yes checking whether the C++ compiler (c++ ) is a cross-compiler... no checking whether we are using GNU C++... yes checking whether c++ accepts -g... yes checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for string.h... yes checking for main in -lXbsd... no checking for socket in -lsocket... no checking for gethostbyname in -lnsl... yes checking for dcgettext in -lintl... no checking for getnodebyname in -ldnet_stub... no checking that c++ can handle -O2... no checking standard STL is available... no checking for tcl.h... -I../tcl8.3.2/generic checking for libtcl8.3... -L/usr/local/lib -ltcl8.3 checking for init.tcl... ../tcl8.3.2/library checking for tclsh8.3.2... no checking for tclsh8.3... /usr/local/bin/tclsh8.3 checking for tk.h... no checking for libtk8.3... no checking for tk.tcl... no checking for otcl.h... -I../otcl-1.0a6 checking for libotcl1.0a6... no configure: error: Installation of otcl seems incomplete or can't be found automatically. Please correct the problem by telling configure where otcl is using the argument --with-otcl=/path/to/package (perhaps after installing it), or the package is not required, disable it with --with-otcl=no. ___ Even when I use the arguments specified in the last 4 lines I still get the same problem.Someone pls help.I'm getting behind schedule.Thanks a lot. Best regards, Brenda
[ns] Problem installing NS
I want to use ns 2.1b7 cos the version I got has an ATM patch already which I need for my thesis.I try to configure it and I get the error message below. __ __ ___ [EMAIL PROTECTED] Desktop]# cd ns-2-snapshot-20010224/ [EMAIL PROTECTED] ns-2-snapshot-20010224]# ./configure loading cache ./config.cache No .configure file found in current directory Continuing with default options... checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking build system type... i686-pc-linux-gnu checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking for c++... c++ checking whether the C++ compiler (c++ ) works... yes checking whether the C++ compiler (c++ ) is a cross-compiler... no checking whether we are using GNU C++... yes checking whether c++ accepts -g... yes checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for string.h... yes checking for main in -lXbsd... no checking for socket in -lsocket... no checking for gethostbyname in -lnsl... yes checking for dcgettext in -lintl... no checking for getnodebyname in -ldnet_stub... no checking that c++ can handle -O2... no checking standard STL is available... no checking for tcl.h... -I../tcl8.3.2/generic checking for libtcl8.3... -L/usr/local/lib -ltcl8.3 checking for init.tcl... ../tcl8.3.2/library checking for tclsh8.3.2... no checking for tclsh8.3... /usr/local/bin/tclsh8.3 checking for tk.h... no checking for libtk8.3... no checking for tk.tcl... no checking for otcl.h... -I../otcl-1.0a6 checking for libotcl1.0a6... no configure: error: Installation of otcl seems incomplete or can't be found automatically. Please correct the problem by telling configure where otcl is using the argument --with-otcl=/path/to/package (perhaps after installing it), or the package is not required, disable it with --with-otcl=no. ___ Even when I use the arguments specified in the last 4 lines I still get the same problem.Someone pls help.I'm getting behind schedule.Thanks a lot. Best regards, Brenda
Re: [ns] how to compile a cc file???
I change something in ns-allinone-2.28\ns-2.28\mac\mac-802_11.cc file and after saving it, I run the command make clean; make (I am using cygwin). The change is just a print statement that should appear in the simulation result. After that, I run the tcl simulation code again, but the changes that I made are not appearing in the result. Am I on the right track? How to chnage things in cc files? If dependencies are set appropriately this should work. Did you invoke make install to replace the old ns executable by the new one? Otherwise the old ns executable is in the path and you do not see any change. Verify the timestamp of the executable in the path (typically /usr/local/bin/ns, which ns should point you to the right location). hih --Joachim
Re: [ns] how to compile a cc file???
Thanks a lot! You are right, even after the compilation I was using the old executable file (silly me!) I used the new one and it worked perfectly fine and I can now see the changes that I made in cc file. Great help, really appreciated! -azee On 1/19/07, Joachim Fabini [EMAIL PROTECTED] wrote: I change something in ns-allinone-2.28\ns-2.28\mac\mac-802_11.cc file and after saving it, I run the command make clean; make (I am using cygwin). The change is just a print statement that should appear in the simulation result. After that, I run the tcl simulation code again, but the changes that I made are not appearing in the result. Am I on the right track? How to chnage things in cc files? If dependencies are set appropriately this should work. Did you invoke make install to replace the old ns executable by the new one? Otherwise the old ns executable is in the path and you do not see any change. Verify the timestamp of the executable in the path (typically /usr/local/bin/ns, which ns should point you to the right location). hih --Joachim
[ns] general question about delay
Hi, I have two CBR traffic generator and receiver in my simulation. Packets are generated at 32 kbps and on ideal condition with a droptail queue. The receiver should receive the packets at 32kbps. I'm trying out the WRR packet scheduler. The parameters are buffer size, the link bit rate (bandwidth), scheduler delay and a variable that stores the sequence of which queue to be serve. The parameters would simulate the queueing and the transmission delay. In order to get 32kbps at the receiver, I would adjust these parameters. Then, I would repeat the simulation with different data rates. Am I doing it right? Any suggestion on literature or reference that should I refer on this matter. Thank you very much. Akashah Send instant messages to your online friends http://uk.messenger.yahoo.com