02-NS2 - An An Introduction to NS2 NS2 Textbook T Issariyakul and E Hossain Introduction to Network Simulator NS2 Springer 2008 1 Outline Overview

Info iconThis preview shows pages 1–8. Sign up to view the full content.

View Full Document Right Arrow Icon
An Introduction to NS An Introduction to NS2 Textbook: T. Issariyakul and E. Hossain, Introduction to Network Simulator NS2 , Springer 2008. 1
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Outline verview Overview • Installation •An Example •Incorporate C++ Modules into NS2 • Summary Textbook: T. Issariyakul and E. Hossain, Introduction to Network Simulator NS2 , Springer 2008. 2
Background image of page 2
verview: Network Simulation Overview: Network Simulation 3 Simulation Main Steps 1. Design and Implementation Things to simulate ssumptions Assumptions Performance measure Code Implementation Simul ti n 2. Simulation Network Configuration Phase Simulation Phase 3. Result Compilation Debugging and Tracing •C o m pute performance measures Textbook: T. Issariyakul and E. Hossain, Introduction to Network Simulator NS2 , Springer 2008. 3
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
verview: NS rchitecture Overview: NS2 Architecture • NS2 = Network Simulator 2 NS Network S mulator • Consists of ++: Internal mechanism – C++: Internal mechanism – OTcl: User interface clCL: Connecting C++ to OTcl – TclCL: Connecting C++ to OTcl Textbook: T. Issariyakul and E. Hossain, Introduction to Network Simulator NS2 , Springer 2008. 4
Background image of page 4
verview: NS nvocation Overview: NS2 Invocation •S yntax >> ns [<filename>] [<args>] – No argument: Enter NS2 environment –< filename> = Tcl simulation script; Use OTcl filename Tcl simulation script; Use OTcl programming lauguage – In the Tcl file, <args> is stores in the internal variable ( $argv ). •E x a m p l e > ns myfirst ns tcl 23 >> ns myfirst_ns.tcl 1 2 3 – To retrieve the second input argument (2), execute ( lindex $argv 1 ) Textbook: T. Issariyakul and E. Hossain, Introduction to Network Simulator NS2 , Springer 2008. 5 The index of the element to retrieve, starting from 0
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Outline verview Overview • Installation •An Example •Incorporate C++ Modules into NS2 • Summary Textbook: T. Issariyakul and E. Hossain, Introduction to Network Simulator NS2 , Springer 2008. 6
Background image of page 6
nstallation: NS Installation: NS2 1. Go to NS2 web page: –NS 2 W e b p a g e : http://www.isi.edu/nsnam/ns/ – Download Link: http://www.isi.edu/nsnam/ns/ns- build.html#allinone1 .
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 8
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 10/27/2011 for the course AAAAAAA aaaaaaaa taught by Professor Aaaaaaaaaa during the Spring '11 term at Technische Universiteit Eindhoven.

Page1 / 32

02-NS2 - An An Introduction to NS2 NS2 Textbook T Issariyakul and E Hossain Introduction to Network Simulator NS2 Springer 2008 1 Outline Overview

This preview shows document pages 1 - 8. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online