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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? ns-lib.tcl

?? 這個軟件的功能是實現(xiàn)多播協(xié)議
?? TCL
?? 第 1 頁 / 共 4 頁
字號:
Simulator instproc link { n1 n2 } {        $self instvar Node_ link_        if { ![catch "$n1 info class Node"] } {		set n1 [$n1 id]	}        if { ![catch "$n2 info class Node"] } {		set n2 [$n2 id]	}	if [info exists link_($n1:$n2)] {		return $link_($n1:$n2)	}	return ""}# Creates connection. First creates a source agent of type s_type and binds# it to source.  Next creates a destination agent of type d_type and binds# it to dest.  Finally creates bindings for the source and destination agents,# connects them, and  returns the source agent.Simulator instproc create-connection {s_type source d_type dest pktClass} {	set s_agent [new Agent/$s_type]	set d_agent [new Agent/$d_type]	$s_agent set fid_ $pktClass	$d_agent set fid_ $pktClass	$self attach-agent $source $s_agent	$self attach-agent $dest $d_agent	$self connect $s_agent $d_agent		return $s_agent}# Creates connection. First creates a source agent of type s_type and binds# it to source.  Next creates a destination agent of type d_type and binds# it to dest.  Finally creates bindings for the source and destination agents,# connects them, and  returns a list of source agent and destination agent.Simulator instproc create-connection-list {s_type source d_type dest pktClass} {    set s_agent [new Agent/$s_type]    set d_agent [new Agent/$d_type]    $s_agent set fid_ $pktClass    $d_agent set fid_ $pktClass    $self attach-agent $source $s_agent    $self attach-agent $dest $d_agent    $self connect $s_agent $d_agent    return [list $s_agent $d_agent]}   # Creates connection. First creates a source agent of type s_type and binds# it to source.  Next creates a destination agent of type d_type and binds# it to dest.  Finally creates bindings for the source and destination agents,# connects them, and  returns the source agent. # The destination agent is set to listen, for full-tcp.Simulator instproc create-connection-listen {s_type source d_type dest pktClass} {    set s_agent [new Agent/$s_type]    set d_agent [new Agent/$d_type]    $s_agent set fid_ $pktClass    $d_agent set fid_ $pktClass    $self attach-agent $source $s_agent    $self attach-agent $dest $d_agent    $self connect $s_agent $d_agent    $d_agent listen    return $s_agent }   # This seems to be an obsolete procedure.Simulator instproc create-tcp-connection {s_type source d_type dest pktClass} {	set s_agent [new Agent/$s_type]	set d_agent [new Agent/$d_type]	$s_agent set fid_ $pktClass	$d_agent set fid_ $pktClass	$self attach-agent $source $s_agent	$self attach-agent $dest $d_agent	return "$s_agent $d_agent"}## Other classifier methods overload the instproc-likes to track # and return the installed objects.#Classifier instproc install {slot val} {	$self set slots_($slot) $val	$self cmd install $slot $val}Classifier instproc installNext val {	set slot [$self cmd installNext $val]	$self set slots_($slot) $val	set slot}Classifier instproc adjacents {} {	$self array get slots_}Classifier instproc in-slot? slot {	$self instvar slots_	set ret ""	if {[array size slots_] < $slot} {		set ret slots_($slot)	}	set ret}# For debuggingClassifier instproc dump {} {	$self instvar slots_ offset_ shift_ mask_	puts "classifier $self"	puts "\t$offset_ offset"	puts "\t$shift_ shift"	puts "\t$mask_ mask"	puts "\t[array size slots_] slots"	foreach i [lsort -integer [array names slots_]] {		set iv $slots_($i)		puts "\t\tslot $i: $iv ([$iv info class])"	}}Classifier instproc no-slot slot {        puts stderr "--- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) ---"        puts stderr "\t$self: no target for slot $slot"        puts stderr "\t$self type: [$self info class]"        puts stderr "content dump:"        $self dump        puts stderr "---------- Finished standard no-slot{} default handler ----------"        # Clear output before we bail out        [Simulator instance] flush-trace        exit 1}Classifier/Hash instproc dump args {	eval $self next $args	$self instvar default_	puts "\t$default_ default"}Classifier/Hash instproc init nbuck {	# We need to make sure that port shift/mask values are there	# so we set them after they get their default values	$self next $nbuck	$self instvar shift_ mask_	set shift_ [AddrParams NodeShift 1]	set mask_ [AddrParams NodeMask 1]}Classifier/Port/Reserve instproc init args {        eval $self next        $self reserve-port 2}Simulator instproc makeflowmon { cltype { clslots 29 } } {	set flowmon [new QueueMonitor/ED/Flowmon]	set cl [new Classifier/Hash/$cltype $clslots]		$cl proc unknown-flow { src dst fid }  {		set fdesc [new QueueMonitor/ED/Flow]		set dsamp [new Samples]		$fdesc set-delay-samples $dsamp		set slot [$self installNext $fdesc] 		$self set-hash auto $src $dst $fid $slot	}		$cl proc no-slot slotnum {		#		# note: we can wind up here when a packet passes		# through either an Out or a Drop Snoop Queue for		# a queue that the flow doesn't belong to anymore.		# Since there is no longer hash state in the		# hash classifier, we get a -1 return value for the		# hash classifier's classify() function, and there		# is no node at slot_[-1].  What to do about this?		# Well, we are talking about flows that have already		# been moved and so should rightly have their stats		# zero'd anyhow, so for now just ignore this case..		# puts "classifier $self, no-slot for slotnum $slotnum"	}	$flowmon classifier $cl	return $flowmon}# attach a flow monitor to a link# 3rd argument dictates whether early drop support is to be usedSimulator instproc attach-fmon {lnk fm { edrop 0 } } {	set isnoop [new SnoopQueue/In]	set osnoop [new SnoopQueue/Out]	set dsnoop [new SnoopQueue/Drop]	$lnk attach-monitors $isnoop $osnoop $dsnoop $fm	if { $edrop != 0 } {	    set edsnoop [new SnoopQueue/EDrop]	    $edsnoop set-monitor $fm	    [$lnk queue] early-drop-target $edsnoop	    $edsnoop target [$self set nullAgent_]	}	[$lnk queue] drop-target $dsnoop}# Added by Yun WangSimulator instproc maketbtagger { cltype { clslots 29 } } {        set tagger [new QueueMonitor/ED/Tagger]        set cl [new Classifier/Hash/$cltype $clslots]        $cl proc unknown-flow { src dst fid }  {                set fdesc [new QueueMonitor/ED/Flow/TB]                set dsamp [new Samples]                $fdesc set-delay-samples $dsamp                set slot [$self installNext $fdesc]                $self set-hash auto $src $dst $fid $slot        }        $cl proc set-rate { src dst fid hashbucket rate depth init} {                set fdesc [new QueueMonitor/ED/Flow/TB]                set dsamp [new Samples]                $fdesc set-delay-samples $dsamp                $fdesc set target_rate_ $rate                $fdesc set bucket_depth_ $depth                # Initialize the bucket as full                $fdesc set tbucket_ $init                  set slot [$self installNext $fdesc]                $self set-hash $hashbucket $src $dst $fid $slot        }        $cl proc no-slot slotnum {                #                # note: we can wind up here when a packet passes                # through either an Out or a Drop Snoop Queue for                # a queue that the flow doesn't belong to anymore.                # Since there is no longer hash state in the                # hash classifier, we get a -1 return value for the                # hash classifier's classify() function, and there                # is no node at slot_[-1].  What to do about this?                # Well, we are talking about flows that have already                # been moved and so should rightly have their stats                # zero'd anyhow, so for now just ignore this case..                # puts "classifier $self, no-slot for slotnum $slotnum"        }        $tagger classifier $cl        return $tagger}# Added by Yun WangSimulator instproc maketswtagger { cltype { clslots 29 } } {        set tagger [new QueueMonitor/ED/Tagger]        set cl [new Classifier/Hash/$cltype $clslots]        $cl proc unknown-flow { src dst fid hashbucket }  {                set fdesc [new QueueMonitor/ED/Flow/TSW]                set dsamp [new Samples]                $fdesc set-delay-samples $dsamp                set slot [$self installNext $fdesc]                $self set-hash $hashbucket $src $dst $fid $slot        }        $cl proc no-slot slotnum {                #                # note: we can wind up here when a packet passes                # through either an Out or a Drop Snoop Queue for                # a queue that the flow doesn't belong to anymore.                # Since there is no longer hash state in the                # hash classifier, we get a -1 return value for the                # hash classifier's classify() function, and there                # is no node at slot_[-1].  What to do about this?                # Well, we are talking about flows that have already                # been moved and so should rightly have their stats                # zero'd anyhow, so for now just ignore this case..                # puts "classifier $self, no-slot for slotnum $slotnum"        }        $tagger classifier $cl        return $tagger}# attach a Tagger to a link# Added by Yun WangSimulator instproc attach-tagger {lnk fm} {        set isnoop [new SnoopQueue/Tagger]        $lnk attach-taggers $isnoop $fm}# Imported from session.tcl. It is deleted there.### to insert loss module to regular links in detailed SimulatorSimulator instproc lossmodel {lossobj from to} {	set link [$self link $from $to]	$link errormodule $lossobj}# This function generates losses that can be visualized by nam.Simulator instproc link-lossmodel {lossobj from to} {	set link [$self link $from $to]	$link insert-linkloss $lossobj}#### Polly Huang: Simulator class instproc to support abstract tcp simulationsSimulator instproc rtt { src dst } {	$self instvar routingTable_ delay_	set srcid [[$src set node_] id]	set dstid [[$dst set node_] id]	set delay 0	set tmpid $srcid	while {$tmpid != $dstid} {		set nextid [$routingTable_ lookup $tmpid $dstid]		set tmpnode [$self get-node-by-id $tmpid]		set nextnode [$self get-node-by-id $nextid]		set tmplink [[$self link $tmpnode $nextnode] link]		set delay [expr $delay + [expr 2 * [$tmplink set delay_]]]		set delay [expr $delay + [expr 8320 / [$tmplink set bandwidth_]]]		set tmpid $nextid	}	$src rtt $delay	return $delay}Simulator instproc abstract-tcp {} {	$self instvar TahoeAckfsm_ RenoAckfsm_ TahoeDelAckfsm_ RenoDelAckfsm_ dropper_ 	$self set TahoeAckfsm_ [new FSM/TahoeAck]	$self set RenoAckfsm_ [new FSM/RenoAck]	$self set TahoeDelAckfsm_ [new FSM/TahoeDelAck]	$self set RenoDelAckfsm_ [new FSM/RenoDelAck]	$self set nullAgent_ [new DropTargetAgent]}# Chalermek: For Diffusion, Flooding, and Omnicient Multicast Simulator instproc create-diffusion-rate-agent {node} {	global opt	set diff [new Agent/Diffusion/RateGradient]	$node set diffagent_ $diff	$node set ragent_ $diff	$diff on-node $node	if [info exist opt(enablePos)] {		if {$opt(enablePos) == "true"} {			$diff enable-pos		} else {			$diff disable-pos		}	} 	if [info exist opt(enableNeg)] {		if {$opt(enableNeg) == "true"} {			$diff enable-neg		} else {			$diff disable-neg		}	}     	if [info exist opt(suppression)] {		if {$opt(suppression) == "true"} {			$diff enable-suppression		} else {			$diff disable-suppression		}	} 	if [info exist opt(subTxType)] {		$diff set-sub-tx-type $opt(subTxType)	} 	if [info exist opt(orgTxType)] {		$diff set-org-tx-type $opt(orgTxType)	} 	if [info exist opt(posType)] {		$diff set-pos-type $opt(posType)	} 	if [info exist opt(posNodeType)] {		$diff set-pos-node-type $opt(posNodeType)	} 	if [info exist opt(negWinType)] {		$diff set-neg-win-type $opt(negWinType)	} 	if [info exist opt(negThrType)] {		$diff set-neg-thr-type $opt(negThrType)	} 	if [info exist opt(negMaxType)] {		$diff set-neg-max-type $opt(negMaxType)	} 	$self put-in-list $diff	$self at 0.0 "$diff start"		return $diff}Simulator instproc create-diffusion-probability-agent {node} {	global opt	set diff [new Agent/Diffusion/ProbGradient]	$node set diffagent_ $diff	$node set ragent_ $diff	$diff on-node $node	if [info exist opt(enablePos)] {		if {$opt(enablePos) == "true"} {			$diff enable-pos		} else {			$diff disable-pos		}	} 	if [info exist opt(enableNeg)] {		if {$opt(enableNeg) == "true"} {			$diff enable-neg		} else {			$diff disable-neg		}	} 		$self put-in-list $diff	$self at 0.0 "$diff start"	return $diff}Simulator instproc create-flooding-agent {node} {	set flood [new Agent/Flooding]	$node set ragent_ $flood	$flood on-node $node	$self put-in-list $flood	$self at 0.0 "$flood start"	return $flood}Simulator instproc create-omnimcast-agent {node} {	set omni [new Agent/OmniMcast]	$node set ragent_ $omni	$omni on-node $node	$self put-in-list $omni	$self at 0.0 "$omni start"	return $omni}# XXX These are very simulation-specific methods, why should they belong here?Simulator instproc put-in-list {agent} {	$self instvar lagent	lappend lagent $agent}Simulator instproc terminate-all-agents {} {	$self instvar lagent	foreach i $lagent {		$i terminate	}}Simulator instproc prepare-to-stop {} {	$self instvar lagent	foreach i $lagent {		$i stop	}}    

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
在线不卡中文字幕| 欧美性猛片xxxx免费看久爱| 国产午夜精品久久| 国产精品一区二区男女羞羞无遮挡 | 精品国产一区二区国模嫣然| 麻豆freexxxx性91精品| 久久久影院官网| www.欧美亚洲| 亚洲综合自拍偷拍| 欧美一区二区三区日韩视频| 国内成人自拍视频| 国产精品国产三级国产aⅴ原创 | 国产精品色婷婷久久58| 国产成人一级电影| 亚洲六月丁香色婷婷综合久久 | 中文字幕在线观看不卡视频| 在线一区二区三区四区| 日韩二区三区在线观看| 国产亚洲欧美日韩日本| 欧洲色大大久久| 韩国女主播一区| 亚洲综合色自拍一区| 精品久久久久久久久久久久久久久久久| 国产精品资源网| 一区二区三区小说| 久久免费精品国产久精品久久久久| av网站免费线看精品| 美女免费视频一区二区| 国产精品久久久久久一区二区三区| 欧美日韩不卡在线| 高清在线观看日韩| 日韩成人dvd| 亚洲欧美日韩系列| 精品国产乱码久久久久久久久| 97久久人人超碰| 激情综合色综合久久| 亚洲综合久久久| 国产精品乱码妇女bbbb| 欧美成人伊人久久综合网| 91丨porny丨蝌蚪视频| 久草精品在线观看| 亚洲va欧美va人人爽| 成人免费在线观看入口| 精品日韩欧美一区二区| 欧美卡1卡2卡| 91老师片黄在线观看| 国产成人免费视频| 韩国三级在线一区| 色婷婷综合久色| 国产91丝袜在线播放0| 蜜臀久久99精品久久久久久9| 亚洲自拍偷拍综合| 亚洲欧美日韩一区| 国产精品福利一区| 国产欧美一区二区三区鸳鸯浴| 日韩一区二区免费在线观看| 色94色欧美sute亚洲13| 99视频国产精品| 国产91精品一区二区| 国产毛片精品国产一区二区三区| 青娱乐精品在线视频| 五月婷婷另类国产| 亚洲国产中文字幕在线视频综合| 最新国产精品久久精品| 中文文精品字幕一区二区| 国产精品三级av| 这里只有精品免费| 欧美日韩成人综合天天影院| 日本精品免费观看高清观看| 99视频在线精品| 成人在线综合网站| 成人污视频在线观看| 国产精品一卡二卡| 国产精品一区二区在线播放 | 亚洲最快最全在线视频| 国产精品国产三级国产| 欧美国产激情二区三区| 久久久国产精华| 欧美激情一区二区三区在线| 国产欧美一区二区三区沐欲| 久久久久久久久久久电影| 国产视频一区二区三区在线观看| 精品国产区一区| 国产日韩欧美高清在线| 国产精品久久久久久久久快鸭| 17c精品麻豆一区二区免费| 亚洲男人都懂的| 一区二区三区四区不卡在线 | 国产欧美综合在线| 国产精品无遮挡| 亚洲色图另类专区| 午夜私人影院久久久久| 欧美aaaaa成人免费观看视频| 久草热8精品视频在线观看| 国产一区二区免费在线| youjizz国产精品| 在线视频亚洲一区| 在线成人av网站| 国产亚洲一区二区在线观看| 国产精品麻豆久久久| 亚洲一区电影777| 激情综合网av| 色综合中文字幕| 日韩午夜激情电影| 国产欧美日韩三级| 亚洲高清不卡在线| 国产成人精品午夜视频免费| 在线免费视频一区二区| 日韩精品一区二区三区中文精品| 国产精品天天摸av网| 午夜精品久久久久久不卡8050| 韩国欧美国产1区| 91九色最新地址| 精品福利av导航| 亚洲五码中文字幕| 国产精品12区| 欧美日韩一二三区| 久久精品国产免费看久久精品| 日韩黄色一级片| 国产高清不卡一区二区| 欧美色图天堂网| 国产亚洲一本大道中文在线| 亚洲成人手机在线| 国产成人av影院| 91精品国产91久久久久久一区二区| 久久精品亚洲精品国产欧美kt∨| 亚洲免费观看高清| 国产乱子轮精品视频| 在线观看欧美精品| 欧美韩日一区二区三区四区| 亚洲18色成人| av电影天堂一区二区在线观看| 日韩视频在线你懂得| 亚洲愉拍自拍另类高清精品| 国产黑丝在线一区二区三区| 日韩一区二区中文字幕| 亚洲一区二区视频在线观看| 风间由美性色一区二区三区| 日韩欧美区一区二| 亚洲成av人片| 一本色道a无线码一区v| 国产欧美一区二区精品性| 免费成人深夜小野草| 欧美日韩国产综合视频在线观看| 亚洲日本在线天堂| aaa欧美大片| 中文字幕欧美日韩一区| 国产在线精品国自产拍免费| 欧美另类z0zxhd电影| 亚洲丶国产丶欧美一区二区三区| 99精品视频在线观看免费| 中文字幕不卡的av| 国产精品一区二区久久不卡| 久久一日本道色综合| 久久成人羞羞网站| 日韩一级片在线观看| 日韩高清欧美激情| 91精品婷婷国产综合久久性色| 亚洲一区欧美一区| 欧美视频完全免费看| 一区二区三区久久| 欧日韩精品视频| 亚洲一级二级三级在线免费观看| 在线免费观看日韩欧美| 亚洲宅男天堂在线观看无病毒| 在线一区二区观看| 亚洲高清免费一级二级三级| 欧美日韩国产中文| 奇米精品一区二区三区在线观看 | 国产综合久久久久久鬼色| 日韩欧美123| 九九热在线视频观看这里只有精品| 欧美videos大乳护士334| 国产综合色精品一区二区三区| 国产亚洲人成网站| gogo大胆日本视频一区| 亚洲激情在线激情| 欧美日本乱大交xxxxx| 免费成人在线观看| 久久精品无码一区二区三区| 成人午夜看片网址| 亚洲欧美色一区| 在线播放中文一区| 狠狠色丁香久久婷婷综| 国产日韩欧美不卡| 91丨porny丨户外露出| 婷婷开心激情综合| 久久综合色一综合色88| 不卡一区二区中文字幕| 亚洲欧美精品午睡沙发| 欧美裸体一区二区三区| 国产一区福利在线| 1024成人网| 日韩欧美一区二区免费| 国产成人精品一区二区三区四区| 亚洲另类在线制服丝袜| 日韩一区二区中文字幕| caoporn国产一区二区| 午夜精品久久久久久久99樱桃| 26uuu亚洲综合色欧美|