EECS122 - UCB1 Project 3: ns Simulation of Application-Level Routing Improve the application performance by user-level / application-level routing. Understand.

Slides:



Advertisements
Similar presentations
Network Simulator and problems in installing. Introduction Problems in installing Wired networks modified example2.tcl commands in OTcl usual problems.
Advertisements

1 NS-2 Tutorial COMP R2 University of Manitoba March 4, 2009.
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
1 ns-2 Tutorial, part 2 Dave Anderson, Xiaowei Yang (Modified from Polly Huang’s slides)
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.
NS-2 Shahin Shayandeh December 2004 Session 2. Ns programming  Create the event scheduler  Turn on tracing  Create network  Setup routing  Insert.
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.
How to Add a New Protocol in NS2 Xu Leiming CSCW Lab. at CS Dept., Tsinghua Univ. June 1, 2001.
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.
Traditional Approach to Design
Chapter 10 The Traditional Approach to Design
Documentation Letts Study Guide Information Systems - IT Chapter 19.
Chapter 9: The Traditional Approach to Design Chapter 10 Systems Analysis and Design in a Changing World, 3 rd Edition.
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.
CprE 543x – ns-2 Tutorial Zak Abichar, Dept of Electrical and Computer Engineering Iowa State University Ames,
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
Color Aware Switch algorithm implementation The Computer Communication Lab (236340) Spring 2008.
EECS122 - UCB1 Measurements and Modeling Table of Contents 1. Measurements Measurements 2. Modeling and its Shortcomings Modeling and its Shortcomings.
Network Simulator (NS2) 1 Tutorial on Network Simulator (NS2) Hemant Kumar Rath Infonet Lab, Dept of Electrical Engineering IIT Bombay, Mumbai
INTRODUCTION TO WEB DATABASE PROGRAMMING
Wireless Networking and Systems CSE 590 ns2 tutorial.
1 Guide to Novell NetWare 6.0 Network Administration Chapter 11.
Redes Inalámbricas Máster Ingeniería de Computadores 2008/2009 Tema 7.- CASTADIVA PROJECT Performance Evaluation of a MANET architecture.
Introduction to NS2 -Network Simulator- -Prepared by Changyong Jung.
HTTP HTTP stands for Hypertext Transfer Protocol. It is an TCP/IP based communication protocol which is used to deliver virtually all files and other.
Introduction to Mobility & Network Simulator 2 (NS-2)
10 The traditional approach to design Hisham Alkhawar.
Bridging the Gap: Turning a Network Simulation into an Emulation Mac Newbold.
NS2 - Appendix Ming-Feng Yang. 2 2 Outline NS2 Models NS2 Directory Structure Extending NS2 in OTcl Extending NS2 in C++ NS2 related links.
Ns-3 tutorial Katto lab Tadashi Yamazaki 8 November 2012.
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
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.
Lab 2, Network Simulator ns2 Shiv Kalyanaraman Yong Xia (TA) Satish Raghunath Sept 4,
Performance Validation of Mobile IP Wireless Networks Presented by Syed Shahzad Ali Advisor Dr. Ravi Pendse.
Network Simulator Tutorial Wireless Networks. Acknowledgements Material is taken from the presentations by Jim Kurose, University of Massachusetts, Amherst.
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 
NS-2 Training 4/15/2013. Introduction  NS-2: Network Simulator Generation 2  Latest Release: 2.35 / Nov. 4, 2011 
The Creation of NS2 Simulated Environment ( 1 ) LI Chengbo
TNK092: Network Simulation - Nätverkssimulering Lecture #1: Course basics and a first taste of NS2 Vangelis Angelakis Ph.D.
NS-2 Shahin Shayandeh December 2004 Session 1. Ns-2, the Network Simulator  A discrete event simulator Simple model  Focused on modeling network protocols.
Network Simulator 2 Network Simulator 2 Practice SungKyunKwan-Univ Mobile Computing LAB ( 안혜환
Lab 2, Network Simulator ns2
DMET 602: Networks and Media Lab Amr El Mougy Yasmeen EssamAlaa Tarek.
NS-2 Training 12/12/2011. Introduction  NS-2: Network Simulator Generation 2  Latest Release: 2.35 / Nov. 4, 2011 
NS-2 Simulator 최 종 훈 Contents  About NS  Installation  Based on Linux  Based on Windows  Architecture  Using NS-2  Example  References.
Jae Chung and Mark Claypool
1 Chapter 1 INTRODUCTION TO WEB. 2 Objectives In this chapter, you will: Become familiar with the architecture of the World Wide Web Learn about communication.
(Modified from Polly Huang’s and last year’s original)
Network Simulator Tutorial
NS2_Trace and Monitoring support 報告者:羅士捷
Development Environment
Choe, Hyun Jung (Stella)
Introduction to ns-2: “The” Network Simulator
Introduction to ZBOSS Embedded Systems Software Training Center
Karthik Sadasivam Banuprasad Samudrala
Network Performance modelling and simulation
Presentation transcript:

EECS122 - UCB1 Project 3: ns Simulation of Application-Level Routing Improve the application performance by user-level / application-level routing. Understand the use of network measurement and user decisions in network route selection.

EECS122 - UCB2 Scenario Mbps, 10 ms UDP Background Traffic at 6.1 Mbps UDP Background Traffic at 7.3 Mbps User sends UDP Traffic at 6 Mbps 10 Mbps, 10 ms

EECS122 - UCB3 Project Description 5 tasks: Task0: Understand the C++ and OTcl Integration issues (0.5%) Task1: Writing a OTcl script (2%) Task2: Specification of measurement and selection algorithm (2%) Task3: Write the C++ modules (6.5%) Task4: Modify the OTcl script of task1 and test (4%) Task5 (optional): Make algorithm adaptive to bandwidth and RTT (1%)

EECS122 - UCB4 ns Setup Follow the instructions: ~altmann/lectures/ee122/copy-ns_v03.htm The process: Download ns source code: ns.tar Install in ~/proj3 directory in your home directory Make changes to the Makefile (as described) or take Ye’s Makefile from the ee122 project Q&A web page Compile ns Make sure that you are using your ns version from now on

EECS122 - UCB5 Simulation System tcl script (input) Gnuplot (output) NAM (output) #Create a simulator object set ns [new Simulator] #Define different colors for data flows $ns color 1 Bluens Simulator Basics $ns color 2 Red #Open the nam trace filens Simulator Basics set nf [open project_b_task_1I.nam w] $ns namtrace-all $nf #open the measurement output files set f0 [open project_b_task_1I_out0.tr w] set f1 [open project_b_task_1I_out1.tr w] set f2 [open project_b_task_1I_out2.tr w] ns classes ns

EECS122 - UCB6 OTcl Script – Source Routing Source Routing #enables source routing $ns src_rting 1 #set routes set temp [$n1 set src_agent_] $temp install_connection #connect transport agent with src routing agent $udp0 target [$n1 set src_agent_] #start simulation $ns at 6.0 "$udp1 set fid_ 2" Mbps, 10 ms

EECS122 - UCB7 ns Architecture Control operations in Otcl Class hierarchy (extract): Agent/TCP/Reno

EECS122 - UCB8 ns Simulator Basics ns is written in C++ with an OTcl interpreter as front end ns supports a class hierarchy in C++ (called compiled hierarchy) and a similar class hierarchy within OTcl (called interpreted hierarchy). There is a one-to-one correspondence between classes in both hierarchies. But, there are some hierarchies in C++ and OTcl that are not mirrored. When a user instantiates a class in a OTcl script, an object of the corresponding compiled class is also instantiated through methods in the class TclObject.

EECS122 - UCB9 Build New Agents / Applications: OTcl set udp1 [new Agent/UDP/UDPar] define new subclass of the TclClass $ns attach-agent $n5 $udp1 set ar1 [new Application/AppRouter] define new subclass of the TclClass $ar1 set packetSize_ 500 Set default values by using bind() method $ar1 attach-agent $udp1 define the sequence of actions that implement the command " attach-agent " in AppRouter::command() method

EECS122 - UCB10 Build New Agents / Applications: C++ Implementation of the Application/AppRouter class Name example: ar-app.cc and ar-app.h Implementation of the Agent/UdpAgent/UdpARAgent class Name example: udp-ar.cc and udp-ar.h Put them in ns-2.1b9a/mycode Based on mm-app.cc, mm-app.h, udp-mm.cc and udp-mm.h see "Add New Application and Agent“

EECS122 - UCB11 ns Files Modification Depending on the implementation, some existing files have to be modified Make the new protocol (of AppRouter ) and its name known common/packet.h tcl/lib/ns-packet.tcl Set the default value of variables tcl/lib/ns-default.tcl If necessary, add method definitions: apps/app.h common/agent.h

EECS122 - UCB12 Literature and Help for ns NS by Example "Add New Application and Agent“ NS Manual Chapter 3 of the Manual