1 NS-2 Tutorial COMP 7810 09R2 University of Manitoba March 4, 2009.

Slides:



Advertisements
Similar presentations
1 Copyright © 2002 Pearson Education, Inc.. 2 Chapter 2 Getting Started.
Advertisements

1 Copyright © 2002 Pearson Education, Inc.. 2 Chapter 1 Introduction to Perl and CGI.
Web100 User Services Support Team: Tanya Brethour, Jim Ferguson, Steve Engelhardt
Texas Digital Library Services Preservation Network.
State of New Jersey Department of Health and Senior Services Patient Safety Reporting System Module 4 – Reports, Resources and Support.
0 - 0.
ADDING INTEGERS 1. POS. + POS. = POS. 2. NEG. + NEG. = NEG. 3. POS. + NEG. OR NEG. + POS. SUBTRACT TAKE SIGN OF BIGGER ABSOLUTE VALUE.
SUBTRACTING INTEGERS 1. CHANGE THE SUBTRACTION SIGN TO ADDITION
MULT. INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
Addition Facts
1 Data Link Protocols By Erik Reeber. 2 Goals Use SPIN to model-check successively more complex protocols Using the protocols in Tannenbaums 3 rd Edition.
©2011 Quest Software, Inc. All rights reserved.. Andrei Polevoi, Tatiana Golubovich Program Management Group ActiveRoles Add-on Manager Overview.
Protocol layers and Wireshark Rahul Hiran TDTS11:Computer Networks and Internet Protocols 1 Note: T he slides are adapted and modified based on slides.
Configuration management
Software change management
Service Access Management Tool Tour: Contract Number
INTRODUCTION TO SIMULATION WITH OMNET++ José Daniel García Sánchez ARCOS Group – University Carlos III of Madrid.
Request Tracker IT Partners Conference Oliver Thomas 19 April 2005.
Network Simulator and problems in installing. Introduction Problems in installing Wired networks modified example2.tcl commands in OTcl usual problems.
DE2-115 Control Panel - Part I
COMP1214 Systems & Platforms: Operating Systems Concepts Dr. Yvonne Howard – Rikki Prince – 1.
Chapter 1 Introduction to Visual Basic Programming and Applications 1 Exploring Microsoft Visual Basic 6.0 Copyright © 1999 Prentice-Hall, Inc. By Carlotta.
1 The ns-2 Network Simulator H Plan: –Discuss discrete-event network simulation –Discuss ns-2 simulator in particular –Demonstration and examples: u Download,
Getting started Starting the Virtual Machines, utilities, intro to workflows using Trident ADD BUSINESS UNIT/FLAGSHIP NAME Nick Murray| March 2013.
Linux commands exercise 1. What do you need, if you try to these at home? You need to download and install Ubuntu Linux from the Internet – DVD is need.
1 First EMRAS II Technical Meeting IAEA Headquarters, Vienna, 19–23 January 2009.
Continued Investment in ATML
Addition 1’s to 20.
1 Institutional Repository Workshop 1 – 3 April 2009 Presented by Leonard Daniels.
Week 1.
12 January 2009SDS batch generation, distribution and web interface 1 ExESS IT tool for SDS batch generation, distribution and web interface ExESS IT tool.
TM Graphical Monitoring Electronic Service Tools.
Katz, Stoica F04 EECS 122 Introduction to Computer Networks (Fall 2004) Network simulator 2 (ns-2) Department of Electrical Engineering and Computer Sciences.
Wireless Communication : LAB 3
Introduction to Network Simulator NS-2 Part I
Network Simulation One tool to simulation network protocols for the Internet is the network simulator (NS) The simulation environment needs to be set-
An Introduction to NS-2 * Gayatri Swamynathan CS 276 TA *some slides are from a presentation by Haobo Yu & Nader Salehi, USC/ISI.
Brief Intro to ns2: The most widely used Network Simulator COMP5416 Advanced Network Technologies Based on: Marc Greis's
Ns-2 Tutorial Exercise (1) Multimedia Networking Group, The Department of Computer Science, UVA Jianping Wang Adopted from Nicolas’s slides Jianping Wang,
Ns-2 tutorial Karthik Sadasivam Banuprasad Samudrala CSCI 5931 Network Security Instructor : Dr. T. Andrew Yang.
5-Jul-141 S.Pushpalatha, Associate Professor, PSNACET.
Introduction to NS. Information Main website Documentation, mailing list archive, tutorial Location of Source codes –C++ files.
Assignment #2 Due Sunday Sept 17, 11:55pm. Objectives  Getting to know ns-2  Manipulate ns-2 as a black box.  Configure/Script.
Katz, Stoica F04 EECS 122 Introduction to Computer Networks (Fall 2003) Network simulator 2 (ns-2) Department of Electrical Engineering and Computer Sciences.
Computer Networks NS. Features F Event driven simulator –developed at UC Berkeley F Network Topologies –nodes (connectivity), links (bandwidth, delay)
1 Modified Schedule Day 2 Network AniMator (nam) Examples simple.tcl mcast.tcl Day 3 Wireless (ad-hoc)
EECS122 - UCB1 Measurements and Modeling Table of Contents 1. Measurements Measurements 2. Modeling and its Shortcomings Modeling and its Shortcomings.
Wireless Networking and Systems CSE 590 ns2 tutorial.
1 Intro to Linux - getting around HPC systems Himanshu Chhetri.
LINUX System : Lecture 3 Vmware, Cygwin, LINUX installation Bong-Soo Sohn Assistant Professor School of Computer Science and Engineering Chung-Ang University.
Introduction to NS2 -Network Simulator- -Prepared by Changyong Jung.
CENT 305 Information Systems Security Linux Introduction.
NS2 - Appendix Ming-Feng Yang. 2 2 Outline NS2 Models NS2 Directory Structure Extending NS2 in OTcl Extending NS2 in C++ NS2 related links.
JIA-HUI HUANG INSTITUTE OF COMPUTER SCIENCE AND INFORMATION ENGINEERING NATIONAL TAIPEI UNIVERSITY OF TECHNOLOGY Network Simulator – NS-2 1.
Network Simulator-2 Sandeep singla 1998A2A7540. NS-2 A discrete event simulator Focused on modeling network protocols –Wired, wireless –TCP,UDP,unicast,multicast.
Internet Computing KUT Youn-Hee Han
1 ns-2 Tutorial Haobo Yu, Nader Salehi USC/ISI
Ns-2 Tutorial (1) Multimedia Networking Group, The Department of Computer Science, UVA Jianping Wang Jianping Wang, 2002 cs757 1.
1 Introduction to NS-2 r Tutorial overview of NS m Create basic NS simulation r Walk-through a simple example m Model specification m Execution and trace.
Network Simulator 2. Introduction Open source network simulator NS uses two languages: C++ and OTcl  C++ is fast to run but slower to change Kernel 
CS110 Introduction to Programming Lecture 1 January 27, 2004 Ethan Bolker Philosophy Bank: user interface, Java, object model Programming environment Homework.
NS-2 Training 12/12/2011. Introduction  NS-2: Network Simulator Generation 2  Latest Release: 2.35 / Nov. 4, 2011 
ECE 6610 Sandeep Kakumanu GNAN research Lab
NS-2 Training 4/12/2011.
Speaker Dr. Saloua CHETTIBI Lecturer at University of Jijel
Introduction to ns-2: “The” Network Simulator
Session 1. ns-3 기초 신연철 Multimedia & Wireless Networking Laboratory, SNU
Bluetooth: Tutorial & Simulation
Karthik Sadasivam Banuprasad Samudrala
Ns-3 Tutorial Xin Li.
Presentation transcript:

1 NS-2 Tutorial COMP R2 University of Manitoba March 4, 2009

2 Goal and Outline Goal of this tutorial  Lead you to get started using NS-2 Outline  Introduction - What’s NS?  Steps in Using NS-2 (through examples)  Development and Your Project

3 What’s NS? NS is a packet-level simulator  Started with Keshav’s REAL in 1989  Been revised in Berkeley, then others Overview  Major engine (network components) written in C++  User-interface is tcl script

4 My First Tcl Script

5 Test it out! Go to 2/TUTORIAL

6 My First OTcl Script

7 NS-2 Simulated Components Protocols  TCP, UDP, DCCP, SCTP, TFRC, Wi-Fi, etc. Network model  Nodes, links, topology, channel schedulers, buffer management, etc. Traffic model  Applications: FTP, CBR, MPEG, etc.  Traffic traces

8 NS-2 Simulated Components (II) All implemented by students/researchers like you and me Each release has a few more contributed components added Many are still being developed Well documented steps to use and to add to NS-2

9 General Steps In Using NS-2 Obtaining NS-2 (made available for you) Writing an OTcl script. E.g., “a.tcl” Run the simulation. Just type “ns a.tcl” Post-process the trace generated Plot graphs and include in your papers

10 Obtaining NS-2 Available to you here in CS Linux version 2.33 installed on neram-02 (a networks lab Linux machine) Each student is given a separate complete copy of NS-2  me if you don’t know how to access yours

11 Obtaining NS-2 (for your home PC) Available for both Linux and Windows For Windows, you need VMware or cygwin For Linux, install all-in-one package requires only four commands  tar xzvf ns-allinone-2.33.tar.gz  cd ns-allinone-2.33 ./install  source setup.csh (Note this script was written by our system admin Gilbert, you may need to copy it over and “customize” it a little bit) You are ready to go

12 Writing An OTcl Script Use NS-2, take a look at “ns-simple.tcl”

13 Writing An OTcl Script (II) Add to NS-2  Write a new network layer component  Write a new transport layer protocol  Write a new application Steps  Writing new components in.cc and.h (often free implementations are available)  Add to existing header files in package  Add to Makefile and re-compile

14 Add To NS-2 Step-by-step instructions for a few examples available in “NS by Example” from WPI  On Transport, Application, and Network Layers respectively Web site 

15 Run The Simulation Plug in the trace file names

16 Run the Simulation to Collect Traces Entire packet level event trace dump to file

17 Post-Process the Trace Generated Through scripting languages such as Perl, awk, (ba)sh (shell scripts) Or spread sheet such as Excel See example “ns-simple-trace.tcl” to generate trace “out.tr” Perl and awk combined to produce “jitter.txt”

18 Plot the Graphs Gnuplot, very handy tool to give nice graphs See example “gp”, a Gnuplot script that I wrote The generated.ps file can be easily added to LaTeX for paper / report writing

19 Development Editor (you need a comfortable way to edit files under Linux)  Vi, Emacs, pico, … what else do people use? Make  A very simple utility to automate compilation

20 Your Course Project Some tools to play with  OTcl, editor, make, perl, gnuplot  nam to avoid (an animator not essential to simulation) Need to add to NS-2?  Search for existing implementations on the net first Have fun!