Modeling & Analysis Mathematical Modeling: Simulation:

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.
Wireless Communication : LAB 3
1 ns-2 Tutorial, part 2 Dave Anderson, Xiaowei Yang (Modified from Polly Huang’s slides)
1 NS Fundamentals (contd..) Padma Haldar USC/ISI.
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 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.
UNIT-IV Computer Network Network Layer. Network Layer Prepared by - ROHIT KOSHTA In the seven-layer OSI model of computer networking, the network layer.
A Mobile Infrastructure Based VANET Routing Protocol in the Urban Environment School of Electronics Engineering and Computer Science, PKU, Beijing, China.
Emulatore di Protocolli di Routing per reti Ad-hoc Alessandra Giovanardi DI – Università di Ferrara Pattern Project Area 3: Problematiche di instradamento.
Katz, Stoica F04 EECS 122 Introduction to Computer Networks (Fall 2003) Network simulator 2 (ns-2) Department of Electrical Engineering and Computer Sciences.
Exploiting the Unicast Functionality of the On- Demand Multicast Routing Protocol Sung-Ju Lee, William Su, and Mario Gerla
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.
COMPUTER NETWORK: MODELING AND SIMULATION -Abhaykumar Kumbhar Computer Science Department.
Network Simulator (NS2) 1 Tutorial on Network Simulator (NS2) Hemant Kumar Rath Infonet Lab, Dept of Electrical Engineering IIT Bombay, Mumbai
QualNet 2014/05/ 尉遲仲涵. Outline Directory Structure QualNet Basic Message & Event QualNet simulation architecture Protocol Model Programming.
1 Ns Tutorial: Case Studies John Heidemann (USC/ISI) Polly Huang (ETH Zurich) March 14, 2002.
Wireless Networking and Systems CSE 590 ns2 tutorial.
NS2 - Appendix Ming-Feng Yang. 2 2 Outline NS2 Models NS2 Directory Structure Extending NS2 in OTcl Extending NS2 in C++ NS2 related links.
Network Simulator-2 Sandeep singla 1998A2A7540. NS-2 A discrete event simulator Focused on modeling network protocols –Wired, wireless –TCP,UDP,unicast,multicast.
1 Network Simulator Tutorial. 2 Network Simulation * Motivation: Learn fundamentals of evaluating network performance via simulation Overview: fundamentals.
Internet Computing KUT Youn-Hee Han
Load-Balancing Routing in Multichannel Hybrid Wireless Networks With Single Network Interface So, J.; Vaidya, N. H.; Vehicular Technology, IEEE Transactions.
Small-Scale and Large-Scale Routing in Vehicular Ad Hoc Networks Wenjing Wang 1, Fei Xie 2 and Mainak Chatterjee 1 1 School of Electrical Engineering and.
Multicast ad hoc networks Multicast in ad hoc nets Multicast in ad hoc nets Review of Multicasting in wired networks Review of Multicasting in wired networks.
PRoPHET+: An Adaptive PRoPHET- Based Routing Protocol for Opportunistic Network Ting-Kai Huang, Chia-Keng Lee and Ling-Jyh Chen.
1 ns-2 Tutorial Haobo Yu, Nader Salehi USC/ISI
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.
UCLA ENGINEERING Computer Science RobustGeo: a Disruption-Tolerant Geo-routing Protocol Ruolin Fan, Yu-Ting Yu *, Mario Gerla UCLA, Los Angeles, CA, USA.
The Creation of NS2 Simulated Environment ( 1 ) LI Chengbo
Computer Simulation of Networks ECE/CSC 777: Telecommunications Network Design Fall, 2013, Rudra Dutta.
Indian Institute of Technology Bombay 1 Communication Networks Prof. D. Manjunath
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 
HoWL: An Efficient Route Discovery Scheme Using Routing History in Mobile Ad Hoc Networks Faculty of Environmental Information Mika Minematsu
© THE UNIVERSITY OF WAIKATO TE WHARE WANANGA O WAIKATO 1 ns-2 TCP Simulations with The Network Simulation Cradle Sam Jansen and Anthony McGregor.
Interaction and Animation on Geolocalization Based Network Topology by Engin Arslan.
Realistic Mobility Models for Vehicular Ad hoc Network (VANET) Simulations ITST 高弘毅 洪佳瑜 蔣克欽.
Network Layer COMPUTER NETWORKS Networking Standards (Network LAYER)
Ad Hoc Wireless Routing
DMET 602: Networks and Media Lab
(Modified from Polly Huang’s and last year’s original)
Analysis the performance of vehicles ad hoc network simulation based
Delay-Tolerant Networks (DTNs)
Empirically Characterizing the Buffer Behaviour of Real Devices
Mobicom ‘99 Per Johansson, Tony Larsson, Nicklas Hedman
Introduction to ns-2: “The” Network Simulator
NS2 (and possible directions for mobile routing simulation) Kevin Fall
ODMRP Enhancement.
GeoTORA: A Protocol for Geocasting in Mobile Ad Hoc Networks
Communication Networks NETW 501 Tutorial 3
Computer Simulation of Networks
Ns Tutorial: Case Studies
A New Multipath Routing Protocol for Ad Hoc Wireless Networks
Karthik Sadasivam Banuprasad Samudrala
Pong: Diagnosing Spatio-Temporal Internet Congestion Properties
PRESENTATION COMPUTER NETWORKS
Vehicular Ad-hoc Networks
Chapter 4 Network Layer Computer Networking: A Top Down Approach 5th edition. Jim Kurose, Keith Ross Addison-Wesley, April Network Layer.
Ns-3 Tutorial Xin Li.
Ling-Jyh Chen and Ting-Kai Huang
Presentation transcript:

Modeling & Analysis Mathematical Modeling: Simulation: probability theory queuing theory application to network models Simulation: topology models traffic models dynamic models/failure models protocol models

Simulation tools VINT (Virtual InterNet Testbed) & NS-2: http://www.isi.edu/nsnam/vint [USC/ISI, UCB,LBL,Xerox] network simulator (NS), network animator (NAM) library of protocols: TCP variants multicast/unicast routing routing in ad-hoc networks real-time protocols (RTP) …. Other channel/protocol models & test-suites extensible framework (Tcl/tk & C++)

GlomoSim (QualNet): UCLA, parsec simulator OPNET: commercial simulator strength in wireless channel modeling GlomoSim (QualNet): UCLA, parsec simulator ONE (DTN sim), SUMO (vehicular mobility), OMNET++,... (more later) Research resources: ACM & IEEE journals and conferences SIGCOMM, INFOCOM, Transactions on Networking (TON), MobiCom IEEE Computer, ACM Communications magazine www.acm.org, www.ieee.org

Network Simulation (NS) One tool to simulation network protocols for the Internet is the network simulator (NS) The simulation environment needs to be set-up carefully to produce meaningful results The simulation set-up is called ‘simulation scenario’

Simulation Scenarios In general, a simulation scenario consists of three different main components (or dimensions) Routed Topology Connections, Traffic and Agents/end-host protocols External events and Failures

Routed Topology Defines the number of nodes and their connectivity Defines the links connecting the nodes, their bandwidth, delay, queuing discipline and other characteristics Defines the routing protocols running in the nodes in terms of unicast and multicast routing Can use topology generators (e.g., GT-ITM)

Connections, Traffic and Agents Agents are end-host protocols, such as TCP, ftp, Telnet, UDP.. etc. Traffic source can be: (uses a traffic model) constant bit rate (CBR) at rate R with distribution (Poisson or Pareto) trace driven Connection definition includes spatial distribution of connections (TCP sender/receiver, or group members)

External events and Failures External events include the temporal distribution of connections: start and end of TCP connections join/leave patterns for multicast group members Failures include link failures, packet loss patterns and congestion patterns and may follow a failure model or distribution Events may also include movement patterns of mobile hosts

The network simulator (NS) It is a packet-level discrete-event simulator The simulation engine is written in C++ and mainly handles the event-queue and per packet processing (such as TCP and forwarding caches) Most protocols (such as unicast/multicsat) routing protocols are implemented in Otcl (Object Tcl) Check the vint project catarina.usc.edu/vint, and follow the on-line step-by-step tutorial

Getting Started Download the ns from: Install ns in your system http://www.isi.edu/nsnam/ns Tcl/tk, otcl, tclcl, ns Install ns in your system Binary release is provided for windows 9x/NT NS-allinone package is strongly recommended Download nam if visualization is needed http://www.isi.edu/nsnam/nam Included in ns-allinone package Get help from ns-users@isi.edu check the mailing lists on the ns web page

What is ns otcl: Object-oriented support tclcl: C++ and otcl linkage Event Scheduler ns-2 tclcl Network Component otcl tcl8.0 otcl: Object-oriented support tclcl: C++ and otcl linkage Discrete event scheduler Data network (the Internet) components

Internals Discrete Event Scheduler Network Topology Routing Transport Application Packet Flow

Discrete Event Scheduler time_, uid_, next_, handler_ head_ -> head_ -> handler_ -> handle() insert time_, uid_, next_, handler_

Network Topology - Node Addr Classifier Port Classifier classifier_ dmux_ entry_ Node entry Unicast Node Multicast Classifier classifier_ dmux_ entry_ Node entry Multicast Node multiclassifier_

Network Topology - Link enqT_ queue_ deqT_ drophead_ drpT_ link_ ttl_ n1 entry_ head_

Routing n0 n1 1 Addr Classifier Port Classifier classifier_ dmux_ entry_ Node entry enqT_ queue_ deqT_ drophead_ drpT_ link_ ttl_ n1 entry_ head_ 1

Routing (cont.) n0 n1 1 1 Addr Classifier Port Classifier classifier_ dmux_ entry_ Addr Classifier Port Classifier classifier_ dmux_ entry_ 1 1 Link n0-n1 Link n1-n0

Transport n0 n1 1 1 Port Classifier Port Classifier dst_=1.0 dst_=0.0 Addr Classifier Agent/TCP Addr Classifier Agent/TCPSink agents_ agents_ 1 1 dmux_ dmux_ Link n0-n1 entry_ entry_ classifier_ classifier_ Link n1-n0

Application n0 n1 1 1 Port Classifier Application/FTP Port Classifier dst_=1.0 dst_=0.0 Addr Classifier Agent/TCP Addr Classifier Agent/TCPSink agents_ agents_ 1 1 dmux_ dmux_ Link n0-n1 entry_ entry_ classifier_ classifier_ Link n1-n0

Packet Flow n0 n1 1 1 Port Classifier Application/FTP Port Classifier dst_=1.0 dst_=0.0 Addr Classifier Agent/TCP Addr Classifier Agent/TCPSink 1 1 Link n0-n1 entry_ entry_ Link n1-n0

NS\VINT web pages\tutorial: http://www.isi.edu/nsnam/vint http://www.isi.edu/nsnam/ns/tutorial/index.html

The ONE (Opportunistic Network Environment) Simulator

* Ari Keränen, Jörg Ott and Teemu Kärkkäinen: The ONE Simulator for DTN Protocol Evaluation. SIMUTools'09: 2nd International Conference on Simulation Tools and Techniques. Rome, March 2009.

DTN Protocols Supported Direct Delivery: single-copy routing protocol a node carries messages until it meets its final destination First Contact: single-copy routing protocol, a node forwards the message to the first node they encounter, which results in a “random walk” search for the destination node Spray-and-Wait: n-copy routing protocol, limits number of copies distributes (“sprays”) copies to contacts until number of copies is exhausted. Three routing protocols perform variants of flooding: Epidemic replicates messages to all encountered peers PRoPHET estimates the node with highest “likelihood” of delivering the message based on node encounter history. MaxProp floods the messages but explicitly clears them once a copy gets delivered to the destination. Sends messages based on hop counts and message delivery probabilities based on previous encounters. Routing capabilities of simulators such as ns-2 or dtnsim2 can also be used in conjunction with ONE. Others: Social-based forwarding: bubble-rap, simbet, profile-cast, etc.

Mobility Models Supported Random Walk (RW) and Random Waypoint (RWP) these models are popular to their simplicity they have various known shortcomings To better model real-world mobility, map-based mobility (MBM) constrains node movement to predefined paths and routes derived from real map data Further realism added by the Working Day Movement (WDM) model, that attempts to model typical human movement patterns during working days

CORSIM (Corridor Traffic Simulator) Simulates vehicles on highways/streets Micro-level traffic simulator Simulates intersections, traffic lights, turns, etc. Simulates various types of cars (trucks, regular) Used mainly in transportation literature (and recently for vehicular networks) Does not incorporate communication or protocols Developed through FHWA (federal highway administration) http://ops.fhwa.dot.gov Need to buy license

CORSIM

SUMO: Simulation of Urban Mobility Vehicular mobility simulation Takes input from maps, including open street maps (OSM) Output can interface to protocols through other simulators (e.g., OMNET++) * Michael Behrisch, Laura Bieker, Jakob Erdmann, Daniel Krajzewicz, “SUMO – Simulation of Urban MObility An Overview”, SIMUL 2011 : The Third International Conference on Advances in System Simulation, 2011

En Route Framework Roozbeh Ketabi, Babak Alipour, Ahmed Helmy, “En Route: Towards Vehicular Mobility Scenario Generation at Scale”, IEEE INFOCOM – SmartCity, May 2017 (to appear).

Simulation Experiment: Vehicular Simulation using SUMO 1- install SUMO and gett acquainted with it Use provided links for installation and initial experimentation Run Cologne scenario for 2 hours 2- Use Open Street Maps (OSM) to get the map of Gainesville. Use built-in tools to generate traffic (random). 3- Perform measurement and compile graphing code to analyze the outputs. This way you are involved more with the outputs. Compare Cologne vs random Gainesville or random Cologne on one or two metrics. 4- (open ended, bonus points!) Experiment with VEINS framework and Networking simulators that run on top of SUMO  (uses OMNet++). Share your experience!

SUMO Links and Resources SUMO main page (link to download for windows is here too): http://www.dlr.de/ts/en/desktopdefault.aspx/tabid-9883/16931_read-41000/ SUMO wiki: http://sumo.dlr.de/wiki/Simulation_of_Urban_MObility_-_Wiki Tutorials page (very helpful): http://sumo.dlr.de/wiki/Tutorials scenarios: http://sumo.dlr.de/wiki/Data/Scenarios Cologne scenario: http://sumo.dlr.de/wiki/Data/Scenarios/TAPASCologne Cologne scenario dl link from sourceforge: https://sourceforge.net/projects/sumo/files/traffic_data/scenarios/TAPASCologne/TAPASCologne-0.24.0.7z/download Documentation for SUMO program: http://sumo.dlr.de/wiki/SUMO Doc. for NetConvert (used for converting OSM to SUMO maps): http://sumo.dlr.de/wiki/NETCONVERT Doc. for DuaRouter: http://sumo.dlr.de/wiki/DUAROUTER OSM Web wizard (optional use as we used both this and querying OSM with other means): http://sumo.dlr.de/wiki/Tools/Import/OSM#osmWebWizard.py