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

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

?? test-suite-webcache.tcl

?? ns gpsr路由協(xié)議 在ns2平臺下實現(xiàn)的 對大家很有好處
?? TCL
?? 第 1 頁 / 共 4 頁
字號:
			error "unknown stuff \"$line\" in raw_opt_info"		}	}}proc process_args {} {	global argc argv opts opt_wants_arg	default_options	for {set i 0} {$i < $argc} {incr i} {		set key [lindex $argv $i]		if {$key == "-?" || $key == "--help" || $key == "-help" || $key == "-h"} {			usage		}		regsub {^--} $key {} key		if {![info exists opt_wants_arg($key)]} {			#puts stderr "unknown option $key";			#usage			continue		}		if {$opt_wants_arg($key)} {			incr i			set opts($key) [lindex $argv $i]		} else {			set opts($key) [expr !opts($key)]		}	}}# Startup procedure, called at the end of the scriptproc run {} {	global argc argv opts raw_opt_info	# We don't actually have any real arguments, but we do have 	# various initializations, which the script depends on.	process_args	#set prot $opts(prot)	# Calling convention by test-all-template1: 	# ns <file> <test> [QUIET]	set prot [lindex $argv 0]	set opts(prot) $prot	if {$argc > 1} {		set opts(quiet) 1	} else {		set opts(quiet) 0	}	set test [new Test/$prot]	$test run}#----------------------------------------------------------------------# Section 2 Base class for cache testing#----------------------------------------------------------------------Class Test-Cache -superclass Test# Page lifetime is a uniform distribution in [min, max].Test-Cache set startTime_ 10Test-Cache instproc init {} {	$self next	$self instvar startTime_	set startTime_ [$class set startTime_]	$self set-pagepool	global opts	if [info exists opts(hb-interval)] {		Http/Client set hb_interval_ $opts(hb-interval)		Http/Cache/Inval/Mcast set hb_interval_ $opts(hb-interval)		Http/Server/Inval/Yuc set hb_interval_ $opts(hb-interval)	}	if [info exists opts(upd-interval)] {		Http/Cache/Inval/Mcast set upd_interval_ $opts(upd-interval)	}	if [info exists opts(cache-ims-size)] {		Http set IMSSize_ $opts(cache-ims-size)	}	if [info exists opt(server-inv-size)] {		Http set INVSize_ $opt(server-inv-size)	}	if [info exists opts(cache-ref-size)] {		Http set REFSize_ $opts(cache-ref-size)	}	if [info exists opts(client-req-size)] {		Http set REQSize_ $opts(client-req-size)	}		$self instvar ns_	$ns_ color 40 red	$ns_ color 41 orange	# Set default transport to SimpleTcp	Http set TRANSPORT_ SimpleTcp}# Allow global options to preempt, and derived classes to overwrite.Test-Cache instproc set-server-type { servertype } {	$self instvar serverType_ 	global opts	if [info exists opts(server)] {		set serverType_ $opts(server)	} else {		set serverType_ $servertype	}}Test-Cache instproc set-cache-type { cachetype } {	$self instvar cacheType_ 	global opts	if [info exists opts(cache)] {		set cacheType_ $opts(cache)	} else {		set cacheType_ $cachetype	}}Test-Cache instproc set-client-type { clienttype } {	$self instvar clientType_	global opts	if [info exists opts(client)] {		set clientType_ $opts(client)	} else {		set clientType_ $clienttype	}}Test-Cache instproc set-pagepool {} {	$self instvar startTime_ finishTime_ pgp_	global opts	if [info exists opts(page-file)] {		set pgp_ [new PagePool/Trace $opts(page-file)]		set max [$pgp_ get-poolsize]		set tmp [new RandomVariable/Uniform]		$tmp set min_ 0		$tmp set max_ [expr $max - 1]		$pgp_ ranvar $tmp		$pgp_ set start_time_ $startTime_		set finishTime_ [expr [$pgp_ get-duration] + $startTime_]	} else {		# Use PagePool/Math		set pgp_ [new PagePool/Math]		# Size generator		set tmp [new RandomVariable/Constant]		$tmp set val_ $opts(avg-page-size)		$pgp_ ranvar-size $tmp		# Age generator		$self instvar ageRNG_		if ![info exists ageRNG_] {			set ageRNG_ [new RNG]			$ageRNG_ seed $opts(ns-random-seed)		}		set tmp [new RandomVariable/Exponential]		$tmp use-rng $ageRNG_		$tmp set avg_ $opts(avg-page-age)		$pgp_ ranvar-age $tmp		$pgp_ set start_time_ $startTime_		set finishTime_ [expr $startTime_ + $opts(duration)]	}#	puts "Start at $startTime_, stop at $finishTime_"}Test-Cache instproc set-req-generator { client } {	$self instvar pgp_ reqRNG_	global opts	if ![info exists reqRNG_] {		set reqRNG_ [new RNG]		$reqRNG_ seed $opts(ns-random-seed)	}	set tmp [new RandomVariable/Exponential]	$tmp use-rng $reqRNG_	$tmp set avg_ $opts(avg-req-interval)	$client set-interval-generator $tmp	$client set-page-generator $pgp_}Test-Cache instproc create-members {} {	$self instvar client_ server_ cache_ log_ test_ pgp_ node_ ns_ \		serverType_ cacheType_ clientType_	set st $serverType_	set ct $cacheType_	set lt $clientType_	global opts	if $opts(enable-log) {		set log_ [open "$test_.log" w]		$self write-testconf $log_	}	foreach n [array names node_] {		set type [string range $n 0 0]		set num [string range $n 1 end]		if {$num == ""} {			set num 0		}		switch $type {			s {			 set server_($num) [new Http/Server$st $ns_ $node_($n)]			 $server_($num) set-page-generator $pgp_			 if $opts(enable-log) {				 $server_($num) log $log_			 }			}			e {			 set cache_($num) [new Http/Cache$ct $ns_ $node_($n)]			 if $opts(enable-log) {				 $cache_($num) log $log_			 }			}			c {			  set client_($num) [new Http/Client$lt $ns_ $node_($n)]			  $self set-req-generator $client_($num)			  if $opts(enable-log) {				  $client_($num) log $log_			  }			}		}	}}Test-Cache instproc set-routing {} {	$self instvar ns_ mh_	set mh_ [$ns_ mrtproto CtrMcast {}]	$ns_ rtproto Session}Test-Cache instproc set-members {} {	$self instvar ns_ finishTime_ startTime_	$ns_ at $startTime_ "$self start-connection"#	$ns_ at $finishTime_ "$self finish-connection"}Test-Cache instproc set-groups {} {	# Dummy proc}Test-Cache instproc start-connection {} {	$self instvar ns_	$self create-members	$self set-connections	$self set-groups	# Let initializations settles down, then start requests	$ns_ at [expr [$ns_ now] + 10] "$self start-requests"}# EmptyTest-Cache instproc set-groups {} {}# EmptyTest-Cache instproc set-connections {} {}Test-Cache instproc finish {} {	$self instvar log_	if [info exists log_] {		close $log_	}	$self next}#----------------------------------------------------------------------# Section 3: # Tests of transport protocols and application data transmission over TCP#----------------------------------------------------------------------## Test SimpleTcp#Class Test/SimpleTcp -superclass TestTest/SimpleTcp instproc init {} {	$self set-defnet 2node	$self next	$self instvar startTime_ finishTime_	set startTime_ 10	set finishTime_ 20	Http set TRANSPORT_ SimpleTcp}Test/SimpleTcp instproc set-routing {} {	$self instvar ns_	$ns_ rtproto Session}Test/SimpleTcp instproc set-members {} {	$self instvar ns_ src_ dst_ node_ ftp1_	$ns_ at 1.0 "$self start-connection 0 1"	$ns_ at 9.0 "$self finish-connection 0 1"}# Connect TCP source and destination after simulator startsTest/SimpleTcp instproc start-connection { s d } {	$self instvar ns_ src_ dst_ node_	set src_ [new Agent/TCP/SimpleTcp]	set dst_ [new Agent/TCP/SimpleTcp]	$src_ set fid_ 0	$dst_ set fid_ 0	$ns_ attach-agent $node_($s) $src_	$ns_ attach-agent $node_($d) $dst_	$ns_ connect $src_ $dst_ 	$src_ set dst_ [$dst_ set addr_]	$src_ set window_ 100	$dst_ listen	$ns_ at [expr [$ns_ now] + 1.0] "$src_ send 1000"	$ns_ at [expr [$ns_ now] + 3.0] "$dst_ send 100"}Test/SimpleTcp instproc finish-connection { s d } {	$self instvar ns_ src_ dst_ node_	$src_ close}## Base class for testing TcpApp over SimpleTcp and FullTcp#Class Test-TcpApp -superclass TestTest-TcpApp instproc set-routing {} {	$self instvar ns_	$ns_ rtproto Session}Class Test/TcpApp-2node -superclass Test-TcpAppTest/TcpApp-2node instproc init {} {	$self set-defnet 2node	$self next	$self instvar startTime_ finishTime_ ns_	set startTime_ 10	set finishTime_ 50	$ns_ color 1 red	$ns_ color 2 blue}Test/TcpApp-2node instproc send1 {} {	$self instvar app1_ app2_	$app1_ send 40 "$app2_ recv1 40"}Test/TcpApp-2node instproc send2 {} {	$self instvar app1_ app2_ ns_	$app2_ send 1024 "$app1_ recv2 1024"	$ns_ at [expr [$ns_ now] + 1.0] "$self send2"}Application/TcpApp instproc recv1 { sz } {	set now [[Simulator instance] now]	#puts "$now app2 receives data $sz bytes from app1"}Application/TcpApp instproc recv2 { sz } {	set now [[Simulator instance] now]	#puts "$now app1 receives data $sz bytes from app1"}Test/TcpApp-2node instproc set-members {} { 	$self instvar app1_ app2_ ns_ node_	set tcp1 [new Agent/TCP/FullTcp]	set tcp2 [new Agent/TCP/FullTcp]	$tcp1 set window_ 100	$tcp1 set fid_ 1	$tcp2 set window_ 100	$tcp2 set fid_ 2	$tcp2 set iss_ 1224	$ns_ attach-agent $node_(0) $tcp1	$ns_ attach-agent $node_(1) $tcp2	$ns_ connect $tcp1 $tcp2	$tcp2 listen	set app1_ [new Application/TcpApp $tcp1]	set app2_ [new Application/TcpApp $tcp2]	$app1_ connect $app2_	$ns_ at 1.0 "$self send1"	$ns_ at 1.2 "$self send2"}#----------------------------------------------------------------------# Section 4: Tests of Cache#----------------------------------------------------------------------## test simplest http setup: one client + one server#Class Test/http1 -superclass TestTest/http1 instproc init {} {	$self set-defnet 3node	$self next	$self instvar finishTime_ 	set finishTime_ 40	# Use simple tcp agent	Http set TRANSPORT_ SimpleTcp}Test/http1 instproc set-members {} {	$self instvar ns_ src_ dst_ node_ ftp1_#	set ftp1_ [$src_ attach-app FTP]	$ns_ at 1.0 "$self start-connection 1 0"	$ns_ at 9.0 "$self finish-connection 1 0"	$ns_ at 10.0 "$self start-connection 1 2"	$ns_ at 19.0 "$self finish-connection 1 2"}# Connect TCP source and destination after simulator startsTest/http1 instproc start-connection { s d } {	$self instvar ns_ src_ dst_ node_	set src_ [new Http/Client $ns_ $node_($s)]	set dst_ [new Http/Server $ns_ $node_($d)]	$src_ connect $dst_	$src_ send-request $dst_ GET $dst_:1}Test/http1 instproc finish-connection { s d } {	$self instvar ns_ src_ dst_ node_	$src_ disconnect $dst_}Test/http1 instproc set-routing {} {	$self instvar ns_	$ns_ rtproto Session}Class Test/http1f -superclass Test/http1Test/http1f instproc init args {	eval $self next $args	Http set TRANSPORT_ FullTcp}## Testing HTTP with one cache, one client and one server#Class Test/http2 -superclass TestTest/http2 instproc init {} {	$self set-defnet 3node	$self next	$self instvar finishTime_ 	set finishTime_ 40	Http set TRANSPORT_ SimpleTcp}Test/http2 instproc set-routing {} {	$self instvar ns_	$ns_ rtproto Session}Test/http2 instproc set-members {} {	$self instvar ns_ node_ client_ cache_ server_	set client_ [new Http/Client $ns_ $node_(0)]	set cache_ [new Http/Cache $ns_ $node_(1)]	set server_ [new Http/Server $ns_ $node_(2)]	$ns_ at 1.0 "$self start-connection"	$ns_ at 9.0 "$self finish-connection"	$ns_ at 21.0 "$self start-connection"	$ns_ at 29.0 "$self finish-connection"}# Connect TCP source and destination after simulator startsTest/http2 instproc start-connection {} {	$self instvar ns_ client_ server_ cache_ node_	$client_ connect $cache_	$cache_ connect $server_	$cache_ set-parent $server_	$client_ send-request $cache_ GET $server_:1 }Test/http2 instproc finish-connection {} {	$self instvar client_ server_ cache_	$client_ disconnect $cache_	$cache_ disconnect $server_}Class Test/http2f -superclass Test/http2Test/http2f instproc init args {	eval $self next $args	Http set TRANSPORT_ FullTcp}#----------------------------------------------------------------------# Testing HTTP with one cache, multiple client and one server#----------------------------------------------------------------------Class Test/http3 -superclass TestTest/http3 instproc init {} {	$self set-defnet 5node	$self next	$self instvar finishTime_ 	set finishTime_ 40	Http set TRANSPORT_ SimpleTcp}Test/http3 instproc set-routing {} {	$self instvar ns_	$ns_ rtproto Session}Test/http3 instproc set-members {} {	$self instvar ns_ client_ cache_ server_ node_ test_	set client_(0) [new Http/Client $ns_ $node_(0)]	set client_(1) [new Http/Client $ns_ $node_(1)]	set client_(2) [new Http/Client $ns_ $node_(2)]	set cache_ [new Http/Cache $ns_ $node_(3)]	set server_ [new Http/Server $ns_ $node_(4)]	$ns_ at 1.0 "$self start-connection"	$ns_ at 9.0 "$self finish-connection"	# XXX	# 	# (1) If we set connection restarts time to 10.0, then we may	# have a request sent out at 10.0 *before* the connection is 	# actually re-established, which will result in the lose of a 	# request packet and the blocking of subsequent requests.	# 	# (2) Currently when a connection is shut down, we do *NOT* 	# clean up pending requests. This will result in the possible	# blocking of requests after the connection is re-established. 	# This test illustrates this effect.	# 	# The cleaning of a cache after disconnection is currently *NOT*	# implemented. It can be disconnected but its behavior after	# re-connection is not defined. NOTE: disconnection means 	# explicitly call Http::disconnect(). Link dynamics and losses 	# are supported.	$ns_ at 9.9 "$self start-connection"	$ns_ at 19.0 "$self finish-connection"}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩精品一区二区三区在线观看| 精品国产免费一区二区三区香蕉| 免费看精品久久片| 中文一区二区在线观看| 欧美日韩在线亚洲一区蜜芽| 极品美女销魂一区二区三区免费| 亚洲日本中文字幕区| 欧美成人精品1314www| 91福利精品视频| 国产精品一区三区| 日韩中文字幕不卡| 亚洲人成网站在线| 国产欧美一区二区精品性| 欧美妇女性影城| 91成人在线观看喷潮| 波多野结衣一区二区三区| 久久超级碰视频| 日韩电影一区二区三区| 一区二区理论电影在线观看| 国产精品女上位| 久久在线观看免费| 欧美xxxx老人做受| 欧美高清性hdvideosex| 欧美三级中文字幕在线观看| 91视频在线观看| 99re8在线精品视频免费播放| 国产suv一区二区三区88区| 狠狠色丁香婷婷综合| 美美哒免费高清在线观看视频一区二区| 亚洲欧美日韩精品久久久久| 中日韩av电影| 国产精品嫩草99a| 国产精品视频一二| 国产亚洲精品bt天堂精选| 精品美女被调教视频大全网站| 欧美一区三区四区| 91精品国产黑色紧身裤美女| 欧美亚洲丝袜传媒另类| 在线观看视频91| 欧美三日本三级三级在线播放| 欧美在线你懂得| 欧美丰满美乳xxx高潮www| 欧美在线视频你懂得| 欧美日本一道本| 56国语精品自产拍在线观看| 欧美精品自拍偷拍| 欧美日韩视频第一区| 91精品中文字幕一区二区三区| 91精品国产免费| 欧美电视剧在线看免费| 2017欧美狠狠色| 亚洲国产岛国毛片在线| 亚洲欧洲色图综合| 亚洲影视在线播放| 亚洲成人午夜电影| 免费成人美女在线观看.| 极品美女销魂一区二区三区| 国产99久久久国产精品潘金网站| 成人午夜激情影院| 色综合天天综合网天天狠天天 | 亚洲成人在线免费| 日韩vs国产vs欧美| 精品影院一区二区久久久| 激情小说欧美图片| 成人污污视频在线观看| 日本高清成人免费播放| 欧美群妇大交群的观看方式 | 最新欧美精品一区二区三区| 亚洲女同ⅹxx女同tv| 午夜av一区二区三区| 老司机精品视频在线| jvid福利写真一区二区三区| 欧美三区在线视频| 亚洲精品在线一区二区| 国产精品麻豆99久久久久久| 亚洲一区二区在线播放相泽| 日本一区中文字幕 | 成人av在线网站| 色综合天天综合网天天狠天天| 欧美一区午夜视频在线观看| 日本一区二区免费在线观看视频| 亚洲综合视频在线观看| 精品在线播放午夜| 色爱区综合激月婷婷| 日韩欧美高清在线| 一区二区三区在线不卡| 久久www免费人成看片高清| 99久久精品国产麻豆演员表| 欧美一卡二卡在线| 中文字幕一区二区三区在线不卡| 亚洲成人免费视| 成人黄色综合网站| 欧美大胆人体bbbb| 一区二区三区成人在线视频| 精品一区二区在线播放| 在线精品视频一区二区| 久久精品无码一区二区三区| 亚洲成在人线在线播放| 成人动漫一区二区三区| 91精品国产福利| 一区二区三区久久| 国产二区国产一区在线观看| 欧美丝袜丝交足nylons图片| 国产亚洲成年网址在线观看| 香蕉久久夜色精品国产使用方法| 97久久人人超碰| 久久久久久97三级| 日本麻豆一区二区三区视频| 色播五月激情综合网| 中文字幕中文乱码欧美一区二区| 久久99精品国产麻豆婷婷| 欧美日韩精品高清| 亚洲精品少妇30p| 成人黄色在线网站| 久久精品这里都是精品| 卡一卡二国产精品| 91精品国产福利| 亚洲1区2区3区视频| 91浏览器在线视频| 亚洲欧洲日韩综合一区二区| 国产成都精品91一区二区三| 久久久亚洲高清| 精品一区二区免费看| 欧美剧在线免费观看网站 | 欧美日韩国产首页在线观看| 日韩毛片视频在线看| 不卡电影一区二区三区| 国产欧美视频在线观看| 久久福利资源站| 精品国产乱码久久久久久影片| 午夜精品久久久久久久99水蜜桃 | av一区二区三区在线| 久久精品夜色噜噜亚洲a∨| 国产一区二区女| 久久久久久一级片| 国产精品资源在线| 国产色综合一区| 大胆欧美人体老妇| 欧美激情综合五月色丁香小说| 成人午夜在线播放| 国产精品嫩草影院com| 97se亚洲国产综合在线| 亚洲黄色av一区| 欧美专区日韩专区| 亚洲h精品动漫在线观看| 91精品国产欧美日韩| 老司机午夜精品| 国产视频一区不卡| 91丨porny丨最新| 亚洲高清在线视频| 日韩一二三区视频| 国产在线精品视频| 国产精品传媒视频| 色婷婷综合久久久中文一区二区| 亚洲精品国产无套在线观| 精品视频一区二区不卡| 天天色天天爱天天射综合| 这里只有精品99re| 国产一区二区免费看| 国产精品美女一区二区在线观看| av中文字幕不卡| 亚洲第一二三四区| 久久伊人中文字幕| 一本到一区二区三区| 无吗不卡中文字幕| 亚洲精品一区二区三区香蕉 | 欧美日韩一区二区三区高清| 日本在线播放一区二区三区| 久久久美女毛片| 色婷婷狠狠综合| 美女一区二区视频| 亚洲国产高清aⅴ视频| 欧美午夜在线观看| 久久99国产精品免费| 椎名由奈av一区二区三区| 欧美性色欧美a在线播放| 久久97超碰色| 亚洲欧美自拍偷拍| 欧美一级日韩不卡播放免费| 成人激情动漫在线观看| 午夜电影久久久| 国产精品视频免费| 制服视频三区第一页精品| 成人综合在线网站| 天堂午夜影视日韩欧美一区二区| 国产亚洲一区字幕| 欧美日韩一区二区三区在线| 国产一区二区看久久| 亚洲影院免费观看| 中文字幕乱码日本亚洲一区二区 | 成人激情免费网站| 日本vs亚洲vs韩国一区三区 | 成人久久视频在线观看| 日韩激情av在线| 最近日韩中文字幕| 久久久夜色精品亚洲| 91精品免费在线观看| 99精品久久99久久久久| 精品一区二区三区av| 午夜精品成人在线视频|