தமிழில்|CS8581|IT6511-NETWORKS LAB|NS2 Tutorial for Beginners in Tamil

Описание к видео தமிழில்|CS8581|IT6511-NETWORKS LAB|NS2 Tutorial for Beginners in Tamil

This video is a NS2 Tutorial for Beginners in Tamil.
NS2 wired Network code:
---------------------------------------
#create a simulator object
set ns [new Simulator]

#create a trace file for logging purpose
set tf [open simple.tr w]
$ns trace-all $tf

#create a animation or NAM file
set nf [open simple.nam w]
$ns namtrace-all $nf

#the following procedure will be called at 5.0 seconds
proc finish {} {
global ns tf nf
$ns flush-trace
close $tf
close $nf
puts "running nam..."
exec nam simple.nam &
exit 0
}

#create 2 nodes
set n0 [$ns node]
set n1 [$ns node]

#creation of link between 2 nodes
$ns duplex-link $n0 $n1 5Mb 20ms DropTail

#Setup a TCP Connection
set tcp [new Agent/TCP]
set sink [new Agent/TCPSink]
$ns attach-agent $n0 $tcp
$ns attach-agent $n1 $sink
$ns connect $tcp $sink

#Setup a FTP over TCP Connection
set ftp [new Application/FTP]
$ftp attach-agent $tcp

#Scheduling the Events
$ns at 1.0 "$ftp start"

#Call the Finish procedure after 5 seconds
$ns at 5.0 "finish"

puts "Simulation is starting..."

#Run the Simulation
$ns run
-------------------------------------------------
How to Install NS2 in Windows
   • தமிழில்|How to Download and install N...  
-------------------------------------------------
How to Install NS2 in Ubuntu
   • தமிழில்|CS8581|IT6511-NETWORKS LAB|HO...  
#NS2Tutorial
#Networksimulaor
#KnowX
#KnowX

Комментарии

Информация по комментариям в разработке