📄 test-suite-newreno.tcl
字号:
# $self setup Newreno {14 26 28}# }# Class Test/newreno_bugfix_A -superclass TestSuite# Test/newreno_bugfix_A instproc init {} {# $self instvar net_ test_# set net_ net4# set test_ newreno_bugfix_A# $self next# }# Test/newreno_bugfix_A instproc run {} {# Agent/TCP set bugFix_ true# Agent/TCP/Newreno set newreno_changes1_ 1# $self setup Newreno {14 26 28}# }Class Test/newreno_B -superclass TestSuiteTest/newreno_B instproc init {} { $self instvar net_ test_ set net_ net4 set test_ newreno_B $self next}Test/newreno_B instproc run {} { Agent/TCP set bugFix_ false Agent/TCP/Newreno set newreno_changes1_ 1 Agent/TCP/Newreno set partial_window_deflation_ 1 Agent/TCP/Newreno set exit_recovery_fix_ 1 $self setup Newreno {14 26 28}}##################################################### Many drops, Reno has a retransmit timeout.###################################################Class Test/reno1 -superclass TestSuiteTest/reno1 instproc init {} { $self instvar net_ test_ set net_ net4 set test_ reno1 $self next}Test/reno1 instproc run {} { Agent/TCP set bugFix_ false $self setup Reno {14 15 16 17 18 19 20 21 25 }}# Class Test/reno1_bugfix -superclass TestSuite# Test/reno1_bugfix instproc init {} {# $self instvar net_ test_# set net_ net4# set test_ reno1_bugfix# $self next# }# Test/reno1_bugfix instproc run {} {# Agent/TCP set bugFix_ true# $self setup Reno {14 15 16 17 18 19 20 21 25 }# }Class Test/newreno1 -superclass TestSuiteTest/newreno1 instproc init {} { $self instvar net_ test_ set net_ net4 set test_ newreno1 $self next}Test/newreno1 instproc run {} { Agent/TCP set bugFix_ false $self setup Newreno {14 15 16 17 18 19 20 21 25 }}# Class Test/newreno1_bugfix -superclass TestSuite# Test/newreno1_bugfix instproc init {} {# $self instvar net_ test_# set net_ net4# set test_ newreno1_bugfix# $self next# }# Test/newreno1_bugfix instproc run {} {# Agent/TCP set bugFix_ true# $self setup Newreno {14 15 16 17 18 19 20 21 25 }# }Class Test/newreno1_A -superclass TestSuiteTest/newreno1_A instproc init {} { $self instvar net_ test_ set net_ net4 set test_ newreno1_A $self next}Test/newreno1_A instproc run {} { Agent/TCP set bugFix_ false Agent/TCP/Newreno set newreno_changes1_ 1 $self setup Newreno {14 15 16 17 18 19 20 21 25 }}# Class Test/newreno1_A_bugfix -superclass TestSuite# Test/newreno1_A_bugfix instproc init {} {# $self instvar net_ test_# set net_ net4# set test_ newreno1_A_bugfix# $self next# }# Test/newreno1_A_bugfix instproc run {} {# Agent/TCP set bugFix_ true# Agent/TCP/Newreno set newreno_changes1_ 1# $self setup Newreno {14 15 16 17 18 19 20 21 25 }# }Class Test/newreno1_B0 -superclass TestSuiteTest/newreno1_B0 instproc init {} { $self instvar net_ test_ set net_ net4 set test_ newreno1_B0 $self next}Test/newreno1_B0 instproc run {} { Agent/TCP set bugFix_ false Agent/TCP/Newreno set partial_window_deflation_ 1 Agent/TCP/Newreno set exit_recovery_fix_ 1 $self setup Newreno {14 15 16 17 18 19 20 21 25 }}Class Test/newreno1_B -superclass TestSuiteTest/newreno1_B instproc init {} { $self instvar net_ test_ set net_ net4 set test_ newreno1_B $self next}Test/newreno1_B instproc run {} { Agent/TCP set bugFix_ false Agent/TCP/Newreno set newreno_changes1_ 1 Agent/TCP/Newreno set partial_window_deflation_ 1 Agent/TCP/Newreno set exit_recovery_fix_ 1 $self setup Newreno {14 15 16 17 18 19 20 21 25 }}##################################################### Multiple fast retransmits.###################################################Class Test/reno2 -superclass TestSuiteTest/reno2 instproc init {} { $self instvar net_ test_ set net_ net4 set test_ reno2 $self next}Test/reno2 instproc run {} { Agent/TCP set bugFix_ false $self setup Reno {24 25 26 28 31 35 40 45 46 47 48 }}Class Test/reno2_bugfix -superclass TestSuiteTest/reno2_bugfix instproc init {} { $self instvar net_ test_ set net_ net4 set test_ reno2_bugfix $self next}Test/reno2_bugfix instproc run {} { Agent/TCP set bugFix_ true# $self setup Reno {24 25 26 28 31 35 37 40 43 47 48 } $self setup Reno {24 25 26 28 31 35 40 45 46 47 48 }}Class Test/newreno2_A -superclass TestSuiteTest/newreno2_A instproc init {} { $self instvar net_ test_ set net_ net4 set test_ newreno2_A $self next}Test/newreno2_A instproc run {} { Agent/TCP set bugFix_ false Agent/TCP/Newreno set newreno_changes1_ 1 $self setup Newreno {24 25 26 28 31 35 40 45 46 47 48 }}Class Test/newreno2_A_bugfix -superclass TestSuiteTest/newreno2_A_bugfix instproc init {} { $self instvar net_ test_ set net_ net4 set test_ newreno2_A_bugfix $self next}Test/newreno2_A_bugfix instproc run {} { Agent/TCP set bugFix_ true Agent/TCP/Newreno set newreno_changes1_ 1 $self setup Newreno {24 25 26 28 31 35 40 45 46 47 48 }}Class Test/newreno2_B -superclass TestSuiteTest/newreno2_B instproc init {} { $self instvar net_ test_ set net_ net4 set test_ newreno2_B $self next}Test/newreno2_B instproc run {} { Agent/TCP set bugFix_ false Agent/TCP/Newreno set newreno_changes1_ 1 Agent/TCP/Newreno set partial_window_deflation_ 1 Agent/TCP/Newreno set exit_recovery_fix_ 1 $self setup Newreno {24 25 26 28 31 35 40 45 46 47 48 }}Class Test/newreno2_B_bugfix -superclass TestSuiteTest/newreno2_B_bugfix instproc init {} { $self instvar net_ test_ set net_ net4 set test_ newreno2_B_bugfix $self next}Test/newreno2_B_bugfix instproc run {} { Agent/TCP set bugFix_ true Agent/TCP/Newreno set newreno_changes1_ 1 Agent/TCP/Newreno set partial_window_deflation_ 1 Agent/TCP/Newreno set exit_recovery_fix_ 1 $self setup Newreno {24 25 26 28 31 35 40 45 46 47 48 }}# Class Test/newreno3 -superclass TestSuite# Test/newreno3 instproc init {} {# $self instvar net_ test_# set net_ net4# set test_ newreno3# $self next# }# Test/newreno3 instproc run {} {# Agent/TCP set bugFix_ false# $self setup Newreno {24 25 26 28 31 35 40 45 46 47 48 }# }# Class Test/newreno3_bugfix -superclass TestSuite# Test/newreno3_bugfix instproc init {} {# $self instvar net_ test_# set net_ net4# set test_ newreno3_bugfix# $self next# }# Test/newreno3_bugfix instproc run {} {# Agent/TCP set bugFix_ true# $self setup Newreno {24 25 26 28 31 35 40 45 46 47 48 }# }# Class Test/newreno4_A -superclass TestSuite# Test/newreno4_A instproc init {} {# $self instvar net_ test_# set net_ net4# set test_ newreno4_A# $self next# }# Test/newreno4_A instproc run {} {# Agent/TCP set bugFix_ false# Agent/TCP/Newreno set newreno_changes1_ 1# $self setup Newreno {24 25 26 28 31 35 40 45 46 47 48 }# }# Class Test/newreno4_A_bugfix -superclass TestSuite# Test/newreno4_A_bugfix instproc init {} {# $self instvar net_ test_# set net_ net4# set test_ newreno4_A_bugfix# $self next# }# Test/newreno4_A_bugfix instproc run {} {# Agent/TCP set bugFix_ true# Agent/TCP/Newreno set newreno_changes1_ 1# $self setup Newreno {24 25 26 28 31 35 40 45 46 47 48 }# }TestSuite runTest
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -