[ns] Fwd: Problem of setting long time of simulation

2015-04-27 Thread Red Rose
Hello, I have a problem running a tcl script with a long time that exceeds 4000 seconds. if I set the time to 4000 seconds or less, it works perfectly. However, I got the following error if the end time of the simulation is greater than 4000 seconds: *now 4096.00598507 Mac: 3 BackoffTimer::handl

[ns] How to obtain different dropping rate results per each node in the network?

2014-10-20 Thread Red Rose
Dear ns-users, I'm working on a wireless scenario which composed of 6 nodes and I used both tcp and udp agent with different traffic types. I have tried CBR, pareto traffic and poisson after integrating it inside my ns-2 environment. I need to calculate dropping rate locally in each node. Howeve

[ns] How to do two different topologies in the same tcl file

2014-06-24 Thread Red Rose
hi ns users, I have two opposite scenarios as the following : I need to send specific data from each node to Access point node where the Access point has to do some calculations, then it has to broadcast the output value to all nodes in the topology. I know how to deal with the access point and

[ns] How to change attributes of packet header and apply the changes globally?

2014-03-02 Thread Red Rose
Dear all, I'm implementing a new packet type header and include some variables. I tried to access those variables and change the initialized value of it from the required function in the Mac class but the problem is that I need those new values to be accessed globally in another class (aodv). Wha

[ns] Segmentation fault when trying to access some information from the AODV routing agent in UDP

2013-08-21 Thread Red Rose
Hello ns users, I would like to access some information from the routing agent AODV in UDP protocol so what I did is that I create a pointer from AODV called “myaodv” in aodv.h but I need to allocate the AODV class before using it so what I did as the following in the command function : else if