NS-2 Training 12/12/2011. Introduction  NS-2: Network Simulator Generation 2  Latest Release: 2.35 / Nov. 4, 2011 

Slides:



Advertisements
Similar presentations
1 The ns-2 Network Simulator H Plan: –Discuss discrete-event network simulation –Discuss ns-2 simulator in particular –Demonstration and examples: u Download,
Advertisements

1 NS-2 Tutorial COMP R2 University of Manitoba March 4, 2009.
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-
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.
M. Dahshan - TCOM52721 TCOM 5272 Telecomm Lab Dr. Mostafa Dahshan OU-Tulsa 4W 2 nd floor
Katz, Stoica F04 EECS 122 Introduction to Computer Networks (Fall 2003) Network simulator 2 (ns-2) Department of Electrical Engineering and Computer Sciences.
CprE 543x – ns-2 Tutorial Zak Abichar, Dept of Electrical and Computer Engineering Iowa State University Ames,
© Manasa Quantifying Metrics for Resilient and Survivable Networks EECS 801 Graduate Reading © 2008–Manasa K 6 June 2008 Manasa K Department of Electrical.
Computer Networks Fall, 2007 Prof Peterson. CIS 235: Networks Fall, 2007 Western State College  What is “store and forward”?  What is a buffer / queue?
Computer Networks NS. Features F Event driven simulator –developed at UC Berkeley F Network Topologies –nodes (connectivity), links (bandwidth, delay)
1 TCP-LP: A Distributed Algorithm for Low Priority Data Transfer Aleksandar Kuzmanovic, Edward W. Knightly Department of Electrical and Computer Engineering.
Introduction to HTML 2006 CIS101. What is the Internet? Global network of computers that are connected and communicate via a series of Protocols Protocols.
Student Projects in Computer Networking: Simulation versus Coding Leann M. Christianson Kevin A. Brown Cal State East Bay.
1 Modified Schedule Day 2 Network AniMator (nam) Examples simple.tcl mcast.tcl Day 3 Wireless (ad-hoc)
Submitters: Stella Pantofel Michael Halperin Igor Berman
Better Behaved, Better Performing Multimedia Networking Jae Chung and Mark Claypool Computer Science Department Worcester Polytechnic Institute Proceedings.
Computer Science 1 Characterizing Link Properties Using “Loss-pairs” Jun Liu (joint work with Prof. Mark Crovella)
EECS122 - UCB1 Measurements and Modeling Table of Contents 1. Measurements Measurements 2. Modeling and its Shortcomings Modeling and its Shortcomings.
Background of Wireless Communication Student Presentations and Projects Wireless Communication Technology Wireless Networking and Mobile IP Wireless Local.
COMPUTER NETWORK: MODELING AND SIMULATION -Abhaykumar Kumbhar Computer Science Department.
NDT Tools Tutorial: How-To setup your own NDT server Rich Carlson Summer 04 Joint Tech July 19, 2004.
© 2009 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Course Preview Cisco Packet Tracer.
NdnSIM Tutorial.
OPNET Modeler - An Introduction For COSC (taught by Dr. Osborne) - Zankar Parekh.
Lesson 5 – Looking at the Output MATSim Tutorial, 2011, Shanghai 1.
Wireless Networking and Systems CSE 590 ns2 tutorial.
Introduction to NS2 -Network Simulator- -Prepared by Changyong Jung.
August 29, 2005ICP: Chapter 1: Introduction to Python Programming 1 Introduction to Computer Programming Chapter 1: Introduction to Python Programming.
Role and Mechanism of Queue Internet Engineering.
Cytoscape Introduction 吳 信 宏, Hsin-Hung Wu Laboratory of System Biology and Network Biology Institute of Information Science,
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.
NetFlow Very useful for traffic analysis Very useful for traffic analysis Standard sampler: Standard sampler: –Cisco Netflow –Juniper Traffic Sampling.
1 Network Simulator Tutorial. 2 Network Simulation * Motivation: Learn fundamentals of evaluating network performance via simulation Overview: fundamentals.
Internet Computing KUT Youn-Hee Han
Jianguo Lu : regular expression and automata.
Introduction to Unix – CS 21 Lecture 12. Lecture Overview A few more bash programming tricks The here document Trapping signals in bash cut and tr sed.
Background of Wireless Communication Student Presentations and Projects Wireless Communication Technology Wireless Networking and Mobile IP Wireless Local.
A talk about AWK Don Newcomb 18 Jan What is AWK? AWK is an interpreted computer language It is primarily used for text processing and data formatting.
1 NS Fundamentals. USC INFORMATION SCIENCES INSTITUTE 2 OTcl and C++: The Duality C++ OTcl Pure C++ objects Pure OTcl objects C++/OTcl split objects ns.
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.
NS2-TCP Internet Computing KUT ( Youn-Hee Han It is licensed under a Creative Commons Attribution.
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 
© 2006 KDnuggets [16/Nov/2005:16:32: ] "GET /jobs/ HTTP/1.1" "
NS-2 Training 4/15/2013. Introduction  NS-2: Network Simulator Generation 2  Latest Release: 2.35 / Nov. 4, 2011 
Awk- An Advanced Filter by Prof. Shylaja S S Head of the Dept. Dept. of Information Science & Engineering, P.E.S Institute of Technology, Bangalore
IP-BASED MOBILITY FOR WIRELESS LANS WITH THE NETWORK SIMULATOR NS Frank Christahl, Andreas Huber, Matthias Rosenschon University of Applied Sciences Giessen-Friedberg.
NS-2 Shahin Shayandeh December 2004 Session 1. Ns-2, the Network Simulator  A discrete event simulator Simple model  Focused on modeling network protocols.
Advanced Data Communication Spring Due Date  April 9th, 2010.
1 Lecture 10 Introduction to AWK COP 3344 Introduction to UNIX.
Network Topology. Network Topology Cont. Sender = 0 and Receiver = 5 Sender = 0 and Receiver = 5 Sender transmits ftp traffic over TCP/IP to receiver.
DMET 602: Networks and Media Lab Amr El Mougy Yasmeen EssamAlaa Tarek.
Intelligent Data Systems Lab. Department of Computer Science & Engineering Python Installation guide 컴퓨터의 개념 및 실습.
Programming Languages Meeting 12 November 18/19, 2014.
NS-2 Simulator 최 종 훈 Contents  About NS  Installation  Based on Linux  Based on Windows  Architecture  Using NS-2  Example  References.
Interaction and Animation on Geolocalization Based Network Topology by Engin Arslan.
NS-2 Training 4/12/2011.
Network Simulators.
Network Tools and Utilities
Mobicom ‘99 Per Johansson, Tony Larsson, Nicklas Hedman
Choe, Hyun Jung (Stella)
Introduction to ns-2: “The” Network Simulator
Introduction to ZBOSS Embedded Systems Software Training Center
Karthik Sadasivam Banuprasad Samudrala
Providing QoS through Active Domain Management
Presentation transcript:

NS-2 Training 12/12/2011

Introduction  NS-2: Network Simulator Generation 2  Latest Release: 2.35 / Nov. 4, 2011   Other Simulators  OPNET  QualNet  ns-3

Installation (1/2)  Cygwin  Linux-like environment for Windows  Download    NS-2  The latest version: ns-2.35  ns-allinone-2.28/2.29  Download  

Installation (2/2)  Nam: Network Animator (nam-1.15 released Nov )  animation tool for viewing network simulation traces and real world packet traces 

TCL Codes  TCL (Tool Command Language)  pronounced as "tickle"  Basic terms  Create a new simulator  Definitions for nam  Open a trace file  Network behaviors  Nodes, links, queue size, node position, traffic types, simulation times, etc. set ns [new Simulator] set nf [open out.nam w] $ns namtrace-all $nf set nd [open out.tr w] $ns trace-all $nd Initialize the packet format Create a scheduler Select the default address format /ns-2.xx/tcl/lib/ns-lib.tcl

Example

Output data  NAM  Trace appeared as "------" since no flag is set Explicit Congestion Notification

Analysis  AWK  Alfred Aho, Peter Weinberger, and Brian Kernighan  programming language that is designed for processing text- based data  pronounced as the same as the name of the bird, “auk”

Run AWK file  Commands  file1.awk  a command file  file2.tr  a primary input file  out.txt  an output file awk -f file1.awk file2.tr awk -f file1.awk file2.tr > out.txt

AWK  Form  Pattern is typically an expression  Action is a series of commands  In NS-2 Simulator /pattern/ { action } BEGIN { action } END { action }

AWK  You can measure  Delay, Jitter, Packet loss, and Throughput  Example

NSG2

 NSG2   JAVA6.0  Creative Intelligence Information System Lab, Department of Computer Science and Engineering, National Sun Yat-sen University

Resources  Gunplot  Plot the analyzed results of awk  Web site  NS2 使用說明手冊   NS-2 Trace Formats   Books  計算機網路實驗 — 以 NS2 模擬工具實作,柯志亨  計算機網路實驗 — 使用 NS2 模擬多媒體通訊與無線網路, 柯志亨團隊