[ns] Enqueque packets

Raphael raphael at b0nn.de
Wed Jul 25 13:10:34 PDT 2007


Hi NS-users,

I want to emulate an udp application using tcl scripts.

Since the packets do not have constant size I cannot use CBR. I intented
to use a Agent/UDP. the send method and enqueue the packets to the link
queue. As far as I understand the docu this can be done with C++ using
the enque method. Is it possible to use this method from inside the tcl
scripts?

To make things clear. I want to send a bursts of udp packets, all
packets with different size varing from 10-80bytes. Immediately after
packet one I want to send packet two, ..., pause, next burst.

I tried to use
$ns at 5.0 "$udp send 10 pk1"
$ns at 5.0 "$udp send 11 pk2"
$ns at 5.0 "$udp send 23 pk1"

but in this case all messages will be send at (nearly) the same time...
(which is correct, but not what I want)

Any advice how to use the queue mechanism or any other "workaround"
would be fine..

Thx in advance

Raphael



More information about the Ns-users mailing list