1 Simulation Methodology H Plan: –Introduce basics of simulation modeling –Define terminology and methods used –Introduce simulation paradigms u Time-driven.

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

Simulation - An Introduction Simulation:- The technique of imitating the behaviour of some situation or system (economic, military, mechanical, etc.) by.
1 Overview of Simulation When do we prefer to develop simulation model over an analytic model? When not all the underlying assumptions set for analytic.
Lookahead. Outline Null message algorithm: The Time Creep Problem Lookahead –What is it and why is it important? –Writing simulations to maximize lookahead.
Modeling & Simulation. System Models and Simulation Framework for Modeling and Simulation The framework defines the entities and their Relationships that.
Simulation. Example: A Bank Simulator We are given: –The number of tellers –The arrival time of each customer –The amount of time each customer requires.
1 Statistical Inference H Plan: –Discuss statistical methods in simulations –Define concepts and terminology –Traditional approaches: u Hypothesis testing.
FIN 685: Risk Management Topic 5: Simulation Larry Schrenk, Instructor.
Simulation Where real stuff starts. ToC 1.What, transience, stationarity 2.How, discrete event, recurrence 3.Accuracy of output 4.Monte Carlo 5.Random.
PTIDES: Programming Temporally Integrated Distributed Embedded Systems Yang Zhao, EECS, UC Berkeley Edward A. Lee, EECS, UC Berkeley Jie Liu, Microsoft.
Classification of Simulation Models
Parallel Simulation etc Roger Curry Presentation on Load Balancing.
Discrete-Event Simulation: A First Course Steve Park and Larry Leemis College of William and Mary.
1 Random Number Generation H Plan: –Introduce basics of RN generation –Define concepts and terminology –Introduce RNG methods u Linear Congruential Generator.
Components and Organization of Discrete-event Simulation Model
Copyright © 2005 Department of Computer Science CPSC 641 Winter Simulation Methodology Plan: –Introduce basics of simulation modeling –Define terminology.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 Introduction to Simulation Shiv Kalyanaraman Rensselaer Polytechnic Institute
Chapter 14 Simulation. Monte Carlo Process Statistical Analysis of Simulation Results Verification of the Simulation Model Computer Simulation with Excel.
CSCE Monte Carlo Methods When you can’t do the math, simulate the process with random numbers Numerical integration to get areas/volumes Particle.
Parallel and Distributed Simulation Introduction and Motivation By Syed S. Rizvi.
Descriptive Modelling: Simulation “Simulation is the process of designing a model of a real system and conducting experiments with this model for the purpose.
Robert M. Saltzman © DS 851: 4 Main Components 1.Applications The more you see, the better 2.Probability & Statistics Computer does most of the work.
Scalable Approximate Query Processing through Scalable Error Estimation Kai Zeng UCLA Advisor: Carlo Zaniolo 1.
Computer Simulation A Laboratory to Evaluate “What-if” Questions.
Slide - 1 Dr Terry Hinton 6/9/05UniS - Based on Slides by Micro Analysis & Design An example of a Simulation Simulation of a bank: Three tasks or processes:
1 Performance Evaluation of Computer Networks: Part II Objectives r Simulation Modeling r Classification of Simulation Modeling r Discrete-Event Simulation.
1 Enabling Large Scale Network Simulation with 100 Million Nodes using Grid Infrastructure Hiroyuki Ohsaki Graduate School of Information Sci. & Tech.
Chapter 4 – Modeling Basic Operations and Inputs  Structural modeling: what we’ve done so far ◦ Logical aspects – entities, resources, paths, etc. 
Parallel and Distributed Simulation Hardware Platforms Simulation Fundamentals.
Planning and Analysis Tools to Evaluate Distribution Automation Implementation and Benefits Anil Pahwa Kansas State University Power Systems Conference.
Performance Model & Tools Summary Hung-Hsun Su UPC Group, HCS lab 2/5/2004.
Stochastic DAG Scheduling using Monte Carlo Approach Heterogeneous Computing Workshop (at IPDPS) 2012 Extended version: Elsevier JPDC (accepted July 2013,
Parallel and Distributed Simulation Introduction and Motivation.
1 Andreea Chis under the guidance of Frédéric Desprez and Eddy Caron Scheduling for a Climate Forecast Application ANR-05-CIGC-11.
10/26/20151 GC16/3011 Functional Programming Lecture 21 Parallel Graph Reduction.
Parallel and Distributed Simulation Introduction and Motivation.
Interconnect simulation. Different levels for Evaluating an architecture Numerical models – Mathematic formulations to obtain performance characteristics.
Monte Carlo Process Risk Analysis for Water Resources Planning and Management Institute for Water Resources 2008.
CDA6530: Performance Models of Computers and Networks Chapter 8: Statistical Simulation --- Discrete-Time Simulation TexPoint fonts used in EMF. Read the.
Simulation Techniques Overview Simulation environments emulation/ exec- driven event- driven sim trace- driven sim stochastic sim Workload parameters System.
Discrete Event Simulation & VHDL Prof. K. J. Hintz Dept. of Electrical and Computer Engineering George Mason University.
CPSC 441 Tutorial TA: Fang Wang. Simulation Methodology Plan: Introduce basics of simulation modeling Define terminology and methods used Introduce simulation.
Validating a Random Number Generator Based on: A Test of Randomness Based on the Consecutive Distance Between Random Number Pairs By: Matthew J. Duggan,
Chapter 2 Fundamental Simulation Concepts
CS 484 Designing Parallel Algorithms Designing a parallel algorithm is not easy. There is no recipe or magical ingredient Except creativity We can benefit.
Introduction to Simulation Andy Wang CIS Computer Systems Performance Analysis.
OPERATING SYSTEMS CS 3530 Summer 2014 Systems and Models Chapter 03.
High Level Architecture Time Management. Time management is a difficult subject There is no real time management in DIS (usually); things happen as packets.
MAT 4830 Mathematical Modeling 04 Monte Carlo Integrations
SS r SS r This model characterizes how S(t) is changing.
 Simulation enables the study of complex system.  Simulation is a good approach when analytic study of a system is not possible or very complex.  Informational,
Network Systems Lab. Korea Advanced Institute of Science and Technology No.1 Ch. 1 Introduction EE692 Parallel and Distribution Computation | Prof. Song.
Clock Synchronization (Time Management) Deadlock Avoidance Using Null Messages.
Page 1 2P13 Week 1. Page 2 Page 3 Page 4 Page 5.
Simulation. Types of simulation Discrete-event simulation – Used for modeling of a system as it evolves over time by a representation in which the state.
Discrete-Event System Simulation in Java. Discrete Event Systems New dynamic systems New dynamic systems Computer and communication networks Computer.
OPERATING SYSTEMS CS 3502 Fall 2017
Parallel and Distributed Simulation
Parallel and Distributed Simulation Techniques
CPSC 531: System Modeling and Simulation
Introduction to Simulation
CPSC 531: System Modeling and Simulation
Simulation Carey Williamson Department of Computer Science
Statistical Methods Carey Williamson Department of Computer Science
Towards Next Generation Panel at SAINT 2002
COMP60621 Designing for Parallelism
Carey Williamson Department of Computer Science University of Calgary
Carey Williamson Department of Computer Science University of Calgary
MECH 3550 : Simulation & Visualization
Computational issues Issues Solutions Large time scale
Presentation transcript:

1 Simulation Methodology H Plan: –Introduce basics of simulation modeling –Define terminology and methods used –Introduce simulation paradigms u Time-driven simulation u Event-driven simulation u Monte Carlo simulation –Technical issues for simulations u Random number generation u Statistical inference

2 Performance Evaluation Analytical Methods Simulation Methods Experimental Methods

3 Performance Evaluation Analytical Methods Simulation Methods Experimental Methods Time-DrivenEvent-DrivenMonte Carlo...

4 Performance Evaluation Analytical Methods Simulation Methods Experimental Methods Time-DrivenEvent-DrivenMonte Carlo Sequential ParallelDistributed...

5 Time-Driven Simulation H Time advances in fixed size steps H Time step = smallest unit in model H Check each entity to see if state changes H Well-suited to continuous systems –e.g., river flow, factory floor automation H Granularity issue: –Too small: slow execution for model –Too large: miss important state changes

6 Event-Driven Simulation (1 of 2) H Discrete-event simulation (DES) H System is modeled as a set of entities that affect each other via events (msgs) H Each entity can have a set of states H Events happen at specific points in time (continous or discrete), and trigger state changes in the system H Very general technique, well-suited to modeling discrete systems (e.g, queues)

7 Event-Driven Simulation (2 of 2) H Typical implementation involves an event list, ordered by time H Process events in (non-decreasing) timestamp order, with seed event at t=0 H Each event can trigger 0 or more events –Zero: “dead end” event –One: “sustaining” event –More than one: “triggering” event H Simulation ends when event list is null, or desired time duration has elapsed

8 Sequential Simulation H Assumes a single processor system H Uses central event list (ordered by time) H Global state information available H Single, well-defined notion of time H Many clever implementation techniques and data structures for optimizing event list management –Linked list; doubly-linked list; priority queue; heap; calendar queue; trie structure

9 Parallel Simulation H Assumes multiple processors, often tightly coupled, with shared memory H Need fast inter-process communication H Shared state vs. no shared state H Event list: centralized or not? –Central event list can be a bottleneck –Decentralized requires careful coordination H Potentially different views of time H Conservative vs. Optimistic execution

10 Distributed Simulation H Assumes multiple processors, but geographically distributed (LAN/WAN) H Inter-process communication becomes expensive because of large latencies H Need to find right balance between computation and communication H Granularity of task scheduling H Similar technical issues to parallel simulation with respect to concurrency

11 Monte Carlo Simulation H Estimating an answer to some difficult problem using numerical approximation, based on random numbers H Examples: numerical integration, primality testing, WSN coverage H Suited to stochastic problems in which probabilistic answers are acceptable H Might be one-sided answers (e.g., prime) H Can bound probability to some epsilon

12 Summary H Simulation methods offer a range of general-purpose approaches for perf eval H Simulation modeler must determine the appropriate aspects of system to model H “The hardest part about simulation is deciding what not to model.” - M. Lavigne H Many technical issues: RNG, validation, statistical inference, efficiency H We will look at some examples soon