simple-2-nodes.ns 180 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
source tb_compat.tcl

set ns [new Simulator]

set node1 [$ns node]
set node2 [$ns node]

# Network.
set lan0 [$ns make-lan "$node1 $node2 " 100Mb 0ms]

$ns rtproto Static
$ns run