static and dynamic routing
static and dynamic routing
:6
AIM:
SOFTWARE REQUIREMENTS:
THEORY:
Static Protocol
set ns [new Simulator]
proc finish {} {
global ns nf
$ns flush-trace
close $nf
exit 0
#creating nodes
#creating links
#create a udp agent and attach it to noe n(0) and sink it to sink n(3)
$ns rtproto LS
#Link failure
$ns run
Dynamic Routing Protocol
proc finish {} {
global ns nf
$ns flush-trace
close $nf
exit 0
#creating nodes
#creating links
#create a udp agent and attach it to noe n(0) and sink it to sink n(3)
$ns rtproto DV
#Link failure
$ns run