Hi everybody,

I would like to know what is the easiest way to send a packet in a network 
environment in NS2 and measure the associated delay. For example, let us 
suppose that I have defined the network described at 
http://nile.wpi.edu/NS/simple_ns.html. With the scripting code in that web 
page, I can set up the topology indicated in the figure. Now, how can I 
just simulate sending a packet of X bytes from node n1 to node n2? My goal 
is to simulate the sending of this packet and obtain the delay involved. 
Later, maybe I will need to send another packet and measure again the 
delay involved. And so on. Is there an easy way of doing this?

My final goal is the following. I will define a network topology with NS2 
and then I need to interact dynamically with the ns2 simulator from a Java 
program in order to obtain the delays to apply for different 
communications between nodes.

I think this should not be difficult. Thanks in advance for any 
suggestion,

Sergio

Reply via email to