Тёмный

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

KnowX -Knowledge Xtended
Подписаться 1,7 тыс.
Просмотров 1,3 тыс.
50% 1

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 Downloa...
-------------------------------------------------
How to Install NS2 in Ubuntu
• தமிழில்|CS8581|IT6511-...
#NS2Tutorial
#Networksimulaor
#KnowX
#KnowX

Опубликовано:

 

30 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 3   
@dr.j.senthilmurugan9454
@dr.j.senthilmurugan9454 9 месяцев назад
Super
@sathishkumarsathishkumar9979
@sathishkumarsathishkumar9979 18 дней назад
Sir I need program
@KnowledgeXtended
@KnowledgeXtended 16 дней назад
Check description
Далее
Working with NS2 - A Beginner Approach
58:30
Просмотров 24 тыс.
IPv6 from scratch - the very basics of IPv6 explained
14:34
Чистка пляжа с золотом
00:49
Просмотров 258 тыс.
ASWN/27/ Simulator/ node level simulator/ NS2
14:02
Просмотров 3,9 тыс.
Wired Networks Simulation in NS2 -  NS2 Tutorial # 3
11:49