[ns] about AODV
hello: in aodv protocol, nodes periodically broadcast HELLO messages, i want to use this mechanism to caculate the node's neighbor change ration. How can i do this. thank you very much.
Re: [ns] ns-2 simulation verification
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 there any typical Scenario to use for testing? Thanks in advance Ghada
Re: [ns] about AODV
Hi, To broadcast Hello messages periodically, you should comment the following two lines in aodv.cc 00092 #ifndef AODV_LINK_LAYER_DETECTION 00095 #endif // LINK LAYER DETECTION and then do make make clean sudo make install and you will see hello packets in your trace file. Feel free to contact me Regards Mubashir Husain Rehmani 2008/10/28 胡杰 [EMAIL PROTECTED] hello: in aodv protocol, nodes periodically broadcast HELLO messages, i want to use this mechanism to caculate the node's neighbor change ration. How can i do this. thank you very much. -- Mubashir Husain Rehmani Mobile : 00 33 (0)6 32 00 89 35
Re: [ns] What is Packet Interval !!
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, 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/~teerawat/NS2.htmhttp://www.ece.ubc.ca/%7Eteerawat/NS2.htm The following might be useful to you: You can see the default packet size in the file ns-default.tcl (chapter 3). The packet size is different from one protocol to another. For example, for TCP, Agent/TCP set packetSize_ 1000 The second part depends on what link layer you are using. In a wired network, the link layer delay is defined in a variable link_ of class SimpleLink (chapter 7). This variable is bound to C++ class LinkDelay. It schedule two events: 1) the packets leave one place, and 2) the packet arrive at another place. Class LinkDelay has variables bandwidth_ and delay_ (propagation delay). Based on these two variable as well as the packet size, you can compute the packet interval. Hope this would be helpful. Best, Teerawat On 10/27/2008, Mathiew Moussa [EMAIL PROTECTED] wrote: Hi Jianliang, Thanks for the prompt reply, i appreciate it. I was wondering .. ok i'm in the ns-default.tcl file ... but there's nothing called 'packet interval'. Does have a different name or terminology, where is it located in the file ? And what does it exactly 'packet interval' , is it like TTL ? and about adding it to the MY tcl as an alternative to the above, can you give me an example or how to add it. Excuse me but I'm new at NS2 and details are important :) Thanks Alot. Mathiew Quoting J GAO/Jianliang GAO [EMAIL PROTECTED]: Hi Mathiew, You can change Packet Interval value in the file ns-default.tcl in folder ns-2.xx\tcl\lib. However, it is not so convenient to change the value of interval by modifying ns-default.tcl every time you test your code in different interval time. There is an alternative way to change the value of interval. You can change the value in your own .tcl code in the corresponding part of code of traffic you use. Obviously, this way facilitates your test. To find out what exact reason causes the error, using ddd or gdb to debug and track the code is very helpful. Regards, J GAO/Jianliang GAO 2008-10-27 åä»¶äººï¼ Mathiew Moussa åéæ¶é´ï¼ 2008-10-27 16:34:13 æ¶ä»¶äººï¼ ns-users@ISI.EDU æéï¼ ä¸»é¢ï¼ [ns] What is Packet Interval !! Hi All ns-users, Does anyone know what Packet Interval in NS2 is and WHERE can when change it. you see im using the SMAC and it was giving me an error Couldn't Schedule Timer after i ran my TCL script .. I got an answer from one of the guys that it might possibly have to do with the packet interval. Thanks in Advance. Mathiew
Re: [ns] Problems with FEC, Poisson and Errmodel
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 useful: http://www.ece.ubc.ca/~teerawat/NS2.htmhttp://www.ece.ubc.ca/%7Eteerawat/NS2.htm Here is the details: (1) how to apply the errmodel to the incoming link with a random loss probability whose value is r; NS2 provides several built-in error model. If you are looking at a random (non-correlated) loss, you may look at class ErrorModel in file ~ns/queue/errmodel.cc,h (Chapter 12). Here you can simply specify a error probability and insert the error module into NS2. You will need to know the basic of NS2 to configure and insert such the error model. (2) how to implement the arrival process from the source is the Poisson with rate ¦Ë; One of the easiest ways to generate a Poisson traffic is to create arrivals whose inter-arrival time is exponentially distributed. NS2 provides built-in module to create exponentially distributed samples. You may look at class ExponentialRandomVariable in file ~ns/tools/ranvar.h,cc (chapter 12) for this purpose. Alternatively, you may see class Application/Traffic/Exponential in file ~ns/tools/expoo.cc for example implementation. (3) how to add FEC to the model I am a NS-begniner ,can anyone give some help ,thank you very much ! Well, FEC can be integrated into a random error. If you codes can correct at most n out of k bits. Then you can find a probability of having more than n bit error in a packet, and use that as an error probability. BTW, NS2 does have FEC module. You may refer to Chapter 12 on that regard. Best, Teerawat hello,all now,I am modelling random losses in the incoming link (uplink) and congestion losses at node, I consider an M/M/1 queue with a finite buffer of size K,and I assume that losses can caused either by a buffer overflow or randomly with probability r in the incoming link .The arrival process from the source is assumed to be Poisson with rate ¦Ë and the service times of packets is exponentially distributed with rate ¦Ì.My scene for the model is as follows: I use three mobile nodes,node(0),node(1) and node(2). node(1) forwards the packets from node(0) to node(2).and now I have two problems: (1) how to apply the errmodel to the incoming link with a random loss probability whose value is r; (2) how to implement the arrival process from the source is the Poisson with rate ¦Ë; (3) how to add FEC to the model I am a NS-begniner ,can anyone give some help ,thank you very much !
[ns] problem with installation of ns2.33 on redhat liux
No rule to make target 'VERSION' needed by 'gen/version.c'. stop. ns make failed! please help me, i need the ns to do my thesis work, best regards Anas Explore the seven wonders of the world Learn more!
[ns] Rv: Set energy for a node
Hello I have a question. I need to set the energy for a specific node in a specific time. for example $ns_ at time_x $node_(32) energy=10 How can id do it? Thank you
[ns] Set energy for a node
Hello I have a question. I need to set the energy for a specific node in a specific time. for example $ns_ at time_x $node_(32) energy=10 How can id do it? Thank you
[ns] Generating packets on queue events
Hi everyone, I am thinking of generating packets on certain queue events. The packets would be: 1. generated by the link layer (in real life, but not necessarily in ns-2, an approximation would do) 2. processed by the link layer on the receiving end, and acted upon I am thinking of this as one possible implementation of a project I am trying to do, though I am looking at other approaches too. (Such as using global variables in conjunction for timers: where I have a problem of waking up intervals right now).
Re: [ns] Generating packets on queue events
It seems I pasted incompletely, sorry about that: On Tue, Oct 28, 2008 at 12:38 PM, Prajjwal Devkota [EMAIL PROTECTED]wrote: Hi everyone, I am thinking of generating packets on certain queue events. The packets would be: 1. generated by the link layer (in real life, but not necessarily in ns-2, an approximation would do) 2. processed by the link layer on the receiving end, and acted upon I am thinking of this as one possible implementation of a project I am trying to do, though I am looking at other approaches too. (Such as using global variables in conjunction for timers: where I have a problem of waking up intervals right now). Could anyone suggest any good pointers to getting started with packet generation and handling (without creating an agent would be nice). As to the approach I have tried using global variables, my only problem seems to be of resuming the queue on time: I am thinking of using a wakeup timer every given interval, but is there a better way than that? Thank you for your help, Prajjwal
[ns] what's appen when you type $ns node
hi @ all, i'm learning to use ns-2 and i need to understand as well as possible how a normal wired node works. i've already read the manual section about nodes but when i'm trying to analize the Simulator instproc node i haven't understood how the node can be created, what is the node_factory_ and then i don't know how to ad another object between the node entry and the classifier thaks in advance Davide
Re: [ns] what's appen when you type $ns node
Hi Davide Basically in ns2, nodes are objects that you create through tcl script. You can refer the file Node.cc http://www-rp.lip6.fr/ns-doc/ns226-doc/html/node_8cc-source.htm When you declare a node in ns2 (tcl script), then each node will either go to the Command function of Node.cc or Mobile Node.cc and then requested function is called on that node. Regards Mubashir Husain Rehmani 2008/10/28 Davide [EMAIL PROTECTED] hi @ all, i'm learning to use ns-2 and i need to understand as well as possible how a normal wired node works. i've already read the manual section about nodes but when i'm trying to analize the Simulator instproc node i haven't understood how the node can be created, what is the node_factory_ and then i don't know how to ad another object between the node entry and the classifier thaks in advance Davide -- Mubashir Husain Rehmani Mobile : 00 33 (0)6 32 00 89 35