Bridging the Gap: Turning a Network Simulation into an Emulation Mac Newbold.

Slides:



Advertisements
Similar presentations
An Introduction to NS-2 * Gayatri Swamynathan CS 276 TA *some slides are from a presentation by Haobo Yu & Nader Salehi, USC/ISI.
Advertisements

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,
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.
Virtual LANs.
Winter 2008 Evaluation Tools1 Brief Overview of Networking Evaluation Methods and Tools.
Emulation in ns Alefiya Hussain. ns Tutorial What is Emulation ?  Ability to introduce the simulator into a live network  Application: Allows.
Network synchronization of Online Games Li, Zetan.
Path Optimization in Computer Networks Roman Ciloci.
Geoff Salmon, Monia Ghobadi, Yashar Ganjali, Martin Labrecque, J. Gregory Steffan University of Toronto.
Katz, Stoica F04 EECS 122 Introduction to Computer Networks (Fall 2003) Network simulator 2 (ns-2) Department of Electrical Engineering and Computer Sciences.
Day 3 Outline Multicast example (from Day 2) Wireless Misc. utilities
Student Projects in Computer Networking: Simulation versus Coding Leann M. Christianson Kevin A. Brown Cal State East Bay.
Mobile and Wireless Computing Institute for Computer Science, University of Freiburg Western Australian Interactive Virtual Environments Centre (IVEC)
Chapter 23: ARP, ICMP, DHCP IS333 Spring 2015.
Networking and Internetworking Devices Networks and Protocols Prepared by: TGK First Prepared on: Last Modified on: Quality checked by: Copyright 2009.
EECS122 - UCB1 Measurements and Modeling Table of Contents 1. Measurements Measurements 2. Modeling and its Shortcomings Modeling and its Shortcomings.
(part 3).  Switches, also known as switching hubs, have become an increasingly important part of our networking today, because when working with hubs,
Network Simulation Internet Technologies and Applications.
Connecting LANs, Backbone Networks, and Virtual LANs
Basic Concepts of Computer Networks
EstiNet Network Simulator & Emulator 2014/06/ 尉遲仲涵.
Network Simulator (NS2) 1 Tutorial on Network Simulator (NS2) Hemant Kumar Rath Infonet Lab, Dept of Electrical Engineering IIT Bombay, Mumbai
Simulation and Emulation with NCTUns
Wireless Networking and Systems CSE 590 ns2 tutorial.
Redes Inalámbricas Máster Ingeniería de Computadores 2008/2009 Tema 7.- CASTADIVA PROJECT Performance Evaluation of a MANET architecture.
Modeling Internet Topology Kenneth L. Calvert Matthew B. Doar Ellen W. Zegura Presented by Kiran Komaravolu.
RC CAR CONTROLLER BASED ON INTEL GALILEO SOC PLATFORM Nadav Shiloach Sagi Sabag Supervisor: Idan Shmuel Spring 2014 One Semester Project PROJECT’S ENDING.
This work was supported by the TRUST Center (NSF award number CCF ) Introduction Since public utilities must rely on the internet, they are vulnerable.
NUS.SOC.CS2105 Ooi Wei Tsang Application Transport Network Link Physical you are here.
HUB Connects multiple workstations, servers, and other devices to a network. Can be used to connect two or more computers to one network port. Handles.
Design and Implementation of a Multi-Channel Multi-Interface Network Chandrakanth Chereddi Pradeep Kyasanur Nitin H. Vaidya University of Illinois at Urbana-Champaign.
Sharing Information across Congestion Windows CSE222A Project Presentation March 15, 2005 Apurva Sharma.
Date : 2010/11/23 Speaker : Chia-Wen Lu 1.  Network Simulation  Introduction to NS2  Simple Simulation Example 2.
JIA-HUI HUANG INSTITUTE OF COMPUTER SCIENCE AND INFORMATION ENGINEERING NATIONAL TAIPEI UNIVERSITY OF TECHNOLOGY Network Simulator – NS-2 1.
Evaluation Strategies Nick Feamster CS 7260 February 26, 2007.
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 Measuring Congestion Responsiveness of Windows Streaming Media James Nichols Advisors: Prof. Mark Claypool Prof. Bob Kinicki Reader: Prof. David Finkel.
Quality evaluation of MPEG4 video transmission over GPRS networks.. Presented by: Abdullah M. Rana Multimedia Communication.
Interconnect simulation. Different levels for Evaluating an architecture Numerical models – Mathematic formulations to obtain performance characteristics.
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.
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,
1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Dynamic Host Configuration Protocol (DHCP)
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Connecting Devices CORPORATE INSTITUTE OF SCIENCE & TECHNOLOGY, BHOPAL Department of Electronics and.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 Based upon slides from Jay Lepreau, Utah Emulab Introduction Shiv Kalyanaraman
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 
The Creation of NS2 Simulated Environment ( 1 ) LI Chengbo
July 7, 2003 Building a Wireless LAN traffic test case in ns2 Radio Science Laboratory Department of Electrical and Computer Engineering The University.
NS-2 Shahin Shayandeh December 2004 Session 1. Ns-2, the Network Simulator  A discrete event simulator Simple model  Focused on modeling network protocols.
Lab 2, Network Simulator ns2
Anetd and the Abone SRI International Livio Ricciulli.
CS 283Computer Networks Spring 2013 Instructor: Yuan Xue.
Chapter 5. An IP address is simply a series of binary bits (ones and zeros). How many binary bits are used? 32.
DMET 602: Networks and Media Lab Amr El Mougy Yasmeen EssamAlaa Tarek.
@Yuan Xue CS 283Computer Networks Spring 2011 Instructor: Yuan Xue.
Deterlab Tutorial CS 285 Network Security. What is Deterlab? Deterlab is a security-enhanced experimental infrastructure (based on Emulab) that supports.
Dynamic Host Configuration Protocol
DMET 602: Networks and Media Lab
Network Simulator Tutorial
Introduction to ns-2: “The” Network Simulator
BOOTP and DHCP Objectives
A comparison of Ad-Hoc Routing Protocols
Computer communications
Chapter 11: Network Address Translation for IPv4
Presentation transcript:

Bridging the Gap: Turning a Network Simulation into an Emulation Mac Newbold

Motivation: Simulation Benefits: Benefits:  Easy to use  Quick development  Low cost Drawbacks: Drawbacks:  Results are only as accurate as the simulator model of the world  May help develop working protocol, but no working “real world” implementation

Motivation: Emulation Benefits: Benefits:  Can be perfectly accurate  It is the real world  Uses real implementations  Develop/test protocol and implementation simultaneously Drawbacks: Drawbacks:  Needs real hardware  Purchase, configure, maintain, etc.  Harder to program, debug, reconfigure

Motivation: Goals Simulation and emulation are both becoming easier to use Simulation and emulation are both becoming easier to use Still usually mutually exclusive Still usually mutually exclusive  Choose one or the other, and stick with it Our Goals: Our Goals:  Bring simulation and emulation closer  Easier transition from one to the other  Take advantage of all the benefits  Eliminate the drawbacks

Current State of the Art Most network simulations use NS Most network simulations use NS  A.k.a. NS-2  Stable, well-known, widely used  Has limited emulation capabilities Emulation platforms are being developed Emulation platforms are being developed  Many small one-time do-it-yourself testbeds  Utah Network Testbed  Hardware provided, easy configuration  Uses NS simulator scripts as input  Flexible, customizable

Plan of Attack Use NS simulator scripts to drive automatic traffic generation in the Testbed Use NS simulator scripts to drive automatic traffic generation in the Testbed  Plan A: Using NS emulation  Plan B: Using other traffic generators Plan A Results: Plan A Results:  NSE (NS-emulator) was very difficult to use  Not even the scripts that came with ns worked  Declared to be infeasible Move on to Plan B Move on to Plan B

Design Plan: Take ns scripts as input, and configure a traffic generator to do the same thing that ns would have done Plan: Take ns scripts as input, and configure a traffic generator to do the same thing that ns would have done Testbed supplies traffic generation OSKit kernels (send, consume, request, reply) Testbed supplies traffic generation OSKit kernels (send, consume, request, reply) Most common ns traffic (and most useful in the Testbed) is CBR/UDP (constant bit rate) Most common ns traffic (and most useful in the Testbed) is CBR/UDP (constant bit rate) Goal: Find CBR/UDP in ns script, and configure send/consume to emulate it Goal: Find CBR/UDP in ns script, and configure send/consume to emulate it

Results Added functionality to the Testbed that Added functionality to the Testbed that  Parses the ns script, getting all necessary traffic generation information  Outputs Testbed commands to correctly configure the kernels on the right nodes Works great! Works great! And now, an example: And now, an example: We took an ns script with CBR/UDP traffic and ran it on the Testbed… Seamlessly! We took an ns script with CBR/UDP traffic and ran it on the Testbed… Seamlessly!

Start with the NS script set ns [new Simulator] set send [$ns node] set consume [$ns node] set router [$ns node] set client [$ns node] set server [$ns node] $ns duplex-link $send $router 100Mb 1ms DropTail $ns duplex-link $router $consume 100Mb 1ms DropTail $ns duplex-link $client $router 100Mb 1ms DropTail $ns duplex-link $router $server 100Mb 1ms DropTail # Insert Testbed commands here to turn on routing in # the router node and to add routes to client/server

End with the NS script #Create a UDP agent and attach it to node send set udp0 [new Agent/UDP] $ns attach-agent $send $udp0 # Create a CBR traffic source and attach it to udp0 set cbr0 [new Application/Traffic/CBR] $cbr0 set packetSize_ 1024 $cbr0 set rate_ 100Mbps $cbr0 attach-agent $udp0 # Create a null agent to consume, and connect them set null0 [new Agent/Null] $ns attach-agent $consume $null0 $ns connect $udp0 $null0 $ns at "$cbr0 start" $ns at "$cbr0 stop" $ns run

NS Simulation Topology

Demonstration We log into the Testbed We log into the Testbed Fill out the form Fill out the form Let the nodes reboot, and we’re ready Let the nodes reboot, and we’re ready On the router node: On the router node:  Check for automatic traffic On the client node: On the client node:  Try sending a lot of packets to the server (through the bottleneck router)  See how many get clobbered

Conclusions The automatic configuration of traffic generation in an emulated environment, based on simulated traffic, is a very useful way to bring simulation and emulation closer together. The automatic configuration of traffic generation in an emulated environment, based on simulated traffic, is a very useful way to bring simulation and emulation closer together. This functionality is now present in the Utah Network Testbed ( This functionality is now present in the Utah Network Testbed (