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

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

?? test-suite-algo-routing.tcl

?? ns gpsr路由協(xié)議 在ns2平臺(tái)下實(shí)現(xiàn)的 對(duì)大家很有好處
?? TCL
字號(hào):
# This test suite is for validating the algorithmic routing support# in ns.## To run all tests:  test-all-algo-routing## To run individual tests:# ns test-suite-algo-routing.tcl Algo1# ns test-suite-algo-routing.tcl Algo2# ...## To view a list of available tests to run with this script:# ns test-suite-mixmode.tcl#Class TestSuiteTestSuite instproc init {} {	$self instvar ns_ net_ defNet_ test_ topo_ node_ testName_	set ns_ [new Simulator]	#$ns_ use-scheduler List        $ns_ multicast	$ns_ trace-all [open temp.rands w]	$ns_ namtrace-all [open temp.rands.nam w]	$ns_ color 1 red	$ns_ color 0 blue	if {$net_ == ""} {		set net_ $defNet_	}	if ![Topology/$defNet_ info subclass Topology/$net_] {		global argv0		puts "$argv0: cannot run test $test_ over topology $net_"		exit 1	}	set topo_ [new Topology/$net_ $ns_]	foreach i [$topo_ array names node_] {		# This would be cool, but lets try to be compatible		# with test-suite.tcl as far as possible.		#		# $self instvar $i		# set $i [$topo_ node? $i]		#		set node_($i) [$topo_ node? $i]	}	if {$net_ == $defNet_} {		set testName_ "$test_"	} else {		set testName_ "$test_:$net_"	}}TestSuite instproc finish args {	$self instvar ns_		$ns_ flush-trace	exit 0}proc usage {} {	global argv0	puts stderr "usage: ns $argv0 <tests> \[<topologies>\]"	puts stderr "Valid tests are:\t[get-subclasses TestSuite Test/]"	puts stderr "Valid Topologies are:\t[get-subclasses SkelTopology Topology/]"	exit 1}proc isProc? {cls prc} {	if [catch "Object info subclass $cls/$prc" r] {		global argv0		puts stderr "$argv0: no such $cls: $prc"		usage	}}proc get-subclasses {cls pfx} {	set ret ""	set l [string length $pfx]	set c $cls	while {[llength $c] > 0} {		set t [lindex $c 0]		set c [lrange $c 1 end]		if [string match ${pfx}* $t] {			lappend ret [string range $t $l end]		}		eval lappend c [$t info subclass]	}	set ret}TestSuite proc runTest {} {	global argc argv	switch $argc {		1 {			set test $argv			isProc? Test $test			set topo ""		}		2 {			set test [lindex $argv 0]			isProc? Test $test			set a [lindex $argv 1]			if {$a == "QUIET"} {				set topo ""			} else {				set topo $a				isProc? Topology $topo			}		}		default {			usage		}	}	set t [new Test/$test $topo]	$t run}# Skeleton topology base classClass SkelTopologySkelTopology instproc init {} {    $self next}SkelTopology instproc node? n {    $self instvar node_    if [info exists node_($n)] {	set ret $node_($n)    } else {	set ret ""    }    set ret}SkelTopology instproc add-fallback-links {ns nodelist bw delay qtype args} {   $self instvar node_    set n1 [lindex $nodelist 0]    foreach n2 [lrange $nodelist 1 end] {	if ![info exists node_($n2)] {	    set node_($n2) [$ns node]	}	$ns duplex-link $node_($n1) $node_($n2) $bw $delay $qtype	foreach opt $args {	    set cmd [lindex $opt 0]	    set val [lindex $opt 1]	    if {[llength $opt] > 2} {		set x1 [lindex $opt 2]		set x2 [lindex $opt 3]	    } else {		set x1 $n1		set x2 $n2	    }	    $ns $cmd $node_($x1) $node_($x2) $val	    $ns $cmd $node_($x2) $node_($x1) $val	}	set n1 $n2    }}Class NodeTopology/6nodes -superclass SkelTopologyNodeTopology/6nodes instproc init ns {    $self next    $self instvar node_    set node_(n0) [$ns node]    set node_(n1) [$ns node]    set node_(n2) [$ns node]    set node_(n3) [$ns node]    set node_(n4) [$ns node]    set node_(n5) [$ns node]}Class Topology/net6 -superclass NodeTopology/6nodes## Create a simple six node topology:##                  n0#                 /  \                    #               n1    n2#              /  \  /  \#             n3   n4   n5## All links are of 1.5Mbps bandwidth with 10ms latency#Topology/net6 instproc init ns {    $self next $ns    $self instvar node_    Simulator set NumberInterfaces_ 1    $ns duplex-link $node_(n0) $node_(n1) 1.5Mb 10ms DropTail     $ns duplex-link $node_(n0) $node_(n2) 1.5Mb 10ms DropTail     $ns duplex-link $node_(n1) $node_(n3) 1.5Mb 10ms DropTail     $ns duplex-link $node_(n1) $node_(n4) 1.5Mb 10ms DropTail     $ns duplex-link $node_(n2) $node_(n4) 1.5Mb 10ms DropTail     $ns duplex-link $node_(n2) $node_(n5) 1.5Mb 10ms DropTail     if {[$class info instprocs config] != ""} {	$self config $ns    }}Class NodeTopology/3nodes -superclass SkelTopologyNodeTopology/3nodes instproc init ns {    $self next    $self instvar node_    set node_(n0) [$ns node]    set node_(n1) [$ns node]    set node_(n2) [$ns node]}Class Topology/net3 -superclass NodeTopology/3nodes## Create a simple six node topology:##                  n0#                 /  \                    #               n1 -- n2## All links are of 1.5Mbps bandwidth with 10ms latency#Topology/net3 instproc init ns {    $self next $ns    $self instvar node_    $ns duplex-link $node_(n0) $node_(n1) 1.5Mb 10ms DropTail     $ns duplex-link $node_(n0) $node_(n2) 1.5Mb 10ms DropTail     $ns duplex-link $node_(n1) $node_(n2) 1.5Mb 10ms DropTail     if {[$class info instprocs config] != ""} {	$self config $ns    }}# Definition of test-suite tests# Testing algorithmic routing in a simple topologyClass Test/Algo1 -superclass TestSuiteTest/Algo1 instproc init net {	$self instvar defNet_ test_ net_	set defNet_	net3	set test_	Algo1	set net_	$net	$self next}Test/Algo1 instproc run {} {	$self instvar ns_ node_ testName_        $ns_ rtproto Algorithmic        set mproto CtrMcast        set mrthandle [$ns_ mrtproto $mproto {}]        if {$mrthandle != ""} {	    $mrthandle set_c_rp [list $node_(n2)]	}        if {$mrthandle != ""} {	    $ns_ at 0.3 "$mrthandle switch-treetype 0x8001"        }	set udp0 [new Agent/UDP]	$ns_ attach-agent $node_(n1) $udp0	$udp0 set dst_ 0x8001	$udp0 set class_ 1	set cbr0 [new Application/Traffic/CBR]	$cbr0 attach-agent $udp0		set rcvr0 [new Agent/LossMonitor]	$ns_ attach-agent $node_(n0) $rcvr0	set rcvr1 [new Agent/LossMonitor]	$ns_ attach-agent $node_(n1) $rcvr1	set rcvr2 [new Agent/LossMonitor]	$ns_ attach-agent $node_(n2) $rcvr2	$ns_ at 0.1 "$cbr0 start"	$ns_ at 0.1 "$node_(n1) join-group $rcvr1 0x8001"	$ns_ at 0.1 "$node_(n0) join-group $rcvr0 0x8001"	$ns_ at 0.1 "$node_(n2) join-group $rcvr2 0x8001"		$ns_ at 0.5 "$self finish [list $rcvr0 $rcvr1 $rcvr2]"	$ns_ run}# Testing algorithmic routing with multicast in a simple topologyClass Test/Algo2 -superclass TestSuiteTest/Algo2 instproc init net {	$self instvar defNet_ test_ net_	set defNet_	net6	set test_	Algo2	set net_	$net	$self next}Test/Algo2 instproc run {} {	$self instvar ns_ node_ testName_        $ns_ rtproto Algorithmic        set mproto CtrMcast        set mrthandle [$ns_ mrtproto $mproto {}]        if {$mrthandle != ""} {	    $mrthandle set_c_rp [list $node_(n2)]	}        if {$mrthandle != ""} {	    $ns_ at 0.3 "$mrthandle switch-treetype 0x8001"        }	set udp0 [new Agent/UDP]	$ns_ attach-agent $node_(n4) $udp0	$udp0 set dst_ 0x8001	$udp0 set class_ 1	set cbr0 [new Application/Traffic/CBR]	$cbr0 attach-agent $udp0		set rcvr0 [new Agent/LossMonitor]	$ns_ attach-agent $node_(n0) $rcvr0	set rcvr1 [new Agent/LossMonitor]	$ns_ attach-agent $node_(n1) $rcvr1	set rcvr2 [new Agent/LossMonitor]	$ns_ attach-agent $node_(n2) $rcvr2	set rcvr3 [new Agent/LossMonitor]	$ns_ attach-agent $node_(n3) $rcvr3	set rcvr4 [new Agent/LossMonitor]	$ns_ attach-agent $node_(n4) $rcvr4	set rcvr5 [new Agent/LossMonitor]	$ns_ attach-agent $node_(n5) $rcvr5	$ns_ at 0.1 "$cbr0 start"	$ns_ at 0.1 "$node_(n1) join-group $rcvr1 0x8001"	$ns_ at 0.1 "$node_(n0) join-group $rcvr0 0x8001"	$ns_ at 0.1 "$node_(n3) join-group $rcvr3 0x8001"	$ns_ at 0.1 "$node_(n2) join-group $rcvr2 0x8001"	$ns_ at 0.1 "$node_(n4) join-group $rcvr4 0x8001"	$ns_ at 0.1 "$node_(n5) join-group $rcvr5 0x8001"		$ns_ at 0.5 "$self finish [list $rcvr0 $rcvr1 $rcvr2 $rcvr3 $rcvr4 $rcvr5]"	$ns_ run}TestSuite runTest

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色综合婷婷久久| 91精品欧美综合在线观看最新| 一区二区三区av电影| 日韩欧美综合在线| 91麻豆福利精品推荐| 黄色精品一二区| 天天综合色天天| 亚洲老司机在线| 久久婷婷成人综合色| 欧美老人xxxx18| 一本高清dvd不卡在线观看| 国产一区在线精品| 日本亚洲电影天堂| 亚洲与欧洲av电影| 亚洲视频一区在线观看| 国产午夜精品美女毛片视频| 日韩欧美123| 91精品国产免费久久综合| 欧美在线不卡视频| 色综合一个色综合亚洲| 成人av在线一区二区三区| 国产iv一区二区三区| 精品在线亚洲视频| 老司机精品视频在线| 午夜av电影一区| 午夜精品在线视频一区| 亚洲成av人片| 亚洲高清不卡在线观看| 亚洲一级电影视频| 一区二区三区色| 中文字幕在线观看一区| 国产精品久久99| 国产精品久久久久影视| 成人免费在线视频观看| 欧美国产97人人爽人人喊| 黄色精品一二区| 一区二区三区在线看| 亚洲欧美偷拍三级| 亚洲另类在线视频| 一区二区三区在线不卡| 亚洲主播在线播放| 午夜电影一区二区三区| 日韩中文字幕91| 麻豆成人在线观看| 精品制服美女丁香| 国产精品资源站在线| 国产91丝袜在线18| 99久久婷婷国产| 在线视频欧美区| 欧美人妇做爰xxxⅹ性高电影| 91精品国产综合久久香蕉的特点 | 国产高清久久久久| 国产精品香蕉一区二区三区| 国产99久久久国产精品免费看 | 首页国产欧美日韩丝袜| 免费人成精品欧美精品| 国产一区高清在线| av电影在线观看完整版一区二区| 91视频在线看| 欧美日韩精品三区| 欧美mv日韩mv国产网站app| 久久久精品影视| 亚洲日本乱码在线观看| 亚洲不卡av一区二区三区| 久久69国产一区二区蜜臀| 丁香六月久久综合狠狠色| 91成人网在线| 日韩精品在线一区| 中文字幕亚洲在| 午夜精品久久久久久| 黄页视频在线91| 一本在线高清不卡dvd| 日韩一级片在线观看| 国产精品色婷婷| 首页欧美精品中文字幕| 成人午夜激情视频| 欧美区一区二区三区| 国产精品网站一区| 午夜精品爽啪视频| va亚洲va日韩不卡在线观看| 色婷婷综合五月| 国产91丝袜在线观看| 欧美日韩在线一区二区| 久久久精品中文字幕麻豆发布| 一二三区精品视频| 国产精品白丝jk黑袜喷水| 色999日韩国产欧美一区二区| 日韩三级中文字幕| 自拍偷拍欧美精品| 国产又黄又大久久| 欧美日韩亚洲另类| 日韩毛片高清在线播放| 看片网站欧美日韩| 欧美日韩黄色一区二区| 欧美激情在线免费观看| 老司机一区二区| 欧美日韩在线一区二区| 国产精品黄色在线观看| 蜜桃av一区二区| 欧美日韩在线播放一区| 国产精品久久久久久久久免费相片| 日本午夜一本久久久综合| 色拍拍在线精品视频8848| 久久久噜噜噜久久中文字幕色伊伊| 亚洲r级在线视频| 99久久伊人网影院| 久久亚洲捆绑美女| 日本美女一区二区三区| 日本韩国欧美一区二区三区| 国产精品入口麻豆原神| 国产精品系列在线播放| 精品日韩欧美一区二区| 日本成人超碰在线观看| 色94色欧美sute亚洲线路一久| 国产精品久久久久久久久免费丝袜 | 久久蜜臀精品av| 免费成人美女在线观看.| 欧美日韩激情一区二区| 亚洲一级片在线观看| 色婷婷精品久久二区二区蜜臀av| 中文字幕中文字幕一区| 国产一区二区在线视频| 精品国产欧美一区二区| 日韩激情视频在线观看| 在线播放中文字幕一区| 亚洲地区一二三色| 欧美日韩国产综合一区二区| 一区二区三区精密机械公司| 91欧美一区二区| 亚洲欧美成人一区二区三区| 激情五月激情综合网| 成人av影院在线| 中文字幕乱码一区二区免费| 国产成人综合自拍| 久久九九全国免费| 东方欧美亚洲色图在线| 国产精品系列在线| www.色精品| 一区二区成人在线| 欧美四级电影在线观看| 亚洲国产精品久久艾草纯爱| 欧美日韩一二三区| 日本欧美一区二区三区| 日韩精品一区二区三区四区 | 久久综合五月天婷婷伊人| 久草精品在线观看| 精品国产免费人成在线观看| 国产综合一区二区| 欧美经典三级视频一区二区三区| av资源站一区| 亚洲香肠在线观看| 日韩欧美中文一区二区| 国产一区不卡精品| 国产精品理论片| 欧美无砖砖区免费| 青青草国产精品亚洲专区无| 久久理论电影网| 91一区二区在线| 午夜国产不卡在线观看视频| 精品国产一区二区三区av性色| 国产高清不卡二三区| 国产精品不卡在线观看| 欧美日韩三级一区| 国内久久精品视频| 亚洲美女在线国产| 欧美一区二区三区公司| 成人免费va视频| 亚洲va中文字幕| 久久久综合精品| 91久久精品国产91性色tv| 美女视频网站久久| 亚洲欧洲在线观看av| 欧美精品 日韩| 懂色av一区二区在线播放| 亚洲国产精品久久人人爱蜜臀| 日韩精品一区二区三区swag| 99精品视频中文字幕| 日本欧美一区二区三区乱码| 国产精品毛片a∨一区二区三区| 欧美精品精品一区| 成人激情小说网站| 免费在线观看视频一区| 亚洲视频图片小说| 精品理论电影在线| 欧美三级日韩三级国产三级| 国产传媒日韩欧美成人| 天堂成人国产精品一区| 国产精品二区一区二区aⅴ污介绍| 欧美一区二区三区公司| 91女厕偷拍女厕偷拍高清| 韩国中文字幕2020精品| 亚洲国产视频一区二区| 日本一区二区视频在线| 91精品久久久久久久久99蜜臂| 成人福利视频网站| 精品伊人久久久久7777人| 亚洲综合视频网| 中文字幕一区二区三区在线不卡| 欧美成人激情免费网| 欧美精品乱码久久久久久|