[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ns] how to produce different length packets, thanks



On Sun, 17 Sep 2000, xiaohui JIN wrote:

> i want to produce different length packets in a simulation randomly,
> they can be 400 bytes or 800 bytes, randomly.
> when i set " Agent/TCP set packetSize_ 400"
> the length of all packets will always be 400 in this simulation.

what about:
$ns at 10.0 "$tcp  set packetSize_ 500"
$ns at 20.0 "$tcp  set packetSize_ 300"

or just controlling the output size at the application level?

L.

<[email protected]>PGP<http://www.ee.surrey.ac.uk/Personal/L.Wood/>