OPNET Tutorial SS 2013 Authors !ohammad !" Siddi#ue$ Andreas %" &'ns(en 1 Advanced Communication Lab OPNET Tutorial SS 2012 1" Lo( on to the com)uter" 2" O)en the OPNET )ro(ram b* clic+in( on the res)ective icon" 3" A,ter the OPNET )ro(ram has started *ou have to build a sim)le simulation o, t-o .LAN stations" /" 0o to File and select New" 1" Select Project and clic+ Ok" 2" 0ive the )ro3ect name accordin( to *our (rou) name" 4or e5am)le$ i, *our (rou) number is A1 (ive the )ro3ect name projectA1 and the scenario name scenario1" 6" Select Create empty scenario and clic+ Next" 7" Select Office as Net-or+ Scale and select Use metric units" 2 Advanced Communication Lab OPNET Tutorial SS 2012 8" S)eci,* the units as ,ollo-s and clic+ Next" 10" Scroll do-n to the bottom and select the technolo(* wireless_lan_adv b* clic+in( on the corres)ondin( ,ield in the Include? column$ and clic+ Next" 11" Clic+ Finish" 12" The Ob3ect Palette Tree -ill o)en -hich sho-s the di,,erent .LAN com)onents as ,ollo-s" 13" 9n this ste)$ set u) the net-or+ model in the )ro3ect:net-or+ editor o, the OPNET simulator as sho-n in the ,i(ure belo-" 3 Advanced Communication Lab OPNET Tutorial SS 2012 ;a< 4rom Node Models under the item wireless_lan_adv in the the ob3ect )alette$ dra( the Application Config ob3ect into the OPNET -or+)lace -ith )ressin( the le,t button o, the mouse on and then )ress out the le,t button and )ress the ri(ht button to dro) that in the -or+)lace" ;b< 9n the same -a*$ dra( and dro) the Profile Config ob3ect" ;c< Add one -ireless LAN ,i5ed -or+station -hich is labelled wlan_wkstn_adv, Fixed Node and one -ireless LAN mobile -or+station -hich is labelled wlan_wkstn_adv, Mobile Node into the -or+)lace" 1/" Save *our )ro3ect b* clic+in( Sae !s""" and (ive the name o, *our ,ile as projectX -here X is *our (rou) number" 11" Con,i(urin( a))lications ,or the model ;a< =se the Application Config and Profile Config nodes ,rom the ob3ect )alette" ;b< Con,i(ure the Video Conferencing a))lication li+e as ,ollo-s usin( the a))lication con,i(uration o Clic+ the ri(ht button over the Application Config ob3ect$ and then clic+ on !danced #dit !ttri$utes to o)en a -indo- -ith di,,erent attributes and corres)ondin( values" o Clic+ on the Application Definition attribute" Add a ro- and name as vdo_app" Set the Video Conferencing item to ig! "esol#tion Video" / Advanced Communication Lab OPNET Tutorial SS 2012 >e)lo* the a))lication *ou have (enerated usin( the )ro,ile con,i(uration and name it vdo_pro" o =nder Profile Config#rations in the a))lications list add a ro- and select the name vdo_app ,rom the dro)?do-n menu" o Select $tart %i&e Offset as No Offset" o Select $tart %i&e o, the simulation as constant ;0< and +ee) the other items as de,ault" 1 Advanced Communication Lab OPNET Tutorial SS 2012 12" Con,i(urin( some basic attributes o, the -or+stations ;a< Clic+ onto the ,i5ed station -ith the ri(ht mouse button and select !danced #dit !ttri$utes" ;b< Set the ,ollo-in( values" na&e' source x position' 13 ( position' 10 """ ;c< Clic+ onto the mobile station -ith the ri(ht mouse button and set the attributes as ,ollo-s" na&e' destination x position' 10 ( position' 10 tra)ector(' NONE ;to ma+e it stationar*< 16" >e)lo*in( the )ro,iles in the -or+stations and con,i(urin( ;a< 0o to the attributes o, source Set Application' Destination Preference and $#pported Profiles as ,ollo-s" Set the ,ollo-in( -ireless LAN )arameters li+e in the ,i(ure belo- P!(sical C!aracteristics, Data "ate *bps+, %rans&it power *,+, Packet "eception-Power %!res!old *d.&+/ 2 Advanced Communication Lab OPNET Tutorial SS 2012 ;b< 0o to the attributes o, the node destination" Set Application $#pported $ervices Set the ,ollo-in( three .ireless LAN )arameters li+e in the ,i(ure belo- P!(sical C!aracteristics Data rate *bps+ %rans&it power *,+ Packet "eception0Power %!res!old *d.&+ 17" Choose the statistics ,or the -or+stations ;a< 0o to %#S in the menu bar and clic+ on Choose Indiidual Statistics"""" ;b< Clic+ Node $tatistics$ then .ireless LAN" Chec+ Dela( *sec+ and %!ro#g!p#t *bits1sec+ as ,ollo-s" 6 Advanced Communication Lab OPNET Tutorial SS 2012 18" @un the simulation ;a< 0o to %#S in the menu bar and clic+ on Con&i'ure()un %iscrete #ent Simulation" ;b< set the items %uration$ Seed etc" as sho-n in ,i(ure belo- and run 20" Collect the results ;a< &ee) the mouse )ointer over )ro3ect editor and clic+ the ri(ht button o, the mouse" Choose *iew )esults in the )o)?u) menu" ;b< To (et the avera(e value ,or the dela* and the throu(h)ut$ select aera'e in the dro) do-n menu -hich is set to !s Is b* de,ault" 7 Advanced Communication Lab OPNET Tutorial SS 2012 ;c< Clic+ on the show button and *ou -ill (et ,ollo-in( -indo-" ;d< &ee) the mouse )ointer over the -indo- but outside the area into -hich the (ra)h is )lot and clic+ the ri(ht button o, the mouse" Choose $!ow $tatistic Data in the list and the ,ollo-in( -indo- -ill a))ear" ;e< .rite do-n the sam)le mean and the standard deviation ,or the dela* and the throu(h)ut" Aou can co)* and )aste the numeric values ,rom the -indo- b* mar+in( them -ith the le,t mouse button and )astin( them into a te5t editor b* )ressin( the middle mouse button" 21" !a+e the destination node mobile" 4or addin( mobilit* to the destination$ a tra3ector* has to be created in the ,ollo-in( -a* 0o to +opolo'y in the menu bar and then select %e&ine +rajectory" 8 Advanced Communication Lab OPNET Tutorial SS 2012 0ive the +rajectory name as mob" Select +rajectory type as Fixed interval" Set +ime step to 2 &/ Chec+ the bo5 Coordinates are relatie to o$ject,s position" Then clic+ on %e&ine Path and the ,ollo-in( -indo- -ill a))ear" 4or Speed select &1s ,rom the dro)?do-n menu" Clic+ -ith the le,t button on an* )lace in the -or+ )lace to )oint to the start o, the tra3ector*$ then move the mouse to another )lace and clic+ the le,t button to )oint to the end" Clic+ the ri(ht button and select #dit trajectory de&inition" A -indo- a))ears -hich must be ,illed out as sho-n belo- and con,irmed b* clic+in( O-" 10 Advanced Communication Lab OPNET Tutorial SS 2012 22" No-$ select the destination and (o to !danced #dit !ttri$utes/ Select &ob ,or trajectory" 23" @e?run the simulation as be,ore -ith simulation duration 1 minute" 2/" Bie- the results o, dela* and throu(h)ut ,or destination node" Clic+ on the show button and *ou -ill (et the -indo- -ith the result (ra)hs" 21" 4or *our lab re)ort$ *ou need to ca)ture the (ra)h" ;a< O)en the ksnapshot )ro(ram in another Linu5 console" ;b< Select the Capture mode as .indow Under Cursor" ;c< Clic+ New Snapshot" ;d< Select the -indo- that sho-s the (ra)hs" ;e< Save as SimResult.jpg" 11