You are on page 1of 44

Vidy

aVikasEducat i
onTrust
’s
Univ
ersal
Coll
egeofEngineer
ing,KamanRoad, Vasai
-
401208
Accr
edit
edB+Gr adebyNAAC
Depart
mentofComput erEngi
neer
ing

Vi si
on:
Tober ecognisedgl obal
lyasadepar t
mentpr ovi
desqualitytechnical
educat i
onthatev entual
lycaterstohelpingandservingt hecommuni t
y
Mi ssion:
Tode vel
ophuma nr esourceswi ths oundk nowle dgei nt he or
y
a ndpr ac t
iceo fcomput ersciencea nde ngineering
Tomot ivatethes tude ntstosolver eal-
wor l
dpr obl emst ohe l
p
thes oc ietyg rowTopr ovideal earni
nga mbiencet oe nha nce
innov a t
ions, t
e a ms piritandleade rshi
pqua li
tiesf ors tude nts

LABMANUAL
Comput
erNet
wor
kLab
Name: AakashVarma
Cl
ass:TEComput er
Engi
neeringSem:V
Roll
No: 118
Batch:B2
Vidy
aVikasEducati
onTrust
’s
Univ
ersal
Col
l
egeofEngineer
ing,KamanRoad,Vasai
-
401208
Accr
edit
edB+Gr adebyNAAC

CSC503
Comput
erNetwor
kLab

Descri
pti
on:
Designandi
mplement
ationofanycasestudy/appl
icati
ons
/exper
iment
s/minipr
ojectbasedondepartmental
levelcour
sesusi
ng
moderntool
s.

Term work:
Thedist
ribut
ionofmar ksforter
m workshal
lbeas
fol
l
ows: Lab/Experi
ment alWork:15
Report
/Document ati
on:05
Att
endance(Theory&Pr acti
cal)
:
05

Practi
cal&Oral:
Examinationi
stobeconductedbasedonr espect
ivedepart
ment
all
evel
coursesbypairofi
nter
nalandext
ernalexaminersappoint
edbyt
he
Universi
tyofMumbai.
Vidy
aVikasEducati
onTrust
’s
Univ
ersal
Col
l
egeofEngineer
ing,KamanRoad,Vasai
-
401208
Accr
edit
edB+Gr adebyNAAC
LabOut
come
1.
Tostudyofnet
wor kusingvari
oustopologi
es.
2.
Student
swil
lart
iculat
etheknowledgeofNet wor
kingDevi
cesandCommands.
3.
Todemonstrat
et hecri
mpingtoolsforCAT5cableandRJ45Connector
.
4.
TostudyofDNSandSocketpr ogrammi ngusingJAVA
5.
Toanalyzet
henet workusi
ngWi r
eshark.
6.
Toimplementanddemonst rat
eNetwor kusi
ngCiscopackett
racer

Descr
ipt
ion:
Thesoft
wareli
keCiscoPacketTr
acer
,Wireshar
kandanyother
sof
twarewhichi
ssui
tabl
earerecommendedforperf
ormingthepr
act
ical
.

Li
stofExper
iment
s

Sr. Tit
le
No.
1 CASESTUDYONNETWORKTOPOLOGI ES
2 I
MPLEMENTIONOFNETWORKI NGCOMMANDS
3 JAVAPROGRAM ONDNS
4 JAVAPROGRAMSONSOCKETPROGRAMMI NG
5 USEOFCRIMPINGTOOLFORRJ-45
6 Tostudyt
heworki
ngofWi
reShar
k
7 CREATESIMPLENETWORKUSINGCI SCOPACKETTRACER
8 I
MPLEMENTATIONOFROUTINGI NFORMATIONPROTOCOL
9 I
MPLEMENTATIONOFVLAN
Vi
dyaVikasEducati
onTrust
’s
Uni
ver
sal
Col
l
egeofEngineeri
ng,KamanRoad,Vasai
-
401208Accredi
tedB+GradebyNAAC

Exper
iment1

Ai
m:Topol
ogyi
nComput
erNet
wor
king.

Theor
y:

Topol
ogy
A Networ kTopol
ogyisthearrangementwi
thwhichcomput ersyst
emsornet workdev
icesare
connectedtoeachother
.Topologi
esmaydefinebot
hphy si
calandlogi
calaspectoft
henetwor
k.
Bothlogical
andphysi
cal
topol
ogiescoul
dbesameordif
fer
entinasamenetwork.

A)BUSTopol
ogy
Bustopol
ogyisanetwor
ktypei
nwhichever
ycomputerandnet wor
kdev i
cei
sconnect
edt
osi
ngl
e
cabl
e.Whenithasexact
lyt
woendpoi
nts,
theni
tiscal
led 
LinearBustopol
ogy.
Feat
uresofBusTopol
ogy:
1,
Itt
ransmit
sdat
aonlyinonedi
rect
ion.

2.
Ever
ydev
icei
sconnect
edt
oasi
ngl
ecabl
e

Adv
ant
agesofBusTopol
ogy

1.
Iti
scostef
fect
ive.

2.
Cabl
erequi
redi
sleastcompar
edt
oot
hernet
wor
ktopol
ogy
.

Di
sadv
ant
agesofBusTopol
ogy

1.
Cabl
esf
ail
sthenwhol
enet
wor
kfai
l
s.

2.
Ifnet
wor
ktr
aff
ici
sheav
yornodesar
emor
etheper
for
manceoft
henet
wor
kdecr
eases.

B)RI
NGTopol
ogy
I
tiscal
ledri
ngtopologybecauseitf
ormsar i
ngaseachcomputeri
sconnect
edtoanot
hercomput
er,
wi
ththelastoneconnectedtothefi
rst
.Exact
lyt
woneighbour
sforeachdevi
ce.
Feat
uresofRi
ngTopol
ogy

1.Anumberofrepeat
ersar
eusedf orRingt
opologywit
hlar
genumberofnodes,becausei
fsomeone
wantstosendsomedat at
othelastnodeintheri
ngtopol
ogywit
h100nodes,thenthedat
awillhav
e
topassthr
ough99nodestoreacht he100t
hnode.Hencetoprev
entdat
alossrepeater
sareusedin
thenet
work.

2.Thet
ransmissi
oni
sunidi
recti
onal
,buti
tcanbemadebi
dir
ect
ional
byhav
ing2connect
ionsbet
ween
eachNetworkNode,
iti
scalled 
DualRi
ngTopology
.

3.
InDualRi
ngTopology,t
wor i
ngnetwor
ksarefor
med,anddataf
lowisinopposi
tedi
rect
ioni
nthem.
Al
so,i
foneringf
ail
s,thesecondr
ingcanactasabackup,
tokeepthenetwor
kup.

Adv
ant
agesofRi
ngTopol
ogy

1.
Transmi
tt
ingnet
wor
kisnotaf
fect
edbyhi
ght
raf
fi
corbyaddi
ngmor
enodes,
asonl
ythenodes
Vi
dyaVikasEducati
onTrust
’s
Uni
ver
sal
Col
l
egeofEngineeri
ng,KamanRoad,Vasai
-
401208Accredi
tedB+GradebyNAAC

hav
ingt
okenscant
ransmi
tdat
a.

2.
Cheapt
oinst
all
andexpand

Di
sadv
ant
agesofRi
ngTopol
ogy

1.
Troubl
eshoot
ingi
sdi
ff
icul
tinr
ingt
opol
ogy
.

2.
Addi
ngordel
eti
ngt
hecomput
ersdi
stur
bst
henet
wor
kact
ivi
ty.

C)STARTopol
ogy
I
nthi
stypeoftopol
ogyall
thecomput
ersareconnect
edtoasinglehubt
hroughacabl
e.Thi
shubi
s
t
hecent
ralnodeandall
other
snodesareconnect
edtothecentr
alnode.
Feat
uresofSt
arTopol
ogy

1.
Ever
ynodehasi
tsowndedi
cat
edconnect
iont
othehub.

2.
Hubact
sasar
epeat
erf
ordat
afl
ow.

Adv
ant
agesofSt
arTopol
ogy

1,
Fastper
for
mancewi
thf
ewnodesandl
ownet
wor
ktr
aff
ic.

2.
Hubcanbeupgr
adedeasi
l
y.

Di
sadv
ant
agesofSt
arTopol
ogy

1.
Costofi
nst
all
ati
oni
shi
gh.

2.
Expensi
vet
ouse.

D)MeshTopol
ogy

Iti
sapoint
-t
o-poi
ntconnect
iont
oothernodesordevi
ces.Al
lthenet
wor
knodesar
econnect
edt
o
eachot
her.Meshhasn(n-1)
/2physi
calchannel
stol
i
nkndev i
ces.

Feat
uresofMeshTopol
ogy

1.
Ful
l
yconnect
ed.

2.
Robust
.

Adv
ant
agesofMeshTopol
ogy

1.
Eachconnect
ioncancar
ryi
tsowndat
aload.

2.
Iti
srobust
.

Di
sadv
ant
agesofMeshTopol
ogy
Vi
dyaVikasEducati
onTrust
’s
Uni
ver
sal
Col
l
egeofEngineeri
ng,KamanRoad,Vasai
-
401208Accredi
tedB+GradebyNAAC

1.
Inst
all
ati
onandconf
igur
ati
oni
sdi
ff
icul
t.

2.
Cabl
i
ngcosti
smor
e.

E)TREETopol
ogy
I
thasarootnodeandallothernodesareconnectedtoitf
ormingahierar
chy
.Iti
sal
socal
l
ed
hi
erar
chi
calt
opology
.Itshouldatleasthav
ethreelev
elstothehier
archy.
Feat
uresofTr
eeTopol
ogy

1.
Ideal
ifwor
kst
ati
onsar
elocat
edi
ngr
oups.

2.
Usedi
nWi
deAr
eaNet
wor
k.

Adv
ant
agesofTr
eeTopol
ogy

1.
Ext
ensi
onofbusandst
art
opol
ogi
es.

2.
Expansi
onofnodesi
spossi
bleandeasy
.

Di
sadv
ant
agesofTr
eeTopol
ogy

1.
Heav
il
ycabl
ed.

2.
Cost
.

Concl
usi
on:
Thus,
wehav
est
udi
eddef
ini
ti
onoft
opol
ogyandt
hei
rty
pes.
Vi
dyaVikasEducati
onTrust
’s
Uni
ver
sal
Col
l
egeofEngineeri
ng,KamanRoad,Vasai
-
401208Accredi
tedB+GradebyNAAC

CNExper
imentNo2
Aim:Tost
udysomeusef
ulNet
wor
kingcommands
Theory
:
1.pi
ng-Pingisusedtot
estt
heabil
i
t yofonenetwor
khostt
o
communicatewit
hanot
her.Si
mpl
yent ert
hePingcommand,
fol
l
owed
bythenameortheIPaddr
essofthedesti
nati
onhost
.
>>pingip-addr
ess
Assumingthattherearenonet workprobl
emsorf ir
ewall
sprevent
ingthe
pingfrom completi
ng,theremot ehostwil
lrespondtothepingwit
h
fourpackets.Recei
vingthesepacketsconfirmsthatavali
dand
funct
ionalnetworkpathexistsbetweenthet wohosts.

2.tracert-Tr acert,or“TraceRout e,”i


saut i
l
ityforexaminingthepatht oa
remot ehost .Functionall
y,Tracertworkssimilar
lytoPing.Themaj or
differencei sthatTr acertsendsaser i
esofI CMPechor equests,
and
ther equest ’
sTTLi ncreasedby1eacht i
me.Thet r
acertcommandi s
usedt ovisuallyseeanet workpacketbeingsentandr eceivedandt he
amountofhopsr equi r
edf orthatpackettogettoitsdestinat
ion.
>>t
racer
tip-
addr
ess
Vi
dyaVikasEducati
onTrust
’s
Uni
ver
sal
Col
l
egeofEngineeri
ng,KamanRoad,Vasai
-
401208Accredi
tedB+GradebyNAAC

3.getmac-DOScommandusedt oshowbot hlocalandr emot eMAC


addresses.Whenr unwithnopar ameters(
ie.
 getmac)i tdispl
aysMAC
addressesforthelocalsystem.Whenr unwiththe/spar amet er
(eg.
 getmac/ s\\
foo)itdi
spl ay
sMACaddr essesf orther emote
comput er.Whenthe/vpar ameteri
sused,italsodisplayst he
associatedconnecti
onnameandnet workadaptername.
>>get
mac

4.i
pconf ig-IpconfigisaConsol eCommandwhi chcanbei ssuedt othe
CommandLi neI nterpreter(orcommandpr ompt )t
odisplaythenet work
setti
ngscur r
entlyassi gnedt oanyorallnetworkadaptersinthe
machi ne.Thi scommandcanbeut i
l
isedtov eri
fyanetwor kconnection
aswel l astov eri
fyy ournetwor ksett
ings.Atit
ssi mpl
est,theIPConf ig
commandwi l
ldisplaybasi cIPaddressconf i
gurati
oninformationfor
thedev ice.Simpl ytypeI PConfigattheWi ndowscommandpr ompt ,and
youwi llbepr esentedwi ththeI Paddress,subnetmask, anddef aul
t
gatewayt hatthedev i
ceiscur r
entl
yusing.
>>i
pconf
ig
Vi
dyaVikasEducati
onTrust
’s
Uni
ver
sal
Col
l
egeofEngineeri
ng,KamanRoad,Vasai
-
401208Accredi
tedB+GradebyNAAC

5.netstat-Displaysact i
v eTCPconnect i
ons,portsonwhi cht hecomput er
i
slistening,Ethernetst ati
sti
cs,t
he I
P r
outi
ngt abl
e, I
Pv 4statist
ics(f
or
theIP,ICMP, TCP, andUDPpr ot
ocols)
,andIPv 6stati
stics(fortheIPv6,
I
CMPv 6,TCPov erI Pv
6, andUDPov erIPv6protocols).Usedwi thout
paramet ers,netstatdisplaysact
iveTCPconnect ions.
>>net
stat
Vi
dyaVikasEducati
onTrust
’s
Uni
ver
sal
Col
l
egeofEngineeri
ng,KamanRoad,Vasai
-
401208Accredi
tedB+GradebyNAAC

6.nsl
ookup-Di splay
sinformat iont haty oucanuset odi agnoseDomain
NameSy stem (DNS)infrastruct ure.NSLookupi sagr eatutil
it
yfor
di
agnosingDNSnamer esolut i
onpr oblems.Justtypet heNSLookup
command, andWi ndowswi lldisplayt henameandI Paddr essoft
he
devi
ce’
sdef aultDNSser ver.From t her e,
y oucantypehostnamesi nan
eff
ortt
oseei ftheDNSser verisabl etor esol
vethespeci f
iedhost
name.
>>nslookup

Concl
usi
on:
Hence,
int
hisexper
iment
,wehav
esuccessf
ull
yst
udi
edsome
i
mport
antnet
wor
kingcommandandal
soi
mpl
ement
edt
hem i
nsy
stem
t
ermi
nal/
CMD
Vi
dyaVikasEducati
onTrust
’s
Uni
ver
sal
Col
l
egeofEngineeri
ng,KamanRoad,Vasai
-
401208Accredi
tedB+GradebyNAAC

Exper
imentNo.3
Ai
m:Jav
aPr
ogr
am f
orDNS
Theor
y:
DNS(
Domai
nSy
stem Name)
:
 DNSst
andf
orDomai
nNameSy
stem.
 DNSi
sahostnamet
oIPaddr
esst
ransl
ati
onser
vice.
 DNSi
sadi
str
ibut
eddat
abasei
mpl
ement
edi
nahi
erar
chyofnameser
ver
s.
 I
tisanappl
i
cat
ionl
ayerpr
otocol
formessageexchangebet
weencl
i
ent
sandser
ver
s.

WhyDNS?
Everyhostisident
ifi
edbyt heIPaddr
essbutremember ingnumbersi
sv er
ydif
fi
cultfor
t
hepeopl
eandal sotheIPaddr essesar
enotstat
ict
hereforeamappingisrequir
edtochange
t
hedomainnamet oI Paddress.So,DNSisusedtoconvertthedomainnameoft hewebsit
es
t
othei
rnumericalI
Paddr ess.
Domai
n:
Therear
ev ar
iouski
ndsofDOMAIN:
1.Generi
cdomai n:.
com(commerci
al).edu(
educati
onal).
mil
(mil
it
ary
).or
g(nonpr
ofi
t
organi
zati
on).
net(
simi
l
artocommer cial
)al
lthesearegener
icdomain.
2.Count
rydomai
n:.
in(
indi
a).
us.
uk
3.Inv
ersedomaini
fwewantt oknowwhatisthedomainnameofthewebsite.I
pt o
domainnamemapping.SoDNScanpr ov
ideboththemappingf
orexampletofindthe
i
paddressesoff
acebook.
com thenwehavetotypensl
ookupwww.facebook.
com

Namespace:
Setofpossibl
enames, fl
atorhier
archi
cal.Nami ngsyst
em maintai
nsacol l
ecti
onof
bindingsofnamest ovalues–givenaname, aresolut
ionmechanism ret
urnst he
correspondingvalue.
Domainnameser ver
sareafundamentalpartoft heDomainNameSy stem.
Nameser veri
saser verontheInt
ernetspeci
ali
zedinhandl i
ngqueri
esregardingthelocat
ion
ofthedomai nname’sv ari
ousservi
ces.I
neasywor ds,nameserversdefi
ney ourdomai n’
s
currentDNSpr ovider.

Ther
ear
ethr
eet
ypesofquer
iesi
ntheDNSsy
stem:
1.Recur
siv
eQuer
y
Vi
dyaVikasEducati
onTrust
’s
Uni
ver
sal
Col
l
egeofEngineeri
ng,KamanRoad,Vasai
-
401208Accredi
tedB+GradebyNAAC
 Inarecur
sivequer
y,aDNScl i
entpr
ovi
desahostname,andtheDNSResolv
er
“must”pr
ovideananswer—itr
espondswi
thei
therarel
evantresour
cer
ecord,
or
anerrormessagei
fitcan’
tbefound.
 Ther esol
verst
artsarecursivequerypr
ocess,star
ti
ngfrom theDNSRootServ
er,
unti
litfi
ndstheAuthorit
ati
v eNameServer(formoreonAuthor i
tat
iveName
ServersseeDNSSer verTypesbelow)thatholdstheIPaddressandother
i
nformat i
onfortherequestedhostname.
2.I
ter
ati
veQuer
y
 Inanit
erat
ivequer
y,aDNScli
entpr
ovi
desahost
name,
andt
heDNSResol
ver
r
etur
nsthebestansweri
tcan.
 I
ftheDNSr
esol
verhast
her
elev
antDNSr
ecor
dsi
nit
scache,
itr
etur
nst
hem.
 I
fnot ,i
tref
erstheDNScl i
enttotheRootSer
ver,oranot
herAuthor
it
ati
veName
Serverwhichisnearestt
other equi
redDNSzone.TheDNScl i
entmustthen
repeatthequerydi
rectl
yagainsttheDNSserv
eritwasrefer
redto.
3.Non-
Recur
siv
eQuer
y
 Anon-r
ecur
siv
equer
yisaquer
yinwhi
cht
heDNSResol
veral
readyknowst
he
answer
.
 Itei
theri
mmedi at
elyr
etur
nsaDNSr
ecor
dbecausei
tal
readyst
oresi
tinl
ocal
cache,orquer
iesaDNS
 NameServerwhi
chisaut
hor
itat
ivef
ort
her
ecor
d,meani
ngi
tdef
ini
tel
yhol
dst
he
cor
rectI
Pfort
hathost
name.
 I
nbothcases,t
hereisnoneedforaddi
ti
onal
roundsofqueri
es(l
i
keinrecur
sive
ori
ter
ati
vequeri
es).Rat
her
,aresponsei
simmediatel
yret
urnedt
othecli
ent.

DNSTy
pes:4Ty
pesofDNSSer
ver
s
Thef ol
l
owi
ngar
ethemostcommonDNSser
vert
ypest
hatar
eusedt
oresol
vehost
namesi
nto
I
Paddr
esses.
1.DNSr
ecur
siv
eresol
ver-
 Therecur
siv
ecanbethoughtofasal
i
brar
ianwhoi
saskedt
ogof
indapar
ti
cul
arbook
somewhereinal
ibr
ary
.
 TheDNSrecur
sivei
saser
verdesi
gnedt
orecei
vequer
iesf
rom cl
i
entmachi
nest
hrough
appl
i
cat
ionssuchaswebbrowser
s.
 Typi
call
y,t
herecur
siv
eist
henresponsi
blef
ormaki
ngaddi
ti
onal
request
sinor
dert
o
sati
sfyt
hecli
ent’
sDNSquery
.
2.Rootnameser
ver-
 Ther
ootserv
eristhef
ir
stst
epi
ntr
ansl
ati
ng(
resol
vi
ng)humanr
eadabl
ehostnames
i
ntoI
Paddresses.
 I
tcanbethoughtofl
i
keanindexi
nali
brar
ythatpoi
ntst
odif
ferentr
acksofbooks-
t
ypi
cal
lyi
tservesasaref
erencet
oot
hermorespeci
ficl
ocat
ions.
Vi
dyaVikasEducati
onTrust
’s
Uni
ver
sal
Col
l
egeofEngineeri
ng,KamanRoad,Vasai
-
401208Accredi
tedB+GradebyNAAC
3.TLDnameser
ver-
 Thetop-
lev
eldomai
nser
ver(
TLD)canbet
houghtofasaspeci
fi
crackofbooksi
na
l
ibr
ary.
 Thi
snameser
veri
sthenextstepi
nthesear
chforaspeci
fi
cIPaddr
ess,andi
thost
sthe
l
astpor
ti
onofahost
name( I
nexample.
com,theTLDserv
eris“
com”).
4. Aut
hor
it
ati
venameser
ver-
 Thisf
inal
nameser
vercanbet houghtofasadicti
onar
yonar
ackofbooks,
inwhi
cha
speci
fi
cnamecanbetransl
atedintoit
sdefi
nit
ion.
 Theaut
hor
it
ati
venameser
veri
sthel
astst
opi
nthenameser
verquer
y.
 Iftheauthori
tati
venameserverhasaccesst
otherequest
edrecord,
itwil
lret
urntheI
P
addressfortherequest
edhostnamebacktotheDNSRecursor(t
helibr
ari
an)thatmade
theini
ti
alrequest.

Code:
/
/Inet
.j
avafi
l
e
impor
tjav
a.net
.I
netAddr
ess;
impor
tjav
a.net
.*;

publ i
ccl assI net
{
publi
cst aticvoi dmai n(String[]args)
{
try
{
if
(ar gs. l
engt h>0)
{
Stringhost=ar gs[0];
I
net Address[ ]addr esses=I netAddr ess.getAl
lByName( host)
;
for(InetAddr essa: addr esses)
Sy stem. out.println(a);
}
else
{
I
net Addressl ocal Host=I net Addr ess.getLocalHost
();
Net wor kInterfacenet wor kInterface=
NetworkInterf
ace. get ByInetAddr ess( l
ocal Host );
StringipAddr ess=l ocal Host .getHost Address();
Stringsubnet Mask=" /
"
+networkInter
face. getI
nt erfaceAddr esses( ).get(0).
get NetworkPref
ixLength(
);
Vi
dyaVikasEducati
onTrust
’s
Uni
ver
sal
Col
l
egeofEngineeri
ng,KamanRoad,Vasai
-
401208Accredi
tedB+GradebyNAAC
Sy
stem.
out
.pr
int
ln(
ipAddr
ess+subnet
Mask)
;
}
}
catch(Excepti
one)
{
e.pr
int
StackTrace(
);
}
}
}

Out
put
:

Fi
g.Runni
ngDNSJav
apr
ogr
am

Concl
usi
on:
Thus,
int
hisexper
imentwehav
esuccessf
ull
yst
udi
edDNS
andi
mpl
ement
edi
t’
sJav
apr
ogr
am i
nComput
erNet
wor
king.
Vi
dyaVikasEducati
onTrust
’s
Uni
ver
sal
Col
l
egeofEngineeri
ng,KamanRoad,Vasai
-
401208Accredi
tedB+GradebyNAAC

Exper
imentNo.4
Ai
m:Jav
apr
ogr
am f
orSocketPr
ogr
ammi
ng
Theor
y:
Jav
aSocketPr
ogr
ammi
ng
o JavaSocketpr
ogrammi ngi
susedf
orcommuni
cat
ionbet
weent
heappl
i
cat
ions
runni
ngondiff
erentJRE.
o Jav
aSocketpr
ogr
ammi
ngcanbeconnect
ion-
ori
ent
edorconnect
ion-
less.
o SocketandServer
Socketclassesareusedf
orconnect
ion-
ori
entedsocket
progr
ammi ngandDat agr
amSocketandDatagr
amPacketclassesareusedfor
connect
ion-l
esssocketprogr
ammi ng.

Thecl
i
enti
nsocketpr
ogrammingmustknowt
woi
nfor
mat
ion:
a.IPAddr
essofServ
er,and
b.Por
tnumber
.
Here,wear egoi ngtomakeone- waycli
entandser vercommuni cati
on.Inthis
appli
cation,cli
entsendsamessaget ot heserv er,
serverr eadsthemessageandpr i
nts
i
t.Here,twocl assesar ebeingused:SocketandSer verSocket.
TheSocketcl assi susedtocommuni cateclientandser ver.Throught hi
sclass,
wecanr eadandwr i
temessage.TheSer v
erSocketcl assi susedatser ver-
side.The
accept()met hodofSer verSocketcl
assblockst heconsol eunt i
lthecli
entisconnect ed.
Aftert
hesuccessf ulconnecti
onofclient,
itr
et urnsthei nstanceofSocketatser ver-
si
de.

#Socketcl
ass
Asocketissi
mplyanendpointf
orcommuni
cat
ionsbet
weent
hemachi
nes.The
Socketcl
asscanbeusedtocreat
easocket.

#Ser
ver
Socketcl
ass
TheSer
ver
Socketcl
asscanbeusedt
ocreat
easer
versocket
.Thi
sobj
ecti
s
usedt
oestabl
i
shcommunicati
onwit
hthecl
ient
s.
Vi
dyaVikasEducati
onTrust
’s
Uni
ver
sal
Col
l
egeofEngineeri
ng,KamanRoad,Vasai
-
401208Accredi
tedB+GradebyNAAC

Cr
eat
ingSer
ver
:
Tocr eatet
heserverappli
cati
on,weneedt ocreat
et heinstanceofServerSocketclass.
Here, weareusi
ng6666por tnumberf orthecommuni cati
onbetweent heclientand
server.Youmayalsochooseanyot herpor tnumber.Theaccept ()methodwai tsforthe
cl
ient.Ifcl
i
entsconnectswiththegivenpor tnumber,i
tr et
urnsaninst
anceofSocket .
Server
Socketss=newSer v
er Socket
(6666);
Sockets=ss.accept
();
//establi
shesconnect i
onandwai t
sf orthecli
ent

Cr
eat
ingCl
ient
:
Tocr
eatethecli
entappli
cati
on,weneedt ocreatetheinst
anceofSocketcl
ass.Here,
weneedtopasstheIPaddr essorhostnameoft heServerandaportnumber.Her
e,we
ar
eusing"
local
host"becauseourserverisrunningonsamesy st
em.
Sockets=newSocket("l
ocalhost"
,6666)
;

Code:
My
Ser
ver.j
avaf i
le
i
mpor tj
ava.io.*
;
i
mpor tj
ava.net.*;
publ
icclassMy Ser
ver
{
publi
cstaticv oidmai n(St ri
ng[]args) {
tr
y
{
ServerSocketss=newSer v
er Socket(6666);
Sockets=ss. accept ();
//establi
shesconnect i
on
DataInputStream di s=new
DataInputStream( s.getInputStream( )
);
Str
ingst r
=(String) dis.
readUTF( );
System. out.
println( "
message=" +str
);
ss.
close( );
}
catch(Exceptione) {System. out.pri
ntl
n(e);
}
}
}

My
Cli
ent.
javafil
e
i
mpor tjava.
io.*;
i
mpor tjava.
net .
*;
publi
cclassMy Client
{
publi
cst aticv oidmai n(Str
ing[
]args)
{
try
{
Sockets=newSocket ("
localhost",
6666);
Dat aOut putStream dout=new
DataOut putStream( s.getOutputStr
eam( ));
dout .writeUTF("Hell
oSer ver");
dout .fl
ush( )
;
dout .cl
ose( );
s.close( )
;
}catch( Exceptione){System. out.
pri
ntl
n(e)
;}
Vi
dyaVikasEducati
onTrust
’s
Uni
ver
sal
Col
l
egeofEngineeri
ng,KamanRoad,Vasai
-
401208Accredi
tedB+GradebyNAAC
}
}

Out
put
:
Toexecutethi
sprogr
am opentwocommandpr
omptsandexecut
eeachpr
ogr
am at
eachcommandpr omptasdispl
ayedi
nthebel
owfi
gur
es.
Fi
rstr
unMy ser
ver.
jav
afil
einter
minal
/cmd,

Fi
g.
Runni
ngMy
Ser
ver
.j
ava

Theni
nnewt
ermi
nal
/cmdr
unMy
Cli
ent
.j
avaf
il
e,

Fi
g.
Runni
ngMy
Cli
ent
.j
ava

Assoonasy
our
unMy
Cli
entprogr
am amessagei
ssenttoser
veranddi
spl
ayedi
nMy
Ser
ver
Terminal
/CMDasshownbelow,

Fi
g.
Messagedi
spl
ayedi
nMy
Ser
veraf
terr
unni
ngMy
Cli
ent

Concl
usi
on:So,i
nthi
sexper
imentwehav
esuccessf
ull
yunder
stoodt
heconceptof
SocketPr
ogr
ammi
ngandi
mpl
ement
edi
tusi
ngJav
aPr
ogr
ammi
ng.
Vi
dyaVikasEducati
onTrust
’s
Uni
ver
sal
Col
l
egeofEngineeri
ng,KamanRoad,Vasai
-
401208Accredi
tedB+GradebyNAAC

EXPERI
MENTNO.5

Aim:USEOFCRI
MPI
NGTOOLFORRJ-45
Theory
:
Cr
impi
nganRJ45Connect
orCorrect
ly
Pr
operWir
ingf
orEther
netCat
5/Cat
5eCabl es

Cablescant
ransmiti
nfor
mati
onalongthei
rlengt
h.Toact
ual
l
ygetthati
nfor
mat
ionwher
eit
needstogo,youneedtomaketheri
ghtconnecti
onst
oanRJ45connect
or.

Yourcabl
erunneedst
oter
minat
eint
oaconnect
or,
andt
hatconnect
orneedsaj
ackt
opl
ug
i
nto.

Regist
eredJack45(
RJ45)isastandar
dty
peofphysi
calconnectorf
ornet
wor
kcabl
es.RJ45
connector
sarecommonlyseenwithEt
her
netcabl
esandnetworks.

ModernEther
netcablesfeat
ureasmal l
plasti
cplugoneachendoft hecabl
e.Thatpl
ugis
i
nsert
edintoRJ45jacksofEther
netdevices.Theter
m“plug”ref
erstothecabl
eor“male”end
oft
heconnecti
onwhi let
heterm“jack”r
eferstothepor
tor“female”end.

T568AorT568BWi
ri
ngSt
andar
d
Vi
dyaVikasEducati
onTrust
’s
Uni
ver
sal
Col
l
egeofEngineeri
ng,KamanRoad,Vasai
-
401208Accredi
tedB+GradebyNAAC

T568AandT568Barethetwocol
ourcodesusedforwiri
ngei ght
-posi
ti
onmodul arpl
ugs.
Bothar
eall
owedundertheANSI/
TIA/
EIAwiri
ngstandards.Theonlydiff
erencebetweent
he
twocol
orcodesi
sthattheor
angeandgreenpai
rsareinterchanged.

Thereisnotransmi ssi
ondif
fer
encesbetweenT568AandT568Bcabl
ingschemes.Nor
th
America’
spreferenceisforT568B.Bothendsmustuset
hesamestandard.I
tmakesno
di
ffer
encetot hetransmissi
oncharact
eri
sti
csofdat
a.

T568B 
wir
ingpat
ter
nisr
ecogni
zedast
hepr
efer
redwi
ri
ngpat
ter
n.

STEP1

Usinga Cri
mpingTool,
tri
mt heendofthecabl
e
you'r
eterminat
ing,
toensurethatt
heendsofthe
conducti
ngwi r
esareeven.

STEP2

Beingcar
efulnott
odamaget
heinnerconducti
ngwi r
es,
str
ipoffapproxi
mat
ely1i
nchof
thecabl
e'
sjacket,
usi
nga 
modul
arcri
mpi ngtool
 ora 
UTPcablestr
ipper.
Vi
dyaVikasEducati
onTrust
’s
Uni
ver
sal
Col
l
egeofEngineeri
ng,KamanRoad,Vasai
-
401208Accredi
tedB+GradebyNAAC

STEP3

Separatethe4t wistedwir
epairsfrom eachother
,
andthenunwi ndeachpai r,sot
haty ouendupwi t
h
8indivi
dual wires.Flatt
enthewiresoutasmuchas
possibl
e,sincet hey'l
lneedtobev erystr
aightf
or
properinserti
oni ntotheconnector.

STEP4

Holdingt hecabl
ewiththewi r
eendsf acingawayf rom y ou.Movi
ngfrom
l
efttor i
ght,arr
angethewiresinaflat,si
de-by-si
der ibbonformati
on,
pl
acingt hem inthef
oll
owingor der
:whi t
e/orange,sol i
dorange,
white/green,sol
idbl
ue,white/bl
ue,soli
dgr een,white/brown,sol
i
dbrown.

STEP5

Hol
dingtheRJ45connect orsothatitspinsare
f
acingawayfrom youandt heplug-cli
psideis
f
acingdown,caref
ullyinserttheflatt
ened,arr
anged
wi
resint
otheconnect or,pushingt hr
oughuntilt
he
wi
reendsemer gefrom thepi ns.Forstrengt
hof
Vi
dyaVikasEducati
onTrust
’s
Uni
ver
sal
Col
l
egeofEngineeri
ng,KamanRoad,Vasai
-
401208Accredi
tedB+GradebyNAAC
connect
ion,
alsopushasmuchoft
hecabl
ejacketaspossi
blei
ntot
heconnect
or.

STEP6

Checktomakesur ethatthewireendscomi ngoutoft he


connector'
spi nsidearei nt
hecorrectorder ;
ifnot,
removet hem from theconnector,r
earrangei nt
opr oper
formati
on, andre-insert
.Remember ,oncet heconnect or
i
scr i
mpedont othecabl e,i
t'
spermanent .Ifyoureali
ze
thatami stakehasbeenmadei nwir
eor deraf t
er
termi
nation,you'l
lhav etocuttheconnect oroffandst ar
tal
lov
eragai
n!

STEP7

Inser
tthepreparedconnector/cabl
eassembl yi
nto
theRJ45slotin yourcr
impingtool.Fi
rmlysqueeze
thecri
mper '
shandlestogetherunti
lyoucan'tgo
anyfurt
her.Releasethehandlesandr epeatt
his
steptoensureapr opercr
imp.
Vi
dyaVikasEducati
onTrust
’s
Uni
ver
sal
Col
l
egeofEngineeri
ng,KamanRoad,Vasai
-
401208Accredi
tedB+GradebyNAAC
STEP8

Ify
ourcri
mperdoesn'tautomatical
l
ytri
mt hewireendsupon
ter
minati
on,car
eful
lycutwireendstomaket hem asfl
ush
wit
htheconnector'
ssurfaceaspossibl
e.Theclosert
hewire
endsaretri
mmed, t
hebet t
eryourfi
nalpl
ug-i
nconnecti
onwill
be.

STEP9

Aft
erthefi
rstt
ermi
nati
oniscompl
ete,
repeatpr
ocessont
he
opposi
teendofyourcabl
e

CONCLUSI
ON:
Thus,
wehav
est
udi
edt
heuseofcr
impi
ngt
ool
forRJ-
45.
Vi
dyaVikasEducati
onTrust
’s
Uni
ver
sal
Col
l
egeofEngineeri
ng,KamanRoad,Vasai
-
401208Accredi
tedB+GradebyNAAC

EXPERI
MENTNO.6

Ai
m:Tost
udyt
hewor
kingofwi
reShar
k

Theor
y

Wir
esharki
sanetworkpacketanal
yzer
.Anet
wor
kpacketanal
yzerpr
esent
scapt
uredpacket
dat
ainasmuchdet
ail
aspossibl
e.

Youcouldt
hinkofanetworkpacketanaly
z erasameasur i
ngdevi
ceforexami
ningwhat
’s
happeni
ngi
nsideanet
workcabl
e,j
ustl
ikeanelect
ri
cianusesavol
tmet
erforex
ami
ningwhat
’s
happeni
ngi
nsi
deanelect
ri
ccabl
e(butatahigherl
evel,
ofcour
se).

I
nt hepast,
sucht ool
swereeitherveryex
pensi
ve,pr
opr
iet
ary,orbot
h.However
,wit
htheadvent
ofWireshar
k,thathaschanged.Wi r
eshar
kisavai
l
ablef
orfree,i
sopensour
ce,andisoneofthe
bestpacketanaly
z er
savai
labl
et oday.

Her
ear
esomer
easonspeopl
euseWi
reshar
k:

 Networkadministrat
or suseitto t
roubleshootnet workproblems
 Networksecur
ityengi neersuseitto exami nesecurit
yproblems
 QAengineersusei tto ver
if
ynet workappl i
cations
 Devel
opersusei tt debugpr
o  otocolimpl ement at
ions
 Peopl
eusei tt
o learnnet workprotocol 
internals
Vi
dyaVikasEducati
onTrust
’s
Uni
ver
sal
Col
l
egeofEngineeri
ng,KamanRoad,Vasai
-
401208Accredi
tedB+GradebyNAAC
 
Feat
ures

Thef
oll
owi
ngar
esomeoft
hemanyf
eat
uresWi
reshar
kpr
ovi
des:

 Avail
abl efor UNIX  and Windows.
 Captur e l
iv
epacketdat afrom anetworkint
erf
ace.
 Open  fi
lescont ainingpacketdat acaptur
edwithtcpdump/ Wi
nDump,Wi
reshar
k,andmany
otherpacketcapt ur eprograms.
 I
mpor t 
packet sfrom t extfi
lescont
aini
nghexdumpsofpacketdat a.
 Displaypacket swi t v
h erydetail
edprot
ocolinf
ormation.
 Save packetdat acapt ured.
 Expor t 
someoral lpacketsinanumberofcapt ur
ef i
l
ef or
mats.
 Fi
lterpacket s onmanycr i
teri
a.
 Search  f
orpacket sonmanycr it
eri
a.
 Colorize packetdi splaybasedonf i
lter
s.
 Createv arious statist
ics.

Dat
aPacket
sonWi
reshar
k

NowthatwehaveWir
eshar
kinst
all
edlet
’sgoov
erhowt
oenabl
etheWi
reshar
kpacketsni
ff
er
andt
henanal
yzethenet
worktr
aff
ic.

Capt
uri
ngDat
aPacket
sonWi
reshar
k
Wheny ouopenWi r
eshar
k,youseeascreent
hatshowsyouali
stofall
ofthenetwork
connecti
onsyoucanmonitor.Youal
sohaveacaptur
efi
l
terf
iel
d,soyouonlycapt
urethe
networktr
aff
icyouwanttosee.

Youcansel
ectoneormor
eoft
henet
wor
kint
erf
acesusi
ng“
shi
ftl
eft
-cl
i
ck.
”Oncey
ouhav
e
Vi
dyaVikasEducati
onTrust
’s
Uni
ver
sal
Col
l
egeofEngineeri
ng,KamanRoad,Vasai
-
401208Accredi
tedB+GradebyNAAC
t
henet
wor
kint
erf
acesel
ect
ed,
youcanst
artt
hecapt
ure,
andt
her
ear
esev
eral
way
stodo
t
hat
.

Cl
i
ckt
hef
ir
stbut
tonont
het
ool
bar
,ti
tl
ed“
Star
tCapt
uri
ngPacket
s.”

Youcansel
ectt
hemenui
tem Capt
ure-
>St
art
.

Ory
oucoul
duset
hekey
str
okeCont
rol
–E.

Dur
ingt
hecapt
ure,
Wir
eshar
kwi
l
lshowy
out
hepacket
sthati
tcapt
uresi
nreal
-t
ime.
Vi
dyaVikasEducati
onTrust
’s
Uni
ver
sal
Col
l
egeofEngineeri
ng,KamanRoad,Vasai
-
401208Accredi
tedB+GradebyNAAC

CONCLUSI
ON:
Thus,
wehav
est
udi
edt
hewor
kingofWi
reShar
k.

Exper
imentno.
:7
AI
M:CREATESI
MPLENETWORK USI
NG CI
SCOPACKETTRACER

THEORY:PacketTr acercanber unonLi nuxandMi crosof


tWi ndowsandal so
macOS.Si milar 
Andr oid and i
OS appsar eal soav ailabl
e.PacketTr acerall
ows
userstocr eat
esi mulat ednet worktopologiesbydr agginganddr oppingrout
er s,
swi t
chesandv ari
ousot hertypesofnet wor kdev ices.A phy sicalconnecti
on
betweendev i
cesi srepr esentedbya" cabl e"item.PacketTr acersuppor tsan
array ofsi mulated Appl icat
ion Layerpr otocols,as wel las basi crouti
ng
with RI
P, OSPF, 
EIGRP,  BGP, t o t he ext ents r equired by t he
current
 CCNA  cur
riculum.As ofv ersi
on 5. 3,PacketTr aceral so supports
the BorderGatewayPr otocol.
Inaddi
ti
ont
osimulat
ingcert
ainaspect
sof 
computernetworks,PacketTr
acer
canalsobeusedforcoll
aborat
ion.AsofPacketTracer5.0,PacketTracer
suppor
tsamult
i-
usersyst
em thatenabl
esmult
ipl
euserst oconnectmulti
ple
Vi
dyaVikasEducati
onTrust
’s
Uni
ver
sal
Col
l
egeofEngineeri
ng,KamanRoad,Vasai
-
401208Accredi
tedB+GradebyNAAC

topologi
es together over a 
comput er network. 
Packet Tr
acer also all
ows
i
nst r
uctor
stocr eat
eactivi
ti
est hatstudentshavetocomplete.PacketTraceris
oftenusedineducat i
onalsett
ingsasal ear
ningaid.
 Ci
scoSy st
emscl ai
mst hat
PacketTracerisusefulf
ornetwor kexperimentat
ion.

 I
N ABOVEFI
GURE,AHUBISCONNECTED WI
TH 6PC’
sEACH OFTHEM HAVI
NG
THEI
ROWNIPCONFI
GURATI
ON.MAXI
MUM OF6CONNECTI
ONSCANBEMADEVI A
HUB

 SENDTHEPACKETSFROM THEREQUI
REDSOURCETODESTI
NATI
ON.

 FROM ABOVEFI
GURE,
TWOPC’
SAREDI
RECTLYSENDI
NGPACKETSTOEACHOTHER.
Vi
dyaVikasEducati
onTrust
’s
Uni
ver
sal
Col
l
egeofEngineeri
ng,KamanRoad,Vasai
-
401208Accredi
tedB+GradebyNAAC

 I
NTHEABOVEFIGURETWOPC’
SARECONNECTEDTOSERVERBYADDI
NGAEXTRA
PORTTOTHEPHYSI
CALLI
NKOFSERVER

 WEWEREABLETOEXECUTEPACKETTRANSFERFROM ONEPCTOSERVERONLY.

CONCLUSI
ON:
WEHAVEEXCECUTEDSOMEBASCIDEVI
CESI
NCI
SCOPACKETTRACER.
Vi
dyaVikasEducati
onTrust
’s
Uni
ver
sal
Col
l
egeofEngineeri
ng,KamanRoad,Vasai
-
401208Accredi
tedB+GradebyNAAC

Exper
imentNo.
:8
Ai
m:Tost
udyt
her
out
erandpasst
hemessgaeamongthepc’
swi
tht
heswi
tch
Theor
y:Rout
er:
A router 
is a networ ki
ng dev i
ce t
hatf orwards 
data packet s 
between 
comput ernetworks.
Rout ersperformt het raf
fi
cdirecti
ngfuncti
onsont he I
nternet.Datasentthroughtheinter
net,
such as a  web page  or 
email,is i n t he form of dat a packets. A packet i s
typicall

forwar ded f
rom oner outertoanot herrout
ert hrought henetworkst hatconsti
tut
e
an inter
networ k (
e.g.theInt
ernet)unt
ili
treachesitsdestinati
on node.
Ar outerisconnectedtotwoormor edatal inesf rom dif
ferentIPnet works. 
Whenadat a
packetcomesi nononeoft heli
nes,t
herouterr eadsthe networkaddr ess 
i
nf or
mati
oninthe
packetheadertodet er
minetheulti
matedest inati
on.Then,usi nginformationini
ts r
out
ing
tabl
e or 
rout
ingpoli
cy,i
tdi
rect
sthepackett
ot henextnet workoni tsjourney.
Themostf amili
arty
peofIPr outersar e 
homeandsmal loffi
cerouters t
hatsimplyfor
ward 
IP
packets bet
weent hehomecomput ersandt heInter
net.Anexampl eofar outerwouldbethe
owner'
scabl eorDSLr outer,whi chconnect stot heI nternett
hr oughan  I
nter
netservi
ce
provi
der  
(I
SP).Moresophi
sticatedr outers,
suchasent erpriserout
ers, connectl
argebusi
ness
orISP net worksupt othepower ful
 corer out
ers 
thatf orwarddat aathi ghspeedal ong
the 
opticalfi
ber 
li
nesoft
he 
Int ernetbackbone.
Controlplane:Ar outermaintainsarouti
ngt ablethatlistswhi chrouteshoul dbeusedt o
for
war dadat apacket ,andthroughwhichphy sicalint
erfaceconnection.Itdoest hisusing
i
nternalpreconfi
gureddi r
ect
ives,cal
l
ed st
at i
cr outes,orbyl ear
ningroutes dynamical
ly 
using
aroutingprotocol
.Staticanddynamicroutesar estoredint herouti
ngtable.Thecont r
ol-
plane
l
ogict henstri
psnon- essent
ialdir
ect
ivesfrom t hetableandbui ldsa for
war di
nginformation
base (FI
B)tobeusedbyt heforwardi
ngplane.
Forwardi
ng plane:The r out
erf orwar
ds dat
a packets between i
ncoming and out
goi
ng
i
nterf
aceconnections.I
tforwardsthem t
othecor
rectnetworktypeusi
nginfor
mati
onthatt
he
packet
 header
 contai
nsmat chedtoentr
iesi
ntheFIBsuppli
edbyt hecont
rolpl
ane.
Aroutermayhaveint
erf
acesfordiff
erenttypesof
 phy
sicall
ayer
 connect
ions,
suchascopper
cabl
es, 
fi
ber opt
ic, or
 wir
eless 
tr
ansmi ssi
on. I
t can al so support differ
ent
 net
work
Vi
dyaVikasEducati
onTrust
’s
Uni
ver
sal
Col
l
egeofEngineeri
ng,KamanRoad,Vasai
-
401208Accredi
tedB+GradebyNAAC
l
ayer 
transmissi
onstandar
ds.Eachnetworkint
erfacei susedtoenabl
edatapacket
stobe
for
wardedf r
om onet r
ansmissi
onsystem t
oanother .Router
smayalsobeusedtoconnect
two or mor el ogi
calgroups of computer devices known as 
subnet
s,each wit
ha
dif
fer
ent net
workprefi
x.
Rout
ersmaypr ov
ideconnectivi
tywit
hinenterpr
ises,betweenenterpri
sesandtheInter
net,or
bet
ween i
nternetservi
ceprov i
ders'(
ISPs'
)networ ks.Thelargestrout
ers(suchasthe Ci
sco
CRS-1 
or 
Juniper 
PTX)interconnectthev ar
iousI SPs,ormaybeusedi nl ar
geent er
prise
[5]
net
works.  Small
errouter
susuallyprovi
deconnect i
vit
yforty
picalhomeandof f
icenetworks.
Ext ernalnetworksmustbecar eful
l
yconsi deredaspar toftheov er
allsecuri
tystrategyofthe
l
ocalnet work.Ar out
ermayi ncl
udea  fi
rewall
, VPN  handli
ng,andot hersecur i
tyfuncti
ons,or
thesemaybehandl edbysepar atedev i
ces.Rout er
sal socommonl yperform networkaddress
translation 
which rest
r i
cts connecti
ons i ni
tiated f r
om ext er
nalconnect ions buti s not
recogni sedasasecur ityfeatur
ebyal lexperts. Someexper tsarguethat opensour ce 
rout
ers
aremor esecur eandr eli
ablethan 
closedsour ce r
outer sbecauseopensour cer outer
sall
ow
mi stakest obequickl
yf oundandcor rected.

Fi
gur
eno.
:1–St
ruct
urecr
eat
edf
orconnect
ionbet
weenr
out
er,
swi
tchandpc
Vi
dyaVikasEducati
onTrust
’s
Uni
ver
sal
Col
l
egeofEngineeri
ng,KamanRoad,Vasai
-
401208Accredi
tedB+GradebyNAAC

Fi
gur
eno.
:2–Messagebei
ngsendf
rom pc1t
opc3andr
ecei
vedacknowl
edgement

Fi
gur
eno.
:3–Conf
igur
ati
onofr
out
ers
Vi
dyaVikasEducati
onTrust
’s
Uni
ver
sal
Col
l
egeofEngineeri
ng,KamanRoad,Vasai
-
401208Accredi
tedB+GradebyNAAC

Fi
gur
eno.
:4–Conf
igur
ati
onofpc

Conclusi
on:Thuswehavestudi
estherout
erpr
operl
yunder
standingi t
sappli
cat
ionsand
creat
inganetworkbet
weenpc’susi
ngswit
chtosendmessaget hroughrout
ercreat
inga
networkandpasst
hemessagebet
weenpc
Vi
dyaVikasEducati
onTrust
’s
Uni
ver
sal
Col
l
egeofEngineeri
ng,KamanRoad,Vasai
-
401208Accredi
tedB+GradebyNAAC

EXPERI
MENTNO.9
AI
M: I
MPLEMENTATI
ONOFVLAN
THEORY:
St
epsfori
mpl
ementi
ngVLAN:

Step1:
SelectRouter–sel
ect1841r out
eranddragitt
othescreen(Router0)
.
Selectanot
herRouter–select1841anddragittori
ghtoftheRouter0(Router
1).
SelectSwit
ches–select2950-24anddragitbel
owt heRouter0(Swit
ch0).
SelectSwit
ches–select2950-24anddragitbel
owt heRouter1(Swit
ch1).
SelectEndDevice–selectGeneri
canddragitbelowSwitch0(PC-PTPC0).
SelectEndDevice–selectGeneri
canddragitbelowSwitch1(PC-PTPC1).
SelectEndDevice–selectGeneri
canddragitbelowSwitch1(PC-PTPC2).
SelectConnecti
ons–Connectr out
ers,
swit
chesandPCst oeachother.

St
ep2:
Cl
ickonPC0andgot oDeskt
op>IPConfi
gurat
ion
AddIPAddress,asy
ouwil
laddt
heIPAddress,SubnetMaskwi
l
lbeaut
omat
ical
l
yaddedand
di
splay
ed.
AddDefaul
tGatewayandcl
oset
hewindow.
Vi
dyaVikasEducati
onTrust
’s
Uni
ver
sal
Col
l
egeofEngineeri
ng,KamanRoad,Vasai
-
401208Accredi
tedB+GradebyNAAC

St
ep3:
Cl
ickonPC1andgot oDeskt
op>IPConfi
gurat
ion
AddIPAddress,asy
ouwil
laddt
heIPAddress,SubnetMaskwi
l
lbeaut
omat
ical
l
yaddedand
di
splay
ed.
AddDefaul
tGatewayandcl
oset
hewindow.

St
ep4:
Cl
ickonPC2andgot oDeskt
op>IPConfi
gurat
ion
AddIPAddress,asy
ouwil
laddt
heIPAddress,SubnetMaskwi
l
lbeaut
omat
ical
l
yaddedand
di
splay
ed.
AddDefaul
tGatewayandcl
oset
hewindow.
Vi
dyaVikasEducati
onTrust
’s
Uni
ver
sal
Col
l
egeofEngineeri
ng,KamanRoad,Vasai
-
401208Accredi
tedB+GradebyNAAC

St
ep5:
Cl
ickonRout
er0.GotoConfi
g>FastEt
her
net
0/0.
Here,
addIPAddressandOnthePor
tStat
us.

St
ep6:
Cl
ickonRout
er1.GotoConfi
g>FastEt
her
net
0/1.
Here,
addIPAddressandOnthePor
tStat
us.
Vi
dyaVikasEducati
onTrust
’s
Uni
ver
sal
Col
l
egeofEngineeri
ng,KamanRoad,Vasai
-
401208Accredi
tedB+GradebyNAAC

Asy ouwil
lseeabov e,ther
eisgreendotswhi
chmeansconnect
ionsar
edonesuccessf
ull
y
betweenRouter,SwitchesandPCs.
Step7:
Cli
ckonRout er
0.Got oConfi
g>FastEther
net
0/1.
Here,addI
PAddr essandOnt hePortStat
us.
Vi
dyaVikasEducati
onTrust
’s
Uni
ver
sal
Col
l
egeofEngineeri
ng,KamanRoad,Vasai
-
401208Accredi
tedB+GradebyNAAC

St
ep8:
Cl
ickonRout
er1.GotoConfi
g>FastEt
her
net
0/0.
Here,
addIPAddressandOnthePor
tStat
us.
Vi
dyaVikasEducati
onTrust
’s
Uni
ver
sal
Col
l
egeofEngineeri
ng,KamanRoad,Vasai
-
401208Accredi
tedB+GradebyNAAC

Asy
oucanseeabov
e,connect
ioni
sdonebet
weenbot
htheRout
erssuccessf
ull
y.

St
ep9:
Cl
ickonRouter
1.GotoConfig>RIP.
Here,
addthenetwor
kaddresstoconnectr
out
er1wi
thswi
tch1,
PC1,
PC2andr
out
er0.
Vi
dyaVikasEducati
onTrust
’s
Uni
ver
sal
Col
l
egeofEngineeri
ng,KamanRoad,Vasai
-
401208Accredi
tedB+GradebyNAAC

St
ep10:
Cl
ickonRouter
0.GotoConfig>RIP.
Here,
addthenetwor
kaddresstoconnectr
out
er0wi
thswi
tch0,
PC0andr
out
er1.

Now,
all
theconnect
ionsar
edonesuccessf
ull
y,y
oucanchecki
tbycl
i
cki
ngont
hissy
mbol

Andt
hen,
cli
ckonanyt
woPCs,
youwi
l
lgett
hest
atusassuccessf
ul.
Vi
dyaVikasEducati
onTrust
’s
Uni
ver
sal
Col
l
egeofEngineeri
ng,KamanRoad,Vasai
-
401208Accredi
tedB+GradebyNAAC

Soti
l
lnow,
RoutingI
nfor
mati
onProt
ocoli
sdone.
Now,wewi
llst
artwi
thimpl
ement
ingVLAN.

St
ep11:
Addt
woPC(
PC3andPC4)andconnecti
twi
thswi
tch.
Vi
dyaVikasEducati
onTrust
’s
Uni
ver
sal
Col
l
egeofEngineeri
ng,KamanRoad,Vasai
-
401208Accredi
tedB+GradebyNAAC

St
ep12:
Cl
ickonPC3andgot oDeskt
op>IPConfi
gurat
ion
AddIPAddress,asy
ouwil
laddt
heIPAddress,SubnetMaskwi
l
lbeaut
omat
ical
l
yaddedand
di
splay
ed.
AddDefaul
tGatewayandcl
oset
hewindow.

St
ep13:
Cl
ickonPC3andgot oDeskt
op>IPConfi
gurat
ion
AddIPAddress,asy
ouwil
laddt
heIPAddress,SubnetMaskwi
l
lbeaut
omat
ical
l
yaddedand
di
splay
ed.
AddDefaul
tGatewayandcl
oset
hewindow.
Vi
dyaVikasEducati
onTrust
’s
Uni
ver
sal
Col
l
egeofEngineeri
ng,KamanRoad,Vasai
-
401208Accredi
tedB+GradebyNAAC

Step14:
Cl
ickonSwitch1andgot
oCLI
AddtypetheVLANcode–
VLANCODE:
VLAN

enabl
e
confi
gt
vl
an20
namepurchase
exi
t
vl
an30
namesales
exi
t

i
ntfa0/2
swi
tchportaccessv
lan20
exi
t

i
ntfa0/3
swi
tchportaccessv
lan20
exi
t

i
ntfa0/4
swi
tchportaccessv
lan30
exi
t

i
ntfa0/5
swi
tchportaccessv
lan30
exi
t
Vi
dyaVikasEducati
onTrust
’s
Uni
ver
sal
Col
l
egeofEngineeri
ng,KamanRoad,Vasai
-
401208Accredi
tedB+GradebyNAAC

Fi
nal
Out
put
:

Now,
PC1,
PC2ar
enotconnect
edt
oPC3andPC4.
Vi
dyaVikasEducati
onTrust
’s
Uni
ver
sal
Col
l
egeofEngineeri
ng,KamanRoad,Vasai
-
401208Accredi
tedB+GradebyNAAC

CONCLUSI
ON:
Thus,
wehav
esuccessf
ull
yimpl
ement
edVLAN.

You might also like