亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? mechanisms.tcl

?? R. Lo Cigno, P. Larcheri 802.11e closed-loop scheduling Description: ns-2 package for 802.11e clo
?? TCL
?? 第 1 頁 / 共 2 頁
字號:
## RTMechanisms: routines for the router mechanisms paper## this file contains primarily the support routines# to manage the flows.  The policies defined by the# tests are found in rtm_tests.tcl## conventions:# 	procs of the form "do_..."  are run periodically#	instvars starting with Capitals are constants#Class RTMechanismssource rtm_tests.tclsource rtm_link.tclRTMechanisms instproc tcp_ref_bw { mtu rtt droprate } {	if { $rtt == 0 || $droprate == 0 } {		return "none"	}	$self vprint 9 "mtu: $mtu rtt: $rtt droprate: $droprate"	set result [expr 1.22 * $mtu / ($rtt*sqrt($droprate))]	set sqrt [expr sqrt($droprate) ]	$self vprint 9 "sqrt: $sqrt result $result"	return [expr 1.22 * $mtu / ($rtt*sqrt($droprate))]}RTMechanisms instproc frac { num denom } {	if { $denom == 0 } {		return 0.0	}	return [expr double($num) / $denom]}RTMechanisms instproc vprint args {	$self instvar verbose_	set level [lindex $args 0]	set a [lrange $args 1 end]	if { $level <= $verbose_ } {		$self instvar ns_		puts "[$ns_ now] $a"		flush stdout	}}## mmetric: maxmetric or minmetric in the ok box#	op: one of "max" or "min"#	flows: list of flows#RTMechanisms instproc mmetric { op flows } {	$self instvar okboxfm_	set tot_bdrops [$okboxfm_ set bdrops_] ; # total bytes dropped	set tot_pdrops [$okboxfm_ set pdrops_] ; # total pkts dropped	set tot_ebdrops [$okboxfm_ set ebdrops_] ; # bytes dropped early (unforced)	set tot_epdrops [$okboxfm_ set epdrops_] ; # pkts drooped early (unforced)	set tot_fpdrops [expr $tot_pdrops - $tot_epdrops] ; 						# pkts dropped (forced)	set tot_fbdrops [expr $tot_bdrops - $tot_ebdrops] ; 						# bytes dropped (forced)	if { $op == "max" } {		set op ">"		set metric -1.0	} elseif { $op == "min" } {		set op "<"		set metric 1000000	}	set flow "none"	set unforced_frac [$self frac $tot_epdrops $tot_pdrops]	set forced_frac [expr 1 - $unforced_frac ]	foreach f $flows {		set fepdrops [$f set epdrops_]		set fpdrops [$f set pdrops_]		set fbdrops [$f set bdrops_]		set febdrops [$f set ebdrops_]					set forced_metric [$self frac [expr $fbdrops - $febdrops] $tot_fbdrops]		set unforced_metric [$self frac $fepdrops $tot_epdrops]		set fmetric [expr $forced_frac * $forced_metric + \			$unforced_frac * $unforced_metric]		if { [expr $fmetric $op $metric] } {			set metric $fmetric			set flow $f		}	}	return "$flow $metric"}RTMechanisms instproc setstate { flow reason bandwidth droprate } { 	$self instvar state_ ns_	$self vprint 1 "SETSTATE: flow: $flow NEWSTATE (reason:$reason, bw: $bandwidth, droprate: $droprate)"	set state_($flow,reason) $reason	set state_($flow,bandwidth) $bandwidth	set state_($flow,droprate) $droprate	set state_($flow,ctime) [$ns_ now]}# set new allotment in pboxRTMechanisms instproc pallot allotment {	$self instvar badclass_ goodclass_	$self instvar Maxallot_	$self vprint 0 "PALLOT: Allots: pbox: $allotment, okbox: [expr $Maxallot_ - $allotment]"	$badclass_ newallot $allotment	$goodclass_ newallot [expr $Maxallot_ - $allotment]}# add a flow to the flow history array (for unresponsive test)RTMechanisms instproc fhist-add { flow droprate bandwidth } {	$self instvar hist_next_ Hist_max_	$self instvar flowhist_	# circular history buffer	incr hist_next_	if { $hist_next_ >= $Hist_max_ } {		set hist_next_ 0	}	set flowhist_($hist_next_,name) $flow	set flowhist_($hist_next_,droprate) $droprate	set flowhist_($hist_next_,bandwidth) $bandwidth	$self vprint 1 "HISTORY ADDITION: flow: $flow, droprate: $droprate, bw: $bandwidth"	return $hist_next_}# find entry in hist buffer with lowest droprate, return its index# used for unresponsive testRTMechanisms instproc fhist-mindroprate flow {	$self instvar Hist_max_	$self instvar flowhist_	set dr 100000000	set idx -1	for { set i 0 } { $i < $Hist_max_ } { incr i } {		if { [info exists flowhist_($i,name)] &&		     $flowhist_($i,name) == $flow &&		     $flowhist_($i,droprate) < $dr } {			set dr $flowhist_($i,droprate)			set idx $i		}	}	$self vprint 1 "HISTORY MINDR SEARCH (flow: $flow): hmax: $Hist_max_, index: $idx"	return $idx}RTMechanisms instproc print_good_and_bad { label } {	$self instvar ns_	$self instvar okboxfm_ pboxfm_	$self instvar badclass_	set now [$ns_ now]	set ballot [$badclass_ allot]	puts [format "time %5.1f $label goodflows: [$okboxfm_ flows], badflows: [$pboxfm_ flows] (allot %4.2f, droprate: ??)" $now $ballot]}RTMechanisms instproc print_allot_change { oallot nallot } {	puts [format "pbox allotment changed from %6.5f to %6.5f" $oallot $nallot]}## move a flow to the bad box# ie penalize a flow#RTMechanisms instproc penalize { badflow guideline_bw } {	$self instvar npenalty_ badslot_ cbqlink_	$self instvar badclass_	$self instvar okboxfm_ pboxfm_	$self instvar Max_cbw_	$self vprint 1 "penalizing flow $badflow, guideline bw: $guideline_bw"	incr npenalty_	set classifier [$cbqlink_ classifier]	#	# add the bad flow to the cbq/mechanisms classifier	# the underlying object (badcl_) is already in $badslot_	#	set src [$badflow set src_]	set dst [$badflow set dst_]	set fid [$badflow set flowid_]	$classifier set-hash auto $src $dst $fid $badslot_	#	# remove flow record from ok fmon	# add it to pbox f mon	#	set okcl [$okboxfm_ classifier]	set okslot [$okcl del-hash $src $dst $fid]	$okcl clear $okslot	set bcl [$pboxfm_ classifier]	set bslot [$bcl installNext $badflow]	$badflow reset	$bcl set-hash auto $src $dst $fid $bslot	#	# reallocate allotment	#	set new_pbw [expr 0.5 * $guideline_bw * $npenalty_ ]	$self vprint 1 "npenalty $npenalty_ guideline_bw $guideline_bw"	if { $new_pbw > $Max_cbw_ } {		set $new_pbw $Max_cbw_	}	$self instvar badclass_	# link bw is in bits/sec	set bw [expr [[$cbqlink_ link] set bandwidth_] / 8.0]	$self vprint 1 "new_pbw $new_pbw bw $bw" 	set nallot [expr $new_pbw / $bw]	$self pallot $nallot	$self vprint 2 "penalize done.."}## move a flow to the good box# ie stop penalizing a flow#RTMechanisms instproc unpenalize goodflow {	$self instvar npenalty_ badslot_ badhead_ cbqlink_	$self instvar okboxfm_ pboxfm_	$self instvar badclass_	incr npenalty_ -1	set classifier [$cbqlink_ classifier]	$self vprint 0 "UNPENALIZE flow $goodflow"	#	# delete the bad flow from the cbq/mechanisms classifier	# this flow will return to the "default" case in the classifier	# do not "clear" the entry, as that would lose the reference	# to $badclass_ in the CBQ classifier	#	set src [$goodflow set src_]	set dst [$goodflow set dst_]	set fid [$goodflow set flowid_]	$classifier del-hash $src $dst $fid	#	# remove flow record from pbox fmon	# add it to okbox box fmon	#	set pcl [$pboxfm_ classifier]	set pslot [$pcl del-hash $src $dst $fid]	$pcl clear $pslot	set gcl [$okboxfm_ classifier]	set gslot [$gcl installNext $goodflow]	$goodflow reset	$gcl set-hash auto $src $dst $fid $gslot	#	# reallocate allotment	#	set bw [expr [[$cbqlink_ link] set bandwidth_] / 8.0]	set oallot [$badclass_ allot]	set cbw [expr $oallot * $bw]	set new_cbw [expr $npenalty_ * $cbw / ($npenalty_ + 1)]	set nallot [expr $new_cbw / $bw]	$self pallot $nallot	$self vprint 2 "unpenalize done..."}# Check if bandwidth in penalty box should be adjusted.# basen on some change in npenalty_RTMechanisms instproc checkbw_fair guideline_bw {	$self instvar badclass_	$self instvar npenalty_ cbqlink_	if { $guideline_bw == "none" } {		return "ok"	}	set new_cbw [expr 0.5 * $guideline_bw * $npenalty_]	set link_bw [expr [[$cbqlink_ link] set bandwidth_] / 8.0]	set old_allot [$badclass_ allot]	set class_bw [expr $old_allot * $link_bw]	if { $new_cbw < $class_bw } {		set new_allot [expr $new_cbw / $link_bw]		return $new_allot	}	return "ok"}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品资源站在线| 日韩av午夜在线观看| 不卡的av中国片| 国产精品福利电影一区二区三区四区| 成人永久看片免费视频天堂| 中文字幕中文字幕在线一区 | 国产一区二区三区久久久| 欧美成人女星排行榜| 国产最新精品免费| 欧美国产一区二区在线观看 | 亚洲欧美日韩久久精品| 色综合久久综合网欧美综合网| 亚洲激情欧美激情| 欧美精选午夜久久久乱码6080| 麻豆国产精品777777在线| 久久久精品影视| 91女厕偷拍女厕偷拍高清| 日韩国产欧美在线播放| 久久亚洲一区二区三区明星换脸| 懂色av一区二区三区免费观看| 亚洲人成小说网站色在线| 91精品国产综合久久婷婷香蕉| 极品瑜伽女神91| 亚洲欧美电影一区二区| 日韩丝袜情趣美女图片| 成人h动漫精品一区二区| 亚洲电影一级黄| 久久精品亚洲乱码伦伦中文| 欧美性受极品xxxx喷水| 韩国v欧美v日本v亚洲v| 亚洲自拍偷拍麻豆| 久久久久久久久99精品| 欧美三级午夜理伦三级中视频| 国产乱人伦精品一区二区在线观看| 综合久久久久综合| 精品国产污污免费网站入口| 色综合久久久久久久久久久| 狠狠色狠狠色综合日日91app| 亚洲免费视频中文字幕| 久久综合久久鬼色中文字| 91成人免费网站| 国产成a人亚洲精品| 日本网站在线观看一区二区三区| 中文字幕一区二区三区乱码在线| 欧美一区二区成人| 在线精品视频免费播放| 国产成人精品影视| 免费成人你懂的| 亚洲国产一区二区在线播放| 国产精品污网站| 欧美精品一区二区在线播放| 欧美高清hd18日本| 91美女视频网站| 国产成a人亚洲精| 另类专区欧美蜜桃臀第一页| 亚洲福利视频三区| 亚洲伦理在线免费看| 国产蜜臀97一区二区三区 | 精品国产乱子伦一区| 欧美婷婷六月丁香综合色| 菠萝蜜视频在线观看一区| 国产在线精品一区二区夜色 | 日韩亚洲欧美在线| 欧美日韩日日摸| 91国产福利在线| 91免费在线视频观看| 99久久精品免费| av一区二区三区四区| 成人做爰69片免费看网站| 国产精品996| 国产一区二区毛片| 国产精品综合久久| 国产一区二区三区免费播放| 久久成人18免费观看| 麻豆精品久久精品色综合| 老司机午夜精品99久久| 久久99蜜桃精品| 韩国三级电影一区二区| 激情欧美一区二区| 国产在线视频精品一区| 国产精品一区二区久激情瑜伽 | 欧美性猛交xxxxxxxx| 在线观看91精品国产入口| 91久久精品国产91性色tv | 亚洲综合另类小说| 亚洲国产你懂的| 日韩av网站在线观看| 色综合久久久久| 色综合久久九月婷婷色综合| 日本高清视频一区二区| 欧美日韩一区三区四区| 91精品国产aⅴ一区二区| 日韩精品一区二区在线| 精品国产欧美一区二区| 国产欧美日韩不卡免费| 亚洲人成在线观看一区二区| 亚洲综合免费观看高清完整版在线| 一区二区在线观看免费| 亚洲h动漫在线| 久久99久国产精品黄毛片色诱| 国产精品中文字幕欧美| 99热这里都是精品| 欧美挠脚心视频网站| 精品少妇一区二区三区| 国产精品女主播在线观看| 一区二区在线观看av| 日韩精品午夜视频| 国产精品99久久久久久有的能看 | 99国产精品99久久久久久| 在线观看国产91| 精品国产伦一区二区三区免费 | 国产精品福利在线播放| 亚洲午夜免费电影| 国产麻豆视频精品| 欧美写真视频网站| 2022国产精品视频| 亚洲一区在线观看免费| 激情六月婷婷久久| 在线免费观看不卡av| 精品国产凹凸成av人导航| 亚洲人成网站在线| 精品一区二区国语对白| 91免费看`日韩一区二区| 欧美成人乱码一区二区三区| 亚洲欧洲av在线| 国内精品第一页| 欧美午夜精品电影| 国产精品美女一区二区在线观看| 五月天丁香久久| 91在线看国产| 26uuu久久综合| 日韩高清一区在线| 91视频一区二区| 久久久噜噜噜久久中文字幕色伊伊| 亚洲愉拍自拍另类高清精品| 国产乱人伦精品一区二区在线观看 | 国产毛片精品国产一区二区三区| 欧美无砖专区一中文字| 国产精品女上位| 国产在线日韩欧美| 欧美一区二区在线免费播放| 亚洲老妇xxxxxx| 成人激情图片网| 2021中文字幕一区亚洲| 免费高清成人在线| 欧美日韩一本到| 亚洲综合色视频| 91在线精品一区二区| 中文字幕欧美日韩一区| 国产呦萝稀缺另类资源| 欧美一区二区三区视频免费| 一区二区高清视频在线观看| 99免费精品在线观看| 国产欧美一区二区精品婷婷| 久久狠狠亚洲综合| 91精品在线观看入口| 五月婷婷欧美视频| 欧美午夜电影一区| 亚洲国产日韩一级| 欧美午夜精品免费| 一区二区欧美视频| 日本久久一区二区三区| 国产精品原创巨作av| 日韩欧美aaaaaa| 久久99国产精品麻豆| 精品久久久久久最新网址| 麻豆极品一区二区三区| 日韩女优av电影| 久久草av在线| 2024国产精品| 国产高清在线观看免费不卡| 久久久精品中文字幕麻豆发布| 国产乱码精品一区二区三| 久久色.com| fc2成人免费人成在线观看播放| 国产精品美女久久福利网站| 91片黄在线观看| 亚洲一区二区三区四区五区黄 | 91精品久久久久久蜜臀| 日日嗨av一区二区三区四区| 91精品国产免费久久综合| 久久99国产乱子伦精品免费| 久久色成人在线| 99在线精品免费| 亚洲高清久久久| 欧美大肚乱孕交hd孕妇| 国产成人在线网站| 最新欧美精品一区二区三区| 色婷婷综合五月| 婷婷成人激情在线网| 日韩精品在线一区二区| 国产精品18久久久| 一区二区三区在线观看国产| 欧美疯狂性受xxxxx喷水图片| 久久成人精品无人区| 成人免费在线播放视频| 欧美日韩1234| 国产高清无密码一区二区三区| 亚洲欧美综合色| 91精品福利在线一区二区三区|