You are on page 1of 20

OPNET Exercise Simulation of communication networks

&RXUVH  ,QWURGXFWLRQ WR 7HOHFRPPXQLFDWLRQ 1HWZRUNV DQG 'DWD &RPPXQLFDWLRQ 1HWZRUNV

$XWKRUV +HQULN &KULVWLDQVHQ /DUV 6WDDOKDJHQ

5HYLVLRQ  6HSWHPEHU  /DVW XSGDWHG 2FWREHU  

&20 7HFKQLFDO 8QLYHUVLW\ RI 'HQPDUN

Table of contents
7DEOH RI FRQWHQWV   ,QWURGXFWLRQ DQG SXUSRVH  %HIRUH WKH H[HUFLVHV  'XULQJ WKH H[HUFLVH  ,QWHUQHW DFFHVV   7HOHWUDIILF WKHRU\  /RFDO $UHD 1HWZRUNV  /RFDO $UHD 1HWZRUNV ZLWK UHDO WUDIILF  $SSHQGL[ $ ,QWURGXFWLRQ WR 231(7  $SSHQGL[ % 3HUIRUPDQFH HYDOXDWLRQ  

Introduction and purpose


7KH SHUIRUPDQFH RI PRGHUQ FRPPXQLFDWLRQ QHWZRUN LV D NH\ SDUDPHWHU HVSHFLDOO\ IURP WKH RSHUDWRU
V SRLQWRIYLHZ 7KLV LQFOXGHV ERWK VPDOO QHWZRUNV LQ FRPSDQLHV XS WR ODUJH LQWHUQHWZRUNV WKDW VSDQ WKH HQWLUH ZRUOG 7KH SHUIRUPDQFH RI DQ H[LVWLQJ QHWZRUN FDQ EH PHDVXUHG EXW WKHVH PHDVXUHPHQWV RQO\ UHIOHFW WKH FXUUHQW VWDWH RI WKH QHWZRUN 6LQFH DSSOLFDWLRQV DQG XVHU
V EHKDYLRXU FKDQJH RYHU WLPH WKH QHWZRUN RSHUDWRU PXVW FRQVWDQWO\ PRGLI\ DQG LPSURYH RQ WKH QHWZRUN +RZHYHU FKDQJLQJ D QHWZRUN WR PHHW QHZ JRDOV LV QRW HDV\ LI LW KDV WR EH GRQH UDWLRQDOO\ HVSHFLDOO\ IURP DQ HFRQRPLFDO SRLQWRIYLHZ 7KHUHIRUH WKH QHWZRUN RSHUDWRU PXVW EH DEOH WR DQDO\VH ZKDWLI VFHQDULRV LH ZKDW ZLOO EH WKH HIIHFW RQ WKH SHUIRUPDQFH RI WKH QHWZRUN LI DQRWKHU URXWHU LV LQVWDOOHG RU LI RQH RI WKH OLQNV LV XSJUDGHG WR D KLJKHU ELW UDWH 8QIRUWXQDWHO\ DOO EXW WKH VLPSOHVW QHWZRUNV DUH WRR FRPSOH[ WR DQDO\VH IURP D WKHRUHWLFDO SRLQWRIYLHZ XVLQJ PDWKHPDWLFDO PHWKRGV 7KH QHWZRUN RSHUDWRU PXVW WKHUHIRUH WXUQ KLV DWWHQWLRQ HOVHZKHUH 2QH VROXWLRQ LV WR XVH VLPXODWLRQ +HUH VLPXODWLRQ FDQ EDVLFDOO\ EH GHVFULEHG DV EXLOGLQJ D PRGHO RI WKH QHWZRUN XQGHU FRQVLGHUDWLRQ LQVLGH D FRPSXWHU DQG LQWURGXFH WUDIILF LQWR WKLV PRGHO 7KH FRPSXWHU FDQ WKHQ VLPXODWH WKH QHWZRUN DQG SURYLGH VRPH VWDWLVWLFDO SDUDPHWHUV DV RXWSXW RI WKH VLPXODWLRQ 7KH QHWZRUN RSHUDWRU FDQ XVH WKHVH UHVXOWV DV EDVLV IRU GHWHUPLQLQJ ZKDW PXVW EH GRQH WR FKDQJH WKH QHWZRUN ,Q WKLV H[HUFLVH \RX ZLOO EH DEOH WR XVH D SURIHVVLRQDO VLPXODWLRQ WRRO 231(7 WR DQDO\VH D QXPEHU RI QHWZRUNLQJ VFHQDULRV 7KH SXUSRVH RI WKLV H[HUFLVH LV  7R LQWURGXFH \RX WR WKH XVH RI VLPXODWLRQ WRROV IRU HYDOXDWLRQ WKH SHUIRUPDQFH RI QHWZRUNV  7R HYDOXDWH D QXPEHU RI QHWZRUN VFHQDULRV ZLWK UHVSHFW WR YDULRXV QHWZRUN SHUIRUPDQFH SDUDPHWHUV

Before the exercises


%HIRUH WKH H[HUFLVHV LW LV H[SHFWHG WKDW \RX KDYH UHDG WKLV GRFXPHQW IRFXVVLQJ HVSHFLDOO\ RQ DSSHQGL[ $ ZKHUH WKH EDVLF XVH RI WKH 231(7 VLPXODWLRQ SURJUDP LV GHVFULEHG

During the exercise


)ROORZ WKH VWHSV RXWOLQHG LQ WKLV GRFXPHQW 7KH TXHVWLRQV DUH PHDQW WR EH GLVFXVVHG EHWZHHQ WKH JURXS PHPEHUV DQG ZLWK WKH VXSHUYLVRU )HHO IUHH WR H[SHULPHQW ZLWK WKH GLIIHUHQW QHWZRUNVVFHQDULRV ZLWK WKH KHOS IURP \RXU IULHQGO\ VXSHUYLVRU 7R GRFXPHQW WKDW \RX KDYH FRPSOHWHG WKH YDULRXV SDUWV RI WKH H[HUFLVHV \RX VKRXOG PDNH D SULQWRXW RI WKH JUDSKV WKDW DUH JHQHUDWHG

Internet access
/RDG WKH SURMHFW QDPHG KFBLQWURFRPBODE 6DYH WKH SURMHFW DJDLQ XQGHU D GLIIHUHQW QDPH 8VH WKH IROORZLQJ IRUPDW LQLWLDOV!BLQWURFRPBODE ZKHUH LQLWLDOV! DUH WKH LQLWLDOV RI VRPH RU DOO RI \RXU JURXS PHPEHUV ,Q WKLV ZD\ \RX ZLOO EH DEOH WR UHWULHYH \RXU SURMHFW ODWHU 7KLV SURMHFW FRQWDLQV WZR JURXSV RI VFHQDULRV ,Q WKH ILUVW JURXS D GRUP ZLWK VWXGHQWV LV FRQQHFWHG WR DQ ,63 WR SURYLGH ,QWHUQHW DFFHVV IRU WKH VWXGHQWV 7KH GLIIHUHQFH EHWZHHQ WKHVH VFHQDULRV UHODWH WR WKH W\SH DQG VSHHG RI WKH FRQQHFWLRQ EHWZHHQ WKH GRUP DQG WKH ,63 )LJXUH  VKRZV WKH FRUUHVSRQGHQFH EHWZHHQ WKH UHDOZRUOG QHWZRUN DQG WKH 231(7 PRGHO

Internet Server ISP Dorm

Server
y Server y Router

Internet
y Routers

ISP
y Access y (DSLAM)

Dorm
y Students y Switches y Access

router

router

Link
y UTP y xDSL ? y ISDN ?

cable

5($/ :25/'

231(7 02'(/

)LJXUH  &RUUHVSRQGHQFH EHWZHHQ UHDOZRUOG QHWZRUN DQG 231(7 PRGHO

,Q WKH VHFRQG JURXS RI VFHQDULRV ZH FRQVLGHU UHVLGHQWLDO XVHUV FRQQHFWHG WR DQ ,63 WKURXJK $'6/ DQG WKH GLIIHUHQFH LV KHUH UHODWHG WR WKH QXPEHU RI XVHUV WKDW DUH FRQQHFWHG WR WKH ,63 4XHVWLRQ 6HOHFW WKH Dorm_ISDN VFHQDULR DQG GHWHUPLQH ZKLFK VWDWLVWLFV DUH VHOHFWHG :KDW LV WKH PHDQLQJ RI WKH GLIIHUHQW VWDWLVWLFV" 7DVN 5XQ D VLPXODWLRQ 7KH DWWULEXWHV ZLOO LQLWLDOO\ KDYH VHQVLEOH YDOXHV VR \RX GR QRW QHHG WR FKDQJH DQ\ WKH ILUVW WLPH :KHQ WKH VLPXODWLRQ KDV HQGHG ORRN DW WKH UHVXOWV RI WKH HTTP Page response time VWDWLVWLFV <RX VKRXOG VHH D ZLQGRZ VLPLODU WR WKH ILJXUH 

7KLV ILJXUH LV QRW HDV\ WR LQWHUSUHW /RRN LQVWHDG DW WKH SUREDELOLW\ GHQVLW\ IXQFWLRQ RI WKH VDPH VWDWLVWLF &ORVH WKH ZLQGRZ 6HOHFW Probability Density (PDF) LQVWHDG RI As Is DQG FOLFN Show  4XHVWLRQ +RZ VKRXOG \RX LQWHUSUHW WKLV JUDSK" 7DVN 'HWHUPLQH WKH GDWD UDWH RI DOO WKUHH VFHQDULRV ZLWK D GRUP FRQQHFWHG WR DQ ,63 3HUIRUP D VLPXODWLRQ RQ DOO WKUHH VFHQDULRV DQG YLHZ WKH +773 3DJH 5HVSRQVH 7LPH VWDWLVWLFV 4XHVWLRQ +RZ ZRXOG \RX LQWHUSUHW WKH JUDSK V " 7KH QH[W LQWHUHVWLQJ SRLQW ZRXOG EH WR VHH WKH HIIHFW RI LQFUHDVLQJ WKH QXPEHU RI VWXGHQWV LQ WKH GRUP )RU WKLV SXUSRVH ZH ZLOO DQDO\VH D QXPEHU RI VFHQDULRV ZKHUH WKH RQO\ GLIIHUHQFH LV WKH QXPEHU RI VWXGHQWV LQ WKH GRUP $V WKH EDVH VFHQDULR VHOHFW WKH Dorm_ISDN VFHQDULR 7DVN &UHDWH WZR FRSLHV RI WKLV VFHQDULR ,Q WKH ILUVW RI WKHVH FRSLHV FKDQJH WKH QXPEHU RI ZRUNVWDWLRQV WR  &KDQJH WKH Number of Workstations DWWULEXWH LQ WKH VWXGHQWV REMHFW LQ WKH 'RUP VXEQHW WR  ZRUNVWDWLRQV  ,Q WKH VHFRQG FRS\ FKDQJH WKH QXPEHU RI ZRUNVWDWLRQV WR  1RZ SHUIRUP WKH VLPXODWLRQV RQ WKHVH WKUHH VFHQDULRV $IWHU WKH VFHQDULR YLHZ WKH +773 3DJH UHVSRQVH WLPH VWDWLVWLFV IRU WKH WKUHH VFHQDULRV LQ WKH VDPH JUDSK &RPPHQW RQ WKH JUDSKV $UH WKH UHVXOWV DV H[SHFWHG 7DVN 'HWHUPLQH WKH XWLOL]DWLRQ RI WKH OLQN EHWZHHQ WKH 'RUP DQG WKH ,63 <RX ZLOO QHHG WR FUHDWH WZR JUDSKV RQH IRU WKH XWLOL]DWLRQ LQ HDFK GLUHFWLRQ &DQ WKHVH JUDSKV SURYLGH DGGLWLRQDO H[SODQDWLRQ LQ UHODWLRQ WR WKH SUHYLRXV TXHVWLRQ ,Q WKH QH[W SDUW ZH ZLOO ORRN DW WKH HIIHFW RI DJJUHJDWLQJ WUDIILF 7DVN 6HOHFW WKH residential_user VFHQDULR DQG UXQ WKH VLPXODWLRQ 0DNH WZR JUDSKV RQH LQ HDFK GLUHFWLRQ RI WKH WKURXJKSXW As Is RQ WKH OLQN EHWZHHQ WKH ,63 DQG ,QWHUQHW :KDW LV WKH PD[LPXP YDOXH LQ HDFK GLUHFWLRQ" 7DVN 1RZ FROOHFW WKH VDPH VWDWLVWLFV IRU WKH RWKHU WZR UHVLGHQWLDO VFHQDULRV DQG FUHDWH D JUDSK RI WKH WKURXJKSXW IRU DOO WKUHH VFHQDULRV LQ RYHUODLG PRGH )RU WKHVH VFHQDULRV ZKDW LV WKH PD[LPXP YDOXH" :KDW ZRXOG \RX KDYH H[SHFWHG EDVHG RQ WKH SUHYLRXV TXHVWLRQ" &DQ \RX H[SODLQ WKH GLIIHUHQFH" 7DVN &UHDWH D VLPLODU JUDSK EXW XVH WKH WLPHBDYHUDJH VWDWLVWLF :KDW LV QRZ WKH UHODWLRQ EHWZHHQ WKH WKUHH VFHQDULRV" ,Q WKH QH[W SDUW RI WKLV H[HUFLVH ZH ZLOO DQDO\VH WKH HIIHFW RI FKDQJLQJ WKH ELWUDWH RQ WKH XVHUV $'6/ FRQQHFWLRQ WR WKH ,63 7DVN 6HOHFW WKH residential_user VFHQDULR DQG PDNH WZR FRSLHV &KDQJH WKH GDWD UDWH DWWULEXWH LQ WKH FRS\ VFHQDULRV VR WKDW \RX ZLOO KDYH WKUHH VFHQDULRV ZLWK WKH ,63 ! 8VHU GDWD UDWH RI  
)LJXUH  6WDWLVWLF
$V ,V

DQG  ESV /RRN DW WKH +773 SDJH UHVSRQVH WLPH VWDWLVWLFV IRU DOO WKUHH VFHQDULRV WKDW LQYROYHV RQH UHVLGHQWLDO XVHU EXW ZLWK GLIIHUHQW ,63 ! 8VHU GDWD UDWHV &RPPHQW RQ WKH JUDSKV

Teletraffic theory
Theory/Background
7KH FRUUHFW GLPHQVLRQLQJ RI WHOHFRPPXQLFDWLRQ QHWZRUNV LV YHU\ LPSRUWDQW ,I WRR IHZ UHVRXUFHV DUH SXW LQWR WKH QHWZRUN WKH TXDOLW\ RI VHUYLFH H[SHULHQFHG E\ WKH XVHUV ZLOO EH XQVDWLVIDFWRU\ ZKLOH WRR PDQ\ UHVRXUFHV PHDQV WKDW WKHVH UHVRXUFHV DUH QRW XVHG HIILFLHQWO\ WKXV SURYLGLQJ D SRRU UHWXUQ RQ WKH QHWZRUN RSHUDWRUV LQYHVWPHQW 2QH LPSRUWDQW TXDOLW\ RI VHUYLFH SDUDPHWHU LV WKH EORFNLQJ SUREDELOLW\ 7KLV SDUDPHWHU GHVFULEHV WKH SUREDELOLW\ RI QRW EHLQJ DEOH WR FDUU\ RXW D FDOO GXH WR LQVXIILFLHQW UHVRXUFHV LQ WKH QHWZRUN 7KLV H[HUFLVH ZLOO IRFXV RQ WKLV SDUDPHWHU 7KH UHDOZRUOG VFHQDULR WKDW ZLOO EH PRGHOOHG LQ 231(7 LQ WKLV H[HUFLVH LV LOOXVWUDWHG LQ ILJXUH  7KH VFHQDULR FRQWDLQV D QXPEHU RI VXEVFULEHV DOO FRQQHFWHG WR D ORFDO H[FKDQJH )URP WKLV ORFDO H[FKDQJH D QXPEHU Q RI ZLUHV FRQQHFW WKH ORFDO H[FKDQJH WR D UHJLRQDO H[FKDQJH 7KH OLPLWLQJ UHVRXUFH KHUH LV WKH QXPEHU Q RI ZLUHV VR LI WKH VXEVFULEHV H[SHULHQFH EORFNLQJ ZKHQ WKH\ DWWHPSW WR HVWDEOLVK D FDOO WKLV PHDQV WKDW DW WKDW WLPH DOO Q ZLUHV ZHUH RFFXSLHG E\ RWKHU FDOOV
Subscribers

n number of wires

)LJXUH  6FHQDULR IRU WKLV H[HUFLVH

Erlangs B-formula
7KH EORFNLQJ SUREDELOLW\ FDQ EH GHWHUPLQHG HLWKHU E\ VLPXODWLRQ ZKLFK ZLOO EH \RXU WDVN LQ WKLV H[HUFLVH RU GLUHFWO\ FDOFXODWHG E\ (UODQJV IRUPXOD VKRZQ LQ HTXDWLRQ 

$Q Q ( Q $ = $  $ $Q + $ + + ++   Q
(TXDWLRQ  (UODQJ
V %IRUPXOD

ZKHUH $ LV WKH RIIHUHG WUDIILF DQG Q LV WKH QXPEHU RI UHVRXUFHV WKDW WKH XVHUV QHHG DFFHVV WR 7KH RIIHUHG WUDIILF LV GHILQHG DV WKH DPRXQW RI WUDIILF WKDW FRXOG EH KDQGOHG LQ WKH FDVH RI LQILQLWH UHVRXUFHV ,Q WKH FDVH RI WUDGLWLRQDO 3671 ZH FDQ GHILQH WUDIILF DV WKH QXPEHU RI FDOO DWWHPSWV SHU VHFRQG WLPHV WKH DYHUDJH OHQJWK RI D FDOO )RU LQVWDQFH LI D VXEVFULEHU PDNHV  DWWHPSWV SHU KRXU  DWWHPSWV SHU PLQXWH DQG WKH DYHUDJH OHQJWK RI D FDOO LV  PLQXWHV WKH RIIHUHG WUDIILF IURP WKLV VXEVFULEHU LV $    HUODQJ 7UDIILF KDV QR GLPHQVLRQ EXW WKH GLPHQVLRQOHVV XQLW RI HUODQJ LV QRUPDOO\ XVHG WR KRQRU WKH 'DQLVK SLRQHHU LQ WKH ILHOG RI WHOHWUDIILF WKHRU\ $ . (UODQJ Q LV OLPLWLQJ UHVRXUFHV LH WKH QXPEHU RI OLQHV IURP WKH ORFDO H[FKDQJH 4XHVWLRQ :KDW DUH WKH SRVVLEOH YDOXHV RI $ DQG Q 7KH FDUULHG WUDIILF LV VLPSO\ WKH RIIHUHG WUDIILF PLQXV WKH UHMHFWHG WUDIILF 7KLV LV JLYHQ E\ < = $ { ( Q $ } 
(TXDWLRQ  &DUULHG WUDIILF

7KH XWLOLVDWLRQ RI WKH WUDQVPLVVLRQ OLQHV LV JLYHQ E\ WKH FDUULHG WUDIILF GLYLGHG E\ WKH QXPEHU RI WUDQVPLVVLRQ OLQHV
 < $ { ( Q $ } = Q Q

X=

(TXDWLRQ  8WLOLVDWLRQ RI WUDQVPLVVLRQ OLQHV

4XHVWLRQ :KDW DUH WKH XSSHU DQG ORZHU OLPLWV RI WKH XWLOL]DWLRQ X

Start
/RDG WKH SURMHFW (UODQJ DQG VDYH WKH SURMHFW ZLWK \RXU RZQ LQLWLDOV 1RWH WKDW WKH SDUDPHWHU Q LQ WKH SUHYLRXV IRUPXODV LV UHIHUUHG WR DV FDSDFLW\ LQ WKH 231(7 PRGHO 7DVN $VVXPH WKDW Q  )RU GLIIHUHQW YDOXHV RI $ LQ WKH UDQJH RI  WR  GHWHUPLQH WKH EORFNLQJ SUREDELOLW\ E\ VLPXODWLRQ DQG E\ XVLQJ (UODQJV IRUPXOD 3ORW WKH UHVXOWV LQ WKH VDPH JUDSK 4XHVWLRQ %HIRUH \RX PDNH DQ\ VLPXODWLRQV ZKDW HIIHFW ZRXOG \RX H[SHFW RQ WKH EORFNLQJ SUREDELOLW\ LI WKH QXPEHU RI OLQHV Q LV LQFUHDVHG" 7DVN )RU D IHZ VHOHFW YDOXHV RI $ GHWHUPLQH WKH HIIHFW RI LQFUHDVLQJ Q E\ VLPXODWLRQ

7DVN $VVXPH WKDW ZH ZDQW D EORFNLQJ SUREDELOLW\ RI (  1RWH WKDW LQ UHDO V\VWHPV WKH EORFNLQJ SUREDELOLW\ VKRXOG EH PXFK VPDOOHU )RU Q   DQG  OLQHV GHWHUPLQH WKH RIIHUHG WUDIILF $ WKDW VDWLVILHV WKLV UHTXLUHPHQW ,W LV VXIILFLHQW WR OLVW WKH RIIHUHG WUDIILF ZLWK DQ DFFXUDF\ RI  HUODQJ )LOO RXW WKH ILHOGV RI WKH IROORZLQJ WDEOH Q 2IIHUHG WUDIILF $ ZKHUH (Q $   Q  Q 

8WLOL]DWLRQ 8 $

$

$ 

%ORFNLQJ SUREDELOLW\ (Q $

8WLOL]DWLRQ 8 $ 5HODWLYH LQFUHDVH LQ EORFNLQJ ( $ ( Q $ SUREDELOLW\ Q  ( Q $ 4XHVWLRQ :K\ LV WKH UHODWLYH LQFUHDVH LQ EORFNLQJ SUREDELOLW\ SURSRUWLRQDO ZLWK WKH QXPEHU RI OLQHV HYHQ WKRXJK WKH UHODWLYH LQFUHDVH LQ WKH RIIHUHG WUDIILF LV WKH VDPH  LQ DOO WKUHH FDVHV" 7DVN 3HUIRUP D VLPXODWLRQ ZLWK Q  DQG $ IURP  WR  LQ VWHSV RI  &UHDWH D JUDSK RI WKH EORFNLQJ SUREDELOLW\ DV D IXQFWLRQ RI WKH RIIHUHG WUDIILF ,V WKH JUDSK DV H[SHFWHG" :K\:K\ QRW

Local Area Networks


7KH ILQDO W\SHV RI QHWZRUNV WKDW ZLOO EH WKH SRLQW RI VLPXODWLRQV DUH GLIIHUHQW W\SHV RI /RFDO $UHD 1HWZRUNV /$1V  /RDG WKH SURMHFW IntroLans DQG VDYH LW ZLWK \RXU LQLWLDOV 7KLV SURMHFW FRQWDLQV  VFHQDULRV  GLIIHUHQW W\SHV RI (WKHUQHW /$1V D :LUHOHVV ,((( E /$1 DQG D 7RNHQ 5LQJ /$1

7KH 231(7 PRGHO RI WKH VWDWLRQV LQ WKHVH VFHQDULRV FDQ EH LOOXVWUDWHG DV LQ ILJXUH  7KH PRGHOV RI WKH VWDWLRQV LQ DOO WKUHH VFHQDULRV LQFOXGH D YHU\ VLPSOH WUDIILF JHQHUDWRU ZKLFK JHQHUDWHV IUDPHV ZKHUH WKH OHQJWK RI IUDPHV DQG WKH DYHUDJH ELWUDWH LV GHILQDEOH E\ VRPH PRGHO DWWULEXWHV 7KH DWWULEXWHV DUH FDOOHG Packet size DQG Bitrate 1RWH WKDW WKH ELWUDWH LV WKH DYHUDJH DPRXQW RI LQIRUPDWLRQ SHU VHFRQG WKDW HDFK VWDWLRQ DWWHPSWV WR WUDQVPLW ZLWK QRW WKH ELWUDWH RI WKH PHGLXP 7KH SDFNHW VL]H PXVW QRW EH JUHDWHU WKDQ  E\WHV IRU WKH (WKHUQHW /$1V
Source MAC layer Sink

Physical layer 4XHVWLRQ :KDW LV WKH UHODWLRQ EHWZHHQ WKH SDFNHW VL]H WKH DYHUDJH )LJXUH  /$1 6WDWLRQ PRGHO ELWUDWH DQG WKH DYHUDJH QXPEHU RI SDFNHWV JHQHUDWHG SHU VHFRQG"

7KH VWDWLVWLFV WKDW ZLOO EH IRFXVHG RQ DUH WKH HQGWRHQG GHOD\ DQG WKURXJKSXW LQ ELWVV RYHU DOO SDLUV RI VWDWLRQV 7KH HQGWRHQG GHOD\ IRU D VLQJOH SDFNHW LV FDOFXODWHG E\ WKH WUDIILF VLQN ZKHQ LW UHFHLYHV D SDFNHW 7KH SDFNHWV FUHDWLRQ WLPH LV VXEWUDFWHG IURP WKH FXUUHQW VLPXODWLRQ WLPH LH WKH WLPH WKH WUDIILF VLQN SURFHVV UHFHLYHG WKH SDFNHW  7KH WKURXJKSXW LV DOVR UHJLVWHUHG E\ WKH 6LQN SURFHVV VLQFH LW NQRZV ZKHQ DQG KRZ PDQ\ ELWV DUH UHFHLYHG 2QH RI WKH SRLQWV RI WKH VLPXODWLRQV RQ /$1V LV WR REVHUYH WKH EHKDYLRXU RI WKH /$1V IRU YDU\LQJ DPRXQW RI WUDIILF 7DVN )RU WKH KXEEDVHG (WKHUQHW GHWHUPLQH WKH HQGWRHQG GHOD\ DV D IXQFWLRQ RI WKH SDFNHW VL]H ZKHQ WKH WUDIILF ORDG LV VPDOO HJ %LWUDWH  NELWV  6WDUW E\ FUHDWLQJ D JUDSK RI WKH HQGWRHQG GHOD\ IRU SDFNHW VL]HV LQ WKH UDQJH   E\WHV ,V WKH JUDSK DV H[SHFWHG" 1RZ FUHDWH D JUDSK IRU WKH HQGWRHQG GHOD\ IRU VPDOO SDFNHW VL]HV EHWZHHQ  DQG  E\WHV  &RPPHQW RQ WKLV JUDSK 7KH WZR GLIIHUHQW (WKHUQHW /$1V GLIIHU RQO\ ZLWK UHVSHFW WR WKH W\SH RI FHQWUDO GHYLFH ,Q WKH ILUVW FDVH LW LV D VLPSOH KXE ZKLOH LQ WKH VHFRQG FDVH WKH FHQWUDO GHYLFHV LV D VWRUHDQGIRUZDUG VZLWFK $ VWRUH DQGIRUZDUG VZLWFK ZRUNV IURP WKH SULQFLSOH WKDW LW PXVW UHFHLYH D FRPSOHWH IUDPH FKHFN LW IRU HUURUV DQG LI QR HUURUV DUH GHWHFWHG WKH VZLWFK ZLOO IRUZDUG WKH IUDPH RQWR WKH FRUUHFW GHVWLQDWLRQ SRUW 7DVN )RU WKH KXEEDVHG DQG VZLWFKEDVHG (WKHUQHWV JHQHUDWH JUDSKV 3UREDELOLW\ GLVWULEXWLRQ RI WKH HQGWRHQG GHOD\ LQ WKH FDVH RI OLJKWO\ ORDGHG QHWZRUNV ZLWK ODUJH SDFNHWV 6WDWLRQV DYHUDJH UDWH  NELWV  &DQ \RX H[SODLQ WKH GLIIHUHQFH EHWZHHQ WKH WZR QHWZRUNV" 7DVN &UHDWH D JUDSK 3UREDELOLW\ GLVWULEXWLRQ RI WKH HQGWRHQG GHOD\ IRU WKH :LUHOHVV QHWZRUN DQG WKH 7RNHQ5LQJ QHWZRUN ZLWK SDFNHW VL]H RI  E\WHV DQG DYHUDWH UDWH RI  NELWV &RPSDUH WKH JUDSK ZLWK WKH (WKHUQHW KXE DQG VZLWFK FDVHV IRXQG SUHYLRXVO\ DQG FRPPHQW ,W VKRXOG EH SRVVLEOH WR GLVSOD\ WKH SUREDELOLW\ GLVWULEXWLRQV IRU DOO  QHWZRUNV LQ WKH VDPH JUDSK 7KH QH[W SRLQW LV WR VHH WKH EHKDYLRXU RI WKH WZR QHWZRUNV ZKHQ WKH ORDG LQFUHDVHV

7DVN )RU WKH +XE EDVHG QHWZRUN GHWHUPLQH WKH HIIHFW RQ WKH HQGWRHQG GHOD\ DQG WKURXJKSXW IRU YDOXHV RI WKH VWDWLRQV WUDQVPLVVLRQ UDWH LQ WKH UDQJH  NELWV WR  NELWV &DQ \RX GHVFULEH WKH HIIHFW" 1RZ SHUIRUP WKH VDPH VLPXODWLRQ IRU WKH VZLWFKEDVHG (WKHUQHW DQG FRPSDUH WKH UHVXOWV ZLWK WKH KXEEDVHG (WKHUQHW One aspect of the MAC algorithm used in wireless LANs is the optional RTS/CTS mechanism. In the next task, the effect of this mechanism is studied. The advantage of this mechanism is most clear in wireless LANs with a low (physical) bit rate. In WLANs with higher bit rates (e.g., 11 Mbit/s) the RTS/CTS mechanism is not useful. In the following task, the focus will therefore be on a low bit rate WLAN. Task: Based on the wireless scenario, make a duplicate scenario. Change the type of stations from 11 Mbit/s Direct Sequence to 1 Mbit/s Frequency hopping. Create duplicate scenarios1 of this, so that you have 4 different scenarios with the following properties: Packet size = 2300 bytes, bitrate = 10 kbit/s, RTS/CTS not used Packet size = 2300 bytes, bitrate = 10 kbit/s, RTS/CTS used Packet size = 2300 bytes, bitrate = 70 kbit/s, RTS/CTS not used Packet size = 2300 bytes, bitrate = 70 kbit/s, RTS/CTS used. Plot the end-to-end delay and throughput in overlaid mode for the two 10 kbit/s scenarios and the two 70 kbit/s scenarios. Comment on the graphs.

Local Area Networks with real traffic


The last group of simulations to be performed in this exercise are intended to illustrate the performance of 4 different types of Ethernet LANs, each with 15 workstations and 1 server, in the case of real types of traffic; file transfers and web browsing. The considered networks are: 10 Mbit/s hub based 10 Mbit/s switch based 10 Mbit/s switch based, but with 100 Mbit/s connection to a server 100 Mbit/s switch based Open the project IntroLans2. No networks have been created yet in this project, but there will be two objects, an ApplicationConfig and a ProfileConfig object. These are standard OPNET objects that are used to define traditional applications and user profiles. In this project, the ApplicationConfig object defines that the network will carry FTP and HTTP traffic, and the ProfileConfig object defines a user profile that uses both of these applications. To quickly construct a network, use the Topology=>Rapid Configuration menu. In the dialog box, create a star network with an ethernet16_hub as the center node, 16 ethernet_wkstn as periphery nodes and 10Base-T as the link model.
,W LV UHFRPPHQGHG WR JLYH WKH GLIIHUHQW VFHQDULRV D XVHIXO QDPH IRU LQVWDQFH :LUHOHVVBB576 IRU WKH VFHQDULR ZLWK  NELWV DQG 576


First, select one of the workstations and change the model attribute to ethernet_server and indicate that it should support all applications (Application: Supported Services = All). Second, change all remaining 15 workstations so that the Application: Supported Profiles indicate the Standard User profile is to be used (You will have to change rows to 1) Third, indicate that OPNET should collect the HTTP.Page Response Time and the FTP.Download Response Time statistics. The first of the network of interest is now created. To create the remaining three networks, first make a duplicate scenario, and change the model of the central device to ethernet16_switch. Now create two duplicate scenarios of this and change the link model to 100BaseT for only the switch server link in the first duplicate and for all the links in the second duplicate. Task: Now, all four networks under interest have been created, and you can start the simulations. Create graphs of the HTTP page response time and the FTP download response time and comment on these.

Appendix A Introduction to OPNET


7KH SXUSRVH RI WKLV DSSHQGL[ LV WR JLYH D EULHI LQWURGXFWLRQ WR WKH VLPXODWLRQ WRRO 231(7 0RGHOHU 

OPNET domains
,Q 231(7 D QHWZRUN LV UHSUHVHQWHG LQ WKUHH GRPDLQV 7KH 1HWZRUN GRPDLQ WKH 1RGH GRPDLQ DQG WKH 3URFHVV GRPDLQ ZKLFK DUH GHVFULEHG LQ WKH IROORZLQJ

The Network Domain


,Q WKH 1HWZRUN 'RPDLQ WKH WDUJHW QHWZRUN LV UHSUHVHQWHG E\ D QXPEHU RI LFRQV 0RVW RI WKH LFRQV UHSUHVHQW VRPH IRUP RI QHWZRUNLQJ HTXLSPHQW HJ D ZRUNVWDWLRQ D URXWHU RU RWKHU )LJXUH  VKRZV D VLPSOH QHWZRUN FRQVLVWLQJ RI D ZHEVHUYHU DQ DFFHVVURXWHU WKH ,QWHUQHW DQG ,63 DQG ILQDOO\ D XVHU 7KHUH DUH WZR RWKHU LFRQV LQ ILJXUH  ZKLFK UHSUHVHQW WKH DSSOLFDWLRQV DQG WKH XVHU SURILOHV WKDW DUH XVHG RQ WKLV QHWZRUN <RX ZLOO QRWH D UHFWDQJOH DURXQG WKH ,63 DQG WKH 8VHU 7KLV LQGLFDWHV WKDW WKH LFRQV DUH QRW D VLPSOH GHYLFH EXW LQVWHDG D VXEQHW LQ 231(7 WHUPV 6XEQHWV DUH XVHG LQ 231(7 WR LPSRVH VRPH IRUP RI KLHUDUFK\ LQ WKH QHWZRUN GRPDLQ 2WKHUZLVH LI D VLPXODWLRQ RQ D QHWZRUN ZLWK PRUH WKDQ PRUH  FRPSXWHUV DQG RWKHU GHYLFHV LV WR EH SHUIRUPHG DQG HDFK GHYLFH ZDV UHSUHVHQWHG E\ DQ LFRQ WKH PDLQ ZLQGRZ ZRXOG FRQWDLQ VR PDQ\ LFRQV WKDW LW ZRXOG EH DOPRVW LPSRVVLEOH WR ZRUN ZLWK 8VLQJ VXEQHWV LW LV SRVVLEOH )LJXUH  1HWZRUN GRPDLQ YLHZ WR UHSUHVHQW HJ WKH FRPSXWHUV LQ D GHSDUWPHQW DV D VXEQHW 'RXEOHFOLFNLQJ RQ D VXEQHW RSHQV RS WKH VXEQHW IRU YLHZLQJHGLWLQJ 5HWXUQLQJ WR D KLJKHU OHYHO LQ WKH KLHUDUFK\ LV GRQH E\ ULJKWFOLFNLQJ RQ WKH EDFNJURXQG DQG VHOHFWLQJ Go To Parent Subnet RU VLPSO\ SUHVVLQJ WKH EXWWRQ

7KH LFRQV LQ WKH PDLQ ZLQGRZ DQG VXEQHW YLHZV DUH WKH EXLOGLQJEORFNV IRU WKH VLPXODWLRQV ,Q PDQ\ FDVHV WKH VLPXODWLRQ FDQ XVH WKH EXLOGLQJ EORFNV SURYLGHG ZLWK 231(7 +RZHYHU D PRUH GHWDLOHG DQDO\VLV ZLOO UHTXLUH WKDW FXVWRP EXLOGLQJ EORFNV ZLOO EH FUHDWHG

The Node Domain


,Q WKH 1RGH 'RPDLQ WKH LQQHU ZRUNLQJ RI WKH EORFNV LQ WKH 1HWZRUN GRPDLQ LV VSHFLILHG 6HH ILJXUH  7KH EORFNV LQ WKH QRGH GRPDLQ UHSUHVHQW WKH EDVLF IXQFWLRQV RI D QRGH LQ WKH QHWZRUN (DFK EORFN FRQWDLQV VRPH RI WKH WRWDO IXQFWLRQDOLW\ 7KH UHDGHU PLJKW QRWH D VLPLODULW\ EHWZHHQ ILJXUH  ZKLFK GHSLFWV D ZRUNVWDWLRQ DQG ILJXUH + LQ WKH WH[WERRN 0DQ\ RI WKHVH QRGHV LQ WKH QRGH YLHZ DUH VWDQGDUG 231(7 EORFNV EXW LW LV DOVR SRVVLEOH WR FUHDWHG QHZ QRGHV 7KH IXQFWLRQ RI VXFK D FXVWRP QRGH LV VSHFLILHG LQ WKH SURFHVV GRPDLQ

The Process Domain


,Q WKH 3URFHVV 'RPDLQ WKH RSHUDWLRQ RI WKH LQGLYLGXDO EORFNV LQ WKH 1RGH GRPDLQ LV VSHFLILHG 231(7 XVHV )LQLWH 6WDWH 0DFKLQHV )60  ZKLFK DUH LOOXVWUDWHG LQ ILJXUH  ,Q ILJXUH  WKH )60 FRQWDLQV  VWDWHV WKH FLUFOHV DQG D QXPEHU RI WUDQVLWLRQV /LQHV EHWZHHQ WKH VWDWHV $ WUDQVLWLRQ LQGLFDWHV WKDW WKH VWDWH PDFKLQH FKDQJHV VWDWH DQG WKLV PD\ EH FRQGLWLRQHG RQ VRPH HYHQWV )RU LQVWDQFH LQ ILJXUH  VWDWH PDFKLQH FKDQJHV IURP WKH LGOH VWDWH WR WKH $55,9( VWDWH ZKHQ WKH FRQGLWLRQ '*5$0B$55,9$/ FRPHV LV WUXH ,Q HDFK VWDWH RSHUDWLRQV FDQ EH SHUIRUPHG 7KHVH RSHUDWLRQV GHVFULEH WKH EHKDYLRXU RI WKH EORFN ZKHQ D VWDWH LV HQWHUHG RU H[LWHG 7KH RSHUDWLRQV DUH VSHFLILHG LQ 3URWR& ZKLFK LV D & OLNH ODQJXDJH XVHG LQ 231(7 $Q H[DPSOH RI 3URWR& FRGH LV VKRZQ LQ ILJXUH 
)LJXUH  1RGH YLHZ

)LJXUH  )LQLWH 6WDWH 0DFKLQH

)LJXUH  3URFHVV FRGH

Starting OPNET
6WDUW 231(7 START => Programs => Opnet Modeler 9.0 => OPNET Modeler <RX VKRXOG QRZ VHH WKH PDLQ ZLQGRZ RI 231(7 )URP WKH PDLQ ZLQGRZ RI 231(7 \RX FDQ RSHQ H[LVWLQJ SURMHFWV RU FUHDWH QHZ SURMHFWV

Attributes
7KH DWWULEXWHV RI DQ REMHFW GHVFULEH DQ DVSHFW RI D FHUWDLQ REMHFW )RU LQVWDQFH D FKDUDFWHULVWLF RI D OLQN ZLOO EH WKH ELW UDWH XVHG RQ WKH OLQN ,Q 231(7 D OLQNPRGHO ZLOO WKHUHIRUH KDYH DQ DWWULEXWH WKDW GHVFULEHV WKH ELW UDWH 7R YLHZ RU PRGLI\ WKH DWWULEXWHV RI REMHFW \RX PXVW ULJKW )LJXUH  231(7
V PDLQ ZLQGRZ FOLFN RQ WKH REMHFW DQG VHOHFW Edit Attributes 6RPHWLPHV DQ DWWULEXWH FDQ EH HGLWHG GLUHFWO\ 2WKHUZLVH LW PD\ EH D FRPSRXQG REMHFW DQG HGLWLQJ RSHQV XS D QHZ ZLQGRZ ,W LV VRPHWLPHV UHTXLUHG WR FKDQJH WKH VDPH DWWULEXWH LQ D QXPEHU RI REMHFWV DW WKH VDPH WLPH HJ LI WKH ELW UDWH RQ DOO OLQNV VKRXOG EH FKDQJHG ,QVWHDG RI FKDQJLQJ WKH DWWULEXWH LQ HDFK REMHFW LQGLYLGXDOO\ LW LV SRVVLEOH WR FKDQJH LW LQ DOO REMHFWV LQ RQH RSHUDWLRQ )LUVW VHOHFW RQH RI WKH REMHFWV ULJKWFOLFN DQG FKRRVH Select Similar (Nodes/Links/) 5LJKWFOLFN RQ )LJXUH  RQH RI WKH VHOHFWHG REMHFWV DQG VHOHFW Edit Attributes DQG FKDQJH WKH GHVLUHG DWWULEXWH %HIRUH \RX FOLFN 2. SXW D FKHFNPDUN QH[W WR Apply Changes to Selected Objects, DV VKRZQ LQ ILJXUH  ,I \RX IRUJHW WR SXW WKH FKHFNPDUN LQ WKH ER[ RQO\ WKH HGLWHG REMHFW ZLOO KDYH LWV DWWULEXWH FKDQJHG $OO RWKHU VHOHFWHG REMHFWV ZLOO UHWDLQ WKHLU ROG YDOXHV

Statistics
7KH UHVXOW RI D VLPXODWLRQ LV WKH VWDWLVWLFV JHQHUDWHG ([DPSOHV LQFOXGH WKH WKURXJKSXW RI D OLQN WKH UHVSRQVH WLPH RI D VHUYHU HWF 1RUPDOO\ RQO\ D VXEVHW RI DOO WKH VWDWLVWLFV WKDW FRXOG EH FROOHFWHG DUH RI LQWHUHVW VR LW LV SRVVLEOH WR GHILQH ZKLFK VWDWLVWLFV 231(7 VKRXOG FROOHFW GXULQJ WKH VLPXODWLRQ DQG ZKLFK FRXOG EH LJQRUHG 7R VHOHFW ZKLFK VWDWLVWLFV 231(7 VKRXOG FROOHFW VHOHFW Choose Individual Statistics IURP WKH Simulation PHQX RU ULJKWFOLFN RQ DQ HPSW\ SDUW RI WKH EDFNJURXQG DQG VHOHFW Choose Individual Statistics ,W LV QRZ SRVVLEOH WR VHOHFW DQG GHVHOHFW WKH VWDWLVWLFV RI LQWHUHVW 1RWH WKDW 231(7 GLVWLQJXLVKHV EHWZHHQ GLIIHUHQW W\SHV RI VWDWLVWLFV *OREDO VWDWLVWLFV *OREDO VWDWLVWLFV UHIHU WR WKH QHWZRUN DV D ZKROH DQG FDQ EH VHHQ DV DQ DJJUHJDWH RI VLPLODU VWDWLVWLFV IURP WKH LQGLYLGXDO SDUWV RI WKH QHWZRUN PRGHO 1RGH VWDWLVWLFV 1RGH VWDWLVWLFV DUH FROOHFWHG IURP WKH LQGLYLGXDO QRGHV LQ WKH QHWZRUN PRGHO ,W LV WKHUHIRUH SRVVLEOH WR DQDO\]H WKH VWDWLVWLFV RQ D QRGHE\QRGH EDVLV /LQN VWDWLVWLFV 6LPLODU WR QRGH VWDWLVWLFV EXW QRZ UHIHUULQJ WR OLQNV LQVWHDG RI QRGHV

Running a simple simulation in OPNET


:KHQ D QHWZRUN PRGHO LV FRPSOHWH LW LV QRZ SRVVLEOH WR VLPXODWH RQ LW $ VLPSOH VLPXODWLRQ FDQ EH VWDUWHG E\ VHOHFWLQJ Simulation => Configure Discrete Event Simulation $ GLDORJ ER[ RSHQV ZKLFK SHUPLWV WKH PRGLILFDWLRQ RI VLPXODWLRQ UHODWHG SDUDPHWHUV DQG PRGHO DWWULEXWHV DV VKRZQ LQ ILJXUH  1RWH WKDW WKLV GLDORJ ER[ KDV VHYHUDO WDEV ,Q WKH Common WDE LW LV SRVVLEOH WR FKDQJH WKH VLPXODWLRQ GXUDWLRQ LH WKH DPRXQW RI WLPH WKDW LV VLPXODWHG 1RWH WKDW WKH DFWXDO WLPH XVHG IRU WKH VLPXODWLRQ FDQ EH YHU\ GLIIHUHQW 7KH DFFXUDF\ RI WKH VLPXODWLRQ GHSHQGV RQ WKH GXUDWLRQ VR VRPHWLPHV LW LV QHFHVVDU\ WR H[SHULPHQW ZLWK WKH GXUDWLRQ ,I WKH VLPXODWLRQ HQGV ZLWKLQ D IHZ VHFRQGV WKH UHVXOWV DUH SUREDEO\ QRW YHU\ DFFXUDWH DQG WKH VLPXODWLRQ VKRXOG FRXOG EH UHSHDWHG ZLWK D KLJKHU GXUDWLRQ 2Q WKH RWKHU KDQG LI WKH VLPXODWLRQ LV HVWLPDWHG WR ODVW PRUH WKDQ D FRXSOH RI PLQXWHV WKH VLPXODWLRQ FDQ EH VWRSSHG DQG UHVWDUWHG ZLWK D ORZHU GXUDWLRQ

)LJXUH  6LPXODWLRQ &RQILJXUDWLRQ GLDORJ ER[

,Q WKH Global Attributes DQG Object Attributes WDEV LW LV SRVVLEOH WR VHW YDOXHV IRU YDULRXV VLPXODWLRQ DQG PRGHO DWWULEXWHV &OLFNLQJ 5XQ VWDUWV WKH VLPXODWLRQ <RX ZLOO QRZ VHH D QHZ ZLQGRZ ZKHUH \RX FDQ IROORZ WKH SURJUHVV RI WKH VLPXODWLRQ :KHQ WKH VLPXODWLRQ LV ILQLVKHG WKH FRPSXWHU EHHSV DQG \RX FDQ FOLFN Close WR FORVH WKH ZLQGRZ 7KH WLPH XVHG IRU D VLPXODWLRQ GHSHQGV RQ WKH FRPSOH[LW\ RI WKH QHWZRUN PRGHO WKH DPRXQW RI WUDIILF WKDW LV DQDO\VHG DQG RI FDXVH WKH VSHHG RI WKH FRPSXWHU

Viewing results
:KHQ D VLPXODWLRQ KDV EHHQ SHUIRUPHG LW LV QRZ SRVVLEOH WR ORRN DW WKH FROOHFWHG VWDWLVWLFV 6HOHFW WKH  View Results IURP WKH Results PHQX RU FOLFN RQ WKH EXWWRQ WR WKH ULJKW RI WKH UXQQLQJ PDQ LFRQ ,Q JHQHUDO WKHUH DUH PDQ\ ZD\V WR GLVSOD\ WKH VWDWLVWLFV REWDLQHG IURP WKH VLPXODWLRQV ,W LV DOZD\V DQ LPSRUWDQW WDVN DIWHU VLPXODWLRQV WR GHWHUPLQH ZKLFK W\SHV RI JUDSKV EHVW GHVFULEH WKH UHVXOWV ,Q WKHVH H[HUFLVHV IHHO IUHH WR H[SHULPHQW ZLWK WKH GLIIHUHQW W\SHV RI JUDSKV LQ WKH VLPXODWLRQV

 

$ VKRUWFXW LV WR FOLFN RQ WKH LFRQ RI D UXQQLQJ PDQ 'XULQJ WKH VLPXODWLRQ 231(7 HVWLPDWHV WKH UHPDLQLQJ WLPH  $ VKRUWFXW LV WR FOLFN RQ WKH EXWWRQ RQ WKH ULJKW RI WKH UXQQLQJ PDQ LFRQ

,Q WKH GLDORJ ER[ WKDW DSSHDUV LW LV SRVVLEOH WR VHOHFW ZKLFK VWDWLVWLFV \RX ZRXOG OLNH WR VHH ,W LV SRVVLEOH WR YLHZ PRUH WKDQ RQH VWDWLVWLF LQ WKH VDPH JUDSK LI WKH\ DUH RI D VLPLODU W\SH 231(7 FDQ GLVSOD\ D YDULHW\ RI JUDSKV 7KH PRVW FRPPRQ DUH $V ,V 7KH LQIRUPDWLRQ GLUHFWO\ 3UREDELOLW\ 'HQVLW\ 3') ZKLFK VKRZV WKH SUREDELOLW\ GHQVLW\ IXQFWLRQ RI WKH JDWKHUHG VWDWLVWLFV 7LPHBDYHUDJH ZKLFK VKRZV WKH DYHUDJH YDOXH RYHU WLPH 7ZR W\SHV RI JUDSKV FDQ EH JHQHUDWHG IRU YLHZLQJ PRUH WKDQ RQH VWDWLVWLF DW WKH VDPH WLPH ,Q Statistics Stacked WKH LQGLYLGXDO VWDWLVWLFV DUH VKRZQ LQ WKHLU RZQ VPDOOHU JUDSK ZKLOH Statistics Overlaid GLVSOD\V DOO WKH VWDWLVWLFV LQ WKH VDPH JUDSK 7KH RYHUODLG PRGH LV UHOHYDQW LI WKH VDPH VWDWLVWLF IRU PRUH WKDQ RQH VFHQDULR LV GLVSOD\HG 3ULQWLQJ WKH JUDSKV DUH D VLPSOH DV VHOHFWLQJ Print Graphs IURP WKH File PHQX $OO FXUUHQWO\ RSHQ JUDSKV DUH WKHQ SULQWHG

Scenario management in OPNET


$ VLPXODWLRQ WRRO DV 231(7 LV RIWHQ XVHG WR VHOHFW EHWZHHQ GLIIHUHQW EXW FORVHO\ UHODWHG DOWHUQDWLYHV 7KLV LV HDVLO\ KDQGOHG LQ 231(7 WKURXJK WKH XVH RI VFHQDULRV :KHQ WKH LQLWLDO PRGHO KDV EHHQ GHYHORSHG LW LV YHU\ VLPSOH WR FRS\ WKDW DQG ODWHU PDNH VPDOO PRGLILFDWLRQV WR DQRWKHU VFHQDULR 7KLV LV DFFRPSOLVKHG E\ Scenarios => Duplicate Scenarios 231(7 ZLOO VXJJHVW D VXLWDEOH QDPH IRU WKH QHZ VFHQDULR <RX FDQ VZLWFK EHWZHHQ WKH GLIIHUHQFH VFHQDULRV IURP WKH PHQX Scenarios => Switch to scenario DQG VHOHFW WKH UHOHYDQW VFHQDULR RU VLPSO\ XVH WKH VKRUWFXW NH\V CTRL+n ZKHUH Q LV D QXPEHU ,W LV DOVR SRVVLEOH WR SHUIRUP VLPXODWLRQV RQ D QXPEHU RI VFHQDULRV IRU LQVWDQFH WR LQYHVWLJDWH WKH GLIIHUHQFHV EHWZHHQ WKH VFHQDULRV %\ VHOHFWLQJ Scenarios => Manage Scenarios \RX ZLOO JHW D GLDORJ ER[ OLNH ILJXUH  8QGHU WKH Results FROXPQ \RX FDQ VHH WKDW 231(7 KDV QRW VWRUHG UHVXOWV IURP VLPXODWLRQ ,W LV WKHQ D VLPSOH WDVN WR FKDQJH WKH YDOXH WR <collect> RU <recollect> IRU WKH UHOHYDQW VFHQDULRV :KHQ 2. LV FOLFNHG 231(7 ZLOO SHUIRUP WKH VLPXODWLRQV IRU DOO WKH UHOHYDQW VFHQDULRV :KHQ D VLPXODWLRQ RI VHYHUDO VFHQDULRV KDV EHHQ SHUIRUPHG LW LV SRVVLEOH WR YLHZ VWDWLVWLFV IURP DOO UHOHYDQW VFHQDULRV DW WKH VDPH
)LJXUH  0DQDJLQJ VFHQDULRV

WLPH ,Q WKH View Result GLDORJ ER[ VHOHFW All Scenarios RU Select Scenarios ,Q WKH ODWWHU DQRWKHU GLDORJ ER[ RSHQV ZKHUH LW LV SRVVLEOH WR VHOHFW IRU ZKLFK VFHQDULRV WKH VWDWLVWLFV DUH GLVSOD\HG

Simulation sequences in OPNET


231(7 DOORZV \RX WR SHUIRUP D VHTXHQFH RI VLPXODWLRQV LH VLPXODWLRQV ZKHUH RQH RU PRUH RI WKH DWWULEXWHV DUH YDULHG ,Q WKLV ZD\ LW LV QRW QHFHVVDU\ WR SHUIRUP D ORW RI VLPXODWLRQV RQ LQGLYLGXDO QHWZRUNV WKDW RQO\ GLIIHU LQ D VPDOO ZD\

Performing the simulations


)URP WKH SURMHFW ZLQGRZ VHOHFW Simulation->Configure Simulation (Advanced) 5LJKWFOLFN RQ WKH VFHQDULR LFRQ DQG VHOHFW Edit Attributes <RX VKRXOG QRZ VHH D ZLQGRZ VLPLODU WR ILJXUH  1RWLFH WKDW WKLV GLDORJ ER[ LV VLPLODU WR WKH RQH PHQWLRQHG SUHYLRXVO\ 7KH ILUVW WDVN LV WR DGG WKH DWWULEXWHV WKDW ZH ZLVK WR YDU\ GXULQJ WKH VLPXODWLRQV 6HOHFW WKH Object Attributes WDE DQG FKHFN LI DOO UHOHYDQW PRGHO DWWULEXWHV DUH LQFOXGHG $Q\ PLVVLQJ DWWULEXWHV FDQ EH DGGHG E\ FOLFNLQJ RQ WKH Add EXWWRQ DQG VHOHFW WKH DWWULEXWHV E\ FOLFNLQJ LQ WKH Add? FROXPQ 7KH DWWULEXWHV FDQ QRZ EH JLYHQ YDOXHV 6HOHFW DQ DWWULEXWH DQG FOLFN Values. ,W LV SRVVLEOH WR JLYH DQ DWWULEXWH HLWKHU RQH YDOXH WKDW ZLOO EH XVHG IRU DOO VLPXODWLRQV RU D VHW )LJXUH  &RQILJXULQJ D VLPXODWLRQ VHTXHQFH RI YDOXHV )LJXUH  VKRZV DQ DWWULEXWH OLVWHG LQ WKH WLWOH RI WKH ZLQGRZ ZLWK D VHW RI YDOXHV       $Q\ QXPEHU RI VHW RI YDOXHV FDQ EH DVVLJQHG WR DQ DWWULEXWH LQ WKLV ZD\ 1RWH WKDW WKH QXPEHU RI VLPXODWLRQV GHSHQGV RQ WKH QXPEHU RI GLIIHUHQW FRPELQDWLRQ RI DWWULEXWHV YDOXHV ,I RQH DWWULEXWH LV DVVLJQHG D VHW RI  YDOXHV DQG DQRWKHU DWWULEXWH LV DVVLJQHG  YDOXHV WKHQ  VLPXODWLRQV PXVW EH SHUIRUPHG ,W LV WKHUHIRUH LPSRUWDQW QRW WR DVVLJQ WRR PDQ\ YDOXHV WR WRR PDQ\ DWWULEXWHV <RX PXVW DOVR WHOO 231(7 ZKHUH WR VWRUH WKH UHVXOWV RI WKH VLPXODWLRQ 7KLV LV DOVR NQRZQ DV D VFDODU ILOH 6HOHFW WKH Advanced WDE DQG JLYH D VXLWDEOH QDPH IRU WKH VFDODU ILOH 1RWH WKDW WKH VFDODU ILOH LV QRW GHOHWHG )LJXUH  $VVLJQLQJ YDOXHV WR DXWRPDWLFDOO\ EHIRUH HDFK VLPXODWLRQ VR LI WKH VFDODU ILOH LV QRW DWWULEXWHV PDQXDOO\ GHOHWH EHIRUH D VLPXODWLRQ WKH UHVXOWV RI WKH VLPXODWLRQ LV DGGHG WR WKH SUHYLRXV FRQWHQWV RI WKH VFDODU ILOH $ VFDODU ILOH LV GHOHWHG ZLWK File->Model Files>Delete Model Files 6HOHFW Output Scalars DQG VHOHFW WKH UHOHYDQW VFDODU ILOH WR GHOHWH LW

:KHQ DOO UHOHYDQW LQIRUPDWLRQ KDV EHHQ HQWHUHGFKHFNHG \RX FDQ VWDUW WKH VLPXODWLRQ VHTXHQFH E\ FOLFNLQJ 5XQ RU E\ FORVLQJ WKH GLDORJ ER[ DQG FOLFN RQ WKH UXQQLQJ PDQ LFRQ 231(7 ZLOO QRZ SHUIRUP D VHULHV RI VLPXODWLRQV GHSHQGLQJ RQ WKH QXPEHU GLIIHUHQW VHW RI YDOXHV IRU WKH DWWULEXWHV

Viewing the results


:KHQ WKH VLPXODWLRQV KDYH EHHQ SHUIRUPHG \RX FDQ YLHZ WKH UHVXOWV E\ VHOHFWLQJ Results->View Results (Advanced) IURP WKH SURMHFW ZLQGRZ )LUVW VWHS LV WR ORDG WKH RXWSXW VFDODU ILOH File->Load Output Scalar File... DQG VHOHFW \RXU ILOH <RX FDQ QRZ YLHZ WZR W\SHV RI JUDSKV FI WKH IROORZLQJ ILJXUH :LWK WKH PLGGOH EXWWRQ \RX FDQ FUHDWH D JUDSK ZLWK RQH FXUYH DQG ZLWK WKH ULJKW EXWWRQ \RX FDQ FUHDWH VHULHV RI FXUYHV LQ WKH VDPH JUDSK 7KH ILUVW W\SH RI JUDSKV FDQ EH XVHG LI \RX ZLVK WR GLVSOD\ RQH GHSHQGHQW YDULDEOH DV D IXQFWLRQ RI RQH LQGHSHQGHQW YDULDEOH 7KH VHFRQG W\SH RI JUDSKV LV XVHG WR GLVSOD\ D GHSHQGHQW YDULDEOH DV D IXQFWLRQ RI WZR LQGHSHQGHQW YDULDEOHV )LJXUH  $QDO\VLV
FRQILJXUDWLRQ ZLQGRZ

Printing the graphs from a simulation sequence


8QIRUWXQDWHO\ 231(7 GRHV QRW DOORZ \RX WR SULQW WKH JUDSKV GLUHFWO\ IURP WKH $QDO\VLV &RQILJXUDWLRQ ZLQGRZ ,QVWHDG \RX PXVW FORVH WKLV ZLQGRZ '2 127 &/26( 7+( *5$3+6  )URP WKH SURMHFW ZLQGRZ \RX FDQ QRZ VHOHFW Results->View results DQG XQGHU WKH Displayed Statistics EUDQFK \RX FDQ VHOHFW WKH JUDSKV \RX ZLVK WR VHH DQG WKHQ SULQW 

Appendix B Performance evaluation


:KHQ ZDQWLQJ WR HYDOXDWH WKH SHUIRUPDQFH RI D JLYHQ V\VWHP WKLV FRXOG EH DQ\ V\VWHP WKHUH DUH FRQFHSWXDOO\ WKUHH PHWKRGV DQDO\WLFDO PRGHOV PHDVXUHPHQWV DQG VLPXODWLRQ $QDO\WLFDO PRGHOV DUH H[DFW PDWKHPDWLFDO UHSUHVHQWDWLRQV RI WKH V\VWHPV 'HSHQGLQJ RQ WKH W\SH RI WKH V\VWHP GLIIHUHQW DUHDV RI PDWKHPDWLFV FRPH LQWR SOD\ :KHQ VSHDNLQJ PRGHOV RI FRPPXQLFDWLRQ QHWZRUN LW LV WKH DUHDV RI JUDSK WKHRU\ DQG TXHXLQJ WKHRU\ +RZHYHU WKRVH PRGHOV RIWHQ JHW WRR FRPSOLFDWHG DQG LW PLJKW EH WKDW HYHQ LI WKH\ KDYH D VROXWLRQ WKHQ LW LV IDU WRR FXPEHUVRPH WR ILQG LW 0HDVXUHPHQWV DUH JHQHUDOO\ JRRG EHFDXVH WKH\ JLYH UHVXOWV WKDW UHIOHFW WKH UHDO ZRUOG 7KH SUREOHP KHUH LV ILUVW RI DOO WR JHW DFFHVV WR WKH HTXLSPHQW ,I LW LV D QHZO\ GHYHORSHG V\VWHP RU D FRPSOHWHO\ QHZ FRQFHSW RU WHFKQRORJ\ LW PLJKW EH GLIILFXOW WR ILQG DQ\ HTXLSPHQW RU LW PLJKW QRW H[LVW )XUWKHUPRUH H[SHULPHQWDO VHWXSV PLJKW VLPSO\ QRW EH SRVVLEOH IRU YHU\ ODUJH QHWZRUNV IRU HFRQRPLFDO UHDVRQV  6LPXODWLRQ LV SHUIRUPHG E\ EXLOGLQJ D PRGHO ,Q WKLV PRGHO FKDQJHV LQ WKH VWDWH RI D V\VWHP DUH REVHUYHG DV D IXQFWLRQ RI WLPH %RWK FRQWLQXRXV DQG GLVFUHWH PRGHOV DUH SRVVLEOH ,I WKHUH DUH DQ XQFRXQWDEOH LQILQLWH QXPEHU RI VWDWHV LQ WKH V\VWHP LW LV VDLG WR EH FRQWLQXRXV VWDWH ,I RQO\ D GLVFUHWH QXPEHU RI VWDWHV DUH SRVVLEOH LW LV D GLVFUHWH VWDWH PRGHO 'LVFUHWH VWDWH PRGHOV DUH DOVR FDOOHG GLVFUHWH HYHQW PRGHOV $Q HYHQW LQ WKLV FRQWH[W LV GHILQHG DV D FKDQJH LQ WKH VWDWH RI WKH V\VWHP /LNHZLVH LQ WKH ZD\ WLPH LV SHUFHLYHG WKHUH DUH WZR GLVWLQFW SRVVLELOLWLHV FRQWLQXRXV DQG GLVFUHWH

Event driven simulation


$ VLPXODWLRQ XVLQJ D GLVFUHWH VWDWH PRGHO LV FDOOHG D GLVFUHWH HYHQW VLPXODWLRQ 'LVFUHWH HYHQW VLPXODWLRQ FRPHV LQ WZR IODYRXUV XQLW WLPH DQG HYHQW GULYHQ ,Q XQLW GULYHQ VLPXODWLRQ WLPH DGYDQFHV RQH XQLW DW D WLPH KHQFH WKH QDPH DQG LI DQ HYHQW LV VFKHGXOHG DW WKDW WLPH SURSHU DFWLRQ LV WDNHQ RWKHUZLVH QRWKLQJ LV GRQH 2IWHQ KRZHYHU WKHUH LV QR QHHG WR OHW WLPH DGYDQFH LQ VWHSV RI RQH XQLW DW D WLPH :K\ QRW MXVW VNLS DOO WKH SHULRGV ZKHUH WKHUH LV QR DFWLRQ WR EH WDNHQ DQ\ZD\" 7KLV LV WKH LGHD RI HYHQW GULYHQ VLPXODWLRQ $FWLRQV DUH WULJJHUHG E\ HYHQWV WKDW KDSSHQ DW D FHUWDLQ WLPH 7KH V\VWHP WLPH LV DGYDQFHG WR WKH SRLQW RI WLPH ZKHUH WKH QH[W HYHQW LV VFKHGXOHG ,W WXUQV RXW WKDW HYHQW GULYHQ VLPXODWLRQ LV SDUWLFXODUO\ XVHIXO IRU VLPXODWLRQ RI SDFNHW EDVHG FRPPXQLFDWLRQ V\VWHPV +HUH RQH LV XVXDOO\ LQWHUHVWHG LQ NQRZLQJ ZKDW KDSSHQV ZKHQ D SDFNHW DUULYHV DW D TXHXLQJ SRLQW HJ VZLWFK RU URXWHU  ZKHQ GRHV LW OHDYH WKH TXHXH DQG ZKDW KDSSHQV WKHQ" ,H D W\SLFDO HYHQW FRXOG EH WKDW D SDFNHW S DUULYHV DW TXHXH T DW WLPH W 7KHUH DUH GUDZEDFNV WRR 7KLV W\SH RI VLPXODWLRQ LV QRW ZHOO VXLWHG IRU VLPXODWLRQ RI KRZ WKH ELWV SURSDJDWH RQ WKH DFWXDO SK\VLFDO PHGLXP IRU LQVWDQFH

Selection of simulation language


:KHQ ZDQWLQJ WR GR VLPXODWLRQV WKHUH DUH D QXPEHU RI RSWLRQV LQ WKH FKRLFH RI VLPXODWLRQ ODQJXDJH WR XVH %DVLFDOO\ RQH KDV WR VHOHFW DPRQJ WKUHH LQKHUHQWO\ GLIIHUHQW JHQHUDO DSSURDFKHV XVLQJ DQG PRGLI\LQJ DQ H[LVWLQJ QHWZRUN VLPXODWRU XVLQJ D VSHFLDO VLPXODWLRQ ODQJXDJH IRU ZULWLQJ D VLPXODWRU RU

XVLQJ D JHQHUDO SXUSRVH SURJUDPPLQJ ODQJXDJH HJ & DQG FRGLQJ HYHU\WKLQJ IURP VFUDWFK 7KHUH DUH SURV DQG FRQV DVVRFLDWHG ZLWK DOO FKRLFHV 8VLQJ DQ H[LVWLQJ QHWZRUN VLPXODWRU FOHDUO\ KDV WKH DGYDQWDJH WKDW RQH FDQ VDYH FRQVLGHUDEO\ WLPH EHFDXVH GHYHORSPHQW DQG GHEXJJLQJ KDYH EHHQ WDNHQ FDUH RI 2SSRVHG WR XVLQJ DQ H[LVWLQJ VLPXODWRU LV ZULWLQJ D QHZ RQH HLWKHU XVLQJ D VLPXODWLRQ ODQJXDJH HJ 6,08/$ RU D JHQHUDOSXUSRVH ODQJXDJH HJ &  7KH VLPXODWLRQ ODQJXDJHV KDYH EXLOGLQ VXSSRUW IRU HYHQW KDQGOLQJ FROOHFWLRQ RI VWDWLVWLFV DQG UHSRUW JHQHUDWLRQ 7KHVH DGYDQWDJHV FRPH DW WKH H[SHQVH RI ODFN RI IOH[LELOLW\ DQG VSHHG RIIHUHG E\ D JHQHUDOSXUSRVH ODQJXDJH )XUWKHU PRUH RQH KDV WR OHDUQ KRZ WR XVH WKH VLPXODWLRQ ODQJXDJH RSSRVHG WR D ZHOONQRZQ JHQHUDO SXUSRVH ODQJXDJH 231(7  LV DQ HYHQW GULYHQ VLPXODWRU :KHQ D VLPXODWLRQ UXQV WKH VHTXHQFH RI H[HFXWLRQ LV DV IROORZV 7KH HYHQW VFKHGXOHU GHWHUPLQHV WKH QH[W HYHQW WR WDNH SODFH LH LW ILQGV WKH SHQGLQJ HYHQW ZLWK WKH ORZHVW WLPHVWDPS LQ LW &RQWURO LV SDVVHG WR WKH FRUUHVSRQGLQJ KDQGOHU 7KH KDQGOHU WDNHV DSSURSULDWH DFWLRQ DQG UHWXUQV D OLVW RI QHZ HYHQWV ,I QR QHZ HYHQWV DUH JHQHUDWHG WKH UHWXUQHG OLVW LV HPSW\ 7KLV LV LOOXVWUDWHG RQ WKH IORZFKDUW LQ ILJXUH 
NO Pass control to corresponding event handler Start

Initialize all model elements

Pick next event from priority queue

Statistics

Advance time

End of simulation YES Stop

)LJXUH  (YHQW KDQGOLQJ LQ DQ HYHQW GULYHQ VLPXODWRU