Top Banner
 Netwo rk Simula tion T ools Exploration of Network Simulation Tools Ren Tristan A. de la Cruz
45

CS255 DelaCruz Presentation

Mar 08, 2016

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: CS255 DelaCruz Presentation

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

Page 2: CS255 DelaCruz Presentation

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.

Page 3: CS255 DelaCruz Presentation

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"

Page 4: CS255 DelaCruz Presentation

7/21/2019 CS255 DelaCruz Presentation

http://slidepdf.com/reader/full/cs255-delacruz-presentation 4/45

 

GNS% + Start Screen " New ,ro-ect

Page 5: CS255 DelaCruz Presentation

7/21/2019 CS255 DelaCruz Presentation

http://slidepdf.com/reader/full/cs255-delacruz-presentation 5/45

 

GNS% + All &e)ices 

Page 6: CS255 DelaCruz Presentation

7/21/2019 CS255 DelaCruz Presentation

http://slidepdf.com/reader/full/cs255-delacruz-presentation 6/45

 

GNS% + Addin Cisco IS* 

Page 7: CS255 DelaCruz Presentation

7/21/2019 CS255 DelaCruz Presentation

http://slidepdf.com/reader/full/cs255-delacruz-presentation 7/45

 

GNS% + IS*s for Cisco Routers

Page 8: CS255 DelaCruz Presentation

7/21/2019 CS255 DelaCruz Presentation

http://slidepdf.com/reader/full/cs255-delacruz-presentation 8/45

 

GNS% + routers can now /e used. 

Page 9: CS255 DelaCruz Presentation

7/21/2019 CS255 DelaCruz Presentation

http://slidepdf.com/reader/full/cs255-delacruz-presentation 9/45

 

GNS% + &ra de)ices to main space 

Page 10: CS255 DelaCruz Presentation

7/21/2019 CS255 DelaCruz Presentation

http://slidepdf.com/reader/full/cs255-delacruz-presentation 10/45

 

GNS% + Connect the de)ices. 

Page 11: CS255 DelaCruz Presentation

7/21/2019 CS255 DelaCruz Presentation

http://slidepdf.com/reader/full/cs255-delacruz-presentation 11/45

 

GNS% + Run simulation. 

Page 12: CS255 DelaCruz Presentation

7/21/2019 CS255 DelaCruz Presentation

http://slidepdf.com/reader/full/cs255-delacruz-presentation 12/45

 

GNS% + *pen router terminals. 

Page 13: CS255 DelaCruz Presentation

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

Page 14: CS255 DelaCruz Presentation

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"

Page 15: CS255 DelaCruz Presentation

7/21/2019 CS255 DelaCruz Presentation

http://slidepdf.com/reader/full/cs255-delacruz-presentation 15/45

 

I!4NES + Start Screen

Page 16: CS255 DelaCruz Presentation

7/21/2019 CS255 DelaCruz Presentation

http://slidepdf.com/reader/full/cs255-delacruz-presentation 16/45

 

I!4NES + Addin routers.

Page 17: CS255 DelaCruz Presentation

7/21/2019 CS255 DelaCruz Presentation

http://slidepdf.com/reader/full/cs255-delacruz-presentation 17/45

 

I!4NES + Addin switches.

Page 18: CS255 DelaCruz Presentation

7/21/2019 CS255 DelaCruz Presentation

http://slidepdf.com/reader/full/cs255-delacruz-presentation 18/45

 

I!4NES + Addin host ,Cs.

Page 19: CS255 DelaCruz Presentation

7/21/2019 CS255 DelaCruz Presentation

http://slidepdf.com/reader/full/cs255-delacruz-presentation 19/45

 

I!4NES + Connectin de)ices.

Page 20: CS255 DelaCruz Presentation

7/21/2019 CS255 DelaCruz Presentation

http://slidepdf.com/reader/full/cs255-delacruz-presentation 20/45

 

I!4NES + ,C Confi #:"$

Page 21: CS255 DelaCruz Presentation

7/21/2019 CS255 DelaCruz Presentation

http://slidepdf.com/reader/full/cs255-delacruz-presentation 21/45

 

I!4NES + ,C Confi #"$

Page 22: CS255 DelaCruz Presentation

7/21/2019 CS255 DelaCruz Presentation

http://slidepdf.com/reader/full/cs255-delacruz-presentation 22/45

 

I!4NES + Switch Confiuration

Page 23: CS255 DelaCruz Presentation

7/21/2019 CS255 DelaCruz Presentation

http://slidepdf.com/reader/full/cs255-delacruz-presentation 23/45

 

I!4NES + Router Confi #:"%$

Page 24: CS255 DelaCruz Presentation

7/21/2019 CS255 DelaCruz Presentation

http://slidepdf.com/reader/full/cs255-delacruz-presentation 24/45

 

I!4NES + Router Confi #"%$

fi # " $

Page 25: CS255 DelaCruz Presentation

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

Page 26: CS255 DelaCruz Presentation

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

Page 27: CS255 DelaCruz Presentation

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

Page 28: CS255 DelaCruz Presentation

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

Page 29: CS255 DelaCruz Presentation

7/21/2019 CS255 DelaCruz Presentation

http://slidepdf.com/reader/full/cs255-delacruz-presentation 29/45

 

I!4NES + Interact w" terminals.

I!4NES S

Page 30: CS255 DelaCruz Presentation

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 %

Page 31: CS255 DelaCruz Presentation

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

Page 32: CS255 DelaCruz Presentation

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

Page 33: CS255 DelaCruz Presentation

7/21/2019 CS255 DelaCruz Presentation

http://slidepdf.com/reader/full/cs255-delacruz-presentation 33/45

 

NS0%' 6ile Extraction

NS %' ns % /uild

Page 34: CS255 DelaCruz Presentation

7/21/2019 CS255 DelaCruz Presentation

http://slidepdf.com/reader/full/cs255-delacruz-presentation 34/45

 

NS0%' ns0% /uild

NS % Executa/le

Page 35: CS255 DelaCruz Presentation

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

Page 36: CS255 DelaCruz Presentation

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

Page 37: CS255 DelaCruz Presentation

7/21/2019 CS255 DelaCruz Presentation

http://slidepdf.com/reader/full/cs255-delacruz-presentation 37/45

 

NS0%' Simulation Run

NS0% Netanim 7uild

Page 38: CS255 DelaCruz Presentation

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

Page 39: CS255 DelaCruz Presentation

7/21/2019 CS255 DelaCruz Presentation

http://slidepdf.com/reader/full/cs255-delacruz-presentation 39/45

 

NS %' Netanim 7uild

NS0%' NetAnim G4I

Page 40: CS255 DelaCruz Presentation

7/21/2019 CS255 DelaCruz Presentation

http://slidepdf.com/reader/full/cs255-delacruz-presentation 40/45

 

NS %' NetAnim G4I

NS0%' *utput

Page 41: CS255 DelaCruz Presentation

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 #:"%$

Page 42: CS255 DelaCruz Presentation

7/21/2019 CS255 DelaCruz Presentation

http://slidepdf.com/reader/full/cs255-delacruz-presentation 42/45

 

NS %' Anim Sample #:"%$

NS0%' Anim Sample #"%$

Page 43: CS255 DelaCruz Presentation

7/21/2019 CS255 DelaCruz Presentation

http://slidepdf.com/reader/full/cs255-delacruz-presentation 43/45

 

NS %' Anim Sample #"%$

NS0%' Anim Sample #%"%$

Page 44: CS255 DelaCruz Presentation

7/21/2019 CS255 DelaCruz Presentation

http://slidepdf.com/reader/full/cs255-delacruz-presentation 44/45

 

NS %' Anim Sample #%"%$

NS0%' Tutorial

Page 45: CS255 DelaCruz Presentation

7/21/2019 CS255 DelaCruz Presentation

http://slidepdf.com/reader/full/cs255-delacruz-presentation 45/45

 

6or ns0% tutorial'https'""www.nsnam.or"docs"tutorial"html"index.html