Re: [ns] about command $ns rtmodel-at 1.0 down $n(1) $n(2)

2011-05-07 Thread fivos
Go to tcl/lib/ns-link.tcl and try renaming lif to if and recompile ns . it should work then. Iif ![$var info class Node] { ;# $op on most everything - if ![$var info class Node] { ;# $op on most everything cheers 2011/5/6 ma-haiyuan ma-haiy...@163.com: Hello everyone! When I do the

[ns] [Wireless - AODV] HOWTO stop simulation right after a node dies?

2011-05-07 Thread Clederson
Hello, I'd like to know how could I stop the simulation in the moment a mobile node have energy = 0. In tcl scripts I've only seen people stopping the simulation by time. Is it possible to be done? Thank you in advance. -- Clederson

Re: [ns] [Wireless - AODV] HOWTO stop simulation right after a node dies?

2011-05-07 Thread fivos
You mean stopping completely or pausing and then resuming the simulation? I am positive the first is possible with some slight modifications while the second is doubtful or at least very hard to accomplish. Maybe someone else can shed some light on the second possibility. cheers, Fivos On Sat,

Re: [ns] [Wireless - AODV] HOWTO stop simulation right after a node dies?

2011-05-07 Thread Clederson
In my case it'd be stopping completely the simulation. I've been trying to abort the execution in the Mobilenode::log_energy method. I'm doing something like this: void MobileNode::log_energy(int flag) { if (!log_target_) return; Scheduler s = Scheduler::instance(); if (flag) { //

[ns] Recompilation of code if v change the backend code

2011-05-07 Thread rajeev joshi
Hello, I'm working on enhancing the ieee 802.15.4(ZigBee) standard. If I change the back end code of ns2 do I need to recompile the code? if yes can anyone explain how . please help i'm in critical stage. -- Jeeva Rajeeva

Re: [ns] [Wireless - AODV] HOWTO stop simulation right after a node dies?

2011-05-07 Thread fivos
try : return (TCL_ERROR); instead of: exit(1); On Sat, May 7, 2011 at 4:53 PM, Clederson clederso...@gmail.com wrote: In my case it'd be stopping completely the simulation. I've been trying to abort the execution in the Mobilenode::log_energy method. I'm doing something like this: void

Re: [ns] [Wireless - AODV] HOWTO stop simulation right after a node dies?

2011-05-07 Thread fivos
My previous answer is wrong i think but you get the point. You need to return (TCL_ERROR) at the c++ function that was called by TCL. You can then catch the error at your tcl script and do what you want when that error is raised. On Sat, May 7, 2011 at 5:40 PM, fivos fivos@gmail.com wrote:

Re: [ns] [Urgent] Error in multiple interface nodes network simulation

2011-05-07 Thread fivos
Dear Ahmed i remember reading a similar post in the mailing list that provides the answer, you should find it if you search thoroughly. cheers , Fivos On Thu, May 5, 2011 at 6:02 PM, Ejaz Ahmed Awan ime...@gmail.com wrote:  Dear All,  I have ported the PUMA(multicast routing protocol) code

[ns] Help simulation in ns2 !

2011-05-07 Thread tran hung
Hi friends, I am implementing a buffering scheme for Mobile IP. I want to buffer incoming packets destinated to the mobile host at a Gateway Foreign Agent while the mobile host is making handoff. After the mobile host has moved the new point of attachment (i.e., a regional FA), the buffered

[ns] implement IPv6 in NS 2.34

2011-05-07 Thread Hafedh Guigua
I am Guiga Hafedh, a student in research master in network in the ISITCOM (Institut supérieur d'Informatique et des Technologies de Communication). I am a member of the research unit PRINCE. In Hamma Sousse/ Tunisie. I Work in the Internet of Things (IoT) and i have a problem to implement IPv6 IN

Re: [ns] implement IPv6 in NS 2.34

2011-05-07 Thread fivos
if you would like to implement it yourself then go ahead, i have not tips for you since i have not been involved in anything related but it can assure you it will take you a lot of time and energy to get this done in NS-2 so you need to program ahead. On the other hand IPv6 implementation has

Re: [ns] implement IPv6 in NS 2.34

2011-05-07 Thread fivos
if you don't know how then it is not possible in 1 month in my humble opinion. I don't have anyone to put you in contact with. Just offering my friendly advice. You can also read more about IPv6 support in NS directly from the developers :

[ns] how to calculate the rest bandwidth of mobile node

2011-05-07 Thread 寅 谈
hi:     can anybody give me some idea ,i wanna calculate the rest bandwidth of mobile node in wireless scene.   best wishes  

[ns] how to calculate the rest bandwidth of mobile node in wireless scene.

2011-05-07 Thread 寅 谈
hi:     can anybody give me some idea ,i wanna calculate the rest bandwidth of mobile node in wireless scene.   best wishes