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
est 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 12/12/2010, "El hadi Cherkaoui" wrote:
>
>Dear all ,
>
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
-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" wrote:
>
uot;
}
Feel free to adjust it yourself.
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 Akre
/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
rror
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/12/2010, "sajad m" wrote:
>
>I'm trying to t
,
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" wrote:
>
>hello,
>i'm a begi
eue.
If you would 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
/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
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://twitt
Hi,
Usually, you don't need to know where the main() in C++ is. This is
because you start simulation in Tcl, not in C++. If you are curious, the
function main is located in the following file:
ns-2.35/ns_tclsh.cc
Best Wishes,
Teerawat Issariyakul
http://www.ns2ultimate.com/
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 Pedro,
You can use
$ns now
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 5/5/2010, "pedro chaparro&qu
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
/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/23/2010
/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, "
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
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
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/35
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
/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/Tee
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
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-issariyakul.blogspot.com
http://www.ece.ubc.ca/~teerawat
On
Hi Rasheed,
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
/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
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
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
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 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
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 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 Tim,
My installation is only about 1.7G. You might have to selected only
Cygwin package that you need. Do not install everything.
Best Regards,
Teerawat Issariyakul
http://www.ns2ultimate.com/
http://www.ece.ubc.ca/~teerawat
http://www.t-issariyakul.blogspot.com
http://www.facebook.com
4-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
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
h
so find 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.
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
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.
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" wrote:
>
>
>Hi.
>
>Can there be mult
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 Issari
e following blog post.
http://www.ns2ultimate.com/post/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:
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.ns2ul
ncluding-new-modules-into-ns-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, "
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
.
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
hat I 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/201
know where you 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
95
You may also find 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.ece.ubc.ca/~teerawat
http://www.t-issariyakul.blogspot.com
On 3/6/2010, "The Learner" wrote:
Here is my main 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" wrote:
>
>Hi to everyone,
>
>
>I'm trying t
http://www.ece.ubc.ca/~teerawat/NS2.htm
BR,
Best Regards,
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
Hi Abu,
By default, NS2 is deterministic. If you would like to run NS2 in
randomized scenarios, you need to execute
$defaultRNG seed
prior to "$ns run", where is an integer. If is zero, NS2 will
use the current time and counter as a seed for random number generator.
By default, is set to "
Hi,
You may run "make" again from NS2 directory. It will create ns.exe.
Best Regards,
Teerawat
On 9/22/2009, "Sula K" 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?
>
>u...@user-cfab0b1f5
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" wrote:
>
>hello all,
>I want to increase performance of tcp in maodv but I cant do, instead
Dear Rania,
These are basic Tcl language. You may have a look at the following books.
- T. Issaraiyakul and E. Hossain, "Introduction to Network Simulator
NS2", Springer 2008.
http://www.springer.com/engineering/signals/book/978-0-387-71759-3
- [C. Flynt, Tcl/Tk: A developer guide, Morgan Ka
packets from
>both the sources will go regardless of transmission from other end..??
>
>On Wed, May 27, 2009 at 9:56 PM, Teerawat Issariyakul
>wrote:
>
>>
>> Dear Vishal,
>>
>> Only one sink is necessary. But you do need to connect both tcp agent to
>> the
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" wrote:
>
>Hello users,
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
jus
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" 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 programs, I get error
The packet can be dropped due to several reasons such as packet
transmission error (even though the nodes are close), or buffer
overflow. I think you need to check whether the packets are dropped due
to buffer overflow.
Best,
Teerawat
On 3/14/2009, "Arslan Munir" wrote:
>
>Hi all,
>
>I have t
t disappear 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.
>
>Bes
Hi,
Suppose you have a pointer "p". You can drop the packet by executing
Packet::free(p)
Also the packet "*p" can be dropped from within the Connector object by
invoking function drop as follows:
drop(p);
Note that "drop(p)" is a function of class Connector, and therefore
must be i
On 3/12/2009, "Mayank Daga" 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
book from Springer:
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, "I
Dear Thanes,
You may find the answer about classifier at
http://t-issariyakul.blogspot.com/
For more information about Classifiers, see Chapter 6 in the following
book from Springer:
T. Issaraiyakul and E. Hossain, "Introduction to Network Simulator
NS2", Springer 2008.
http://www.springer.com
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
http://www.springer.com/engineering/signals/book/978-0-387-71759-3?detailsPag
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 =
But unfortunately in IFQ can't access routing
>object's functions.
>
>any way, thanks a lot of ur reply.
>
>Howard
>
>2008/11/11 Teerawat Issariyakul <[EMAIL PROTECTED]>
>
>>
>> Dear Howard,
>>
>> The easiest way to transmit from one N
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
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:
http://www.ece.ubc.ca/~
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 sizeof
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,
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 your
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,
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 use
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, "In
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
Dear Ying,
In fact, NS2 can transmit actual data. But NS2 does not usually transfer
the entire file because it does not have to. What NS2 does is to specify
the file size and simulation the time that the time that the entire file
is received (of course there are details that I omit to say here).
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 det
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 PROTE
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 functi
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: [E
Hi Nabila,
First of all, you need to bind your OTcl class Agent/MyAgentOtcl to, for
example, MyAgent. Secondly, suppose you need to access variable my_var_
of class MyAgent. You need to bind this variable to the OTcl domain.
This can be done in the constructor:
MyAgent:MyAgent()
{
bind("my_
Dear Jamal,
Trace is actually designed to track packet. It records the detail of
packets which pass through predefined checkpoints in a network.
Monitor is usually use to collect statistic. It consists of snoop queue
which is attached in front of a queue. Every time a packet pass through
a snoo
Hey
You have to include object files (*.o) for TCP westwood into Makefile and
run "make" again. Here is how you include it. In the Makefile, you
should see,
OBJ_STL = diffusion3/lib/nr/nr.o diffusion3/lib/dr.o \
diffusion3/filters/diffusion/one_phase_pull.o \
...
packmim
Perhaps you can show use Lines 247-253, for example. It will be easier to
analyze the problem. One more thing. Is the Makefile still running ok
when you remove your own object file?
BR,
Teerawat
On 9/29/2007, "Ghada Al-Mashaqbeh" <[EMAIL PROTECTED]> wrote:
>
>I did not forget it, but now the p
Segmentation fault is usually caused by programming error. For example,
you define an array
int x[10];
Then the statement
x[11] = 0;
would cause segmentation fault. you have to debug the program in order to
solve this.
Good Luck
Teerawat
On 9/30/2007, "Faraz Siddiqui" <[EMAIL PROTECTED]> wr
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, Mal
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 9/4/2007,
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 s
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 Traf
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 u
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 ?
C
1 - 100 of 108 matches
Mail list logo