Upload
ren-tristan-dela-cruz
View
220
Download
0
Embed Size (px)
Citation preview
7/21/2019 CS255 DelaCruz Presentation
http://slidepdf.com/reader/full/cs255-delacruz-presentation 1/45
Network Simulation Tools
Exploration of Network Simulation Tools
Ren Tristan A. de la Cruz
7/21/2019 CS255 DelaCruz Presentation
http://slidepdf.com/reader/full/cs255-delacruz-presentation 2/45
Network Simulation Tools
● Graphic Network Simulators (GNS3)
● Interated !ultiprotocol Network Emulator"Simulator#IMUNES$
● Network Simulator % #NS-3$
● &isclaimer' This is presentation is in no wa( acomplete uide for usin the network simulation tools.It shows an initial o)er)iew of what the user can see#the interface$ and can do with the tools.
7/21/2019 CS255 DelaCruz Presentation
http://slidepdf.com/reader/full/cs255-delacruz-presentation 3/45
Graphic Network Simulator % #GNS3$
● GNS3 is a software emulator for networks.● It can emulate Cisco S(stems routers and networkswitches usin Cisco Internetwork *peratin S(stem#Cisco IOS$ imaes.
● It use Dynamips emulation software to emulate CiscoI*S.
● *fficial site' http'""www.ns%.com"
7/21/2019 CS255 DelaCruz Presentation
http://slidepdf.com/reader/full/cs255-delacruz-presentation 4/45
GNS% + Start Screen " New ,ro-ect
7/21/2019 CS255 DelaCruz Presentation
http://slidepdf.com/reader/full/cs255-delacruz-presentation 5/45
GNS% + All &e)ices
7/21/2019 CS255 DelaCruz Presentation
http://slidepdf.com/reader/full/cs255-delacruz-presentation 6/45
GNS% + Addin Cisco IS*
7/21/2019 CS255 DelaCruz Presentation
http://slidepdf.com/reader/full/cs255-delacruz-presentation 7/45
GNS% + IS*s for Cisco Routers
7/21/2019 CS255 DelaCruz Presentation
http://slidepdf.com/reader/full/cs255-delacruz-presentation 8/45
GNS% + routers can now /e used.
7/21/2019 CS255 DelaCruz Presentation
http://slidepdf.com/reader/full/cs255-delacruz-presentation 9/45
GNS% + &ra de)ices to main space
7/21/2019 CS255 DelaCruz Presentation
http://slidepdf.com/reader/full/cs255-delacruz-presentation 10/45
GNS% + Connect the de)ices.
7/21/2019 CS255 DelaCruz Presentation
http://slidepdf.com/reader/full/cs255-delacruz-presentation 11/45
GNS% + Run simulation.
7/21/2019 CS255 DelaCruz Presentation
http://slidepdf.com/reader/full/cs255-delacruz-presentation 12/45
GNS% + *pen router terminals.
7/21/2019 CS255 DelaCruz Presentation
http://slidepdf.com/reader/full/cs255-delacruz-presentation 13/45
GNS% 0 Summar(
●
1ou need to download router I*S to use the routerde)ice.
● 1ou can confiure each de)ice e.. 2ost3 RouterSwitches3 /( clickin the de)ice while simulation is
not runnin. i.e. chane the num/er of ports inswitches or routers
● &urin simulation run3 (ou can interact with therouters usin its terminals.
● The /eha)ior of the routers are same with the actualCisco routers /ecause the( are usin actual CiscoI*S.
Interated !ultiprotocol Network
7/21/2019 CS255 DelaCruz Presentation
http://slidepdf.com/reader/full/cs255-delacruz-presentation 14/45
Interated !ultiprotocol NetworkEmulator"Simulator
●
I!4NES is 5 realistic network topolo( emulation "simulation framework /ased on the 6ree7S& and8inux operatin s(stem kernel partitioned into multiplelihtweiht )irtual nodes3 which can /e
interconnected )ia kernel0le)el links to form ar/itraril(complex network topoloies.9
● *fficial Site' http'""imunes.net"
7/21/2019 CS255 DelaCruz Presentation
http://slidepdf.com/reader/full/cs255-delacruz-presentation 15/45
I!4NES + Start Screen
7/21/2019 CS255 DelaCruz Presentation
http://slidepdf.com/reader/full/cs255-delacruz-presentation 16/45
I!4NES + Addin routers.
7/21/2019 CS255 DelaCruz Presentation
http://slidepdf.com/reader/full/cs255-delacruz-presentation 17/45
I!4NES + Addin switches.
7/21/2019 CS255 DelaCruz Presentation
http://slidepdf.com/reader/full/cs255-delacruz-presentation 18/45
I!4NES + Addin host ,Cs.
7/21/2019 CS255 DelaCruz Presentation
http://slidepdf.com/reader/full/cs255-delacruz-presentation 19/45
I!4NES + Connectin de)ices.
7/21/2019 CS255 DelaCruz Presentation
http://slidepdf.com/reader/full/cs255-delacruz-presentation 20/45
I!4NES + ,C Confi #:"$
7/21/2019 CS255 DelaCruz Presentation
http://slidepdf.com/reader/full/cs255-delacruz-presentation 21/45
I!4NES + ,C Confi #"$
7/21/2019 CS255 DelaCruz Presentation
http://slidepdf.com/reader/full/cs255-delacruz-presentation 22/45
I!4NES + Switch Confiuration
7/21/2019 CS255 DelaCruz Presentation
http://slidepdf.com/reader/full/cs255-delacruz-presentation 23/45
I!4NES + Router Confi #:"%$
7/21/2019 CS255 DelaCruz Presentation
http://slidepdf.com/reader/full/cs255-delacruz-presentation 24/45
I!4NES + Router Confi #"%$
fi # " $
7/21/2019 CS255 DelaCruz Presentation
http://slidepdf.com/reader/full/cs255-delacruz-presentation 25/45
I!4NES + Router Confi #%"%$
I!4NES 8i k " ;i C fi
7/21/2019 CS255 DelaCruz Presentation
http://slidepdf.com/reader/full/cs255-delacruz-presentation 26/45
I!4NES + 8ink " ;ire Confi
I!4NES R i t
7/21/2019 CS255 DelaCruz Presentation
http://slidepdf.com/reader/full/cs255-delacruz-presentation 27/45
I!4NES + Run experiment.
I!4NES I t t " t i l
7/21/2019 CS255 DelaCruz Presentation
http://slidepdf.com/reader/full/cs255-delacruz-presentation 28/45
I!4NES + Interact w" terminals.
I!4NES I t t " t i l
7/21/2019 CS255 DelaCruz Presentation
http://slidepdf.com/reader/full/cs255-delacruz-presentation 29/45
I!4NES + Interact w" terminals.
I!4NES S
7/21/2019 CS255 DelaCruz Presentation
http://slidepdf.com/reader/full/cs255-delacruz-presentation 30/45
I!4NES 0 Summar(
● It is fairl( simple to set0up. Insert the de)ices (ou want and link them.● 1ou can confiure each de)ice to a certain extent/efore runnin the simulation.
●
1ou can e)en confiure the wire or the link.● 4nlike GNS%3 routers *S are simplified.● After runnin the experiment3 (ou can interact withthe consoles of routers and ,Cs.
Network Simulator %
7/21/2019 CS255 DelaCruz Presentation
http://slidepdf.com/reader/full/cs255-delacruz-presentation 31/45
Network Simulator %
●
5ns0% is a discrete0e)ent network simulator forInternet s(stems3 tareted primaril( for research andeducational use. ns0% is free software3 licensed underthe GN4 G,8) license3 and is pu/licl( a)aila/le for
research3 de)elopment3 and use.9● ns0% is code0/ase which means (ou need to code thesimulator itself in c<< usin ns0% li/rar(.
● Network Animator is part of ns0% that is used to ha)e
)isual representation of the simulations in ns0%.● *fficial Site' https'""www.nsnam.or"
NS % Installation
7/21/2019 CS255 DelaCruz Presentation
http://slidepdf.com/reader/full/cs255-delacruz-presentation 32/45
NS0% Installation
● &ownload the all0in0one compressed file for ns0% from
the we/site.● 7uild the ns0% executa/le after extraction ofcompressed files.
● 7uild the Network Animator executa/le.
NS %' 6ile Extraction
7/21/2019 CS255 DelaCruz Presentation
http://slidepdf.com/reader/full/cs255-delacruz-presentation 33/45
NS0%' 6ile Extraction
NS %' ns % /uild
7/21/2019 CS255 DelaCruz Presentation
http://slidepdf.com/reader/full/cs255-delacruz-presentation 34/45
NS0%' ns0% /uild
NS % Executa/le
7/21/2019 CS255 DelaCruz Presentation
http://slidepdf.com/reader/full/cs255-delacruz-presentation 35/45
NS0% Executa/le
●
After oin to the ns0x.(( director(3 (ou can see a filenamed 5waf9. It is the executa/le created after/uildin ns0% code.
● The actual 5simulator9 will /e a code in c<< with file
extention .cc.● ,lace this code in the folder 5scratch9 to run thesimulation usin the said file. There are examplesimulator file in 5example9 director(.
NS % Sample Run
7/21/2019 CS255 DelaCruz Presentation
http://slidepdf.com/reader/full/cs255-delacruz-presentation 36/45
NS0% Sample Run
● There is a sample file name 5first.cc9 in
5examples"tutorial9 director(. Cop( this file in5scratch9.
● To run this file simulation3 t(pe the command 5."waf00run scratch"first9.
● Note that the extention file =.cc is intentionall(remo)ed.
● Results of the simulation will /e displa(ed on theterminal.
NS0%' Simulation Run
7/21/2019 CS255 DelaCruz Presentation
http://slidepdf.com/reader/full/cs255-delacruz-presentation 37/45
NS0%' Simulation Run
NS0% Netanim 7uild
7/21/2019 CS255 DelaCruz Presentation
http://slidepdf.com/reader/full/cs255-delacruz-presentation 38/45
NS0% Netanim 7uild
● 6or the simulation to /e animated3 (ou need to /uildnetanim part of ns0%.
● The folder is on the same le)el as ns0x.((. Thedirector( is netanim0x.(((.
● T(pe the command 5>make NetAnim.pro9● The executa/le 5NetAnim9 should /e produced.
NS0%' Netanim 7uild
7/21/2019 CS255 DelaCruz Presentation
http://slidepdf.com/reader/full/cs255-delacruz-presentation 39/45
NS %' Netanim 7uild
NS0%' NetAnim G4I
7/21/2019 CS255 DelaCruz Presentation
http://slidepdf.com/reader/full/cs255-delacruz-presentation 40/45
NS %' NetAnim G4I
NS0%' *utput
7/21/2019 CS255 DelaCruz Presentation
http://slidepdf.com/reader/full/cs255-delacruz-presentation 41/45
NS %' *utput
● &epedin on (our confiuration of the simulation
#=.cc$3 the simulation can produce different outputs.#i.e. animation file =.xml3 trace files like conestion
window trace3 packet capture files =.pcap$.● 1ou can use wireshark application to read the packetcapture files and the NetAnim executa/le to )iew theanimation files.
NS0%' Anim Sample #:"%$
7/21/2019 CS255 DelaCruz Presentation
http://slidepdf.com/reader/full/cs255-delacruz-presentation 42/45
NS %' Anim Sample #:"%$
NS0%' Anim Sample #"%$
7/21/2019 CS255 DelaCruz Presentation
http://slidepdf.com/reader/full/cs255-delacruz-presentation 43/45
NS %' Anim Sample #"%$
NS0%' Anim Sample #%"%$
7/21/2019 CS255 DelaCruz Presentation
http://slidepdf.com/reader/full/cs255-delacruz-presentation 44/45
NS %' Anim Sample #%"%$
NS0%' Tutorial