CN Lab Ex13

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

Ex.

NO:
Dake: 19 loy}2023
Simulaticn o topology

Aim: netuork
the network topalogy wing
To implement
fgliation.
Algpnitn hame
that is wsed o
,open a ile
Sep 1: To stant
trace data.
poudue aftey opong dhe ple.
dd finish
shp 2: Atd
3tep 3: Finish .closese hrace file ad stavt
procedure
nam.
enecute ish apten
Step 4: wite she lie of csde to
Step s: Now sawe sthe pile and ty to yun it.
Step &: To depin chd nades connected ew th wnik
inks to Conneot hodes
Create duplex
Btep 7: Set up *he connection , appy CBR traic
oven TCP.

3et ns new Simbtor]


Set nf Lppen out.nam w)
ns nametrae. all. ne
Proe finih 3f global ns n
ns h. trace
close sne
eTec nam out. nam
Output
st no ns node]
Set n [$ ns node]
set na ns nade)
set ns ns node)
st ny ns nade)
set ns Cf ns node]
tal
duplexlnk ho n Inb lo mg Dvop .

n, n Imb lo mg Drop fal


$ns duplex- lik
Imb lo ms Drop
fns duples-bik fhe hs
(oms Drop tall
duplexRink gns n4 1mb
$ns Imb
loms Drop tail
ns daplex- link tny gns Imb |oms
Drop tal
fns duplec- luik gns he
et set tep olnew asent i Tep]
$ns atach-agent n step ()
Set sincl)Cnew agaun [TC ginc]]
$ns Eonnet tcp t) sink()
Sei cbr() Set packetsize -500
ebr() set intoval-ool
ng Ywn,

Problem Coded Tine Viva Total


wndenutnding ylementetion mnagennt (1o) (s)
(20)

Resulba
Ths he nelwonk topolagy tuing nekwork
Aimulato Aucoup.ly eongigwud.

You might also like