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

Re: cbr and udp packet size



> 
> Hi all,
> 
> In my script I have used a source CBR with a protocol of transport UDP. 
> 
>     set udp1 [new Agent/UDP]
>     $ns attach-agent $s1 $udp1
>     set cbr_rt1 [new Application/Traffic/CBR]
>     $cbr_rt1 attach-agent $udp1
>     $udp1 set fid_ 2
>     $cbr_rt1 set packetSize_ 120
>     $cbr_rt1 set interval_ 0.00098823
>     set null1 [new Agent/Null]
>     $null1 set fid_ 2
>     $ns attach-agent $r1 $null1
>     $ns connect $udp1 $null1
> 
> Why the dimension of the packets transmitted  (in the trace-file) is 210 byte?
> Beyond to the header (ip/udp) is there other?

use packet_size_ instead of packetSize_; 210 is just the dfault value (from 
tcl/lib/ns-default.tcl)

this has been recurrent...
> 
> Thanks Ivan

Tarik