# 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 historian0 [$ns node]
tb-set-node-os $historian0 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 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 IED0 [$ns node]
tb-set-node-os $IED0 ncSCADA-IED
set IED1 [$ns node]
tb-set-node-os $IED1 ncSCADA-IED
set IOS0 [$ns node]
tb-set-node-os $IOS0 ncSCADA-IOS
set IOS1 [$ns node]
tb-set-node-os $IOS1 ncSCADA-IOS
set MTU0 [$ns node]
tb-set-node-os $MTU0 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]
set Router1 [$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 $IDS0 100000.0kb 0.0ms DropTail]
set link3 [$ns duplex-link $firewall0 $Router1 100000.0kb 0.0ms DropTail]
set link4 [$ns duplex-link $firewall1 $Router1 100000.0kb 0.0ms DropTail]
set link5 [$ns duplex-link $firewall1 $IDS1 100000.0kb 0.0ms DropTail]

# Lans
set Switch0 [$ns make-lan "$firewall0 $historian0 $HMI0 $HMI1 $HMI2 $IDS2 $IOS0 $IOS1 $MTU0 $node1 $node2 $node3 $node4 $node5 $RAP0" 100000.0kb 0.0ms]
set Switch1 [$ns make-lan "$firewall1 $HMI3 $HMI4 $HMI5 $IDS3 $IED0 $IED1 $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 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 tg1sink0 [new Agent/Null]
set tg1src0 [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
$ns attach-agent $node3 $tg0sink0
$ns attach-agent $node4 $tg0src0
$ns attach-agent $IED1 $tg10sink0
$ns attach-agent $IOS0 $tg10src0
$ns attach-agent $HMI5 $tg11sink0
$ns attach-agent $historian0 $tg11src0
$ns attach-agent $node3 $tg1sink0
$ns attach-agent $IOS1 $tg1src0
$ns attach-agent $IOS0 $tg2sink0
$ns attach-agent $HMI0 $tg2src0
$ns attach-agent $node1 $tg3sink0
$ns attach-agent $node4 $tg3src0
$ns attach-agent $HMI5 $tg4sink0
$ns attach-agent $PLC3 $tg4src0
$ns attach-agent $PLC2 $tg5sink0
$ns attach-agent $IED0 $tg5src0
$ns attach-agent $HMI4 $tg6sink0
$ns attach-agent $PLC1 $tg6src0
$ns attach-agent $PLC0 $tg7sink0
$ns attach-agent $HMI5 $tg7src0
$ns attach-agent $node3 $tg8sink0
$ns attach-agent $PLC4 $tg8src0
$ns attach-agent $IOS1 $tg9sink0
$ns attach-agent $IED0 $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 rtproto Static
$ns run

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


