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
,
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 12/12/2010, El hadi Cherkaoui e_cherka...@yahoo.fr wrote:
Dear all ,
Please ca n
Hi Rob,
You can use packet classifiers in NS2. Please go through the following
slides for the details.
http://www.ns2ultimate.com/post/513029699/classifiers-a-multi-target-packet-forwarder
Best Wishes,
Teerawat Issariyakul
http://www.ns2ultimate.com/
http://www.ece.ubc.ca/~teerawat
http
, before publishing it online.
Any comment would be appreciated.
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
http://www.ece.ubc.ca/~teerawat
-and-otcl-classes
Best Wishes,
Teerawat Issariyakul
http://www.ns2ultimate.com/
http://www.ece.ubc.ca/~teerawat
http://www.t-issariyakul.blogspot.com
http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417
http://twitter.com/T_Bear
On 8/24/2010, pedro chaparro pdr...@gmail.com wrote:
*hi
.
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 8/15/2010, Ghassan Akrem ghassanak...@yahoo.com wrote:
Hi all,
I
,
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 8/12/2010, sajad m sajadm1...@yahoo.com wrote:
I'm trying to test my new
/441093095/ns-2-35-works-on-cygwin
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
http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417
http://twitter.com/T_Bear
On 7/30/2010, mobi
,
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 7/8/2010, hend baklouti hend.baklo...@gmail.com wrote:
hello,
i'm a beginner in ns2
/ns-2-35-works-on-cygwin
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
http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417
http://twitter.com/T_Bear
On 7/11/2010, ikenna ajere
like to learn how to read OTcl error message, please read
http://www.ns2ultimate.com/post/419191200/tcl-error-message-in-ns2
Best Regards,
Teerawat Issariyakul
http://www.ns2ultimate.com/
http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417
http://twitter.com/T_Bear
http://www.t
Hi Pedro,
TcpAgent uses function
send(p,h)
from within function TCPAgent::output(int seqno, int reason)
rather than target_- recv(p,h)
Best Regards,
Teerawat Issariyakul
http://www.ns2ultimate.com/
http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417
http://twitter.com/T_Bear
Hi,
NS2 is a single-thread program. It processes one thing at the time. This
is also true for function recv() which process one packet at a time.
Best Regards,
Teerawat Issariyakul
http://www.ns2ultimate.com/
http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417
http://twitter.com
Hi Pedro,
Perhaps, you might want to read the following post about no-slot error:
http://www.ns2ultimate.com/post/520626807/classifier-no-slot-error
Best Regards,
Teerawat Issariyakul
http://www.ns2ultimate.com/
http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417
http
Hi Manoj,
You might want to read the following blog post. I just put it up today.
http://www.ns2ultimate.com/post/550010284/introducing-randomness-into-ns2
Best Regards,
Teerawat Issariyakul
http://www.ns2ultimate.com/
http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417
http
Hi Jin,
Maybe you want to check out this page
http://nsnam.isi.edu/nsnam/index.php/NS-2_Trace_Formats
Best Regards,
Teerawat Issariyakul
http://www.ns2ultimate.com/
http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417
http://twitter.com/T_Bear
http://www.t
/441093095/ns-2-35-works-on-cygwin
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
http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417
http://twitter.com/T_Bear
On 4/15/2010, umang
Hello Meriem,
I just put up a no-slot error on the following link.
http://www.ns2ultimate.com/post/520626807/classifier-no-slot-error
It might solve your problem.
Best Regards,
Teerawat Issariyakul
http://www.ns2ultimate.com/
http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417
Hi,
If you have a new module you would like to add to NS2, please go to
http://www.ns2ultimate.com/post/454001969/including-new-modules-into-ns-2
I hope it will help.
Best Regards,
Teerawat Issariyakul
http://www.ns2ultimate.com/
http://www.facebook.com/pages/Teerawat-Issariyakul
://www.ns2ultimate.com/post/419191200/tcl-error-message-in-ns2
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
http://www.ece.ubc.ca/~teerawat
On 4/13/2010
HI Learner,
Instproc Simulator::node is just a way to create a basic node. If you
want a fancy node of your own, you can define another instproc
Simulator::my_node. At the Tcl simulation script, you can do something
like
set mynode [$ns my_node]
Best Regards,
Teerawat Issariyakul
http
/441093095/ns-2-35-works-on-cygwin
I get ns-2.34 working on Ubuntu 8.04. But I'm not sure about ns-2.29. 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
http://www.facebook.com/pages/Teerawat
Hi Krishna,
I would use single null agent for the simulation. Then I would go to
modify the null agent to count packet every time it receives a packet.
At the end of simulation, have it print out all received packets.
Best Wishes,
Teerawat Issariyakul
http://www.ns2ultimate.com/
http
Hi Emma,
You are using a new trace format. Please refer to
http://nsnam.isi.edu/nsnam/index.php/NS-2_Trace_Formats
for more information.
Best Regards,
Teerawat Issariyakul
http://www.ns2ultimate.com/
http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417
http://twitter.com/T_Bear
/441093095/ns-2-35-works-on-cygwin
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
http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417
http://twitter.com/T_Bear
On 4/12/2010, Sushma
Hi Nikitha,
I've never use XGraph. I only use Matlab.
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
http://www.ece.ubc.ca/~teerawat
On 4/10/2010
Hi Stalin,
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.
Hope this will help.
Best Regards,
Teerawat Issariyakul
http://www.ns2ultimate.com
HI Pedro,
There is only one role for ns-default.tcl: Setting the initial values for
OTcl variables which are bound to C++. There is no other roles for this
file.
Best Regards,
Teerawat Issariyakul
http://www.ns2ultimate.com/
http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417
http
Hi Sushma,
These two versions are quite outdated. The latest one is 2.35. I
installed in on Cygwin. It also works on Ubuntu as well. Here is the
instruction:
http://www.ns2ultimate.com/post/441093095/ns-2-35-works-on-cygwin
Best Regards,
Teerawat Issariyakul
http://www.ns2ultimate.com/
http
Hi Umang,
I find the following AWK website pretty useful. You might want to check
it out.
http://www.vectorsite.net/tsawk.html
Best Regards,
Teerawat Issariyakul
http://www.ns2ultimate.com/
http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417
http://twitter.com/T_Bear
http://www.t
-and-perhaps
What you can do is to use NS-2.35 which fixed the gcc problem. Please
find the instruction here:
http://www.ns2ultimate.com/post/441093095/ns-2-35-works-on-cygwin
Best Regards,
Teerawat Issariyakul
http://www.ns2ultimate.com/
http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417
http
Hi the learner,
From what I can see, the error is due to class Agent/MyAgentOtcl is not
define. If you are not familiar with how to read Tcl error message,
please read
http://www.ns2ultimate.com/post/419191200/tcl-error-message-in-ns2
Best Wishes,
Teerawat Issariyakul
http
Hi Venkata,
If you are new to NS2, I suggest you to read the following blog.
http://www.ns2ultimate.com/post/434349586/for-ns2-newbies
It provides the fundamental steps in learning NS2.
Best Regards,
Teerawat Issariyakul
http://www.ns2ultimate.com/
http://www.facebook.com/pages/Teerawat
lecture notes and other resource at the following
website: http://www.ece.ubc.ca/~teerawat/NS2.htm
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
http
HI Meriem,
I posted the installation of NS-2.35 below:
http://www.ns2ultimate.com/post/441093095/ns-2-35-works-on-cygwin
You should move to the latest version of NS2.
Best Regards,
Teerawat Issariyakul
http://www.ns2ultimate.com/
http://www.facebook.com/pages/Teerawat-Issariyakul
Hi The Learner,
It is not a must. The header is just a place where you can store
information. It's fine to create your own type. What you have to do is
to tell the routing module to extract the address from your address
variable.
Best Wishes,
Teerawat Issariyakul
http://www.ns2ultimate.com
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 3/23/2010, The Learner deeptisabnani.i...@pec.edu.in wrote:
Hi.
Can there be multiple
Hi,
It's in the file ns-2.35/common/packet.h.
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
http://www.ece.ubc.ca/~teerawat
On 3/22/2010
Hi Pietro,
Here is my suggestion. If you are sure that tcp_bt.tcl is correct,
try to run the following
ns tcp_bt.tcl 1
ns tcp_bt.tcl 2
ns tcp_bt.tcl 3
...
Keep changing the last number until it hits 15.
Does it create any error?
Best Regards,
Teerawat Issariyakul
http://www.ns2ultimate.com
Hi Learner,
The default make file is Makefile with no extension. If you would
like to add a new protocol. You can find the instruction on the post
below:
http://www.ns2ultimate.com/post/454001969/including-new-modules-into-ns-2
Best Regards,
Teerawat Issariyakul
http://www.ns2ultimate.com
/419191200/tcl-error-message-in-ns2
Best Regards,
Teerawat Issariyakul
http://www.ns2ultimate.com/
http://www.ece.ubc.ca/~teerawat
http://www.t-issariyakul.blogspot.com
http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417
http://twitter.com/T_Bear
On 3/19/2010, hitesh sharma hitesh1987.i
-2
I hope it'll help.
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
http://www.ece.ubc.ca/~teerawat
On 3/15/2010, gayathri devi k.gayathrid
Hi Tom,
Thanks for your comments. I finally got to to work. NS-2.35 really works
under cygwin!! I also publish the step-by-step installation at the
following URL.
http://www.ns2ultimate.com/post/441093095/ns-2-35-works-on-cygwin
Best Regards,
Teerawat Issariyakul
http://www.ns2ultimate.com
set up a Ubuntu box inside a VMware running on
Windows 7. It's a bit of hassle but it works.
I will put the instruction up on my blog soon.
Best Regards,
Teerawat Issariyakul
http://www.ns2ultimate.com/
http://www.ece.ubc.ca/~teerawat
http://www.t-issariyakul.blogspot.com
On 3/8/2010, Sidney
.
Problem:
http://www.ns2ultimate.com/post/439346614/working-combination-ns-2-34-ubuntu-8-04-and-perhaps
Solution:
http://www.ns2ultimate.com/post/425358640/ns2-windows-7-and-cygwin-1-7-what-a-nightmare
Best Regards,
Teerawat Issariyakul
http://www.ns2ultimate.com/
http://www.facebook.com/pages/Teerawat
are now.
Please visit the blog post:
http://www.ns2ultimate.com/post/434349586/for-ns2-newbies
I hope it will help.
Best Regards,
Teerawat Issariyakul
http://www.ns2ultimate.com/
http://www.ece.ubc.ca/~teerawat
http://www.t-issariyakul.blogspot.com
On 3/6/2010, Teerawat Issariyakul teera
notes and other resource at the following
website: http://www.ece.ubc.ca/~teerawat/NS2.htm
Best Regards,
Teerawat Issariyakul
http://www.ns2ultimate.com/
http://www.ece.ubc.ca/~teerawat
http://www.t-issariyakul.blogspot.com
On 3/6/2010, The Learner deeptisabnani.i...@pec.edu.in wrote:
Hi all.
I
question: Where do you get Cygwin 1.5.25.
Thanks,
Best Regards,
Teerawat Issariyakul
http://www.ns2ultimate.com/
http://www.ece.ubc.ca/~teerawat
http://www.t-issariyakul.blogspot.com
On 3/5/2010, Lupe Krops lupe...@yahoo.com wrote:
Hi to everyone,
I'm trying to install ns-allinone-2.34 on win xp.
I
,
Teerawat Issariyakul
http://www.ece.ubc.ca/~teerawat
http://t-issariyakul.blogspot.com
http://ns2ultimate.tumblr.com/ (Beta)
Hello NS Users,
I installed ns2.34 allinone in ubuntu 9.10. And first time, I am trying to
add a new protocol in NS2.
I followed the steps at:
http://masimum.inf.um.es
Hi Abu,
By default, NS2 is deterministic. If you would like to run NS2 in
randomized scenarios, you need to execute
$defaultRNG seed n
prior to $ns run, where n is an integer. If n is zero, NS2 will
use the current time and counter as a seed for random number generator.
By default, n is set
Hi,
You may run make again from NS2 directory. It will create ns.exe.
Best Regards,
Teerawat
On 9/22/2009, Sula K ksul...@yahoo.com wrote:
Daer my brothers,
in ns 2 I did rm ns.exe instead rm nam.exe ,
after that when iexcuted the following problem come out on the screen?
Dear Vaishali,
NS2 has two versions of SACK: Agent/TCP/Sack1 and Agent/TCP/SackRH. Check
out the details in files ~ns/tcp/tcp-sack1.* and tcp-sack-rh.*
BR
Teerawat
On 6/4/2009, vaishali mandhare v_mandh...@yahoo.com wrote:
hello all,
I want to increase performance of tcp in maodv but I
will go regardless of transmission from other end..??
On Wed, May 27, 2009 at 9:56 PM, Teerawat Issariyakul
teera...@ece.ubc.cawrote:
Dear Vishal,
Only one sink is necessary. But you do need to connect both tcp agent to
the same sink by using $ns connect $tcp1 $sink and $ns connect
$tcp2 $sink
Dear Vishal,
Only one sink is necessary. But you do need to connect both tcp agent to
the same sink by using $ns connect $tcp1 $sink and $ns connect
$tcp2 $sink. The result would be the same as when you have two sinks.
Best,
Teerawat
On 5/27/2009, Vishal Agarwal vis...@gmail.com wrote:
Well, what you can do is to write a function, say lengthb()) in class
PacketQueue (there is a variable pq_ of class Queue). In this function,
determine the number of bytes of each packet from head_ to tail_ of a
PacketQueue object and returns the total number of bytes.
I posted how to determine
Hi Qweq,
I agree with you when you change C++ code you WILL NEED to recompile it.
But, Udit, if you want to change topology, you will not need to modify
C++ code. You can do it in Tcl. Defining your own topology in Tcl does
not require recompilation. In fact, there is no Tcl compiler. Tcl is
Dear Gisane,
NS2 defines applications in class Application (see ~ns/apps/app.h,cc).
The derive classes of application are for example TrafficGenerator
(e.g., CBR) or FTP. The application models user demand. Therefore it
need to send message to an agent saying that a use needs to send data.
Here
You need to install XServer. Go to website of Cygwin or google to find
out how.
Best,
Teerawat
On 3/15/2009, ali bala mrbala...@yahoo.com wrote:
hi
i had problem with nam (i worke with ns-2 under cygwin)
i did this steps for troubleshooting untill now :
while running simple example
and the logs would not be
consistent. I would recommend using the latter method
drop(p)
instead. This makes the logging consistent and almost all objects I've come
across where I would like to drop packets have been Connector objects.
Best regards,
Mats Folke
Teerawat Issariyakul wrote:
Hi
On 3/12/2009, Mayank Daga dagamay...@gmail.com wrote:
Hi,
Basically, you are accessing the slot -1 which does not exist. I posted
the details at
http://t-issariyakul.blogspot.com/2009/03/no-slot-error-for-classifiers.html
For more information about Classifiers, see Chapter 6 in the following
Hi,
Basically, you are accessing the slot -1 which does not exist. I posted
the details at
http://t-issariyakul.blogspot.com/2009/03/no-slot-error-for-classifiers.html
For more information about Classifiers, see Chapter 6 in the following
book from Springer:
T. Issaraiyakul and E. Hossain,
Dear Ioanis,
There is an example implementation of ARQ in the following book from
Springer useful.
T. Issariyakul and E. Hossain , Introduction to Network Simulator
NS2, Springer, Oct. 2008, ISBN: 978-0-387-71759-3
Dear LiViAn,
What do you mean by packet arrival rate? Arrive at the queue, or from the
source? Does it need to pertain to a certain TCP flow?
Best,
Teerawat
On 11/12/2008, LiViAn ZaH [EMAIL PROTECTED] wrote:
if (typeof YAHOO == undefined) {
var YAHOO = {};
}
YAHOO.Shortcuts =
Dear LiViAn,
What do you mean by packet arrival rate? Arrive at the queue, or from the
source? Does it need to pertain to a certain TCP flow?
Best,
Teerawat
On 11/12/2008, LiViAn ZaH [EMAIL PROTECTED] wrote:
if (typeof YAHOO == undefined) {
var YAHOO = {};
}
YAHOO.Shortcuts =
Dear Howard,
The easiest way to transmit from one NsObject (e.g. Nodes) to another is
through a (C++ and Tcl) Connector object. A connector has two pointers
to NsObjects: target_ and drop_. In the OTcl domain, it uses an OTcl
commands target and drop (followed by the name of the NsObject)
to
.
Howard
2008/11/11 Teerawat Issariyakul [EMAIL PROTECTED]
Dear Howard,
The easiest way to transmit from one NsObject (e.g. Nodes) to another is
through a (C++ and Tcl) Connector object. A connector has two pointers
to NsObjects: target_ and drop_. In the OTcl domain, it uses an OTcl
commands
You may look at the following book from Springer.
T. Issaraiyakul and E. Hossain, Introduction to Network Simulator
NS2, Springer 2008.
Here is the link:
http://www.springer.com/engineering/signals/book/978-0-387-71759-3
You might also find the following slide useful:
Packet construction is fairly subtle. In fact it consist of three phases:
1) At the compilation (when you type make):
In this phase, NS2 allocate the memory for all TclClasses.
PacketHeaderClass defined in file ~ns/common/packet.h,cc is one of them.
In the constructor of this class, the
Hi,
What UDP does is to create packets based on the application. Under your
scenario, Pareto tells UDP when to create a packet, and UDP will create
the packet accordingly. Therefore the rate of UDP is equal to the rate
at which the Pareto traffic is generated.
Best,
Teerawat
On 10/29/2008, J
Hi,
In NS2, generating a new packet is not that complicated. Class Packet has
a function alloc() which returns a pointer to the created packet. You
may find the detail in file ~/ns/common/packet.h.
At the receiving end, you may process the packet in the function
recv(p,h), where p is a pointer
Hi,
TCP itself cannot generated traffic. It receives a demand for data
transmission from a user. For example, you may use FTP and indicate that
a user has infinite demand to transfer data. TCP then takes that demand
and keep transmitting packets (practically forever).
If you want to create
Well,
Most of the time, you will have to see if the results make senses. But
for a good research, you will need analytical results as a comparison.
Regards,
Teerawat
On 10/27/2008, Ghada Khoriba [EMAIL PROTECTED] wrote:
Dear all,
How can I verify that the simulation results is right?
Is
Hi,
If you are talking about the time that you need to transmit packet, it is
actually defined by two things 1) packet size and 2) link
characteristics.
There is a detailed explanation of the packets and the scheduling (and
timers) in the book from Springer:
T. Issaraiyakul and E. Hossain,
Hi,
I guess you may look at chapters 11-12 the following book from Springer:
T. Issaraiyakul and E. Hossain, Introduction to Network Simulator
NS2, Springer 2008.
Here is the link:
http://www.springer.com/engineering/signals/book/978-0-387-71759-3
You might also find the following slide
Hi Basim,
The connection from a node to a TCP agent is fairly subtle. Basically, a
Node has an instvar dmux_ which is a classifier. It install a TcpAgent
and TcpSink in the slot of the classifier dmux_. This occurs when
you invoke commands like
$ns attach-agent $n0 $udp0
You may find the
Hi Sayed,
There must be something wrong in your program. NS2 has a bunch of
integrity checks. If there is something wrong (e.g., deallocating a
packet that does not exit), it will abort the program by invoking
function abort().
BR,
Teerawat
On 1/27/2008, Seyed Amin Hosseini Seno [EMAIL
Well,
It is if you just implement the codes like that. In most cases, however,
you will not instantiate an object from class Connector. You will
implement a class derived from class Connector. In the derived class,
you will also have to override function recv.
For example, you can invoke
Nabila,
To print the value, you may do something like
puts [$myagent set myvar_]
Cheers,
Teerawat
On 11/6/2007, Nabila khedimi [EMAIL PROTECTED] wrote:
This is what I did, we can set a value to the variable like you did but how to
get its value, for printing for example
To: [EMAIL
Say you want to include
myfile.cc
into NS2 code, you have to incorporate
myfile.o
in file Makefile
Open Makefile and look how an object file (myfile.o) can be incorporate
into the Makefile.
Finally, run make at ns2 directory, and you're done!!
Best,
Teerawat
On 9/13/2007, Kavuluri,
Hi,
A one-way TCP does not use field ackno_. Instead, the TCP Sink creates an
ACK packet by placing ACKNO in the field seqno_ of the ACK packet.
So you just need to print out field seqno_ but you have to make sure
that the corresponding packet is an ACK number.
Cheers,
Teerawat
On
Hi,
I think your problem may be caused by
1. You did not bind variable debug_ to the OTcl domain. Go to the Class
TrafficFile and see whether the variable debug_ is bound properly.
2. Class TrafficFile does not have the variable debug_ at all. In this
case, you have to declare it in Class
Hi,
There are several ways to compute throughput. If you use TCP, the
simplest way is to measure the sequence number and divide it by
simulation time. You add the following into your simulation script
...
$ns at 10.0 $ftp stop
$ns at 10.1 puts puts \The final TCP sequence number is [$tcp set
Hi
Does ns start at all? From my understanding, its like ns works properly.
But the variable ns is not used properly. Try to replace ns with
$ns if you ever define set ns [new Simulator]. The former one
is just a string while the latter one is the simulator object.
cheers,
Teerawat
On
Hi,
I suggest you to go thru NS2 FAQ http://www.isi.edu/nsnam/ns/ns-faq.html
and NS2 tutorial (e.g., http://www.isi.edu/nsnam/ns/tutorial/index.html)
before posting your question in the mailing list.
BR,
Teerawat
On 8/22/2007, wathig dawelbait [EMAIL PROTECTED] wrote:
hi I am new in using
Hi All,
I am just wondering about this mailing list. There are a lot of questions
in this list. Suppose that some of us know the solution and would like
to help out. Do we suppose to REPLY to the sender only or REPLY
ALL so that others who have similar problems will know the answer too ?
Hi All,
Is anybody familiar with a traffic trace? It is a traffic generator (of
class Application/Traffic/Trace). I would like to know how would I
create a traffic trace file to attach to the application.
Thanks a lot,
Teerawat
Class Agent/SP is not a built-in NS2 class. You have to create an access
to OTcl by using Tclclass. Then you will be able to access use it in
OTcl. for example,
static class TcpClass : public TclClass {
public:
TcpClass() : TclClass(Agent/TCP) {}
TclObject* create(int , const
At the end of the installation, there are three things you need to do
(shown on the screen). You have to set library variables and path into
your running environment.
BR,
Teerawat
On 8/1/2007, oscar andres [EMAIL PROTECTED] wrote:
I was successful in installation, but I can't run the
Dear Leonard,
$ns trace-all generally generates complete information in the trace file.
Unfortunately, you usually don't need most of it. A better way is not
to use it. If you are interested in for example if you are interested in
how seq. no. of TCP changes, you may use
$tcp trace t_seqno_
TCP does not have sending rate. It control transmission rate based on
window size. The initial window size is 1, and it is increases as ACK
packets are received. So you can't compute the sending rate in pkts/sec.
BR,
Teerawat
On 6/30/2007, Zahraa Taki Al-Lawati [EMAIL PROTECTED] wrote:
hi;
In my opinion, a beginner usually takes only few days to learn to use NS2
at TCL level. However, it will talk few months (or sometiem years) to
learn the structure of NS2 and how to modify it.
On 6/29/2007, salouhouni [EMAIL PROTECTED] wrote:
Hello everybody.I am a new user in NS2 and I
You have to declare your agent as a variable of another class. Initiate
the agent variable at the constructor of that class. Then you can call
public function of your Agent class through that variable.
See class Timer for example.
BR,
Teerawat
On 6/28/2007, Alexandre Malhão [EMAIL PROTECTED]
Hi,
I have a question in regards to function rtt_update of class TcpAgent.
Here is the code:
= BEGIN CODE =
void TcpAgent::rtt_update(double tao)
{
...
double sendtime = now - tao;
sendtime += boot_time_;
93 matches
Mail list logo