Introduction To Time Management Siddharth Misra Background  Distributed Simulation which is nothing but simulation on LAN became a popular tool for.

Slides:



Advertisements
Similar presentations
Chapter 6 Concurrency: Deadlock and Starvation Operating Systems: Internals and Design Principles, 6/E William Stallings Patricia Roy Manatee Community.
Advertisements

Chapter 6 Concurrency: Deadlock and Starvation Operating Systems: Internals and Design Principles, 6/E William Stallings Patricia Roy Manatee Community.
Virtual Time Virtual Time and Global States of Distributed Systems Friedmann Mattern, 1989 The Model: An asynchronous distributed system = a set of processes.
Time Management in the High Level Architecture Roger McFarlane School of Computer Science McGill University Montréal, Québec CANADA 19 March 2003.
Global States.
Synchronization and Deadlocks
Concurrency: Deadlock and Starvation Chapter 6. Deadlock Permanent blocking of a set of processes that either compete for system resources or communicate.
Concurrency: Mutual Exclusion and Synchronization Chapter 5.
Virtual Time “Virtual Time and Global States of Distributed Systems” Friedmann Mattern, 1989 The Model: An asynchronous distributed system = a set of processes.
Gwendolyn Voskuilen, Faraz Ahmad, and T. N. Vijaykumar Electrical & Computer Engineering ISCA 2010.
Parallel and Distributed Simulation Global Virtual Time - Part 2.
PROTOCOL VERIFICATION & PROTOCOL VALIDATION. Protocol Verification Communication Protocols should be checked for correctness, robustness and performance,
Time Warp: Global Control Distributed Snapshots and Fossil Collection.
Concurrency Important and difficult (Ada slides copied from Ed Schonberg)
Parallel and Distributed Simulation Time Warp: Basic Algorithm.
Parallel and Distributed Simulation Lookahead Deadlock Detection & Recovery.
Lookahead. Outline Null message algorithm: The Time Creep Problem Lookahead –What is it and why is it important? –Writing simulations to maximize lookahead.
1 An Approach to Real-Time Support in Ad Hoc Wireless Networks Mark Gleeson Distributed Systems Group Dept.
Distributed Process Management
Other Optimistic Mechanism, Memory Management. Outline Dynamic Memory Allocation Error Handling Event Retraction Lazy Cancellation Lazy Re-Evaluation.
1 Complexity of Network Synchronization Raeda Naamnieh.
Concurrent Processes Lecture 5. Introduction Modern operating systems can handle more than one process at a time System scheduler manages processes and.
Distributed Process Management
What Mum Never Told Me about Parallel Simulation K arim Djemame Informatics Research Lab. & School of Computing University of Leeds.
OS Spring 2004 Concurrency: Principles of Deadlock Operating Systems Spring 2004.
Design of Fault Tolerant Data Flow in Ptolemy II Mark McKelvin EE290 N, Fall 2004 Final Project.
OS Fall’02 Concurrency: Principles of Deadlock Operating Systems Fall 2002.
Message Passing Systems A Formal Model. The System Topology – network (connected undirected graph) Processors (nodes) Communication channels (edges) Algorithm.
Parallel and Distributed Simulation Introduction and Motivation By Syed S. Rizvi.
A Survey of Rollback-Recovery Protocols in Message-Passing Systems M. Elnozahy, L. Alvisi, Y. Wang, D. Johnson Carnegie Mellon University Presented by:
Time Warp OS1 Time Warp Operating System Presenter: Munehiro Fukuda.
Message Passing Systems A Formal Model. The System Topology – network (connected undirected graph) Processors (nodes) Communication channels (edges) Algorithm.
1 Rollback-Recovery Protocols II Mahmoud ElGammal.
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:
Digital System Bus A bus in a digital system is a collection of (usually unbroken) signal lines that carry module-to-module communications. The signals.
Synchronous Algorithms I Barrier Synchronizations and Computing LBTS.
Hardware Supported Time Synchronization in Multi-Core Architectures 林孟諭 Dept. of Electrical Engineering National Cheng Kung University Tainan, Taiwan,
4.5 DISTRIBUTED MUTUAL EXCLUSION MOSES RENTAPALLI.
SafetyNet: improving the availability of shared memory multiprocessors with global checkpoint/recovery Daniel J. Sorin, Milo M. K. Martin, Mark D. Hill,
CY2003 Computer Systems Lecture 7 Petri net. © LJMU, 2004CY2003- Week 72 Overview Petri net –concepts –Petri net representation –Firing a transition –Marks.
CS 152: Programming Language Paradigms May 7 Class Meeting Department of Computer Science San Jose State University Spring 2014 Instructor: Ron Mak
Parallel and Distributed Simulation Memory Management & Other Optimistic Protocols.
1 Distributed Process Management Chapter Distributed Global States Operating system cannot know the current state of all process in the distributed.
TOPIC : Introduction to Compression Techniques UNIT 5 : BIST and BIST Architectures Module 5.4 Compression Techniques.
Operating Systems Part III: Process Management (Deadlocks)
Chapter 4 Using Encryption in Cryptographic Protocols & Practices.
“Virtual Time and Global States of Distributed Systems”
Transactions and Concurrency Control. Concurrent Accesses to an Object Multiple threads Atomic operations Thread communication Fairness.
1 © R. Guerraoui Distributed algorithms Prof R. Guerraoui Assistant Marko Vukolic Exam: Written, Feb 5th Reference: Book - Springer.
Introduction to Distributed Databases Yiwei Wu. Introduction A distributed database is a database in which portions of the database are stored on multiple.
Network Systems Lab. Korea Advanced Institute of Science and Technology No.1 Ch. 1 Introduction EE692 Parallel and Distribution Computation | Prof. Song.
Efficient Algorithms for Distributed Snapshots and Global Virtual Time Approximation Author: Friedermann Mattern Presented By: Shruthi Koundinya.
Clock Synchronization (Time Management) Deadlock Avoidance Using Null Messages.
Academic Year 2014 Spring Academic Year 2014 Spring.
Parallel and Distributed Simulation Deadlock Detection & Recovery: Performance Barrier Mechanisms.
CS3771 Today: Distributed Coordination  Previous class: Distributed File Systems Issues: Naming Strategies: Absolute Names, Mount Points (logical connection.
Parallel and Distributed Simulation Deadlock Detection & Recovery.
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.
PDES Introduction The Time Warp Mechanism
Auburn University
Parallel and Distributed Simulation
Parallel and Distributed Simulation Techniques
High Level Architecture
PDES: Time Warp Mechanism Computing Global Virtual Time
CPSC 531: System Modeling and Simulation
Shared Memory Programming
Parallel and Distributed Simulation
Shared memory programming
Fault Tolerant Systems in a Space Environment
University of Wisconsin-Madison Presented by: Nick Kirchem
Presentation transcript:

Introduction To Time Management Siddharth Misra

Background  Distributed Simulation which is nothing but simulation on LAN became a popular tool for the military to train personnel's and simulate combat.

Motivation  The order of events arriving in distributed simulation cannot be guaranteed i.e. the events may not arrive in the order of cause and effect due to delays in network traffics and processing. Logical Sequence of Events Fired Missile at time 0 seconds. Target destroyed at time 3 seconds. Fired Missile at time 0 seconds.

Missile fired at time 0 seconds. Contd… Target destroyed at time 3 seconds. Communication Delay of 3 seconds. No Communication Delay. Target Destroyed before it has been fired upon Missile fired at time 0 seconds. No Communication Delay.

Purpose  Time management services is therefore used to ensure that events arrive at each federate in correct order.  Also, it is used to ensure that another execution of same simulation results in the same ordering.

Time Management Schemes  The two time management schemes for the advance in time of a simulation discussed here are – 1.Conservative Synchronization. 2.Optimistic Synchronization.

Conservative Synchronization  is a scheme where none of the simulations advances its time until it is sure that it cannot receive any events in the past

Disadvantages  Pessimistic approach in the sense it processes only those events that are considered to be safe As there is no event after time 12 therefore the event at 12 is not safe as the simulation can expect some event before time 12. Blocked

Contd…  This scheme also introduces deadlocks. cycle

Optimistic Synchronization  is a scheme in which a simulation processes events as they arrive;  possibility that a simulation may receive events in its past causing it to perform roll back operations which make the simulation go back to a state which it has saved.

Contd… 11 SBSB 13 SDSD 18 SBSB 22 SCSC 25 SDSD 28 SCSC 36 SBSB 32 SDSD SASA processed! SBSB SASA SCSC SDSD late messages cause roll back 32

Disadvantages  A critical problem faced here is whether the system spends most of its time executing incorrect computations and rolling them back.  Another problem faced here is the need to save states which incurs huge memory overheads.

Summary  Both the approaches discussed here have their own pros & cons and one might be better suited than another for an application depending on the type of application.  Based on the disadvantages of the above a third approach will be presented shortly.