[ns] initialEnergy value
Well, I am running a simulation in which I wanted to obtain a real environment, thus I tried to calculate how many joules I have in a Duracell AA MN1500 battery. In the end I got 30779.754 (doubled the result as I use two batteries). So: 40 $ns node-config \ 41 -energyModel EnergyModel \ 42 -initialEnergy 30779.754 Ok, but first of all: I ain't sure about the reliability of this result, and second of all: After sending 2200 messages, each of them with a Pt_ that covers like 260m, my energy remaining is 30778.725489. After that I still would be able to send more ~30778*2200 msgs, what seems incredibly wrong. (To be more precise, these are the values of Pt_ and Pt_consume_: Pt_ = 3.16227e-3 Pt_consume_ = 76.2e-3) That way, I do not know whether my initialEnergy has a too high value due to incorrect math, or if there is something wrong with the energy consumption. Anyone know a reasonable value for initialEnergy, considering that I want to simulate two AA alkaline batteries? Or if there could be anything wrong in my energy consumption? Thanks in advance, -- Fernando Henrique Gielow - UFPR - NR2 Computer Science graduation student.
[ns] Xgraph Bandwidth? + ns 2 trace analyzer 0.3 installation ?
Hi Everyone! I wrote the code to see the graph of BW occupied by one of the nodes in the trace. Can I display the graphs of other parameters as well. For example if I wish to display the graph of beacon interval vs speed of mobile, what changes do I need to make. Can someone please guide me to the respective tutorial. I am trying to install trace analyzer 2009 on open suse. I have downloaded and extracted the files. What next? I mean what do I do to run the application. There is a file named Makefile but it is some piece of code. Please write back soon. Faraz
[ns] Defining transmission range of node?
Hi Everybody! Could any one tell me how to define the transmission range of an access point (AP) in ns-2.33. I want to restrict its signal from reaching the mobile nodes outside its coverage area. Please help me on this. Faraz
[ns] Accessing my agent from inside a timer
Well, to define a timer I used instructions: http://www.cubinlab.ee.unimelb.edu.au/~jrid/Docs/Manuel-NS2/node105.html like this: class MyTimer : public TimerHandler { public: MyTimer(MyAgentClass *a) : TimerHandler() { a_ = a; } virtual double expire(Event *e); protected: MyAgentClass *a_; }; Then define expire: MyTimer::expire(Event *e) { // do the work // return TIMER_HANDLED;// =\ do not reschedule timer // return delay;// =\ reschedule timer after delay } However, I want to change some variables of my Agent from inside my timer, and whenever I change them, this changes do not take effect outside the timer. For example, suppose I have a boolean variable called beTentativeHead in my agent, and before entering the timer::expire, it was false. If I try to set it true from inside timer::expire with : a_-beTentativeHead=true, it will remain true inside timer::expire, but if I try to access this variable inside my Agent, its value remains as the old false. Any idea of how should I proceed to solve this? I tried using a double pointer to my agent, even though I thought it was not necessary, and it did not work very well, anyway. Thanks in advance, -- Fernando Henrique Gielow - UFPR - NR2 Computer Science graduation student.
[ns] sleep and wake up nodes
Hello, Can you please tell me how to sleep and wake up a node from the tcl interface? Thank you. __ Ne pleurez pas si votre Webmail ferme ! Récupérez votre historique sur Yahoo! Mail ! http://fr.docs..yahoo.com/mail/transfert_mails.html
[ns] [bug] 802.11 xRetryLimit_ implementations incorrect
[Bug Report] - Category: Other Package: ns 2.33 OS:WindowsXP Environment Variables: LD_LIBRARY_PATH= TCL_LIBRARY= TK_LIBRARY= - Description: Description of Problem: The 802.11 implementations of ShortRetryLimit_ and LongRetryLimit_ are incorrect: if you set the ShortRetryLimit_ to 7, you would expect the STA to retry for 7 times (total number of transmissions of 8). However, ns-2.33 STA only retransmits 6 times (total number of transmissions of 7). The same happens to LongRetryLimit_. This doesn't conform to the IEEE 802.11 standard which specifies STA to give up when SLRC reaches aLongRetryLimit, or when SSRC reaches dot11ShortRetryLimit. In the case of ns-2.33, STA give up before reaching the RetryLimit! The problem is in mac-802_11.cc: Mac802_11::RetransmitRTS() {... if(ssrc_ = macmib_.getShortRetryLimit()) ...} Mac802_11::RetransmitDATA() {... if(*rcount = thresh) ...} Fix: The conditions should be instead of =, as follows: Mac802_11::RetransmitRTS() {... if(ssrc_ macmib_.getShortRetryLimit()) ...} Mac802_11::RetransmitDATA() {... if(*rcount thresh) ...} How Easily Reproducible: (e.g. every time, intermittent, once only, etc.) every time. Steps to Reproduce: (describe the minimal set of steps necessary to trigger the bug) 1. 2. 3. Actual Results: (describe what the application did after performing the above steps) Expected Results: (describe what the application should have done, were the bug not present) Additional Information: (the following infomation is helpful to debug: 1. simulation script, detailed output files, packet trace 2. patch file if you modify some source code 3. a backtrace from gdb if you get a segment fault If they are big files, PLEASE put them in your web space and include the URL here.)
[ns] Packet manipulation in the queue using ns2.33 on vista
Dear all, Ive just made some changes in the queue class within the Queue::recv(Packet* p, Handler*) function! 4 bytes are added to each packet in the queue bevor fowarding the packet to the target. The default packet size is 1000 bytes (set in the ns-default.tcl file). Compiling the simulator was successful but when running simulations I got a segmentation fault message! Do you think that the segmentation fault is due to the new size of the packets or is it something else? How would I be eventually able to fix that?! Many thanks in advance. Dan.
[ns] please how can i generate VBR (video) traffic in ns2
Dear all, please help me how can I generate a video traffic or VBR traffic and how can I simulate H.264 Thank you in advance Anas KFUPM
[ns] How to determine the link number for wireless networks?
Hello Everyone, I am able to calculate the number of drop packets through C++ code. Everything is working fine except that I cannot determine that the number of drop packets are related to which Link. I have seven links and the number of drop packets on every link is different. I am getting different values but cannot identify that to which link this value belongs to. Is there any way by which we can print the Link number (e.g.: Link 2 - 3) through C++ code?? Thank you so much Sincerely, Mohit P. Tahiliani