CS433 Modeling and Simulation Lecture 01 Introduction 1 Dr. Anis Koubâa Al-Imam Mohammad Ibn Saud University 19.

Slides:



Advertisements
Similar presentations
Categories of I/O Devices
Advertisements

1 CS533 Modeling and Performance Evaluation of Network and Computer Systems Capacity Planning and Benchmarking (Chapter 9)
Simulation - An Introduction Simulation:- The technique of imitating the behaviour of some situation or system (economic, military, mechanical, etc.) by.
Modeling and Simulation By Lecturer: Nada Ahmed. Introduction to simulation and Modeling.
Executional Architecture
Modeling and simulation of systems Slovak University of Technology Faculty of Material Science and Technology in Trnava.
CS 408 Computer Networks Congestion Control (from Chapter 05)
Lecture 3 Concepts of Discrete-Event Simulation. 2 Discrete Event Model  In the discrete approach to system simulation, state changes in the physical.
Performance Measurement and Management IACT 418 IACT 918 Corporate Network Planning.
Queuing Analysis Based on noted from Appendix A of Stallings Operating System text 6/10/20151.
Discrete-Event Simulation: A First Course Steve Park and Larry Leemis College of William and Mary.
OS Fall ’ 02 Performance Evaluation Operating Systems Fall 2002.
Performance Evaluation
OS Fall ’ 02 Performance Evaluation Operating Systems Fall 2002.
Parallel and Distributed Simulation Introduction and Motivation By Syed S. Rizvi.
Lab 01 Fundamentals SE 405 Discrete Event Simulation
Operations Research I Lecture 1-3 Chapter 1
COMPUTER NETWORK: MODELING AND SIMULATION -Abhaykumar Kumbhar Computer Science Department.
Application of Methods of Queuing Theory to Scheduling in GRID A Queuing Theory-based mathematical model is presented, and an explicit form of the optimal.
Modeling and Simulation
Reformatted slides from the textbook, C++ How to Program, 6/e Pearson Education, Inc. All rights reserved Chapter 3. [Lecture 01] Introduction to.
Discrete Event Systems Simulation
Discrete-Event System Simulation
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.
Chapter 1 Introduction to Simulation
1 Validation & Verification Chapter VALIDATION & VERIFICATION Very Difficult Very Important Conceptually distinct, but performed simultaneously.
CS433: Modeling and Simulation Dr. Anis Koubâa Al-Imam Mohammad Ibn Saud University 27 February 2010 Lecture 02: Modeling.
1 Performance Evaluation of Computer Networks: Part II Objectives r Simulation Modeling r Classification of Simulation Modeling r Discrete-Event Simulation.
Capacity analysis of complex materials handling systems.
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.
CS433: Modeling and Simulation Dr. Anis Koubâa Al-Imam Mohammad Ibn Saud University 27 February 2010 Lecture 01: Introduction.
1 Performance Evaluation of Computer Systems and Networks Introduction, Outlines, Class Policy Instructor: A. Ghasemi Many thanks to Dr. Behzad Akbari.
1 Delay Tolerant Network Routing Sathya Narayanan, Ph.D. Computer Science and Information Technology Program California State University, Monterey Bay.
Parallel and Distributed Simulation Introduction and Motivation.
CS433 Modeling and Simulation Lecture 12 Queueing Theory Dr. Anis Koubâa 03 May 2008 Al-Imam Mohammad Ibn Saud University.
Parallel and Distributed Simulation Introduction and Motivation.
Modeling and Simulation Discrete-Event Simulation
Interconnect simulation. Different levels for Evaluating an architecture Numerical models – Mathematic formulations to obtain performance characteristics.
Interconnect simulation. Different levels for Evaluating an architecture Numerical models – Mathematic formulations to obtain performance characteristics.
ECE 466/658: Performance Evaluation and Simulation Introduction Instructor: Christos Panayiotou.
Lecture 1 – Operations Research
Chapter 3 System Performance and Models Introduction A system is the part of the real world under study. Composed of a set of entities interacting.
Workpackage 3 New security algorithm design ICS-FORTH Ipswich 19 th December 2007.
12/7/2015© 2008 Raymond P. Jefferis III1 Simulation of Computer Systems.
Measuring the Capacity of a Web Server USENIX Sympo. on Internet Tech. and Sys. ‘ Koo-Min Ahn.
OPERATING SYSTEMS CS 3530 Summer 2014 Systems and Models Chapter 03.
Computer Simulation of Networks ECE/CSC 777: Telecommunications Network Design Fall, 2013, Rudra Dutta.
Modeling and Simulation Introduction 1 TA. May Almousa Princess Nora Bint Abdul Rahman University.
Dr. Anis Koubâa CS433 Modeling 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.
CS433 Modeling and Simulation Lecture 09 – Part 02 Discrete Events Simulation Dr. Anis Koubâa 27 Dec 2008 Al-Imam.
 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,
NETW 707: Modeling & Simulation Course Instructor: Tallal Elshabrawy Instructor Office: C3.321 Instructor Teaching.
Introduction To Modeling and Simulation 1. A simulation: A simulation is the imitation of the operation of real-world process or system over time. A Representation.
Introduction to Simulation What is a simulation? A system that represents or emulates the behavior of another system over time; a computer simulation is.
Traffic Simulation L2 – Introduction to simulation Ing. Ondřej Přibyl, Ph.D.
OPERATING SYSTEMS CS 3502 Fall 2017
Modeling and Simulation (An Introduction)
Chapter 1.
Understanding the OSI Reference Model
Computer Simulation of Networks
Modeling and Simulation: Fundamentals and Implementation
Discrete-Event System Simulation
Internet Protocols IP: Internet Protocol
Performance Evaluation of Computer Networks
Computer Systems Performance Evaluation
Performance Evaluation of Computer Networks
Modeling and Simulation
Presentation transcript:

CS433 Modeling and Simulation Lecture 01 Introduction 1 Dr. Anis Koubâa Al-Imam Mohammad Ibn Saud University 19 Oct 2008

2 Who I Am? 2  Dr. Anis Koubâa  Assistant Professor at CS Dept.  Research Associate at ISEP/IPP-HURRAY! (Portugal)  (Teaching):  Phone:  Background  PhD from INPL/LORIA, Nancy (France)  Master from UHP Nancy I (France)  My Research  Main: Wireless Sensor Networks, Cyber-Physical Systems, Real- Time Embedded Systems, Quality-of-Service, Performance Evaluation  Other: Security

3 Goals for Today 3  Understand what is simulation and what is modelling  Some applications of simulation and modelling  What is the Life Cycle of the Modelling Process

4 Keywords 4  System  It is a collection of entities that act and interact together toward the accomplishment of some logical end (computer, network, communication systems, etc.)  Simulation  It is an experiment in a computer where the real system is replaced by the execution of the program  It is a program that mimics (imitate) the behaviour of the real system

5 Keywords 5  Model  It is a simplification of the reality  A (usually miniature) representation of something; an example for imitation or emulation  A model can be Analytical (Queuing Theory) or by Simulation.  Performance Evaluation of a System means quantifying the service delivered by the System  Experimental, Analytical, or by simulation

6 Example 6 Real System (Motherboard) Models of the System

7 Example 7 Simulation Models of the System

8 Example 8 Models of the System

9 Example 9 Models of the System

10 Simulation 10

11 Why we need to Simulate? 11  It may be too difficult, risky, or expensive to observe a real, operational system  Parts of the system may not be observable (e.g., internals of a silicon chip or biological system)  Uses of simulations  Analyze systems (performance, behavior) before they are built  Reduce the number of design errors  Optimize design to improve the behavior  Analyze operational systems  Create virtual environments for training, entertainment

12 Applications of Simulation 12  System Analysis  Telecommunication Networks (ATM, IP, TCP, UDP, WiFi …)  Transportation systems (Traffic, Urban planning, Metro Planning, …)  Electronic systems (e.g., microelectronics, computer systems)  Battlefield simulations (blue army vs. red army)  Ecological systems, Manufacturing systems, Logistics …  Virtual Environments  Physical phenomena (e.g. Trajectory of projectiles)  training and entertainment (e.g., military, medicine, emergency planning, flight simulation)

13 A Few Example Applications War gaming: test strategies; training Flight Simulator Transportation systems: improved operations; urban planning Computer communication network: protocol design Parallel computer systems: developing scalable software Games

14 Computer Simulation 14  A Computer Simulation is a computer program  that attempts to simulate an abstract model of a particular system.  that describes the behavior of a real (physical) system and its evolution in time  How it works?  The behavior of the system is described by state variables  The simulation program modifies the states variables to emulate the evolution

15 Model Development Life Cycle Define goals, objectives of study Develop conceptual model Develop specification of model Develop computational model Verify model Validate model Fundamentally an iterative process

16 Model Development Life Cycle  Determine Goals and Objectives  What do you what to do with the model It may be an end in itself More often, it is a means to an end  Goals may not be known when you start the project!  One often learns things along the way  Develop Conceptual Model  An abstract representation of the system What should be included in model? What can be left out? What abstractions should be used? What is the level of details?  Appropriate choice depends on the purpose of the model

17 Model Development Life Cycle  Develop Specification Model  A more detailed specification of the model including more specifics  Collect data to populate model Example: Traffic: Road geometry, signal timing, expected traffic demand, driver behavior Communication: network topology, message type, inter-arrival time Empirical data or probability distributions often used  Develop a Computational Model  Executable simulation model  Software approach General purpose programming language Special purpose simulation language Simulation package  Other (non-functional) requirements Performance Interoperability with other models/tools/data

18 Model Development Life Cycle  Verification  Did I Build the Model Right? هل أنجزت النموذج بطريقة صحيح؟  Does the computational model match the specification model?  Debugging: checking if the program contains any programming errors.  Verification is different from Validation: (see model validation)!  Validation  Did I Build the Right Model? هل أنجزت النموذج الصحيح؟  Does the computational model match the actual (or envisioned) system?  Typically, the validation of a simulation model can be done by comparing Measurements of actual system An analytic (mathematical) model of the system Another simulation model  By necessity, validation is always an incomplete activity!  Often can only validate portions of the model  If you can validate the simulation with 100% certainty, why build the simulation?

19 Validation  Did I build the right model?  Does the computational model match the actual (or envisioned) system?  Typically, compare against  Measurements of actual system  An analytic (mathematical) model of the system  Another simulation model  By necessity, always an incomplete activity!  Often can only validate portions of the model  If you can validate the simulation with 100% certainty, why build the simulation?

20 Performance Evaluation 20

21 Performance Metrics 21  The Performance Metric is a measurable quantity that precisely captures what we want to measure (response time, throughput, delay, etc.).  For example, In computer systems, we might evaluate  The response time of a processor to execute a given task.  The execution time of two programs in a multi-processor machine.  In Network systems, we might evaluate  The (maximum/average) delay experienced by a voice packet to reach the destination  The throughput of the network  The required bandwidth to avoid congestion

22 What does affect the performance? 22  The performance of a system is dramatically affected by the Workload  The Workload: it characterises the quantity and the nature of the system inputs  In the context of Web Servers, system inputs are http requests (GET or POST requests). The workload characterises  the intensity of the requests: how many requests are received by the web server. High intensities deteriorate the performance.  The nature of the requests: the request can be simple GET request or a request that require the access of a remote database. The performance will be different for different request types.  Benchmarks: used to generate loads that is intended to mimic a typical user behaviour.

23  Why to use models?  Implementation on real systems is very complex and costly,  Experimentation on real systems may be dangerous (e.g. chemical systems)  If models adequately describes the reality, experimenting with them can save money and time, and reduce the development complexity  When to use simulations?  Analytic models may be very complex to evaluate, and may lead to over implication of the real system  Simulation can be a good alternative to evaluate the system behavior very close to reality Why using Models and Simulations?

24  State: A variable characterizing an attribute in the system  the number of (messages/clients) in a queue waiting to be processed  Event: An occurrence at a point in time which may change the state of the system  Arrival/Departure of a message or start transmitting a message  Entity: An object that passes through the system  Message (or packet) in a network, A job of a task in computer  Queue: A queue is buffer where entities are waiting for something to happen for any reason  Network: Queues are implemented in routers to handle messages  Computer: Queues are implemented to handle jobs of tasks Some Terminologies

25  Creating: Creating is causing an arrival of a new entity to the system at some point in time.  Scheduling: Scheduling is the act of  Random variable: A random variable is a quantity that is uncertain, such as inter-arrival time between two incoming flights or number of defective parts in a shipment  Random variate: A random variate is an artificially generated random variable  Distribution: A distribution is the mathematical law which governs the probabilistic features of a random variable. Some Terminologies