⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 test-suite-sctp.tcl

📁 跑leach需要的
💻 TCL
📖 第 1 页 / 共 5 页
字号:
	$sctp0 set debugMask_ -1 	$sctp0 set debugFileIndex_ 0	set trace_ch [open trace.sctp w]	$sctp0 set trace_all_ 1	$sctp0 trace cwnd_	$sctp0 trace rto_	$sctp0 trace errorCount_	$sctp0 attach $trace_ch    }        set sctp1 [new Agent/SCTP]    $ns multihome-attach-agent $host1_core $sctp1    $sctp1 set mtu_ 1500    $sctp1 set initialRwnd_ 131072    $sctp1 set useDelayedSacks_ 1        if {$quiet == 0} {	$sctp1 set debugMask_ -1	$sctp1 set debugFileIndex_ 1    }        $ns connect $sctp0 $sctp1    $sctp0 set-primary-destination $host1_if0        set ftp0 [new Application/FTP]    $ftp0 attach-agent $sctp0}Test/sctp-multihome2-2Timeout instproc run {} {    $self instvar ns ftp0    $ns at 0.5 "$ftp0 start"    $ns at 12.0 "$self finish"    $ns run}Test/sctp-multihome2-R-2 instproc init {} {    $self instvar ns testName host1_if1 sctp0 ftp0    global quiet    set testName multihome2-R-2    $self next    set host0_core [$ns node]    set host0_if0 [$ns node]    set host0_if1 [$ns node]    $host0_core color Red    $host0_if0 color Red    $host0_if1 color Red    $ns multihome-add-interface $host0_core $host0_if0    $ns multihome-add-interface $host0_core $host0_if1    set host1_core [$ns node]    set host1_if0 [$ns node]    set host1_if1 [$ns node]    $host1_core color Blue    $host1_if0 color Blue    $host1_if1 color Blue    $ns multihome-add-interface $host1_core $host1_if0    $ns multihome-add-interface $host1_core $host1_if1    set router [$ns node]    $ns duplex-link $host0_if0 $router .5Mb 200ms DropTail    $ns duplex-link $host0_if1 $router .5Mb 200ms DropTail    $ns duplex-link $host1_if0 $router .5Mb 200ms DropTail    $ns duplex-link $host1_if1 $router .5Mb 200ms DropTail    set sctp0 [new Agent/SCTP]    $ns multihome-attach-agent $host0_core $sctp0    $sctp0 set mtu_ 1500    $sctp0 set dataChunkSize_ 1468    $sctp0 set numOutStreams_ 1    if {$quiet == 0} {	$sctp0 set debugMask_ -1 	$sctp0 set debugFileIndex_ 0	set trace_ch [open trace.sctp w]	$sctp0 set trace_all_ 1	$sctp0 trace cwnd_	$sctp0 trace rto_	$sctp0 trace errorCount_	$sctp0 attach $trace_ch    }    set sctp1 [new Agent/SCTP]    $ns multihome-attach-agent $host1_core $sctp1    $sctp1 set mtu_ 1500    $sctp1 set initialRwnd_ 131072     $sctp1 set useDelayedSacks_ 1    if {$quiet == 0} {	$sctp1 set debugMask_ -1 	$sctp1 set debugFileIndex_ 1    }    $ns connect $sctp0 $sctp1    set ftp0 [new Application/FTP]    $ftp0 attach-agent $sctp0    $sctp0 set-primary-destination $host1_if0    }Test/sctp-multihome2-R-2 instproc run {} {    $self instvar ns host1_if1 sctp0 ftp0    $ns at 7.5 "$sctp0 set-primary-destination $host1_if1"    $ns at 0.5 "$ftp0 start"    $ns at 12.0 "$self finish"    $ns run}Test/sctp-multihome3-3Timeout instproc init {} {    $self instvar ns testName ftp0    global quiet    set testName multihome3-3Timeout    $self next        set host0_core [$ns node]    set host0_if0 [$ns node]    set host0_if1 [$ns node]    set host0_if2 [$ns node]    $host0_core color Red    $host0_if0 color Red    $host0_if1 color Red    $host0_if2 color Red    $ns multihome-add-interface $host0_core $host0_if0    $ns multihome-add-interface $host0_core $host0_if1    $ns multihome-add-interface $host0_core $host0_if2    set host1_core [$ns node]    set host1_if0 [$ns node]    set host1_if1 [$ns node]    set host1_if2 [$ns node]    $host1_core color Blue    $host1_if0 color Blue    $host1_if1 color Blue    $host1_if2 color Blue    $ns multihome-add-interface $host1_core $host1_if0    $ns multihome-add-interface $host1_core $host1_if1    $ns multihome-add-interface $host1_core $host1_if2    $ns duplex-link $host0_if0 $host1_if0 .5Mb 200ms DropTail    $ns duplex-link $host0_if1 $host1_if1 .5Mb 200ms DropTail    $ns duplex-link $host0_if2 $host1_if2 .5Mb 200ms DropTail    set err0 [new ErrorModel/List]    $err0 droplist {15}    $ns lossmodel $err0 $host0_if0 $host1_if0    set err1 [new ErrorModel/List]    $err1 droplist {0}    $ns lossmodel $err1 $host0_if1 $host1_if1    set sctp0 [new Agent/SCTP]    $ns multihome-attach-agent $host0_core $sctp0    $sctp0 set mtu_ 1500    $sctp0 set dataChunkSize_ 1468    $sctp0 set numOutStreams_ 1    $sctp0 set oneHeartbeatTimer_ 0    if {$quiet == 0} {	$sctp0 set debugMask_ -1 	$sctp0 set debugFileIndex_ 0	set trace_ch [open trace.sctp w]	$sctp0 set trace_all_ 1	$sctp0 trace cwnd_	$sctp0 trace rto_	$sctp0 trace errorCount_	$sctp0 attach $trace_ch    }    set sctp1 [new Agent/SCTP]    $ns multihome-attach-agent $host1_core $sctp1    $sctp1 set mtu_ 1500    $sctp1 set initialRwnd_ 131072     $sctp1 set useDelayedSacks_ 1    if {$quiet == 0} {	$sctp1 set debugMask_ -1 	$sctp1 set debugFileIndex_ 1    }    $ns connect $sctp0 $sctp1    $sctp0 set-primary-destination $host1_if0    set ftp0 [new Application/FTP]    $ftp0 attach-agent $sctp0}Test/sctp-multihome3-3Timeout instproc run {} {    $self instvar ns ftp0    $ns at 0.5 "$ftp0 start"    $ns at 10.0 "$self finish"    $ns run}Test/sctp-multipleDropsSameWnd-1 instproc init {} {    $self instvar ns testName ftp0    global quiet    set testName multipleDropsSameWnd-1    $self next    set n0 [$ns node]    set n1 [$ns node]    $ns duplex-link $n0 $n1 .5Mb 200ms DropTail    $ns duplex-link-op $n0 $n1 orient right        set err [new ErrorModel/List]    $err droplist {12 13 15}    $ns lossmodel $err $n0 $n1    set sctp0 [new Agent/SCTP]    $ns attach-agent $n0 $sctp0    $sctp0 set mtu_ 1500    $sctp0 set dataChunkSize_ 1468     $sctp0 set numOutStreams_ 1        if {$quiet == 0} {	$sctp0 set debugMask_ -1 	$sctp0 set debugFileIndex_ 0	set trace_ch [open trace.sctp w]	$sctp0 set trace_all_ 1	$sctp0 trace cwnd_	$sctp0 trace rto_	$sctp0 trace errorCount_	$sctp0 attach $trace_ch    }    set sctp1 [new Agent/SCTP]    $ns attach-agent $n1 $sctp1    $sctp1 set mtu_ 1500    $sctp1 set initialRwnd_ 131072    $sctp1 set useDelayedSacks_ 0    if {$quiet == 0} {	$sctp1 set debugMask_ -1 	$sctp1 set debugFileIndex_ 1    }       $ns connect $sctp0 $sctp1        set ftp0 [new Application/FTP]    $ftp0 attach-agent $sctp0}Test/sctp-multipleDropsSameWnd-1 instproc run {} {    $self instvar ns ftp0    $ns at 0.5 "$ftp0 start"    $ns at 7.0 "$self finish"        $ns run}Test/sctp-multipleDropsSameWnd-1-delayed instproc init {} {    $self instvar ns testName ftp0    global quiet    set testName multipleDropsSameWnd-1-delayed    $self next    set n0 [$ns node]    set n1 [$ns node]    $ns duplex-link $n0 $n1 .5Mb 200ms DropTail    $ns duplex-link-op $n0 $n1 orient right        set err [new ErrorModel/List]    $err droplist {12 13 15}    $ns lossmodel $err $n0 $n1        set sctp0 [new Agent/SCTP]    $ns attach-agent $n0 $sctp0    $sctp0 set mtu_ 1500    $sctp0 set dataChunkSize_ 1468     $sctp0 set numOutStreams_ 1        if {$quiet == 0} {	$sctp0 set debugMask_ -1 	$sctp0 set debugFileIndex_ 0	set trace_ch [open trace.sctp w]	$sctp0 set trace_all_ 1	$sctp0 trace cwnd_	$sctp0 trace rto_	$sctp0 trace errorCount_	$sctp0 attach $trace_ch    }       set sctp1 [new Agent/SCTP]    $ns attach-agent $n1 $sctp1    $sctp1 set mtu_ 1500    $sctp1 set initialRwnd_ 131072    $sctp1 set useDelayedSacks_ 1        if {$quiet == 0} {	$sctp1 set debugMask_ -1 	$sctp1 set debugFileIndex_ 1    }       $ns connect $sctp0 $sctp1        set ftp0 [new Application/FTP]    $ftp0 attach-agent $sctp0}Test/sctp-multipleDropsSameWnd-1-delayed instproc run {} {    $self instvar ns ftp0    $ns at 0.5 "$ftp0 start"    $ns at 7.0 "$self finish"        $ns run}Test/sctp-multipleDropsSameWnd-2 instproc init {} {    $self instvar ns testName ftp0    global quiet    set testName multipleDropsSameWnd-2    $self next    set n0 [$ns node]    set n1 [$ns node]    $ns duplex-link $n0 $n1 .5Mb 200ms DropTail    $ns duplex-link-op $n0 $n1 orient right        set err [new ErrorModel/List]    $err droplist {12 13 14 15}    $ns lossmodel $err $n0 $n1        set sctp0 [new Agent/SCTP]    $ns attach-agent $n0 $sctp0    $sctp0 set mtu_ 1500    $sctp0 set dataChunkSize_ 1468     $sctp0 set numOutStreams_ 1        if {$quiet == 0} {	$sctp0 set debugMask_ -1 	$sctp0 set debugFileIndex_ 0	set trace_ch [open trace.sctp w]	$sctp0 set trace_all_ 1	$sctp0 trace cwnd_	$sctp0 trace rto_	$sctp0 trace errorCount_	$sctp0 attach $trace_ch    }       set sctp1 [new Agent/SCTP]    $ns attach-agent $n1 $sctp1    $sctp1 set mtu_ 1500    $sctp1 set initialRwnd_ 131072    $sctp1 set useDelayedSacks_ 0        if {$quiet == 0} {	$sctp1 set debugMask_ -1 	$sctp1 set debugFileIndex_ 1    }       $ns connect $sctp0 $sctp1        set ftp0 [new Application/FTP]    $ftp0 attach-agent $sctp0}Test/sctp-multipleDropsSameWnd-2 instproc run {} {    $self instvar ns ftp0    $ns at 0.5 "$ftp0 start"    $ns at 7.0 "$self finish"        $ns run}Test/sctp-multipleDropsSameWnd-3 instproc init {} {    $self instvar ns testName ftp0    global quiet    set testName multipleDropsSameWnd-3    $self next    set n0 [$ns node]    set n1 [$ns node]    $ns duplex-link $n0 $n1 .5Mb 200ms DropTail    $ns duplex-link-op $n0 $n1 orient right        set err [new ErrorModel/List]    $err droplist {11 12 14 15}    $ns lossmodel $err $n0 $n1        set sctp0 [new Agent/SCTP]    $ns attach-agent $n0 $sctp0    $sctp0 set mtu_ 1500    $sctp0 set dataChunkSize_ 1468     $sctp0 set numOutStreams_ 1        if {$quiet == 0} {	$sctp0 set debugMask_ -1 	$sctp0 set debugFileIndex_ 0	set trace_ch [open trace.sctp w]	$sctp0 set trace_all_ 1	$sctp0 trace cwnd_	$sctp0 trace rto_	$sctp0 trace errorCount_	$sctp0 attach $trace_ch    }       set sctp1 [new Agent/SCTP]    $ns attach-agent $n1 $sctp1    $sctp1 set mtu_ 1500    $sctp1 set initialRwnd_ 131072    $sctp1 set useDelayedSacks_ 0        if {$quiet == 0} {	$sctp1 set debugMask_ -1 	$sctp1 set debugFileIndex_ 1    }       $ns connect $sctp0 $sctp1        set ftp0 [new Application/FTP]    $ftp0 attach-agent $sctp0}Test/sctp-multipleDropsSameWnd-3 instproc run {} {    $self instvar ns ftp0    $ns at 0.5 "$ftp0 start"    $ns at 7.0 "$self finish"        $ns run}Test/sctp-multipleDropsTwoWnds-1-delayed instproc init {} {    $self instvar ns testName ftp0    global quiet    set testName multipleDropsTwoWnds-1-delayed    $self next    set n0 [$ns node]    set n1 [$ns node]    $ns duplex-link $n0 $n1 .5Mb 200ms DropTail    $ns duplex-link-op $n0 $n1 orient right        set err [new ErrorModel/List]    $err droplist {14 15 16 17}    $ns lossmodel $err $n0 $n1        set sctp0 [new Agent/SCTP]    $ns attach-agent $n0 $sctp0    $sctp0 set mtu_ 1500    $sctp0 set dataChunkSize_ 1468     $sctp0 set numOutStreams_ 1        if {$quiet == 0} {	$sctp0 set debugMask_ -1 	$sctp0 set debugFileIndex_ 0	set trace_ch [open trace.sctp w]	$sctp0 set trace_all_ 1	$sctp0 trace cwnd_	$sctp0 trace rto_	$sctp0 trace errorCount_	$sctp0 attach $trace_ch    }       set sctp1 [new Agent/SCTP]    $ns attach-agent $n1 $sctp1    $sctp1 set mtu_ 1500    $sctp1 set initialRwnd_ 131072    $sctp1 set useDelayedSacks_ 1        if {$quiet == 0} {	$sctp1 set debugMask_ -1 	$sctp1 set debugFileIndex_ 1    }       $ns connect $sctp0 $sctp1        set ftp0 [new Application/FTP]    $ftp0 attach-agent $sctp0}Test/sctp-multipleDropsTwoWnds-1-delayed instproc run {} {    $self instvar ns ftp0    $ns at 0.5 "$ftp0 start"    $ns at 10.0 "$self finish"    $ns run}Test/sctp-multipleRtx instproc init {} {    $self instvar ns testName ftp0    global quiet    set testName multipleRtx    $self next

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -