Op Net Tutorial
-
Upload
julialau10 -
Category
Documents
-
view
227 -
download
0
Transcript of Op Net Tutorial
-
8/12/2019 Op Net Tutorial
1/49
Simulating Wireless Networks using
OPNET Modeler
Tutorial on OPNET Modeler
By: Mukesh Singh Rawat
Email: [email protected]!.in
"ReS#T ##T Bomay
mailto:[email protected]:[email protected] -
8/12/2019 Op Net Tutorial
2/49
O$e!ti%e
This tutorial &o!uses on the use o& O'net(sPro$e!t Editor
The Pro$e!t Editor will allow you to )ui!kly
!reate* simulate* and analy+e the 'er&orman!eo& a !om'uter network
By the end o& this tutorial you should e aleto:
Build the network )ui!kly ,olle!t statisti!s aout network(s 'er&orman!e Analyze these statistics
-
8/12/2019 Op Net Tutorial
3/49
O$e!ti%e
#n this tutorial: We will uild small wireless networks
We will !hose the statisti!s to !olle!t
Run a simulation
-naly+e the result
enerating we re'ort
-
8/12/2019 Op Net Tutorial
4/49
Pro$e!t and S!enario
When !reating new network model youmust &irst !reate 'ro$e!t and s!enario
Pro$e!t:- grou' o& related s!enarios that ea!h
e/'lore di&&erent as'e!t o& network model ,an !ontain multi'le s!enarios
On!e you &inished with 'ro$e!t !reation* you!an use startup wizardto !reate news!enario
-
8/12/2019 Op Net Tutorial
5/49
,reating a Pro$e!t
0rom the &ile menu !hoose New
Sele!t Project&rom 'o'u' menu and
!li!k OK
Name the Pro$e!t 1Project_Yourname2
and the s!enario as Yournamein the Pro$e!t Name will
distinguish Pro$e!t &rom other(s 'ro$e!ts
,li!k OK
-
8/12/2019 Op Net Tutorial
6/49
S!enario
The S!enario Wi+ard is shown
0ollow the ste's a!!ording to the &ollowing
tale
Box Value
,li!k FinishRe%iew !he!k %alues
,li!k NextWireless 3-NModel 0amily
,li!k Next455 m / 455 mSi+e
,li!k NextO&&i!eNetwork S!ale
,li!k Next,reate em'ty
s!enario
#nitial To'ology
-
8/12/2019 Op Net Tutorial
7/49
,reating network to'ologies
There are three way to !reate network
to'ologies #m'orting the to'ology
Pla!ing ea!h indi%idual node&rom oject
paletteinto wor!place
,reating new network to'ology is y using
the "apid #on$i%uration&eature
-
8/12/2019 Op Net Tutorial
8/49
,reating to'ology using 'la!ing
indi%idual node &rom o$e!t 'alette
-dding ,om'onents: #& it is not already o'en* o'en the o$e!t
'alette y !li!king on the O$e!t Palette
a!tion utton 6&irst utton on the le&t7 0ind the ethernet&ser'ero$e!t in the
'alette and drag it into the works'a!e
8ou don(t need additional !o'ies o& thismodel* so right9!li!k to turn o&& node
!reation
-
8/12/2019 Op Net Tutorial
9/49
-dding ,om'onents
8ou also need to ha%e an Access Point&or
modeling in&rastru!ture ased network
8ou also need to !onne!t this -!!ess Point to
ethernet&networ!ser%er 0ind the 45BaseT link o$e!t in the 'alette* !li!k on
it and drag it to the works'a!e
,li!k on the ser%er o$e!t* then !li!k on the a!!ess
'oint o$e!t. - link is drawn* !onne!ting the twoo$e!ts
Right9!li!k to turn o&& link !reation
-
8/12/2019 Op Net Tutorial
10/49
-dding ,om'onents
8ou also need to ha%e some wireless stations
in your model 0ind the wlan&w!stno$e!t in the o$e!t 'alette
Sele!t it then drag it into the work s'a!e and dro' it 8ou !an make any numer o& !o'ies o&
wlan&w!stny $ust !li!king
Make the &i%e !o'ies o& wlan&w!stninto work
s'a!e Right !li!k to &inish
-
8/12/2019 Op Net Tutorial
11/49
#t should look something like this
-
8/12/2019 Op Net Tutorial
12/49
-dding ,om'onents
0inally you need to add !on&iguration o$e!ts
to s'e!i&y the a''li!ation tra&&i! that will e/ist
on the network
0ind the Application #on$i%o$e!t in the 'aletteand drag it into the works'a!e
Right9!li!k to indi!ate you are &inished 'la!ing this
kind o& o$e!t
0ind the Pro$ile #on$i%o$e!t in the 'alette anddrag it into the works'a!e
,lose the o$e!t 'alette
-
8/12/2019 Op Net Tutorial
13/49
#t should look something like this
-
8/12/2019 Op Net Tutorial
14/49
-dding -ttriutes
8ou !an !hange the propertieso&
o$e!ts y editing the attriutes
"i%ht clic!on the o$e!t you want to
edit
,hoose Edit attriutes
-
8/12/2019 Op Net Tutorial
15/49
-dding tra&&i! to the network
#n order to add the tra&&i! into the
network* edit the 'ro'erties o& the
&ollowing o$e!ts: Application (e$inition:
Set the a''li!ation de&inition to de$ault
-
8/12/2019 Op Net Tutorial
16/49
#t looks like this
-
8/12/2019 Op Net Tutorial
17/49
-dding tra&&i! to the network
Edit the Pro$ile #on$i%uration Edit the Pro&ile ,on&iguration in the new
window
Put numer in rows
Set the %alues as shown in the &ollowing
slide
-
8/12/2019 Op Net Tutorial
18/49
#t looks like this
-
8/12/2019 Op Net Tutorial
19/49
Pro&ile ,on&iguration !ont;
#lic!on the a''li!ation &or ea!h 'ro&ile
name and !hoose Edit Enter the %alues &or 'ro&ile )eAppas
shown in the &ollowing slide
-
8/12/2019 Op Net Tutorial
20/49
#t will look like this
-
8/12/2019 Op Net Tutorial
21/49
Pro&ile ,on&iguration !ont;
Now 'er&orm the same &or 'ro&ile
)irelessApp Edit the a''li!ation as shown in the
&ollowing slide
-
8/12/2019 Op Net Tutorial
22/49
#t will look like this
-
8/12/2019 Op Net Tutorial
23/49
-dding the tra&&i!
Now that you are done with Application
and Pro$ile* ne/t you need to add tra&&i!
in ea!h work station Sele!t node&*right !li!k on it
Sele!t Edit attriute
-
8/12/2019 Op Net Tutorial
24/49
-dding tra&&i! to node
-
8/12/2019 Op Net Tutorial
25/49
-dding the tra&&i!
Enter in the numer o& "ows* it is at
ottom le&t side o& window
#lic!on the Pro$ile Na+eand sele!t
)eAppin the &irst row and
)irelessAppin the se!ond row
,li!k OKto &inish setting
#t will look like image in the ne/t slide
-
8/12/2019 Op Net Tutorial
26/49
#t will look like this
-
8/12/2019 Op Net Tutorial
27/49
,onne!t to ser%er
8ou also need to make it !onne!ted with
the ser%er.
Right !li!k on the ser%er then !hoose
edit attriutes.
=nder -''li!ation: set Application
,upported ,er'ice attriute to -A../
&or the %alue &ield. #t should look like this
-
8/12/2019 Op Net Tutorial
28/49
,onne!t to ser%er
-
8/12/2019 Op Net Tutorial
29/49
Enale -P &un!tionality at
W3-N>Router 6de&ault: enaled7
-
8/12/2019 Op Net Tutorial
30/49
,hoose Statisti!s
Now that you added the tra&&i!* you are
ready to !olle!t some statisti!s
There are two ways to !olle!t statisti!s 8ou !an !olle!t statisti!s &rom indi%idual
nodes in your network 6o$e!t statisti!s7
0rom the entire network as a whole 6gloal
statisti!s7
-
8/12/2019 Op Net Tutorial
31/49
Ser%er Statisti!s
"i%ht #lic!on the ser%er then sele!t
#hoose 0ndi'idual (E, statistics
,li!k the plussign ne/t to Ethernetin
the ,hoose Results dialog o/
,li!k on to the !he!k o/ ne/t to the
(elay 1sec2and .oad 1its3sec2
-
8/12/2019 Op Net Tutorial
32/49
#t will look like this
-
8/12/2019 Op Net Tutorial
33/49
loal Statisti!s
loal statisti!s !an e used to gather
in&ormation aout the network as a whole.
0or e/am'le* you !an &ind out the throu%hput
&or the entire network y !olle!ting the %loalThrou%hput statisti! Right9!li!k in the 'ro$e!t works'a!e
Sele!t #hoose 0ndi'idual (E, ,tatistics&rom the
Works'a!e 'o'9u' menu ,li!k the 'lus sign ne/t to 4loal ,tatisticsin the
!hoose Results dialog o/
-
8/12/2019 Op Net Tutorial
34/49
loal Statisti!s
,li!k on to the 'lus sign ne/t to the
)ireless .AN
,he!k the o/ ne/t to the (elay 1,ec25
.oad 1its3sec2 andThrou%hput
1its3sec2
,li!k OKdo diminish the ,hoose
Statisti!s dialogue o/
,AVEthe 'ro$e!t
-
8/12/2019 Op Net Tutorial
35/49
loal Statisti!s
-
8/12/2019 Op Net Tutorial
36/49
Run the simulation
Now you ha%e &inished with all !on&igurations*
and you are ready to run the simulation ,li!k on to the (E,in the menu ar* and ,hoose
#on$i%ure3"un(iscrete E'ents ,i+ulation Ty'e 45 minutes
,hoose Simulation "ernel as -!ernel&type/
pre$erence
,li!k on to "unto run the simulation
-
8/12/2019 Op Net Tutorial
37/49
Run the simulation
While the simulation is running* the
window will a''ear* showing the
simulation(s 'rogress Shown in the ne/t slide
When the simulation is &inished* !li!k the
#loseutton in the Simulation Se)uen!e
dialog o/
-
8/12/2019 Op Net Tutorial
38/49
Run the simulation
-
8/12/2019 Op Net Tutorial
39/49
Simulation Results
On!e you &inished with e/e!uting* you
will want to see in&ormation !olle!ted &or
ea!h statisti!s 8ou !an see result gra'hi!ally y:
Right ,li!k into the Pro$e!t work s'a!e and
sele!t View "esults
-
8/12/2019 Op Net Tutorial
40/49
Simulation Results
To %iew ser%er Ethernet load: Right !li!k on to the ser%er and sele!t %iew
result
,li!k on to the Ethernet!he!k o/ andsele!t the uttons in &ront o& the (elay and.oad
Sele!t a'era%eand then !li!k on ,how
utton #t will look like ne/t slide ,li!k #loseto diminish window
-
8/12/2019 Op Net Tutorial
41/49
Ethernet Ser%er Statisti!s
-
8/12/2019 Op Net Tutorial
42/49
Simulation Results !ont;
8ou &inished with #ndi%idual results* now you may wantto %iew 4loal ,tatistics
8ou may want to %iew the wireless delay* load* andthrough'ut o& the whole system. To %iew this:
Right !li!k into 'ro$e!t works'a!e and sele!t View results&rom 'o'9u' menu
,he!k the4loal statisticsand then !li!k on to the )ireless.AN* and then sele!t
-
8/12/2019 Op Net Tutorial
43/49
loal Statisti!s
-
8/12/2019 Op Net Tutorial
44/49
-nimation
To %iew animation !li!k on to the (E,
menu and sele!t "ecord Pac!et Flow
ani+ation $or sunetand "ecord
nodes +o'e+ent ani+ation $orsunet
But you ha%e to do it e&ore you run the
simulation
-
8/12/2019 Op Net Tutorial
45/49
-nimation
-
8/12/2019 Op Net Tutorial
46/49
-nimation
Then Run the simulation* a&ter simulation
&inishes* !li!k on to the
-
8/12/2019 Op Net Tutorial
47/49
enerate and 3aun!h we
re'ort
8ou !an generate the ?TM3 we re'ort
o& your simulation whi!h show all gra'hs*
and %arious other statisti!s To generate we re'ort $ust !li!k on the
(E,menu* go to the "esultand sele!t
4enerate )e "eport&rom the list
0or laun!hing the we re'ort $ust &ollow theao%e ste's ut sele!t .aunch last )e
"eport
-
8/12/2019 Op Net Tutorial
48/49
-
8/12/2019 Op Net Tutorial
49/49
Thanks
6