Ethernet LAN
Ethernet LAN
Ethernet LAN
# Implement an Ethernet LAN using n nodes and set multiple traffic nodes and
# plot congestion window for different source / destination.
#===============================================================================
exit 0
}
#Create nodes
set n0 [$ns node]
set n1 [$ns node]
set n2 [$ns node]
set n3 [$ns node]
set n4 [$ns node]
set n5 [$ns node]
#Schedule events
$ns at 0.1 "$ftp1 start"
$ns at 0.5 "$ftp2 start"
$ns at 5.0 "$ftp2 stop"
$ns at 5.5 "$ftp1 stop"
$ns at 0.1 "plotWindow $tcp1 $winfile1"
$ns at 0.5 "plotWindow $tcp2 $winfile2"
$ns at 6.0 "finish"