Re: [ns] awk script to calculate total frames sent ?

2013-03-05 Thread Teerawat@UBC
Hi, If you are interested in learning how tracing works in NS2, please read http://www.ns2ultimate.com/post/3995318343/post-processing-ns2-result-using-ns2-trace-main-post Best Wishes, Teerawat Issariyakul http://www.ns2ultimate.com/

Re: [ns] awk script to read flags

2013-01-30 Thread Teerawat@UBC
Hi, If you are interested in learning how tracing works in NS2, please read http://www.ns2ultimate.com/post/3995318343/post-processing-ns2-result-using-ns2-trace-main-post Best Wishes, Teerawat Issariyakul http://www.ns2ultimate.com/

Re: [ns] urgent plzzzz

2012-11-01 Thread Teerawat@UBC
Hi, If you are interested in learning how tracing works in NS2, please read http://www.ns2ultimate.com/post/3995318343/post-processing-ns2-result-using-ns2-trace-main-post Best Wishes, Teerawat Issariyakul http://www.ns2ultimate.com/

Re: [ns] awk script for end2end delay and throughput

2012-04-18 Thread Teerawat@UBC
Hi, If you are interested in learning how tracing works in NS2, please read http://www.ns2ultimate.com/post/3995318343/post-processing-ns2-result-using-ns2-trace-main-post Best Wishes, Teerawat Issariyakul http://www.ns2ultimate.com/

Re: [ns] Trace file output help for beginner

2012-04-17 Thread Teerawat@UBC
Hi, Please have a look here. It may help: http://www.ns2ultimate.com/post/2496927327/post-processing-ns2-result-using-ns2-trace-trace Best Wishes, Teerawat Issariyakul http://www.ns2ultimate.com/ http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417 http://twitter.com/T_Bear

Re: [ns] Changes made not taking effect after compile

2012-04-17 Thread Teerawat@UBC
Hi If you would like to add a new module into NS2, please read http://www.ns2ultimate.com/post/454001969/including-new-modules-into-ns-2 I hope this will help. Best Wishes, Teerawat Issariyakul http://www.ns2ultimate.com/ http://www.ece.ubc.ca/~teerawat http://www.t-issariyakul.blogspot.com

[ns] [NS2-ANS]Re: adding components for ns2

2012-04-09 Thread Teerawat@UBC
Hi If you would like to add a new module into NS2, please read http://www.ns2ultimate.com/post/454001969/including-new-modules-into-ns-2 You might want to check out the reasons behind Tcl error messages from the link below: - General error message interpretation:

Re: [ns] how to use awk script

2012-04-04 Thread Teerawat@UBC
Hi Robin, Isn't that obvious? It's because your denominator is zero. You can't compute anything with zero denominator. The result would be infinity. Best Regards, Teerawat Issariyakul http://www.ns2ultimate.com/ http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417

Re: [ns] awk script for Tora old trace file

2012-04-02 Thread Teerawat@UBC
HI, If you are interested in learning how tracing works in NS2, please read http://www.ns2ultimate.com/post/3995318343/post-processing-ns2-result-using-ns2-trace-main-post The above posts are based on the normal trace. If you are interested in wireless trace you might have to modify it a

Re: [ns] From where Connector::drop_ is initialized .?

2012-04-01 Thread Teerawat@UBC
Hi Pathik, If you'd like to learn about packet forwarding mechanism in NS2, please read http://www.ns2ultimate.com/post/9620995373/packet-forwarding-mechanism-in-ns2-main-post You will find the answer you need in the final post of this series. Best Wishes, Teerawat Issariyakul

Re: [ns] Calculate TCP/UDP throughput in mobile/wireless/ad hoc network?

2012-03-26 Thread Teerawat@UBC
Hi, If you are interested in learning how tracing works in NS2, please read http://www.ns2ultimate.com/post/3995318343/post-processing-ns2-result-using-ns2-trace-main-post Best Wishes, Teerawat Issariyakul http://www.ns2ultimate.com/

Re: [ns] Fwd: Implementing Round Robin Scheduler

2012-03-19 Thread Teerawat@UBC
HI Richard, So, what is the question? Best Wishes, Teerawat Issariyakul http://www.ns2ultimate.com/ http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417 http://twitter.com/T_Bear http://www.t-issariyakul.blogspot.com http://www.ece.ubc.ca/~teerawat On Mar 19, 2012, at 11:43 PM,

Re: [ns] Goodput script

2012-03-14 Thread Teerawat@UBC
Hi, If you are interested in learning how to compute throughput in NS2, please read http://www.ns2ultimate.com/post/3995318343/post-processing-ns2-result-using-ns2-trace-main-post You may have to apply it to compute TCP goodput. The above posts are based on the normal trace. If you are

Re: [ns] Need help Regarding Use of NS2 Graph.

2012-02-22 Thread Teerawat@UBC
Hi, To process NS2 results, I suggest you to read the following post: http://www.ns2ultimate.com/post/3995318343/post-processing-ns2-result-using-ns2-trace-main-post The above posts are based on the normal trace. If you are interested in wireless trace you might have to modify it a bit.

Re: [ns] Need awk script of new trace file

2012-02-19 Thread Teerawat@UBC
Hi, If you are interested in learning how tracing works in NS2, please read http://www.ns2ultimate.com/post/3995318343/post-processing-ns2-result-using-ns2-trace-main-post The above posts are based on the normal trace. If you are interested in wireless trace you might have to modify it a

Re: [ns] warning: no class variable

2011-11-30 Thread Teerawat@UBC
HI, Check your variable name. It should be var_myAgent, not var_mainAgent. Best Regards, Teerawat Issariyakul http://www.ns2ultimate.com/ http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417 http://twitter.com/T_Bear http://www.t-issariyakul.blogspot.com

Re: [ns] how to get the value of a variable present in C++ code to a TCl file.

2011-11-10 Thread Teerawat@UBC
Hi, You can bind the variables in C++ and OTcl. Please read the following posts: http://www.ns2ultimate.com/post/774980608/c-and-otcl-linkage-binding-variables Best Wishes, Teerawat Issariyakul http://www.ns2ultimate.com/ http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417

[ns] [NS-ANS] Re: Q configuration of ns-2 after changing protocol source code

2011-10-28 Thread Teerawat@UBC
Hi, If you would like to add a new module into NS2, please read http://www.ns2ultimate.com/post/454001969/including-new-modules-into-ns-2 You also need to learn about how C++ and OTcl are bound. Please read the series of blog posts indicated below:

Re: [ns] setdest command under ubuntu

2011-10-28 Thread Teerawat@UBC
Hi Javier, The utility setdest is located in the directory ns-2.35/indep-utils/cmu-scene-gen and ns-2.35/indep-utils/cmu-scene-gen/setdest. In future opportunities, if you'd like to find a certain file in NS2, you can you find utility in Linux. The instruction is provided below:

[ns] [NS-ANS] Re: Setdest (mobility model)

2011-10-28 Thread Teerawat@UBC
Hi, The utility setdest is a standalone utility. It must be invoked at the command prompt. The utility is located in the directory ns-2.35//indep-utils/cmu-scen-gen/setdest. Go to that directory and execute ./setdest -v 1 -n 50 -p 0 -M 20 -t 900 -x 1500 -y 300 The utility will create Tcl

[ns] [NS-ANS] Re: integrate my standalone application written in C++

2011-10-02 Thread Teerawat@UBC
Hi If you would like to add a new module into NS2, please read http://www.ns2ultimate.com/post/454001969/including-new-modules-into-ns-2 I hope this will help. Best Wishes, Teerawat Issariyakul http://www.ns2ultimate.com/ http://www.ece.ubc.ca/~teerawat http://www.t-issariyakul.blogspot.com

[ns] [NS2-ANS]Re: segmentation fault

2011-09-30 Thread Teerawat@UBC
Hi, Segmentation fault is usually due to memory access violation. A common example is as follows. int x[10]; x[20] = 0; where you create an array x with 10 slots, but try to access 20th slot of x. Another cause is the misconfiguration. You might send packets to a object which does not exist.

[ns] [NS-ANS]Re: sending frames in NS2

2011-09-30 Thread Teerawat@UBC
Hi, If you’d like to learn about how NS2 creates, forwards, and destroys packets, please read the following post: http://www.ns2ultimate.com/post/9620995373/packet-forwarding-mechanism-in-ns2-main-post Best Wishes Teerawat Issariyakul http://www.ns2ultimate.com/

[ns] [NS-ANS]Re: integration of program written in c++

2011-09-30 Thread Teerawat@UBC
Hi If you would like to add a new module into NS2, please read http://www.ns2ultimate.com/post/454001969/including-new-modules-into-ns-2 I hope this will help. Best Wishes, Teerawat Issariyakul http://www.ns2ultimate.com/ http://www.ece.ubc.ca/~teerawat http://www.t-issariyakul.blogspot.com

[ns] [ns-ans] Re: error statement

2011-09-28 Thread Teerawat@UBC
Try to change $ns runs to $ns run Best Wishes, Teerawat Issariyakul http://www.ns2ultimate.com/ http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417 http://twitter.com/T_Bear http://www.t-issariyakul.blogspot.com http://www.ece.ubc.ca/~teerawat On Sep 29, 2011, at 4:19 AM,

[ns] [NS-ANS] Re: [NS-ANS] counting control packet in trace file

2011-09-09 Thread Teerawat@UBC
Hi, If you are interested in learning how tracing works in NS2, please read http://www.ns2ultimate.com/post/3995318343/post-processing-ns2-result-using-ns2-trace-main-post The above posts are based on the normal trace. If you are interested in wireless trace you might have to modify it a

[ns] [NS-ANS] Re: new object in ns2

2011-09-05 Thread Teerawat@UBC
Hi If you would like to add a new module into NS2, please read http://www.ns2ultimate.com/post/454001969/including-new-modules-into-ns-2 I hope this will help. Best Wishes, Teerawat Issariyakul http://www.ns2ultimate.com/ http://www.ece.ubc.ca/~teerawat http://www.t-issariyakul.blogspot.com

[ns] [NS-ANS] Re: NAM : NO DISPLAY NAME AND NO $DISPLAY ENVIRONMENT VARIABLE

2011-09-02 Thread Teerawat@UBC
Hi, You have to install NAM (Network Animator). To test whether, NAM was installed correctly. Please try to type nam at the command prompt. Best Wishes, Teerawat Issariyakul http://www.ns2ultimate.com/ http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417 http://twitter.com/T_Bear

Re: [ns] NS-Users Q-process Guideline

2011-08-16 Thread Teerawat@UBC
Dear Tom, Thanks for your comments. It is quite hard to find a moderator, indeed. It would be hard to do so. I'm not quite sure how to fix the problem, except for putting [NS-ANS] tag on the subject. A lot of mail clients can do the filter and shows on the answer. In fact, what I have done

Re: [ns] NS-Users Q-process Guideline

2011-08-14 Thread Teerawat@UBC
Dear Mariam, Thanks a lot for the conclusion. It looks good to me. But we still have one problem. Where are we going to put this guideline? I mean, most of the new comers would come directly to this page, not reading this guideline. We need a place where we can point them to read this

Re: [ns] [VIP] Discussion

2011-08-13 Thread Teerawat@UBC
, Teerawat@UBC teera...@ece.ubc.ca wrote: Hi, I think what Mariam means is to post the solved problem. Although, people use REPLY ALL to post the answer. We don't know whether the answer really solve the solution. As for me, most of the time, I only give a partial answer, leaving the askers

Re: [ns] awk fille for calculating pdr, avg end to end delay, and throughput

2011-08-03 Thread Teerawat@UBC
HI Sumit, If you are interested in learning how tracing works in NS2, please read http://www.ns2ultimate.com/post/3995318343/post-processing-ns2-result-using-ns2-trace-main-post The above posts are based on the normal trace. If you are interested in wireless trace you might have to modify it

[ns] [NS-ANS] Re: Please help me with this error

2011-06-03 Thread Teerawat@UBC
Hi, You might want to check out the reasons behind Tcl error messages from the link below: - General error message interpretation: http://www.ns2ultimate.com/post/419191200/tcl-error-message-in-ns2 To fix the error, please read the following posts: - Invalid command name:

Re: [ns] Sending RREQ periodically, any suggestion?

2011-05-25 Thread Teerawat@UBC
Hi Mohamed, You need to have the list of destination address and you can call the following function for all your destination sendRequest(dst) Do it when the timer expires. Best Wishes Teerawat Issariyakul http://www.ns2ultimate.com/

[ns] [NS-ANS] Re: [NS2]What is meaning in Ns-default.tcl (tcl\lib):LL set delay_

2011-05-25 Thread Teerawat@UBC
Hi Bruce, This statement set the default value of the class variable 'delay_' all 'LL' objects to be 25e-6 s. Best Wishes Teerawat Issariyakul http://www.ns2ultimate.com/ http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417 http://twitter.com/T_Bear

[ns] [NS-ANS] Re: Needed awk script for throughput in wireless scenario

2011-05-10 Thread Teerawat@UBC
Hi, If you are interested in learning how tracing works in NS2, please read http://www.ns2ultimate.com/post/3995318343/post-processing-ns2-result-using-ns2-trace-main-post The above posts are based on the normal trace. If you are interested in wireless trace you might have to modify it a

Re: [ns] Problem in GPSR implementation

2011-05-10 Thread Teerawat@UBC
Hi, A lot of people are having the same problem. I am curious why. My guess is just because the GPSR are not incorporated to NS2 properly. These links might help: http://www.ns2ultimate.com/post/454001969/including-new-modules-into-ns-2

Re: [ns] error in arq insertion in tcl code

2011-05-08 Thread Teerawat@UBC
Hi Bibhu, Link-loss model is used in a wired network. In wireless networks, you will have to use other approach (e.g., propagation model) to impose error on the link. Mobile node has different architecture than regular nodes. The ARQ module would still work. But you will have to find another

[ns] [NS-ANS]Re: instant awk script old trace format

2011-05-08 Thread Teerawat@UBC
Hi, If you are interested in learning how tracing works in NS2, please read http://www.ns2ultimate.com/post/3995318343/post-processing-ns2-result-using-ns2-trace-main-post The above posts are based on the normal trace. If you are interested in wireless trace you might have to modify it a

[ns] [NS-ANS]Re: Scheduler::instance().clock() in ns.2.30

2011-05-08 Thread Teerawat@UBC
Hi Molly, This C++ statement Scheduler::instance().clock() returns the simulation time, i..e., the one you see in the trace file. Best Wishes, Teerawat Issariyakul http://www.ns2ultimate.com/ http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417 http://twitter.com/T_Bear

Re: [ns] TCL Build Errors

2011-04-23 Thread Teerawat@UBC
Hi I did some test on NS2 installation. Here is the result http://www.ns2ultimate.com/post/439346614/working-combination-ns-2-34-ubuntu-8-04-and-perhaps There is a problem with the current linux-like distribution. Here is the solution

Re: [ns] Pls its urgent

2011-04-13 Thread Teerawat@UBC
Hi, You might want to check out the reasons behind Tcl error messages from the link below: - General error message interpretation: http://www.ns2ultimate.com/post/419191200/tcl-error-message-in-ns2 To fix the error, please read the following posts: - Invalid command name:

[ns] [NS-ANS] Re: help regarding ARQ

2011-04-11 Thread Teerawat@UBC
HI, If you are interested in implementing ARQ in NS2, please read http://www.ns2ultimate.com/post/1539258323/arq-module-program-update Best Wishes, Teerawat Issariyakul http://www.ns2ultimate.com/ http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417 http://twitter.com/T_Bear

[ns] [NS-ANS] Re: AWK script for extracting remaining energy of a node

2011-04-10 Thread Teerawat@UBC
Hi, I don't have specific answer to your question. But If you are interested in learning how tracing works in NS2, please read http://www.ns2ultimate.com/post/3995318343/post-processing-ns2-result-using-ns2-trace-main-post Best Wishes, Teerawat Issariyakul http://www.ns2ultimate.com/

Re: [ns] Anyone who can help me with an awk file to view Throughput with Xgraph for smac simulation

2011-04-10 Thread Teerawat@UBC
Hi Mossy, If you are interested in learning how tracing works in NS2, please read http://www.ns2ultimate.com/post/3995318343/post-processing-ns2-result-using-ns2-trace-main-post The above posts are based on the normal trace. If you are interested in wireless trace you might have to modify it

Re: [ns] Problem installation of NS2.34 in UBUNTU

2011-04-10 Thread Teerawat@UBC
Hi I did some test on NS2 installation. Here is the result http://www.ns2ultimate.com/post/439346614/working-combination-ns-2-34-ubuntu-8-04-and-perhaps There is a problem with the current linux-like distribution. Here is the solution

[ns] [NS-ANS] Re: Algorithm in NS2

2011-04-10 Thread Teerawat@UBC
Hi, As a rule of thumbs, most computation should be done in C++ and most configuration should be done in Tcl. If you would like to learn about how C++ and OTcl are bound please read the series of blog posts indicated below:

[ns] [NS-ANS] Re: Add the GPSR protocol in NS : Can't declare AGENT/GPSR

2011-04-07 Thread Teerawat@UBC
Hi, If you would like to add a new module into NS2, please read http://www.ns2ultimate.com/post/454001969/including-new-modules-into-ns-2 If you would like to add a new C++ class, please read the series of blog posts indicated below:

Re: [ns] Drop packet!!!!!

2011-03-17 Thread Teerawat@UBC
Hi Mohammed, That's correct. Only the object whose class derives from class Connector can call the function drop(p). However, there are a lot of class like this, e.g., queues, agents. Best Regards, Teerawat Issariyakul http://www.ns2ultimate.com/

[ns] [NS ANS] Re: Send and Receive in NS2

2011-03-17 Thread Teerawat@UBC
Hi Mohammed, I suggest you to read the following blog post to understand how TCP sends packets. http://www.ns2ultimate.com/post/1255914139/tcp-transmitter-in-a-nutshell Best Regards, Teerawat Issariyakul http://www.ns2ultimate.com/

[ns] [NS-ANS] Re: Ns-users Digest, Vol 87, Issue 6

2011-03-07 Thread Teerawat@UBC
Perhaps, one is a regular trace file and another is a nam trace file. Best Wishes, Teerawat Issariyakul http://www.ns2ultimate.com/ http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417 http://twitter.com/T_Bear http://www.t-issariyakul.blogspot.com http://www.ece.ubc.ca/~teerawat

[ns] [NS-ANS] Re: awk file to calculate throughput, routing overhead, delay

2011-03-07 Thread Teerawat@UBC
Hi, If you’d like to learn AWK for NS2 post simulation processing, please read the following series: Example AWK file to compute link throughput is given below: http://www.ns2ultimate.com/post/3442965938/post-processing-ns2-result-using-ns2-trace-ex1-link Best Wishes, Teerawat Issariyakul

[ns] [NS-ANS] Re: end to end delay

2011-03-07 Thread Teerawat@UBC
Hi Subha, If you’d like to learn how to use AWK for NS2 post simulation processing, please read the following series. Example AWK programs are given below: - Link throughput: http://www.ns2ultimate.com/post/3442965938/post-processing-ns2-result-using-ns2-trace-ex1-link - End-to-end

[ns] [NS-ANS]Re: installation info

2011-03-04 Thread Teerawat@UBC
Hi I did some test on NS2 installation few months ago. Here is the result http://www.ns2ultimate.com/post/439346614/working-combination-ns-2-34-ubuntu-8-04-and-perhaps There is a problem with the current linux-like distribution. Here is the solution

[ns] [NS-ANS] Re: installation problrm

2011-02-24 Thread Teerawat@UBC
Hi I did some test on NS2 installation few months ago. Here is the result http://www.ns2ultimate.com/post/439346614/working-combination-ns-2-34-ubuntu-8-04-and-perhaps There is a problem with the current linux-like distribution. Here is the solution

Re: [ns] Error in NS2.28

2011-02-24 Thread Teerawat@UBC
Hi If you would like to add a new module into NS2, please read http://www.ns2ultimate.com/post/454001969/including-new-modules-into-ns-2 I hope this will help. Best Wishes, Teerawat Issariyakul http://www.ns2ultimate.com/ http://www.ece.ubc.ca/~teerawat http://www.t-issariyakul.blogspot.com

[ns] [NS-ANS] Re: How do I calculate the node utilization?

2011-02-22 Thread Teerawat@UBC
Hi Ahmed, In NS2, things happen very briefly in node. If you are working in a wired network, things happens in Simple link. For example, the queue is not associated with nodes (as in the physical world), but with the link. So you can't really find the utilization of the node. But if you

Re: [ns] Why do we have this group?

2011-02-21 Thread Teerawat@UBC
From: Teerawat@UBC teera...@ece.ubc.ca To: anand waytoan...@gmail.com Cc: ns-users@ISI.EDU Sent: Sun, February 20, 2011 9:23:02 PM Subject: Re: [ns] Why do we have this group? Hi, I answer to people in this group regularly (as much as I can

Re: [ns] Why do we have this group?

2011-02-21 Thread Teerawat@UBC
to add [ANS:Install:NS] for replay to problem of installation [ANS:MAC:NS] for mac questions and so on ... if I am not interested to reply or read to one category I will just have to delet them easily by creating folder. Best, Hadi Le 2/21/2011 4:59 PM, Teerawat@UBC a écrit : Hi

Re: [ns] Why do we have this group?

2011-02-20 Thread Teerawat@UBC
Hi, I answer to people in this group regularly (as much as I can). But usually, I just do it to avoid others who have to receive the answers which are relevant to their interest. There is no guideline on the use of this mailing list. If there is one and it says that most (if not all)

Re: [ns] TCP send and receive?

2011-02-16 Thread Teerawat@UBC
Hi, I blogged about TCP transmission in a nutshell below: http://www.ns2ultimate.com/post/1255914139/tcp-transmitter-in-a-nutshell This might help you get started. Best Regards, Teerawat Issariyakul http://www.ns2ultimate.com/ http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417

Re: [ns] ARQ implementation in ns 2

2011-02-15 Thread Teerawat@UBC
If you are interested in implementing ARQ in NS2, please read http://www.ns2ultimate.com/post/1539258323/arq-module-program-update Best Wishes, Teerawat Issariyakul http://www.ns2ultimate.com/ http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417 http://twitter.com/T_Bear

Re: [ns] Tcl::evalf(const char* fmt, ....) definition

2011-02-14 Thread Teerawat@UBC
Hi, This blog post might help. http://www.ns2ultimate.com/post/1035505402/c-and-otcl-linkage-eval-invoking-otcl-statements Best Wishes, Teerawat Issariyakul http://www.ns2ultimate.com/ http://www.ece.ubc.ca/~teerawat http://www.t-issariyakul.blogspot.com

Re: [ns] ARQ implementation

2011-02-08 Thread Teerawat@UBC
Hi, If you'd like to implement ARQ, please read http://www.ns2ultimate.com/post/1539258323/arq-module-program-update Best Wishes Teerawat Issariyakul http://www.ns2ultimate.com/ http://www.ece.ubc.ca/~teerawat http://www.t-issariyakul.blogspot.com

Re: [ns] Packets in link's Queue

2011-01-31 Thread Teerawat@UBC
HI, NS2 implements buffering in link, not in node. This is to model the link with large bandwidth-delay product. For example, consider a link with 100 Mbps link and 1 s propagation delay, and packets whose size is 1 Mbits. Then this link can stores upto 100 packets at any instance. Best