Commit 28b85198 authored by Mac Newbold's avatar Mac Newbold
Browse files

Add in the tests regarding checking for too many links or bw too high.

parent b5f4537d
......@@ -23,3 +23,5 @@ red
cbr
widearea_types
widearea_mapped
toofast
toomanylinks
This test tries to make a link that is faster than the testbed supports,
and makes sure that it fails.
#generated by Netbuild
set ns [new Simulator]
source tb_compat.tcl
set node0 [$ns node]
set node1 [$ns node]
set link0 [$ns duplex-link $node1 $node0 150Mb 0ms DropTail]
$ns rtproto Static
$ns run
#netbuild-generated ns file ends.
tb_prerun("tbprerun",1);
This test tries to make an experiment with more links than our nodes can
support, and makes sure that it fails.
#generated by Netbuild
set ns [new Simulator]
source tb_compat.tcl
set node2 [$ns node]
set node3 [$ns node]
set node4 [$ns node]
set node5 [$ns node]
set node6 [$ns node]
set link1 [$ns duplex-link $node2 $node3 100Mb 0ms DropTail]
set link2 [$ns duplex-link $node2 $node4 100Mb 0ms DropTail]
set link3 [$ns duplex-link $node2 $node5 100Mb 0ms DropTail]
set link4 [$ns duplex-link $node2 $node6 100Mb 0ms DropTail]
set link5 [$ns duplex-link $node6 $node5 100Mb 0ms DropTail]
set link6 [$ns duplex-link $node6 $node4 100Mb 0ms DropTail]
set link7 [$ns duplex-link $node6 $node3 100Mb 0ms DropTail]
set lan0 [$ns make-lan "$node2 $node6 " 100Mb 0ms]
tb-set-node-lan-params $node2 $lan0 0ms 100Mb 0.0
tb-set-node-lan-params $node6 $lan0 0ms 100Mb 0.0
$ns rtproto Static
$ns run
#netbuild-generated ns file ends.
tb_prerun("tbprerun",1);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment