33 Jess Exp5
33 Jess Exp5
33 Jess Exp5
EXPERIMENT NO. 5
LEARNING The students will be able to install ns2 and use TCL display
OBJECTIVE animation of network flow.
LEARNING The Students will be able to set up an NS2 Simulator and study
OUTCOME functions of packet tracer.
COURSE CSL 502.1: Identify the important networking commands in Linux and
OUTCOME understand their function.
CSL502.3: Use Network tool NS2 simulator to simulate and
explore networking algorithms and protocols.
PROGRAM PO1,PO2,PO3,PO4,PO5,PO9,PO10,PSO1,PSO2,PSO3
OUTCOME
BLOOM'S Apply.
TAXONOMY LEVEL
❖ Installation Procedure
1.gedit add.tcl
set a 20 set b 30
set c [expr $a+$b]
puts $c
ns add.tcl
$ns at 4.5 "$ns detach-agent $n0 $tcp ; $ns detach-agent $n3 $sink"
$ns run
Don Bosco Institute of Technology, Kurla
Academic Year 2023-24
LAB EXERCISE ● Every student will exercise the network simulation tool and attach
output of code.
Code # Declare the 'ns' variable
set ns [new Simulator]
proc finish {} {
global ns
$ns halt
}
Output