写RIO仿真脚本的一些关键代码

#out packets are droped before any in packets Queue/RED/RIO set in_thresh_ 10 #min_in Queue/RED/RIO set in_maxthresh_ 20 #max_in Queue/RED/RIO set out_thresh_ 3 #min_out Queue/RED/RIO set out_maxthresh_ 9 #max_out Queue/RED/RIO set in_linterm_ 50 #1/max_p_in Queue/RED/RIO set linterm_ 200 #1/max_p_out Queue/RED/RIO set priority_method_ 0 Queue/RED/RIO set debug_ false $ns duplex-link <node1> <node2> <b/w> <delay> RED/RIO #If priority_method_ is set to 1, flow with fid_ 0 will #always get priority over other flows. #(Do not set it to 1 in simulating RIO) #o Token bucket policing and tagging set link1 [$ns link $n1 $n3] set tcm1 [$ns maketbtagger Fid] $ns attach-tagger $link1 $tcm1 set fcl1 [$tcm1 classifier]; # flow classifier $fcl1 set-flowrate 0 100000 10000 1

“$fcl1 set-flowrate 0 100000 10000 1” set token bucket for flow with fid_ 0, the
maximum rate of IN packets is 100000bps, the size of bucket is 10000, and initially there
are 1 token in the bucket.

 

以上摘自论文:《Simulating the Performance of prioritized scheduling with buffermanagement for(1) differentiated services architecture using NS2》

你可能感兴趣的:(脚本,token,performance,delay)