# Generated by NetlabClient

set ns [new Simulator]
source tb_compat.tcl

# Nodes
set firewall0 [$ns node]
tb-set-node-os $firewall0 ncSCADA-firewall
set firewall1 [$ns node]
tb-set-node-os $firewall1 ncSCADA-firewall
set firewall2 [$ns node]
tb-set-node-os $firewall2 ncSCADA-firewall
set historian0 [$ns node]
tb-set-node-os $historian0 ncSCADA-HISTORIAN
set historian1 [$ns node]
tb-set-node-os $historian1 ncSCADA-HISTORIAN
set historian2 [$ns node]
tb-set-node-os $historian2 ncSCADA-HISTORIAN
set historian3 [$ns node]
tb-set-node-os $historian3 ncSCADA-HISTORIAN
set historian4 [$ns node]
tb-set-node-os $historian4 ncSCADA-HISTORIAN
set historian5 [$ns node]
tb-set-node-os $historian5 ncSCADA-HISTORIAN
set HMI0 [$ns node]
tb-set-node-os $HMI0 ncSCADA-HMI
set HMI1 [$ns node]
tb-set-node-os $HMI1 ncSCADA-HMI
set HMI2 [$ns node]
tb-set-node-os $HMI2 ncSCADA-HMI
set HMI3 [$ns node]
tb-set-node-os $HMI3 ncSCADA-HMI
set HMI4 [$ns node]
tb-set-node-os $HMI4 ncSCADA-HMI
set HMI5 [$ns node]
tb-set-node-os $HMI5 ncSCADA-HMI
set HMI6 [$ns node]
tb-set-node-os $HMI6 ncSCADA-HMI
set HMI7 [$ns node]
tb-set-node-os $HMI7 ncSCADA-HMI
set IDS0 [$ns node]
tb-set-node-os $IDS0 ncSCADA-IDS
set IDS1 [$ns node]
tb-set-node-os $IDS1 ncSCADA-IDS
set IDS2 [$ns node]
tb-set-node-os $IDS2 ncSCADA-IDS
set IDS3 [$ns node]
tb-set-node-os $IDS3 ncSCADA-IDS
set IDS4 [$ns node]
tb-set-node-os $IDS4 ncSCADA-IDS
set IDS5 [$ns node]
tb-set-node-os $IDS5 ncSCADA-IDS
set IOS0 [$ns node]
tb-set-node-os $IOS0 ncSCADA-IOS
set IOS1 [$ns node]
tb-set-node-os $IOS1 ncSCADA-IOS
set IOS2 [$ns node]
tb-set-node-os $IOS2 ncSCADA-IOS
set IOS3 [$ns node]
tb-set-node-os $IOS3 ncSCADA-IOS
set IOS4 [$ns node]
tb-set-node-os $IOS4 ncSCADA-IOS
set IOS5 [$ns node]
tb-set-node-os $IOS5 ncSCADA-IOS
set IOS6 [$ns node]
tb-set-node-os $IOS6 ncSCADA-IOS
set MTU0 [$ns node]
tb-set-node-os $MTU0 ncSCADA-MTU
set MTU1 [$ns node]
tb-set-node-os $MTU1 ncSCADA-MTU
set MTU2 [$ns node]
tb-set-node-os $MTU2 ncSCADA-MTU
set MTU3 [$ns node]
tb-set-node-os $MTU3 ncSCADA-MTU
set node0 [$ns node]
set node1 [$ns node]
set node2 [$ns node]
set node3 [$ns node]
set node4 [$ns node]
set node5 [$ns node]
set PLC0 [$ns node]
tb-set-node-os $PLC0 ncSCADA-PLC
set PLC1 [$ns node]
tb-set-node-os $PLC1 ncSCADA-PLC
set PLC2 [$ns node]
tb-set-node-os $PLC2 ncSCADA-PLC
set PLC3 [$ns node]
tb-set-node-os $PLC3 ncSCADA-PLC
set PLC4 [$ns node]
tb-set-node-os $PLC4 ncSCADA-PLC
set PLC5 [$ns node]
tb-set-node-os $PLC5 ncSCADA-PLC
set RAP0 [$ns node]
tb-set-node-os $RAP0 ncSCADA-RAP
set Router0 [$ns node]

# Links
set link0 [$ns duplex-link $node0 $Router0 100000.0kb 0.0ms DropTail]
set link1 [$ns duplex-link $firewall0 $Router0 100000.0kb 0.0ms DropTail]
set link2 [$ns duplex-link $firewall0 $IDS4 100000.0kb 0.0ms DropTail]
set link3 [$ns duplex-link $firewall1 $IDS1 100000.0kb 0.0ms DropTail]
set link4 [$ns duplex-link $firewall1 $firewall2 100000.0kb 0.0ms DropTail]
set link5 [$ns duplex-link $firewall2 $IDS5 100000.0kb 0.0ms DropTail]

# Lans
set Switch0 [$ns make-lan "$firewall0 $firewall1 $historian0 $HMI0 $HMI1 $HMI2 $HMI3 $IDS0 $IOS0 $IOS1 $MTU0 $MTU1 $node1 $node2 $node3 $node4 $node5 $RAP0" 100000.0kb 0.0ms]
set Switch1 [$ns make-lan "$firewall1 $historian1 $historian2 $historian3 $historian4 $historian5 $IDS2 $IOS2 $IOS3 $IOS4 $IOS5 $IOS6" 100000.0kb 0.0ms]
set Switch2 [$ns make-lan "$firewall2 $HMI4 $HMI5 $HMI6 $HMI7 $IDS3 $MTU2 $MTU3 $PLC0 $PLC1 $PLC2 $PLC3 $PLC4 $PLC5" 100000.0kb 0.0ms]

# Event Agents
set tg0 [new Application/Traffic/CBR]
$tg0 set interval_ 1
$tg0 set packetSize_ 500
$tg0 set rate_ 4000
set tg1 [new Application/Traffic/CBR]
$tg1 set interval_ 1
$tg1 set packetSize_ 500
$tg1 set rate_ 4000
set tg2 [new Application/Traffic/CBR]
$tg2 set interval_ 1
$tg2 set packetSize_ 500
$tg2 set rate_ 4000
set tg3 [new Application/Traffic/CBR]
$tg3 set interval_ 1
$tg3 set packetSize_ 500
$tg3 set rate_ 4000
set tg4 [new Application/Traffic/CBR]
$tg4 set interval_ 1
$tg4 set packetSize_ 500
$tg4 set rate_ 4000
set tg5 [new Application/Traffic/CBR]
$tg5 set interval_ 1
$tg5 set packetSize_ 500
$tg5 set rate_ 4000
set tg6 [new Application/Traffic/CBR]
$tg6 set interval_ 1
$tg6 set packetSize_ 500
$tg6 set rate_ 4000
set tg7 [new Application/Traffic/CBR]
$tg7 set interval_ 1
$tg7 set packetSize_ 500
$tg7 set rate_ 4000
set tg8 [new Application/Traffic/CBR]
$tg8 set interval_ 1
$tg8 set packetSize_ 500
$tg8 set rate_ 4000
set tg9 [new Application/Traffic/CBR]
$tg9 set interval_ 1
$tg9 set packetSize_ 500
$tg9 set rate_ 4000
set tg10 [new Application/Traffic/CBR]
$tg10 set interval_ 1
$tg10 set packetSize_ 500
$tg10 set rate_ 4000
set tg11 [new Application/Traffic/CBR]
$tg11 set interval_ 1
$tg11 set packetSize_ 500
$tg11 set rate_ 4000
set tg12 [new Application/Traffic/CBR]
$tg12 set interval_ 1
$tg12 set packetSize_ 500
$tg12 set rate_ 4000
set tg13 [new Application/Traffic/CBR]
$tg13 set interval_ 1
$tg13 set packetSize_ 500
$tg13 set rate_ 4000
set tg14 [new Application/Traffic/CBR]
$tg14 set interval_ 1
$tg14 set packetSize_ 500
$tg14 set rate_ 4000
set tg15 [new Application/Traffic/CBR]
$tg15 set interval_ 1
$tg15 set packetSize_ 500
$tg15 set rate_ 4000
set tg16 [new Application/Traffic/CBR]
$tg16 set interval_ 1
$tg16 set packetSize_ 500
$tg16 set rate_ 4000
set tg16 [new Application/Traffic/CBR]
$tg16 set interval_ 1
$tg16 set packetSize_ 500
$tg16 set rate_ 4000
set tg17 [new Application/Traffic/CBR]
$tg17 set interval_ 1
$tg17 set packetSize_ 500
$tg17 set rate_ 4000
set tg18 [new Application/Traffic/CBR]
$tg18 set interval_ 1
$tg18 set packetSize_ 500
$tg18 set rate_ 4000
set tg19 [new Application/Traffic/CBR]
$tg19 set interval_ 1
$tg19 set packetSize_ 500
$tg19 set rate_ 4000
set tg20 [new Application/Traffic/CBR]
$tg20 set interval_ 1
$tg20 set packetSize_ 500
$tg20 set rate_ 4000
set tg20 [new Application/Traffic/CBR]
$tg20 set interval_ 1
$tg20 set packetSize_ 500
$tg20 set rate_ 4000
set tg21 [new Application/Traffic/CBR]
$tg21 set interval_ 1
$tg21 set packetSize_ 500
$tg21 set rate_ 4000
set tg22 [new Application/Traffic/CBR]
$tg22 set interval_ 1
$tg22 set packetSize_ 500
$tg22 set rate_ 4000
set tg23 [new Application/Traffic/CBR]
$tg23 set interval_ 1
$tg23 set packetSize_ 500
$tg23 set rate_ 4000
set tg0sink0 [new Agent/Null]
set tg0src0 [new Agent/UDP]
set tg10sink0 [new Agent/Null]
set tg10src0 [new Agent/UDP]
set tg11sink0 [new Agent/Null]
set tg11src0 [new Agent/UDP]
set tg12sink0 [new Agent/Null]
set tg12src0 [new Agent/UDP]
set tg13sink0 [new Agent/Null]
set tg13src0 [new Agent/UDP]
set tg14sink0 [new Agent/Null]
set tg14src0 [new Agent/UDP]
set tg15sink0 [new Agent/Null]
set tg15src0 [new Agent/UDP]
set tg16sink0 [new Agent/Null]
set tg16sink1 [new Agent/Null]
set tg16src0 [new Agent/UDP]
set tg16src1 [new Agent/UDP]
set tg17sink0 [new Agent/Null]
set tg17src0 [new Agent/UDP]
set tg18sink0 [new Agent/Null]
set tg18src0 [new Agent/UDP]
set tg19sink0 [new Agent/Null]
set tg19src0 [new Agent/UDP]
set tg1sink0 [new Agent/Null]
set tg1src0 [new Agent/UDP]
set tg20sink0 [new Agent/Null]
set tg20sink1 [new Agent/Null]
set tg20src0 [new Agent/UDP]
set tg20src1 [new Agent/UDP]
set tg21sink0 [new Agent/Null]
set tg21src0 [new Agent/UDP]
set tg22sink0 [new Agent/Null]
set tg22src0 [new Agent/UDP]
set tg23sink0 [new Agent/Null]
set tg23src0 [new Agent/UDP]
set tg2sink0 [new Agent/Null]
set tg2src0 [new Agent/UDP]
set tg3sink0 [new Agent/Null]
set tg3src0 [new Agent/UDP]
set tg4sink0 [new Agent/Null]
set tg4src0 [new Agent/UDP]
set tg5sink0 [new Agent/Null]
set tg5src0 [new Agent/UDP]
set tg6sink0 [new Agent/Null]
set tg6src0 [new Agent/UDP]
set tg7sink0 [new Agent/Null]
set tg7src0 [new Agent/UDP]
set tg8sink0 [new Agent/Null]
set tg8src0 [new Agent/UDP]
set tg9sink0 [new Agent/Null]
set tg9src0 [new Agent/UDP]

$tg0 attach-agent $tg0src0
$tg1 attach-agent $tg1src0
$tg2 attach-agent $tg2src0
$tg3 attach-agent $tg3src0
$tg4 attach-agent $tg4src0
$tg5 attach-agent $tg5src0
$tg6 attach-agent $tg6src0
$tg7 attach-agent $tg7src0
$tg8 attach-agent $tg8src0
$tg9 attach-agent $tg9src0
$tg10 attach-agent $tg10src0
$tg11 attach-agent $tg11src0
$tg12 attach-agent $tg12src0
$tg13 attach-agent $tg13src0
$tg14 attach-agent $tg14src0
$tg15 attach-agent $tg15src0
$tg16 attach-agent $tg16src0
$tg16 attach-agent $tg16src1
$tg17 attach-agent $tg17src0
$tg18 attach-agent $tg18src0
$tg19 attach-agent $tg19src0
$tg20 attach-agent $tg20src0
$tg20 attach-agent $tg20src1
$tg21 attach-agent $tg21src0
$tg22 attach-agent $tg22src0
$tg23 attach-agent $tg23src0
$ns attach-agent $node5 $tg0sink0
$ns attach-agent $HMI3 $tg0src0
$ns attach-agent $IOS3 $tg10sink0
$ns attach-agent $IOS6 $tg10src0
$ns attach-agent $historian5 $tg11sink0
$ns attach-agent $historian3 $tg11src0
$ns attach-agent $HMI5 $tg12sink0
$ns attach-agent $node1 $tg12src0
$ns attach-agent $MTU3 $tg13sink0
$ns attach-agent $MTU0 $tg13src0
$ns attach-agent $IOS4 $tg14sink0
$ns attach-agent $node1 $tg14src0
$ns attach-agent $IOS6 $tg15sink0
$ns attach-agent $MTU0 $tg15src0
$ns attach-agent $node1 $tg16sink0
$ns attach-agent $PLC2 $tg16sink1
$ns attach-agent $IOS1 $tg17sink0
$ns attach-agent $MTU2 $tg17src0
$ns attach-agent $historian2 $tg18sink0
$ns attach-agent $MTU3 $tg18src0
$ns attach-agent $historian3 $tg19sink0
$ns attach-agent $PLC4 $tg19src0
$ns attach-agent $HMI2 $tg1sink0
$ns attach-agent $IOS1 $tg1src0
$ns attach-agent $HMI3 $tg20sink0
$ns attach-agent $historian3 $tg20sink1
$ns attach-agent $HMI4 $tg21sink0
$ns attach-agent $historian3 $tg21src0
$ns attach-agent $PLC2 $tg22sink0
$ns attach-agent $historian5 $tg22src0
$ns attach-agent $HMI1 $tg23sink0
$ns attach-agent $historian5 $tg23src0
$ns attach-agent $IOS0 $tg2sink0
$ns attach-agent $historian0 $tg2src0
$ns attach-agent $RAP0 $tg3sink0
$ns attach-agent $node2 $tg3src0
$ns attach-agent $MTU2 $tg4sink0
$ns attach-agent $MTU3 $tg4src0
$ns attach-agent $HMI6 $tg5sink0
$ns attach-agent $HMI7 $tg5src0
$ns attach-agent $HMI7 $tg6sink0
$ns attach-agent $PLC2 $tg6src0
$ns attach-agent $PLC0 $tg7sink0
$ns attach-agent $MTU2 $tg7src0
$ns attach-agent $IOS6 $tg8sink0
$ns attach-agent $historian2 $tg8src0
$ns attach-agent $historian4 $tg9sink0
$ns attach-agent $historian2 $tg9src0

$ns connect $tg0src0 $tg0sink0
$ns at 0.0 "$tg0 start"
$ns connect $tg1src0 $tg1sink0
$ns at 0.0 "$tg1 start"
$ns connect $tg2src0 $tg2sink0
$ns at 0.0 "$tg2 start"
$ns connect $tg3src0 $tg3sink0
$ns at 0.0 "$tg3 start"
$ns connect $tg4src0 $tg4sink0
$ns at 0.0 "$tg4 start"
$ns connect $tg5src0 $tg5sink0
$ns at 0.0 "$tg5 start"
$ns connect $tg6src0 $tg6sink0
$ns at 0.0 "$tg6 start"
$ns connect $tg7src0 $tg7sink0
$ns at 0.0 "$tg7 start"
$ns connect $tg8src0 $tg8sink0
$ns at 0.0 "$tg8 start"
$ns connect $tg9src0 $tg9sink0
$ns at 0.0 "$tg9 start"
$ns connect $tg10src0 $tg10sink0
$ns at 0.0 "$tg10 start"
$ns connect $tg11src0 $tg11sink0
$ns at 0.0 "$tg11 start"
$ns connect $tg12src0 $tg12sink0
$ns at 0.0 "$tg12 start"
$ns connect $tg13src0 $tg13sink0
$ns at 0.0 "$tg13 start"
$ns connect $tg14src0 $tg14sink0
$ns at 0.0 "$tg14 start"
$ns connect $tg15src0 $tg15sink0
$ns at 0.0 "$tg15 start"
$ns connect $tg16src0 $tg16sink0
$ns at 0.0 "$tg16 start"
$ns connect $tg16src1 $tg16sink1
$ns at 0.0 "$tg16 start"
$ns connect $tg17src0 $tg17sink0
$ns at 0.0 "$tg17 start"
$ns connect $tg18src0 $tg18sink0
$ns at 0.0 "$tg18 start"
$ns connect $tg19src0 $tg19sink0
$ns at 0.0 "$tg19 start"
$ns connect $tg20src0 $tg20sink0
$ns at 0.0 "$tg20 start"
$ns connect $tg20src1 $tg20sink1
$ns at 0.0 "$tg20 start"
$ns connect $tg21src0 $tg21sink0
$ns at 0.0 "$tg21 start"
$ns connect $tg22src0 $tg22sink0
$ns at 0.0 "$tg22 start"
$ns connect $tg23src0 $tg23sink0
$ns at 0.0 "$tg23 start"

$ns rtproto Static
$ns run

# NetlabClient generated file ends here.
# Finished at: 4/30/13 12:35 AM


