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
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!
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
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
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
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.