1 Performance Evaluation of Computer Networks: Part II Objectives r Simulation Modeling r Classification of Simulation Modeling r Discrete-Event Simulation.

Slides:



Advertisements
Similar presentations
McGraw-Hill/Irwin Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. A PowerPoint Presentation Package to Accompany Applied Statistics.
Advertisements

Modeling and Simulation By Lecturer: Nada Ahmed. Introduction to simulation and Modeling.
Introduction into Simulation Basic Simulation Modeling.
Modeling & Simulation. System Models and Simulation Framework for Modeling and Simulation The framework defines the entities and their Relationships that.
 1  Outline  performance measures for a single-server station  discrete-event simulation  hand simulation  process-oriented simulation approach.
Modeling and simulation of systems Slovak University of Technology Faculty of Material Science and Technology in Trnava.
Queueing Model 박희경.
FIN 685: Risk Management Topic 5: Simulation Larry Schrenk, Instructor.
Classification of Simulation Models
Discrete-Event Simulation: A First Course Steve Park and Larry Leemis College of William and Mary.
Discrete Event Simulation How to generate RV according to a specified distribution? geometric Poisson etc. Example of a DEVS: repair problem.
Components and Organization of Discrete-event Simulation Model
1 Performance Evaluation of Computer Networks Objectives  Introduction to Queuing Theory  Little’s Theorem  Standard Notation of Queuing Systems  Poisson.
Simulation.
1 Validation and Verification of Simulation Models.
Simulation Waiting Line. 2 Introduction Definition (informal) A model is a simplified description of an entity (an object, a system of objects) such that.
7/3/2015© 2007 Raymond P. Jefferis III1 Queuing Systems.
CPSC 531: DES Overview1 CPSC 531:Discrete-Event Simulation Instructor: Anirban Mahanti Office: ICT Class Location:
Lab 01 Fundamentals SE 405 Discrete Event Simulation
Basic Simulation Modeling II
Graduate Program in Engineering and Technology Management
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:
Modeling and Simulation
Queuing Networks. Input source Queue Service mechanism arriving customers exiting customers Structure of Single Queuing Systems Note: 1.Customers need.
1 Real-Time Queueing Network Theory Presented by Akramul Azim Department of Electrical and Computer Engineering University of Waterloo, Canada John P.
Introduction to Discrete Event Simulation Customer population Service system Served customers Waiting line Priority rule Service facilities Figure C.1.
(C) 2009 J. M. Garrido1 Object Oriented Simulation with Java.
Probability Review Thinh Nguyen. Probability Theory Review Sample space Bayes’ Rule Independence Expectation Distributions.
Modeling and Simulation CS 313
Modeling & Simulation: An Introduction Some slides in this presentation have been copyrighted to Dr. Amr Elmougy.
1 OM2, Supplementary Ch. D Simulation ©2010 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible.
NETE4631:Capacity Planning (2)- Lecture 10 Suronapee Phoomvuthisarn, Ph.D. /
Networks of Queues Plan for today (lecture 6): Last time / Questions? Product form preserving blocking Interpretation traffic equations Kelly / Whittle.
Queuing Theory Basic properties, Markovian models, Networks of queues, General service time distributions, Finite source models, Multiserver queues Chapter.
Entities and Objects The major components in a model are entities, entity types are implemented as Java classes The active entities have a life of their.
Waiting Lines and Queuing Models. Queuing Theory  The study of the behavior of waiting lines Importance to business There is a tradeoff between faster.
Modeling and Simulation Discrete-Event Simulation
Discrete Event (time) Simulation. What is a simulation? “Simulation is the process of designing a model of a real system and conducting experiments with.
Chapter 10 Verification and Validation of Simulation Models
ECE 466/658: Performance Evaluation and Simulation Introduction Instructor: Christos Panayiotou.
Chapter 2 Fundamental Simulation Concepts
MODELING EXAMPLES Types of model Conceptual Containing components that have not been clearly Identified in terms of theoretic categories such as state,
4.3 More Discrete Probability Distributions NOTES Coach Bridges.
OPERATING SYSTEMS CS 3530 Summer 2014 Systems and Models Chapter 03.
Introduction to discrete event systems
Dr. Anis Koubâa CS433 Modeling and Simulation
Network Performance modelling and simulation
(C) J. M. Garrido1 Objects in a Simulation Model There are several objects in a simulation model The activate objects are instances of the classes that.
Copyright ©: Nahrstedt, Angrave, Abdelzaher, Caccamo1 Queueing Systems.
1 1 Slide Chapter 12 Waiting Line Models n The Structure of a Waiting Line System n Queuing Systems n Queuing System Input Characteristics n Queuing System.
Queuing Theory.  Queuing Theory deals with systems of the following type:  Typically we are interested in how much queuing occurs or in the delays at.
Chapter 2 Basic Simulation Modeling
Csci 418/618 Simulation Models Dr. Ken Nygard, IACC 262B
ENM 307 Simulation Department of Industrial Engineering Anadolu University SPRING 2016 Chapter 1 Basic Simulation Modeling Onur Kaya END 201, Ext: 6439.
 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,
Introduction The objective of simulation – Analysis the system (Model) Analytically the model – a description of some system intended to predict the behavior.
Simulation Examples And General Principles Part 2
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.
Queuing Theory Simulation & Modeling.
Building Valid, Credible & Appropriately Detailed Simulation Models
Chapter 10 Congestion Control in Data Networks and Internets 1 Chapter 10 Congestion Control in Data Networks and Internets.
Modeling and Simulation
Chapter 1 What is Simulation?. Fall 2001 IMSE643 Industrial Simulation What’s Simulation? Simulation – A broad collection of methods and applications.
Traffic Simulation L2 – Introduction to simulation Ing. Ondřej Přibyl, Ph.D.
OPERATING SYSTEMS CS 3502 Fall 2017
Prepared by Lloyd R. Jaisingh
Modeling and Simulation (An Introduction)
ADVANTAGES OF SIMULATION
Chapter 10 Verification and Validation of Simulation Models
MECH 3550 : Simulation & Visualization
Presentation transcript:

1 Performance Evaluation of Computer Networks: Part II Objectives r Simulation Modeling r Classification of Simulation Modeling r Discrete-Event Simulation Modeling  Open Jackson networks

2 Simulation Modeling  A simulation model is a computer program that  Replicates the operations of a business process  Estimates rates at which outputs are produced and resources are consumed  Simulation models test the consistency of the facts, logic, and assumptions  Simulation models test the sensitivity of a process to changes in selected assumptions  Simulation models help decision makers to assess the potential benefits, costs, and risks of alternative processes and strategies

3 Classification of Simulation Models  Static vs. Dynamic Simulation Model  Static Simulation Model is a representation of a system at a particular point in time (i.e., time plays no role oEstimating the probability of winning a soccer game oEstimating the value of π  Dynamic Simulation Model is a representation of a system as it evolves over time oExamples include models of a bank, a processor

4 Classification of Simulation Models  Deterministic vs. Stochastic Simulation Models  Deterministic Simulation Model does not contain any probabilistic components Example: a system of differential equations representing a chemical reaction Output are also deterministic r Stochastic Simulation models are those having at least some random input components m Examples include Queuing models (Interarrival times between two consecutive customers and service times are usually random) m They produce output that are also random

5 Classification of Simulation Models  Continuous vs. Discrete Simulation Models  Discrete Simulation models those representing systems whose state changes at discrete points of time  Continuous Simulation models are those that changes of the system occur continuously as the time evolves

6 Discrete-event Simulation Model  Simulation models we consider here are discrete, dynamic, and stochastic. Such models are called Discrete-Event Simulation Models  Changes occur at a separate points of time r What does it change the system state? Events m Event: is an instantaneous occurrence that changes the state of the system m Examples: Arrival of a new customer, a Departure of a customer from a queuing model

7 Discrete-event Simulation Model: Time- Advance Mechanism r Simulation Clock: is a variable in the simulation model that keeps track of the current simulation time (does not depend on the computer time) Simulation clock 0  There are 2 approaches for advancing the simulation clock : 1.Next-event time advance 2.Fixed-increment time advance 0 tt2  t3  t4  t

8 Discrete-event Simulation Model: Next- Event Time Advance r The most common used approach : 1.The simulation clock is initialized to zero 2.Time of occurrence of future events are determined 3.The simulation clock is then advanced to the time of the occurrence of the next event (the event that is scheduled to occur first) 4.The system is updated taking in account that the event has occurred 5.Update the time of the occurrence of the next events 6.Go to step 3 7.Repeat until a stopping criterion is satisfied.

9 Development and Validation of Simulation Models r Building a conceptual model r Verification Phase r Validation Phase

10 Simulation: Verification Phase r The result of the verification phase answers the following question: m Does the simulation code implement the conceptual model correctly? r Sometimes this check can be done formally m A requirement for this is that the system specification (in our case: the conceptual model of the system) is written in a formal language The Z Formal Specification Language r In many cases only certain aspects of a software system can be verified formally, other aspects have to be tested or checked by other means m code inspection, careful inspection of the generated results / event sequences, etc

11 Simulation: Validation Phase r The result of the validation phase answers the following question: m Is the conceptual model correct or at least adequate? r The reason to ask for adequacy is as follows: r In many real-world applications the requirements are vague, unspecific, random and changing over time. m For example, call arrivals to a central office: do they form a Poisson process? Clearly, the correct answer is: no, m However, it is often observed that the Poisson process is a reasonable or adequate m Therefore, it is not too dangerous to use Poisson arrivals as a model

12 Background: The Poisson Distribution r For our purposes, customers arrive at a location in a truly random fashion. That is, there is no way to predict exactly when someone will arrive r The Poisson distribution describes the number of such arrivals during a given period

13 The Exponential Distribution r If the number of arrivals at a location occurs according to the Poisson distribution then, automatically, the distribution of the intervals between successive arrivals must follow the exponential distribution

14 Probability of t  A r If t is an exponentially distributed random variable then the probability that t takes on a value less than a constant, A, is given by the expression:

15 Example r The average interarrival time for customers at a system is 2 minutes and we want to determine the probability that the time of the next arrival occurs: m Within one minute m Within 2 minutes m Between 1 and 2 minutes hence

16 Example, continued

17 Application to Queuing Theory r Packet–switched networks get congested! r Congestion occurs when the number of packets transmitted approaches network capacity r Objective of congestion control: m keep the number of packets entering the network below the level at which performance drops off dramatically r Can we use our queuing theory knowledge to tackle the congestion control problem?

18 At Saturation Point Two Possible Strategies at Node: 1. Discard any incoming packet if no buffer space is available. Therefore look at the Queue Size 2. Exercise flow control over neighbors m May cause congestion to propagate throughout network m Try to control other entity’s queue size

19 Components of A Simple System r Arrivals: Poisson, renewal, general ergodic processes. r Service: exponential service times, general distributions. r Capacity: finite buffer (size=N) or infinite buffer. r Control: scheduling policy (e.g. FCFS, LCFS, etc) Departure Arrival Queue/BufferServer job/task/customer

20 Two Types of Network Topology r Open Networks: all customers can leave the network r Closed Networks: No customers can leave the network

21 (Open) Jackson Networks r There are J queues r Customers arrive at queue l according to independent Poisson processes with rate r The service times in queue l are exponential with rates r Upon leaving queue l, each customer is sent to queue m with probability and leaves the network with probability r The routing decision is independent of the past evolution of the network

22 An Open Jackson Network i j k m