Hi,
 
Does anyone know why the following situation happens. ( Topology: node_(0) >>> 
node_(1) >>> node_(2) )
 
I set the error rate to more than 5%, then all packets heading from node_(0) to 
node_(1) get dropped! (packets from node_(1) to node_(2) are fine, and they go 
with the defined error rate).
 
I'm trying to calculate the throughput with 10% error, but in this cases 
node_(1)'s throughput with 10% error becomes 0, which can't be correct.
 
I get the folloiwng .tr and .tcl file (short and simplified versions)
 
Please help me if you have any suggestions.
 
Thanks,
 
Behman
 
Trace File 
---------------------------------------------------------------------------
s 1.109715200 _0_ AGT  --- 18 cbr 1518 
D 1.109715200 _0_ RTR  IFQ 8 cbr 1538 s 1.109715200 _1_ AGT  --- 19 cbr 1518 s 
1.110929600 _0_ AGT  --- 20 cbr 1518 D 1.110929600 _0_ RTR  IFQ 10 cbr 1538 s 
1.110929600 _1_ AGT  --- 21 cbr 1518 s 1.111210182 _1_ MAC  --- 9 cbr 1590  s 
1.112144000 _0_ AGT  --- 23 cbr 1518 D 1.112144000 _0_ RTR  IFQ 12 cbr 1538 s 
1.112144000 _1_ AGT  --- 24 cbr 1518 r 1.112608091 _2_ MAC  --- 9 cbr 1538
s 1.112618091 _2_ MAC  --- 0 ACK 38 r 1.112633091 _2_ AGT  --- 9 cbr 1538 r 
1.112989091 _1_ MAC  --- 0 ACK 38 s 1.113259091 _1_ MAC  --- 11 cbr 1590 s 
1.113358400 _0_ AGT  --- 25 cbr 1518 D 1.113358400 _0_ RTR  IFQ 14 cbr 1538 s 
1.113358400 _1_ AGT  --- 26 cbr 1518 s 1.114572800 _0_ AGT  --- 27 cbr 1518 D 
1.114572800 _0_ RTR  IFQ 16 cbr 1538 s 1.114572800 _1_ AGT  --- 28 cbr 1518 r 
1.114657000 _2_ MAC  --- 11 cbr 1538 s 1.114667000 _2_ MAC  --- 0 ACK 38 r 
1.114682000 _2_ AGT  --- 11 cbr 1538 

 
TCL FILE 
-------------------------------------------------------------------------------
set error_rate          0.05    ;# error rate in percentage
 
$ns_ node-config -IncomingErrProc UniformErr $error_rate \
 
#setting up the Error/Loss Module  proc UniformErr {} {    global error_rate    
set err [new ErrorModel]    $err unit packet    $err set rate_ $error_rate    
return $err
 
#setup UDP connections                 node_(0) >>>> node_(1)Agent/UDP set 
packetSize_ 2400               ;# Max UDP packet size without 
defragmentationApplication/Traffic/CBR set rate_ 10000Kb    ;# 10Mbps  set udp1 
[new Agent/UDP]  $udp1 set class_ 1   $udp1 set fid_ 1   set null1 [new 
Agent/Null]  $ns_ attach-agent $node_(0) $udp1  $ns_ attach-agent $node_(1) 
$null1  $ns_ connect $udp1 $null1  set cbr1 [new Application/Traffic/CBR]  
$cbr1 attach-agent $udp1 $cbr1 set packetSize_ 1518                
  $ns_ at $opt(cbr1-start) "$cbr1 start"#setup UDP connections                 
node_(1) >>>> node_(2)  set udp2 [new Agent/UDP]  $udp2 set class_ 2   $udp2 
set fid_ 2   set null2 [new Agent/Null]  $ns_ attach-agent $node_(1) $udp2  
$ns_ attach-agent $node_(2) $null2  $ns_ connect $udp2 $null2  set cbr2 [new 
Application/Traffic/CBR]  $cbr2 attach-agent $udp2 $cbr2 set packetSize_ 1518   
      
  $ns_ at $opt(cbr2-start) "$cbr2 start"
 
_________________________________________________________________
Try Live.com - your fast, personalised homepage with all the things you care 
about in one place.
http://www.live.com/?mkt=en-gb  

Reply via email to