Hi all,
   
  in my scenario there is 2 node 
  node 1 create cbr over udp and in th nocde 2 the null-agent
  the source craete a paket with size of 100 Bytes the rate is 115 Kb/s
  like follow:
  -----------------------------------------------------------
  set null1 [new Agent/Null]
  $ns_ attach-agent $node_(1) $null1
  
set source [new Agent/UDP]
$source set class_ 2
$ns_ attach-agent $node $source
set cbr0 [new Application/Traffic/CBR]
#
  $cbr0 set packetSize_ 100 
$cbr0 set rate_ 115kb
#
  $cbr0 attach-agent $source
$ns_ connect $source $sink

  $ns_ at 0.001 "$cbr0 start"
$ns_ at 4.9 "$cbr0 stop"
  ------------------------------------------------------
   
  In the Trace file i get the at AGENT 120 Byte, 20Byte more than what the 
source does create (100 Byte)
     
  Trace FIle: (*) Paket created  (**) paket received  AT AGENT
  ------------------------------------------------------
   
                                                    (*)
  s 0.001000000 _0_ AGT  --- 0 cbr 100 [0 0 0 0] ------- [0:0 1:0 32 0] [0] 0 0
                                                   
  r 0.001000000 _0_ RTR  --- 0 cbr 100 [0 0 0 0] ------- [0:0 1:0 32 0] [0] 0 0
s 0.001000000 _0_ RTR  --- 0 cbr 120 [0 0 0 0] ------- [0:0 1:0 32 1] [0] 0 0

  s 0.001095000 _0_ MAC  --- 0 ARP 80 [0 ffffffff 2 806] ------- [REQUEST 2/0 
0/1]
r 0.001735333 _1_ MAC  --- 0 ARP 28 [0 ffffffff 2 806] ------- [REQUEST 2/0 0/1]
s 0.002090333 _1_ MAC  --- 0 ARP 80 [13a 2 4 806] ------- [REPLY 4/1 2/0]
r 0.002730667 _0_ MAC  --- 0 ARP 28 [13a 2 4 806] ------- [REPLY 4/1 2/0]

  s 0.002740667 _0_ MAC  --- 0 ACK 38 [0 4 0 0] 
r 0.003045000 _1_ MAC  --- 0 ACK 38 [0 4 0 0] 
s 0.003354667 _0_ MAC  --- 0 cbr 172 [13a 4 2 800] ------- [0:0 1:0 32 1] [0] 0 0
r 0.004731000 _1_ MAC  --- 0 cbr 120 [13a 4 2 800] ------- [0:0 1:0 32 1] [0] 1 0
s 0.004741000 _1_ MAC  --- 0 ACK 38 [0 2 0 0] 
   
                                                   (**)
r 0.004756000 _1_ AGT  --- 0 cbr 120 [13a 4 2 800] ------- [0:0 1:0 32 1] [0] 1 0

  r 0.005045333 _0_ MAC  --- 0 ACK 38 [0 2 0 0] 
------------------------------------------------------

   
  WHY????
   
  thank you
   

                
---------------------------------
NEU: Fragen stellen - Wissen, Meinungen und Erfahrungen teilen. Jetzt auf 
Yahoo! Clever.

Reply via email to