[ns] Problem with trace file! writting of trace file lines will be stopped in specific point!

2006-10-29 Thread amir zare
Hi All, I have problem with what is written in trace file while simulation is running. I have changed mac802_11.cc code in recv() method. in this method made the packet loss by setting the header packet error flag. while simulation was running, in specific place in trace file was stoped. the

[ns] what is the role of "handler * h" and "callback_" in the recv() and send() method of mac802_11?

2006-10-25 Thread amir zare
Hi All, I want to know what is the role of "handler * h" and "callback_" in the Mac802-11,specially in the recv() method of this class. I want to know what will be happend if I dont let the outgoing packets to be sent by send(p, h) method in a short duration in simulation. I did so as follows

[ns] Problem with my added method in command method of mac-802_11.cc

2006-10-15 Thread amir zare
Hi All, I want to change the mac-802_11.cc by adding some code in Mac802_11::command method. I added a procedure into ns-mobilenode.tcl as follows: Node/MobileNodeinstproc node-fail {} { $self instvar mac_ return [$mac_(0) node-fail] } in mac-802_11.cc I added

[ns] Is any change required to be made when you add a procedure in ns-node.tcl?

2006-10-13 Thread amir zare
Hello All, I faced with a strange problem after adding a procedure in ns-node.tclfile. I wrote a procedure in the level of tcl without calling any method from any C++ file just like the procedures can be found in ns-node.tcl , for example: Node instproc id {} { return [$self set id_

[ns] how to add a procedure in a .tcl file and make the required changes in related .cc files?

2006-10-12 Thread amir zare
-- Forwarded message -- From: amir zare <[EMAIL PROTECTED]> Date: Oct 12, 2006 5:47 PM Subject: how to add a procedure in a .tcl file and make the required changes in related .cc files? To: ns-users@isi.edu Hello All, I want to add a procedure in ns-mobilenode.

[ns] Tips and Statistical Data for Running Large Simulations in NS

2006-10-10 Thread amir zare
Hi dear Martina, You can find it in: http://www.isi.edu/nsnam/ns/ The direct link is: http://www.isi.edu/nsnam/ns/ns-largesim.html regards, Amir

[ns] Can nix-vector routing be applied for simulating wireless ad hoc networks?

2006-10-09 Thread amir zare
Hi all, I want to reduce simulation time and memory usage by techniques introduced in "Tips and Statistical Data for Running Large Simulations in NS". I want to know whether nix-vector routing can be applied for simulating wireless ad hoc networks? If yes, Is any setting or command required i

[ns] How to avoid movementTrace of mobile nodes ? ( It seems movementTrace OFF does not work)

2006-10-09 Thread amir zare
I want to simulate an ad hoc mobile network with 100 mobile nodes in 1000 seconds. But the problem is it take too much memory space and time to preform simulation. In order to remove unnecessary info of trace files, I tried to remove movement trace of mobile nodes with movementTrace OFF in node-co