You are on page 1of 17

Dale: 5:.:23... Expt.

Title:
Exp.No.. 3 etheine t LAN Page No.

32
Aim To imple mert
etheine t LAN USing
n(6-10) nodes Compase Using
the
chngin g the eno) 7ate andthroughput b4 data xate
Sofl wane Usd
Ubunto 0s
Theoiy thernetis the most
wídely
LAN
tecoloqy and i6 Used
Jece define d unde
sBandods 802.3 The deon thenet
casy t6 underGlond, impleme nt and is
and allows buw co6t maistain
Also lhernel otfers DetuDOTK im ple me t ai on
ofoloqies hat
DSes
alued
ade
a bus topoloqy Ethernet
ftexalhy
etheinet qeneialy

bus topoloqy ethetnet opesolesopexles Uses


layers f the O6I modet the in tuoo
layes and the data link loyek physical fox ethexnet
the psoloco data unt is a loyex
4s0me oince
46ane
we malnly leal coth DLLB . In 0xdes to
hancle collisions, Hhe Acess Cont ool to band
collisions, the Acess Cooo] Mechon iSn USed n
ethermet (s CSMA C0: key teatueS 0f etherne!
e speed exlbil1y eatures 0f ethernel
spmpatibilit
SCala bilty Ao6ad
Aai lobilysimplic*y
Ó0 d Con pati bi lity ta se of
tiouble chooing Suppd to multinne dia

VEMANA IT
Date:.....5a.l2.-23
Expt. Title :
etheroe LAN Page No.
Exp. No.:
33

pDognam:
St ns Lnew simulator
Set open
0s dace -ollP3.Y
dc
W]
Set me Open P3- nam w
ns mam
tace-all ne

Set 'n(4i) L$ns node


4ns mase --lon #n (o) dnc) $n(2) nca)
4 nly lomb lom s L ueve
$ns hoake- lan (DopTail
nc5) 6n(6) $n(aacs)
dncay lom b \oms LL Queue DopTal
Pail
mac! &o-3 channel phy wjnedphy
t mac02-3 Set Dai alateAmb
$ns duple y-lint nc4) So (s) lm b 3ms
Oop TaL
gns queve - limi + Án u) Sn (s)o
Set tcp Lnew Agen TcJ
Set sink ( heo fqent 1 Tep sinE 1.
Get nu [ne Agent NUI
VEMANA IT
Date: 5.:l2.:2.. Expt. Title :
Exp. No.:.....3
thetnt LAN Page No.

34
Gd cbz Cnew Ppplicaion
Sct fHp Cne ITaofficlcBe]
Aepicoti on |F
ottach-0gen An co) 41ce
$ns b-aqent 4nn. (3) udp
attach-oge t dn cq) d tcpsink
$ fte o4toch-0eot
attach- aget dicp
(6) 4 noll

$cbr attoch agent


g eot udp

40sCoNnect
Sns connect 4c gtcpsink
Set pa cket size -5l
$cbr Set ihtava -0-Ô0L
0hteval

Set packe Slze -52


Set ntex valo-04

Set e CDeeYOY Mode!


$ns 10sSmodel
Serr Set bate_o-QL

flush-tace
ons
clOse
close VEMANA IT
pate. ...5.].12|,22. Expt. Title: ethenet Ln Page No.
Exp. No. ....3 35

XE C hamp-nam2
exit

Gns at 0-05He start"


ns .0te stop"
at .o
1Q-0
Sns a t13-0 Pinish

Qok pDOqam

Dpackt sizetcp=ó2
pactet Sl2eUdp 0;

tpacked si2e cp Packet Size t 4


dtmider Vad ~ p $2
packet sie -U dp = 7P ckefshet $4
TtË me inde l- udp -$2

VEMANA IT
Date:...|i2.l2: Expt. Title: thenet LAN Page No.
Exp. No.: ....3

END$
pait In
Tbxoutpot fo dp =4 m bs
packetsizodp tme inter val ~udp
8s)L0000D0)
n Ypackdeile. tep timcitleruat tcp

ResuH: Implemetation of ethei net LAN


Using n (6-10) nodes and comcrsl D the
througbgut by hanging, the
and dat a ae b£s beendane
Yate

VEMANA IT
Date: ...5.].12<23a Expt. Title etheinet LAN Page No.
Exp. No. 35
rtt tl

pa-naml
exit

ns at 0-0 5+tp stari


at 10.0 tp stop"

Sns a t 13-0

t ) 3:04 PM
Aok po0qam
amhome nicksDesktop/VI2OECO06/p3.nam hisDesktor 1V!26COO63,na

Step:: 12.és
o,033154

Dpacketsietcp=ó 2
pactet sl2eudp 0;
otimeioteval -ude s0;
P($==' 22 5-4Cp&
Ipacked si2e cp = dpacket Siee
'umunluuuluuutu
re-layout reset
SLtirs 10 iecaic

xpacket size -U dp = 7pa Ckefset §<


TtË me indeQl- dp $2

VEMANA IT
Date.: sl12l2. Expt. Title: ethenet LAN Page No.
Exp. No.
PM
t o) 309

N,

END
pit n Thogput for dp =y4 mbßs
In ,pa cketsizeodp tine inter val ~udp*
8*sl)| 00000D)
paltf n ThYoq htpot o tCp=4
4n nbps
Ypackedsie tep| thmeitlerua tcp*
SI9 Lo00000):
re-laout rest

ResuH: Lmpleme taion of ethene f LAN


sing nls-l6) nades and (om parsl D +he
thrauqhput
and dta b~aehangin4
the
b£s been con
Yate

VEMANA IT
.5.l2.2.3.
Date.:......
Expt. Title: thes De4 LAN si 09 Page No.
Exp.No. n noos 34

Aim: o impleme t cthenet LAN Usinq


nodes and assiqn mo tittipe
ple taatic to the
Modes and obtaln CoD qesti on windou) for
ditfere nt S00Ce destinqtons
Sottuoate too Ose d: obont u nS-2

Theoy ethene is the aditional teh.


Co nnecin
oite dd local anea netwnk (LAN) o) lde
rea netuoxk. enableS devices to cOmMO
micate otth each other via pio tocol
Wblch is a set-ot 0es OY COMmon Netog k
language
therne poBo coL Îs a typical LAN technallgy
etandatd berpeba sed loca) area
metwokS to0 Smit data
data at speed upto
Lombps New thene Card s known as
Fas ehenet e prese01 hiqh- Speed
LfN
technoloqy 0s iH an paovide dta toonsfer
ates ds. as ioM bps
etheinet is designeá tor the tansrmi SSt on
0e data Ovex the channel
vGinq wlbed
technaloqy and is Jsed tov hiqh. Speed
data txansmisslan.

VEMANAIT
..5:-2,3. Expt. Title: henet
Date.: LAN Using Page No.
Exp. No.: h nodes 38

progiar
Set hs Lnew simu lado
set tf Copen
Lopen P:tY w]
$ns to0ce -al §+£
Set nf Copen pu: Dam n
$ns namtãoce- all ne
Set [ $ns hode
&et n)
[ns hDdeg
Set n
L$0snode1
SAs make- an ng
lons LL aueue oop Ta nac 803R
Set tcp o Cnew gent| TPJ
Set fp o Lnew ApplicatHOn LEIP
Set sink oLnew Agent | 1cp sin1

$ns attach -agent ^no $tcp0


$fp Hach
^ns attach= agent $ng $ Sink Ô
$tcpo sink o.

VEMANA IT
5\2l23
Date: ...***** Expt. Title ethenet Page No.
n nodas
Exp. No. .....
Using
ns atiach- aget n3 $6inE O
fns Connect -1cpo $ sinko
$ns aH och aqe nt n 9 $p !
^ Hp attach- age nt §tcpl
ns artoch- ageit D$ sinkL
snS on Nect
Set fi le o Lopen file o +w]
Qhtach $fileo
CWnd
tcpo Set mavCondlo
Set file t [open filel-4x w]
$ fcp 1 atta ch filer
max Cwnd-S

ns co lor

$4cp)&et lass
fiois h

Snsflush -+aace
ham pu- nom

VEMANA IT
Date.: Expt. Title: ether net LAN USiNG Page No.

Exp. No. n nodes


0)16 PM y

bemenick/DesAtep/1VIzOECDO8o4.nam
9tepÊ 3,1uA
1, N922
close Gnf
close

Start
1
$ns at |:5 $t+ Po stop

-l ayout reset
at $+eD start
JRecale
tteratiers 10
^ns 3 SBop"
^ns at 5 §ftpl stast
S ns at $ftpi slo4"
Amebicks/Desktoe/TVI20ECO06/pLnam
/iVesktop/VI20ECOO6p4.na
3:21 PM
^ns at 5-0 "Qinisb
O.27984 Step: 31.6us
§ns

Awk poqham
BeGLN

#C6= "ccund)

re-lgout reset

VEMANA IT
Date. ......52l22 Expt. Title

Exp. No.
Ethetnet LA N
nodes
osing Page No.

t1 0) 3:34 PM
X Graph
botn
|Relot|Deriv

-filel

20,000

S.0000.

7,5000

6.S000
6.000
6.5000

50000
45000
L0000
3.5000 42
3.0000
2,5000
2,0000
1.50
1,000

TIME
0.0090 0.509 1.0000 1.5000 2,0000 2.5000 3.0000 3.5000 4.0000
Resuli '- Implemep tattoo ot ethernet LAN
sing DOdes
t1affic to thenodes an
motti pte
obtg)n. Congestion
oin do c) for dReevent Soce | destinah'à 0 as
done

VEMANA IT
Date: ...9.412.123. Expt. Title: LINk stae. Routi
Exp.
05
No. ....
aigoithm ig Page No.
s2

Aim: To implement the line state Douting


algoaith
Theoy'the 3OUing
ink Stale
douing is the selond om ily
protocal s, while distance ve ctar
theil TOUti ng tabledistoibuted agoithm to
S, Link state OUtin q (ompote
lin k st atc Uses
that allb Toulers to cxchan qe ne 6$aqeS
cach soUte to learn the etiie ges
Detwoik topo lDqy Dosed on +his leayned
topola eachYoutex is then
ts DatHnq table by csin
abe to compUte
path Computation the shortest

Link- SBate mainly pDOto cols Cxeate


tOpoloceal map or spF ee bt the
netuosk topoiog4
each YO Uter lss iespon si ble tó meetin ts
neiqhbo01S leanning their hame s, Each
0uter Constructs o LSplLSA bhich Consde
0 a bit of names
neih bDOYS
The sp lLAsIS txansmitted to al otbe
Outers6ach Yoter stoves thehe mo St de
qeneratcd Ls plsA i 6 t5ansmitttd to a
othe YÓules Cach Youlei /nformaie
On th netuYY kopo l04y to compute the
shortest path ot to Gach destination.
VEMANA IT
pate... q.2l23. Expt. Title: |ink Page No.
Exp. No. .....S
slale Pouhng
algotthm 43

pooqiam
Set n Lopen Ps. t w]
ns t a ce -Ql

Se t ne Lopen Ps nam w]
nam toao - al

§ns ot proto LS

Set n (i) l$ns ho de1

$ns dople - ink Sn lo) § b C) (mb IOms Dro )


$ns dopey-link ^nc) ^nc2)1mb loms oop Tail
$hs dupley. nk Gnl2)n(3) mb loms prop Tai
$ns dupley- n $ hc3) SnlJlmb loms Dro ptai
^ns dupe- link S ncs) s ncs) imb loms DYOPTal
^ns dopley- lint § h(6) $ n()Tmb lams Draptai
Sns dap1e - link S ní) n(3) \mb loms D1optaii
Sns dupley - lin n) S hlo) im oms Dropral
Sns dopley link Imb loms Dro pTail
$ns duplev- link $nt n(lo) 1mb lo ms Drop aj
\hh lom! DropTal
Fns dupiey- ink $nlb) $ ncn) lMbloms DYop Tai
5ns du pler linL $n sn6) |m loms DroeTai)

VEMANA IT
Date Expt Tte
Page tio
Exp No

t Udpo Lnew gert


Set luop]
wlolnew Agem (No
Set cbYo Lnew Pppli C in
l1attic <cB]
Set ud eP Lnew fget uDPJ
Set nulLLnew hqert [Nu
Set Cor Chew Aepli Cat On [ Tratic CBPJ
Fns ttach agert ^nlo) $udpo
ns tach aqcm Sncs) nollo
5ns
gent $udgo
^ns ttach- age nt Sn) $uder
$ns atoch agent $ns) nult,
$ ns Conne cL
5cbr attach - Qqe nt Sudp.
$chro Set_PacketSlie -00
Set Inter vad -0005
oatie
Se t paclet Sile Sbo
Set htesal- O00s
t schedu le EventS fo coe
^ns rt madel - at lo o down $nu) ncs)
^ns
rHnade- 1 36 -0 daun ne) 5n(6)
VEMANA IT
Date . .

Expt. Title : tink Stote Rd oti


Exp. No. 05 n9 Page No.
alqorthm
toe vilsec774 program6/p6.nam
m: ot

^ns)tmodel ct Qo-O up n(9) $n ()


proc fihish $4 S
giabal
ns 4losh -4ace
ClOse $ne
ClOSe `nr
Ce e narm PS- Dam

p5. tr $n6 a4 6-0 cbro Start


nicksQubuntu:-/Desktop$ awk -f p5.awk
send packets =
16327 $ns at 5:0 $ cbo start
No of
packets = 12336 $ns al 45-0 chro Stop"
No of received = 3665
No of dropped packets 656 $ns at USo "cbrl stop"
=
No of routing packets(routing/received), NOH = 0.0531777
Nornalized Overhead PDR = 0.755558
ns at So.o "fnish
(received/send),
Packet Delivery Ratio
c46ence

Awk

pk Sen d=0
pk deceiñc zd
pk dopz0
ple

pk sen tal y
VEMANA IT
pate:..gJa3. Expt. Title : ink state Routi nq Page No.
Exp. No......0S
alqortm

PR seceived+=1

Pk drop+

Y 2e ( 5 = rtPooto ov $5 =='t proto

pkaouting t=

END
pui ND of Send pactets = ' P send
pzint No of deceived packets= pbdeeive
paiot " NOof dopped Packet S ="PkdoP
of Doutng poctets = "ple Kuting
NOYbnali sed olei heod (routin feceed)
NO H=Pk rauting! k DeeMd
pxin paeke4 Delivesy Rat olse ceve sed
poR ple secel Ve plk Send

Resul Tmplemet aion of ine State soUting


algoslt hro s done by osing Netokins
Smolaton

VEMANA IT

You might also like