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

Re: [ns] Packet size



That is because you used a TCP agent. The TCP agent constructor sets a
packet size of 1000 bytes. This is my guess ...... 

Debo

On Wed, 7 Jun 2000, Yongmin Choi wrote:

> Hi ns-users,
> 
> In my simulation, I used Pareto traffic generator as follows:
> 
> # Attach Pareto traffic agents for N TCP connections
> for {set i 0} {$i < $N} {incr i} {
>         set p($i) [new Application/Traffic/Pareto]
>         $p($i) attach-agent $tcp($i)
>         $p($i) set packetSize_ 1500
>         $p($i) set burst_time_ 500ms
>         $p($i) set idle_time_ 500ms
>         $p($i) set rate_ 100k
>         $p($i) set shape_ 1.5
>         $p($i) set fid_ 0
> }
> 
> I set the packet size of the generator 1500 bytes.
> However, I found the packet size for that source to be 1000 bytes in the
> trace file.
> Anyone can explain why this could happen?
> Thanks in advance,
> 
> Yongmin choi
> 
>