Re: [ns] How to shut down a mobile node

2009-05-03 Thread realoneone
My protocol is not interested in the energy consumption, so I didn't check that. But according to the code in mobilenode.cc/command(), the tcl command off should turn off the energy consumption. 在2009-05-01 01:18:41,Ezequiel García elezegar...@yahoo.com.ar 写道: I have a question regarding 

[ns] Fw:Re: How to shut down a mobile node

2009-05-03 Thread realoneone
Hi oudidi, please check the following lines: inline void Mac802_11::transmit(Packet *p, double timeout) { tx_active_ = 1; int nid = netif_-node()-nodeid(); double now = Scheduler::instance().clock(); if (nid == my_nid now = my_time_start now my_time_end) { mhSend_.start(timeout); return; }

[ns] Re : Static Routing

2009-05-03 Thread Vibhu Gupta
Dear All, I have designed a Static Routing Agent in NS2. When i try to invoke the downstream object's recv() function with the statement target_-recv(p,(Handler*)0) it gives a segementation fault as the target_ variable is NULl.. Can anyone tell me how to initialize the target_ variable

[ns] Re : Static Routing

2009-05-03 Thread Vibhu Gupta
Dear All, I have designed a Static Routing Agent in NS2. When i try to invoke the downstream object's recv() function with the statement target_-recv(p,(Handler*)0) it gives a segementation fault as the target_ variable is NULl.. Can anyone tell me how to initialize the target_ variable

[ns] Need E-LiACR code for NS2

2009-05-03 Thread jeyapala nagasatish
Hi,   Need E-LiACR code for NS2...I am doing on dynamic address allocation, need code for linear address allocation for mobile ad hoc networks.   Thanks in advance. Now surf faster and smarter ! Check out the new Firefox 3 - Yahoo! Edition

[ns] How to understand aodv code?

2009-05-03 Thread Bringo Shawn
hello friends, I want to understand the code of aodv. Please give me any clues, hints, tips and tricks and/or explanations etc. Regards

[ns] SMAC packets not received

2009-05-03 Thread Arslan Munir
Hi all, I am using SMAC for wireless sensor networks in ns2. But in trace files it appears that packets are actually never received at sink node i.e. node for which I had set CBR flow. If I change SMAC from 802.11 everything works fine i.e. packets are received then. Does anybody know this

[ns] ARODV routing protocol

2009-05-03 Thread Nikheel Kumar
hello friends, friends in need ARODV routing protocol's tcl script. if u have please mail me that tcl script. thanks

[ns] NAM not working after ns-2.33 installation

2009-05-03 Thread Kanwal Gheek
I installed ns-2.33 and everything did go ok. But after installation though ns was working fine, nam wasn't working. When I ran nam it gave me the following error - $ nam: [code omitted because of length] : no event type or button # or keysym while executing bind Listbox MouseWheel { %W

[ns] Can NS-2 be used to transmit real video sequences?

2009-05-03 Thread galaxy-huang
hi everyone Recently,i am reading one book about streaming over the wireless network,today i come across such a sentence:as well as using real video sequences and transmitting them using an NS-2 simulator-based implementation of the 802.11a/b/g MAC standard. My question is:can NS-2 be used to