discrete event simulation in2045 - tum info viii: homepage · discrete event simulation in2045...

24
Chair for Network Architectures and Services—Prof. Carle Department of Computer Science TU München Discrete Event Simulation IN2045 Dipl.-Inform. Alexander Klein Dr. Nils Kammenhuber Prof. Dr.-Ing Georg Carle Chair for Network Architectures and Services Department of Computer Science Technische Universität München http://www.net.in.tum.de

Upload: ngohuong

Post on 19-Jul-2018

241 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Discrete Event Simulation IN2045 - TUM Info VIII: Homepage · Discrete Event Simulation IN2045 Dipl.-Inform. ... Co-Simulation / Parallel simulation ... OPNET Virtual Nodes Real Gateway

Chair for Network Architectures and Services—Prof. Carle Department of Computer ScienceTU München

Discrete Event Simulation

IN2045

Dipl.-Inform. Alexander Klein

Dr. Nils Kammenhuber

Prof. Dr.-Ing Georg Carle

Chair for Network Architectures and Services

Department of Computer ScienceTechnische Universität München

http://www.net.in.tum.de

Page 2: Discrete Event Simulation IN2045 - TUM Info VIII: Homepage · Discrete Event Simulation IN2045 Dipl.-Inform. ... Co-Simulation / Parallel simulation ... OPNET Virtual Nodes Real Gateway

Network Security, WS 2008/09, Chapter 9 2IN2045 – Discrete Event Simulation, SS 2010 2

Teaching—I8 Overview

LecturesSS:

Introduction to Computer Networking and Distributed Systems (IN0010)

Peer-to-Peer-Systems and Security (IN2194)

Discrete Event Simulation (IN2045)

WS:

Master Course Computer Networks (IN2097)

Network Security (IN2101)

SeminarsSeminar – Network Architectures and Services: Network Hacking (IN0013)

Advanced Seminar – Innovative Internet Technologies and Mobile Communications (IN8901)

Advanced Seminar – Future Internet (IN8901)

Advanced Seminar – Sensor Networks(IN0014), with Prof. Baumgarten

Lab CoursesBachelor Practical Course – Internet Lab (IN0012)

Master Practical Course – Computer Networks (IN2106)

Page 3: Discrete Event Simulation IN2045 - TUM Info VIII: Homepage · Discrete Event Simulation IN2045 Dipl.-Inform. ... Co-Simulation / Parallel simulation ... OPNET Virtual Nodes Real Gateway

Network Security, WS 2008/09, Chapter 9 3IN2045 – Discrete Event Simulation, SS 2010 3

Course organization IN2045 Discrete Event Simulation

LectureWednesday 14:15–15:45, FMI 03.07.023 (starting Wed 25 May 2010)

Block course, ca. 3 days between 20–24 September 2010

Students are requested to subscribe using a Web form at www.net.in.tum.de Lehre Vorlesungen …

http://www.net.in.tum.de/de/lehre/ss10/vorlesungen/

Will be used for sending up-to-date information (e.g., room changes)

Email list for subscribers of course

Unrelated to subscription in TUMonline!

Questions and Answers / Office hoursDipl.-Inform. Alexander Klein, [email protected], 03.05.061Office hours: Mon 13–14

Dr. Nils Kammenhuber, [email protected], 03.05.043Office hours: usually Thu, Fri 14–15, but check via e-mail first

Prof. Dr. Georg Carle, [email protected] hours: Upon appointment (typically Mon 16–17)

Course MaterialSlides are available online. Slides may be updated during the course.

Page 4: Discrete Event Simulation IN2045 - TUM Info VIII: Homepage · Discrete Event Simulation IN2045 Dipl.-Inform. ... Co-Simulation / Parallel simulation ... OPNET Virtual Nodes Real Gateway

Network Security, WS 2008/09, Chapter 9 4IN2045 – Discrete Event Simulation, SS 2010 4

Grading

Course is 4 ECTS

2 SWS lectures

1 SWS exercises

Exercises

Prepare for the oral examination

Successfully participating at exercises gives a bonus of 0.3 on the overall grade. [Exercises = same time slot as lecture.]

Our concept for grading

Final examinations will be oral and give an individual grade.

You must pass the oral exam for being successful in the course (i.e., 4.3 and 0.3 bonus ≠ 4.0)

Subscription in TUMonline

Warning: Subscription on www.net.in.tum.de does not replace subscription via TUMonline!

Deadline: ca. 20 Sep 2010

Page 5: Discrete Event Simulation IN2045 - TUM Info VIII: Homepage · Discrete Event Simulation IN2045 Dipl.-Inform. ... Co-Simulation / Parallel simulation ... OPNET Virtual Nodes Real Gateway

Network Security, WS 2008/09, Chapter 9 5IN2045 – Discrete Event Simulation, SS 2010 5

Questions

Who studies what?

Diploma degree?

Master in Informatics?

Master in Information Systems [Wirtschaftsinformatik]?

Other Master courses?

Bachelor in Informatics?

Exchange students from other universities?

Which previous relevant courses?

Rechnernetze/Computer networks?

Masterkurs Rechnernetze/Master course computer networks?

Grundlagen Betriebssysteme/Operating Systems?

Other courses, e.g., Simulation and Modelling?

Page 6: Discrete Event Simulation IN2045 - TUM Info VIII: Homepage · Discrete Event Simulation IN2045 Dipl.-Inform. ... Co-Simulation / Parallel simulation ... OPNET Virtual Nodes Real Gateway

Network Security, WS 2008/09, Chapter 9 6IN2045 – Discrete Event Simulation, SS 2010 6

Course outline (tentative)

1. Introduction

Motivation: When and why to do simulation

Types of simulation

Event-driven simulation

Process-oriented simulation

Typical Work Flow Elements

A simple queuing model; some queuing theory

Page 7: Discrete Event Simulation IN2045 - TUM Info VIII: Homepage · Discrete Event Simulation IN2045 Dipl.-Inform. ... Co-Simulation / Parallel simulation ... OPNET Virtual Nodes Real Gateway

Network Security, WS 2008/09, Chapter 9 7IN2045 – Discrete Event Simulation, SS 2010 7

Introduction

ISO / OSI

Ethernet, WLAN,…

Application

Presentation

Session

Transport

Network

Physical

Data Link

7

6

5

4

3

2

1

IEEE 802

Internet Protocol (IP)

TCP/UDP

VoIP, Video, FTP, HTTP, P2P, …

Physikalische Bit Übertragung

Medium Access Protokolle

Simulation vs. Analysis

Page 8: Discrete Event Simulation IN2045 - TUM Info VIII: Homepage · Discrete Event Simulation IN2045 Dipl.-Inform. ... Co-Simulation / Parallel simulation ... OPNET Virtual Nodes Real Gateway

Network Security, WS 2008/09, Chapter 9 8IN2045 – Discrete Event Simulation, SS 2010 8

Course outline (tentative)

2. Statistics fundamentals

Contents shall be embedded into practical context

Basics and descriptive statistics (mean, variance, moments)

Discrete vs. continuous random variables

Visualization

Probability distributions and their properties

Page 9: Discrete Event Simulation IN2045 - TUM Info VIII: Homepage · Discrete Event Simulation IN2045 Dipl.-Inform. ... Co-Simulation / Parallel simulation ... OPNET Virtual Nodes Real Gateway

Network Security, WS 2008/09, Chapter 9 9IN2045 – Discrete Event Simulation, SS 2010 9

Statistics fundamentals

Dr. Joachim Warschat – Universität Stuttgart

Continuous

Discrete

Page 10: Discrete Event Simulation IN2045 - TUM Info VIII: Homepage · Discrete Event Simulation IN2045 Dipl.-Inform. ... Co-Simulation / Parallel simulation ... OPNET Virtual Nodes Real Gateway

Network Security, WS 2008/09, Chapter 9 10IN2045 – Discrete Event Simulation, SS 2010 10

Course outline (tentative)

3. Random numbers

How to generate a desired probability distribution

[pseudo-] Random number generators

Evaluation of random number generators

Page 11: Discrete Event Simulation IN2045 - TUM Info VIII: Homepage · Discrete Event Simulation IN2045 Dipl.-Inform. ... Co-Simulation / Parallel simulation ... OPNET Virtual Nodes Real Gateway

Network Security, WS 2008/09, Chapter 9 11IN2045 – Discrete Event Simulation, SS 2010 11

Example:

Random number generator

00101110101001101100010011101010100011

Random

Autocorrelation Lag 4

00101110101001101100010011101010100011

Page 12: Discrete Event Simulation IN2045 - TUM Info VIII: Homepage · Discrete Event Simulation IN2045 Dipl.-Inform. ... Co-Simulation / Parallel simulation ... OPNET Virtual Nodes Real Gateway

Network Security, WS 2008/09, Chapter 9 12IN2045 – Discrete Event Simulation, SS 2010 12

Course outline (tentative)

4. Tools

OPNet

Matlab

Page 13: Discrete Event Simulation IN2045 - TUM Info VIII: Homepage · Discrete Event Simulation IN2045 Dipl.-Inform. ... Co-Simulation / Parallel simulation ... OPNET Virtual Nodes Real Gateway

Network Security, WS 2008/09, Chapter 9 13IN2045 – Discrete Event Simulation, SS 2010 13

OPNET

Page 14: Discrete Event Simulation IN2045 - TUM Info VIII: Homepage · Discrete Event Simulation IN2045 Dipl.-Inform. ... Co-Simulation / Parallel simulation ... OPNET Virtual Nodes Real Gateway

Network Security, WS 2008/09, Chapter 9 14IN2045 – Discrete Event Simulation, SS 2010 14

Matlab

http://www.mathworks.de/

Page 15: Discrete Event Simulation IN2045 - TUM Info VIII: Homepage · Discrete Event Simulation IN2045 Dipl.-Inform. ... Co-Simulation / Parallel simulation ... OPNET Virtual Nodes Real Gateway

Network Security, WS 2008/09, Chapter 9 15IN2045 – Discrete Event Simulation, SS 2010 15

Course outline (tentative)

5. Experiment planning

Factorial design

Factor analysis, ANOVA

Page 16: Discrete Event Simulation IN2045 - TUM Info VIII: Homepage · Discrete Event Simulation IN2045 Dipl.-Inform. ... Co-Simulation / Parallel simulation ... OPNET Virtual Nodes Real Gateway

Network Security, WS 2008/09, Chapter 9 16IN2045 – Discrete Event Simulation, SS 2010 16

Factorial design

Simulation / Parameter

X1 X2 X3 X4 Result(X1,X2,X3,X4)

# 1 + - - + 38

# 2 o + + o 12

# 3 - o - + 43

# 4 - + + + 12

# 5 - - - - 15

# 6 o o o o 8

Idea:Variation of simulation parameters (valid configurations)Evaluation of the system performanceIdentification of the impact of each parameter on the system performance

Result Table

Problem:Large number of parametersNo detailed knowledge of the impact of the parameters

Page 17: Discrete Event Simulation IN2045 - TUM Info VIII: Homepage · Discrete Event Simulation IN2045 Dipl.-Inform. ... Co-Simulation / Parallel simulation ... OPNET Virtual Nodes Real Gateway

Network Security, WS 2008/09, Chapter 9 17IN2045 – Discrete Event Simulation, SS 2010 17

Course outline (tentative)

6. Evaluation of simulation results: More statistics ☺Variability reduction

Confidence intervals

Visualization

Page 18: Discrete Event Simulation IN2045 - TUM Info VIII: Homepage · Discrete Event Simulation IN2045 Dipl.-Inform. ... Co-Simulation / Parallel simulation ... OPNET Virtual Nodes Real Gateway

Network Security, WS 2008/09, Chapter 9 18IN2045 – Discrete Event Simulation, SS 2010 18

Stochastic processes: taxonomy

Modellgestützte Analyse und Optimierung, Prof. Peter Buchholz, Technische Universität Dortmund

Page 19: Discrete Event Simulation IN2045 - TUM Info VIII: Homepage · Discrete Event Simulation IN2045 Dipl.-Inform. ... Co-Simulation / Parallel simulation ... OPNET Virtual Nodes Real Gateway

Network Security, WS 2008/09, Chapter 9 19IN2045 – Discrete Event Simulation, SS 2010 19

Batch Means

Page 20: Discrete Event Simulation IN2045 - TUM Info VIII: Homepage · Discrete Event Simulation IN2045 Dipl.-Inform. ... Co-Simulation / Parallel simulation ... OPNET Virtual Nodes Real Gateway

Network Security, WS 2008/09, Chapter 9 20IN2045 – Discrete Event Simulation, SS 2010 20

Course outline (tentative)

8. Tips and tricks from practice

What constitutes a good network simulator

How to set up a good simulation

How to do a good analysis of simulation output

How to lie with statistics

How to speed up your simulation

Page 21: Discrete Event Simulation IN2045 - TUM Info VIII: Homepage · Discrete Event Simulation IN2045 Dipl.-Inform. ... Co-Simulation / Parallel simulation ... OPNET Virtual Nodes Real Gateway

Network Security, WS 2008/09, Chapter 9 21IN2045 – Discrete Event Simulation, SS 2010 21

Example:Wireless Communication (Disc Model)

Course outline (tentative)

Valid

Interference

Ignore

Communication Range

Page 22: Discrete Event Simulation IN2045 - TUM Info VIII: Homepage · Discrete Event Simulation IN2045 Dipl.-Inform. ... Co-Simulation / Parallel simulation ... OPNET Virtual Nodes Real Gateway

Network Security, WS 2008/09, Chapter 9 22IN2045 – Discrete Event Simulation, SS 2010 22

Course outline (tentative)

9. Advanced topics

Mobile networks, mobility models

Co-Simulation / Parallel simulation

Hardware-In-The-Loop Simulation

Page 23: Discrete Event Simulation IN2045 - TUM Info VIII: Homepage · Discrete Event Simulation IN2045 Dipl.-Inform. ... Co-Simulation / Parallel simulation ... OPNET Virtual Nodes Real Gateway

Network Security, WS 2008/09, Chapter 9 23IN2045 – Discrete Event Simulation, SS 2010 23

Advanced topics

Real Network

Virtual Network

OPNET

Virtual Nodes

Real Gateway Virtual

Gateway A

Interface Node

Interface Node

Virtual Gateway B

Interface Node

Real Gateway

Interface Node

Real Network

Computer A Computer B

Hardware-In-The-Loop-Simulation

Page 24: Discrete Event Simulation IN2045 - TUM Info VIII: Homepage · Discrete Event Simulation IN2045 Dipl.-Inform. ... Co-Simulation / Parallel simulation ... OPNET Virtual Nodes Real Gateway

Network Security, WS 2008/09, Chapter 9 24IN2045 – Discrete Event Simulation, SS 2010 24

Material

Book:Simulation Modeling and AnalysisAverill M. Law4th edition McGraw-Hill, 2007

Lecture notes:

Parallel and Distributed Simulation SystemsRichard FujimotoCollege of Computing, Georgia Institute of Technology

Modellgestützte Analyse und OptimierungPeter Buchholz, Informatik IV, TU Dortmund

Simulation of computer systems and computer networks:A process-oriented approachJ. B. Sinclair, Rice University

Einführung in die SimulationstechnikFrank Wagner, Joachim Warschat, Universität Stuttgart