simulation of computer networks
play

Simulation of Computer Networks Holger Fler Lehrstuhl fr Praktische - PowerPoint PPT Presentation

Simulation of Computer Networks Holger Fler Lehrstuhl fr Praktische Informatik IV, University of Mannheim Holger Fler Simulation of Computer Networks Universitt Mannheim, WS 2005/2005 Vorbemerkungen Lehrstuhl fr Praktische


  1. Simulation of Computer Networks Holger Füßler Lehrstuhl für Praktische Informatik IV, University of Mannheim Holger Füßler Simulation of Computer Networks Universität Mannheim, WS 2005/2005

  2. Vorbemerkungen » Lehrstuhl für Praktische Informatik IV – http://www.informatik.uni-mannheim.de/pi4 – Rechnernetze und Multimedia-Technik » Seit August 2001 – Bis Ende 2003 Projekt FleetNet – Bis Sept 2005 Projekt Network on Wheels – Seit 01.10. Landes-Stelle » Gegenwärtige Arbeitsgebiete: – Wireless ad hoc networks, insbesondere: vehicular ad hoc networks Holger Füßler - 2 Simulation of Computer Networks Universität Mannheim, WS 2005/2006

  3. Simulation von Rechnernetzen » Vertieft Vorlesungen ‘Rechnernetze’ » Widmet sich den Fragen: – Wie kann ich Protokolle ausprobieren? – Wie kann ich verschiedene Netzkonfigurationen quantitativ vergleichen (ohne die Netze zu bauen)? » Soll Hilfestellung für Studien-/Diplomarbeiten – In vielen Arbeiten wird simuliert. Holger Füßler - 3 Simulation of Computer Networks Universität Mannheim, WS 2005/2006

  4. Prüfungsregelung » 3 ECTS Punkte » mündliche oder schriftliche Prüfung (je nach Nachfrage) Holger Füßler - 4 Simulation of Computer Networks Universität Mannheim, WS 2005/2006

  5. Sprechzeiten, Vorlesungsfolien » Holger Füßler (Sprechstunde nach Vereinbarung) – Am besten per e-mail Termin vereinbaren – (fuessler@informatik.uni-mannheim.de) » Die Vorlesungsfolien finden sich unter – http://www.informatik.uni-mannheim.de/pi4/lectures/ws0506/netsim/ – geschützter Bereich – User: studi – pwd: charlemagne Holger Füßler - 5 Simulation of Computer Networks Universität Mannheim, WS 2005/2006

  6. Some lectures are like this … Application 1 Application n Collected theories and results for basic concepts Application 2 e.g. Algorithmics Application 3 Holger Füßler - 6 Simulation of Computer Networks Universität Mannheim, WS 2005/2006

  7. NetSim is like this … Algorithmics Tools Goal: Probability theory Simulation of Computer Networks … requires broad knowledge on various fields Statistics Holger Füßler - 7 Simulation of Computer Networks Universität Mannheim, WS 2005/2006

  8. Prerequisites/Literature » Basics (Grundstudium) in CS / Math / Statistics » Networking: Rechnernetze » Averill M. Law, W. David Kelton: “Simulation Modeling and Analysis”, McGraw-Hill, 3rd edition, 2000. » Sheldon M. Ross: “Simulation”, 2nd edition, Academic Press, 1997. » Stochastics, statistics: Anderson et al: “Schätzen und Testen” » Computer networks: Andrew S. Tanenbaum: “Computer Networks” » Pointers to original work is given on a ‘per lecture basis’. Holger Füßler - 8 Simulation of Computer Networks Universität Mannheim, WS 2005/2006

  9. Start of NetSim Holger Füßler Simulation of Computer Networks Universität Mannheim, WS 2005/2005

  10. Overview of first lecture » Part I: An ‘abstract’ view to simulations (top-down) – Simulation as one strategy to study a system – The big picture » Part II: A ‘concrete’ simulation example (bottom-up) » Part III: Course overview – Elements needed for simulation of computer networks Holger Füßler - 10 Simulation of Computer Networks Universität Mannheim, WS 2005/2006

  11. I Ways to study a system System: an organized integrated whole made up of diverse but interrelated and interdependent parts • The planetary system System • The Internet • A personal computer Model: a miniature representation of something (‘Miniature’: in the sense Experiment Experiment of ‘approximation’), .e.g., with the with a model Planetary system – actual system of the system planetarium Personal computer – Turing machine Physical Mathematical model model Analytical Simulation solution Source [LK2000] Holger Füßler - 11 Simulation of Computer Networks Universität Mannheim, WS 2005/2006

  12. I Simulation: advantages » Experiment with the actual system: too expensive, sometimes impossible (e.g., system does not exist yet) – Simulation is relatively inexpensive – Simulation works for concepts and ideas » Experiment with a physical model: still expensive, needs a lot of work, some things cannot be ‚miniaturized‘ (e.g., radio propagation characteristics) – Simulation is cost-effective – Simulation allows for various degrees of accuracy » Analytical treatment: most times models are too complex – Simulation allows for observation of the models behavior over time Holger Füßler - 12 Simulation of Computer Networks Universität Mannheim, WS 2005/2006

  13. I Example: vehicular ad hoc networks Models: System - Movement pattern - Communication protocols - Data traffic - and their interactions Experiment Experiment with the with a model actual system of the system Physical Mathematical model model Analytical Simulation solution Holger Füßler - 13 Simulation of Computer Networks Universität Mannheim, WS 2005/2006

  14. I The nature of simulation » Systems, system state, and system state changes – We define the state of a system to be that collection of variables necessary to describe a system at a particular time, relative to the objectives of the study – In dynamic systems, the state of the systems changes over time – Usually, the local behavior of the system is Observe X, Y, Z known but the ‚evolution‘ of the system on a over time global scale is unknown. » Simulation Execute state transitions according – Step 1: build a (virtual) model w.r.t. system to model states and their corresponding state transitions – Step 2: execute the model, i.e., the transition rules, and observe the output Holger Füßler - 14 Simulation of Computer Networks Universität Mannheim, WS 2005/2006

  15. I Classification of models and simulation types Mathematical model Static Dynamic w.r.t. changes over time Continuous or ‘instantaneous’ Continuous Discrete Changes? Deterministic Stochastic w.r.t. transitions Relevant class for → Our focus: discrete event simulation computer networks Holger Füßler - 15 Simulation of Computer Networks Universität Mannheim, WS 2005/2006

  16. II Classical introductory example: M/M/1 queue Router [Server] Arriving packet Departing packet Queue » Queuing systems as delay models » Arrival process: ‘M’ for ‘memoryless’ (thus, exponentially distributed inter-arrival times) » Service process: ‘M’ for ‘memoryless’ (thus, exponentially distributed service times) » Number of queuing stations: 1 β = 1.0 s for inter-arrival times β = 0.5 s for service times Holger Füßler - 16 Simulation of Computer Networks Universität Mannheim, WS 2005/2006

  17. II Introductory example: next-event time advance Time Arrivals a 1 a 2 a 3 a 4 a 5 a 6 Departures d 1 d 2 d 3 d 4 d 5 d 6 » Events: – Packet arrivals – Departure: depends on arrival, delay, and service time » Next-event time advance mechanism: – Simulation clock advances to next event • State of system is updated • Knowledge of the times of occurrence of future events is updated • Go to next event – Thus, periods of inactivity are ‚skipped‘. Holger Füßler - 17 Simulation of Computer Networks Universität Mannheim, WS 2005/2006

  18. II Introductory example: performance measures Statistics for performance measures: » Average packet delay in queue: – Assume n packets are sent – Denote the delay of packet i by D i Estimator or ‘statistic’ Holger Füßler - 18 Simulation of Computer Networks Universität Mannheim, WS 2005/2006

  19. II Introductory example: performance measures » Time-average number of packets in queue – Let Q(t) denote the number of packets in the queue at time t – Let T(n) denote the total simulation time for n packets. Q(t) 3 2 1 t Holger Füßler - 19 Simulation of Computer Networks Universität Mannheim, WS 2005/2006

  20. II Introductory example: performance measures » Router/Server utilization – Let B(t) be one if the server is busy at time t and zero otherwise. B(t) 1 Holger Füßler - 20 Simulation of Computer Networks Universität Mannheim, WS 2005/2006

  21. II Introductory example: execute model Initialization Time = 0 System state Event management A: 0.4 0 D: 1 Clock Event list 0 0 0 Statistical counters Server Number Times Time status in of of last 0 0 0 0 queue arrival event ? Number Total Area Area delay under Q(t) Under B(t) System Computer representation Holger Füßler - 21 Simulation of Computer Networks Universität Mannheim, WS 2005/2006

  22. II Introductory example: execute model Initialization Time = 0.4 System state Event management A: 1.6 0.4 D: 2.4 Clock Event list 0.4 1 0 0.4 Statistical counters Server Number Times Time status in of of last 1 0 0 0 queue arrival event Number Total Area Area delay under Q(t) Under B(t) System Computer representation Holger Füßler - 22 Simulation of Computer Networks Universität Mannheim, WS 2005/2006

  23. II Introductory example: execute model Initialization Time = 1.6 System state Event management A: 2.1 1.6 D: 2.4 Clock Event list 1.6 0.4 1 1 1.6 Statistical counters 1.6 Server Number Times Time status in of of last 1 0 0 1.2 queue arrival event Number Total Area Area delay under Q(t) Under B(t) System Computer representation Holger Füßler - 23 Simulation of Computer Networks Universität Mannheim, WS 2005/2006

Recommend


More recommend