[ns] making ns2 to write to an output file

2006-03-30 Thread nalinaksh gaur
Hi everybody, I am trying to make ns2 to write some statistics to an output file. I am writing the following code in some c++ file inside the ns2 directory : #include using namespace std; ofstream a_file ("example.txt"); a_file<<"This text will now be inside of example.txt"; a_file.cl

[ns] calculating average link utilisation

2006-03-16 Thread nalinaksh gaur
Hi all, I have done a simulation in ns2. I want to calculate the average link utilisation of the simulated network. How can I do that? Thanks!

[ns] ns2 debugging

2006-03-13 Thread nalinaksh gaur
Hi all, I am trying to do a OBS simulation in ns but I found that the implemented protocol has got some bug. I have used 'gdb' in the past to debug c/c++ programs.I tried to use it for ns2 debugging also.It works but I am confused as I don't know whether gdb alone can do all the debugging in ns2

[ns] regarding ns2 debugging

2006-03-13 Thread nalinaksh gaur
Hi all, I need some clarification regarding debugging in ns2... I have used 'gdb' in the past to debug c/c++ programs.I tried to use it for ns2 debugging also.It works but I am confused as I don't know whether gdb alone can do all the debugging in ns2, as ns2 is built using both c++ and tcl.If t

[ns] OBS Simulation problem

2006-03-10 Thread nalinaksh gaur
Hi everybody, I have got some problem running OBS simualtions . There is single tcp agent sending packets from node E(0) to E(1) The control packets (64 bytes) are received successfully at node E(1). But the data packets (104 bytes) are received only upto node C(1).Thereafter, instead of forward

[ns] How to print the value of slot#

2006-03-10 Thread nalinaksh gaur
Hi all, How can I print the value of the slot no. as I receive a packet at a node? As I know, the classifier in ns2 receives a packet, it finds the slot no. associated with the packet using classify() method.It then finds an object indexed by this slot no.The packet is forwarded to this object.