Building Parallel Time-Constrained HLA Federates: A Case Study with the Parsec Parallel Simulation Language Winter Simulation Conference (WSC’98), Washington.

Slides:



Advertisements
Similar presentations
Parallel Discrete Event Simulation Richard Fujimoto Communications of the ACM, Oct
Advertisements

Time Management in the High Level Architecture Roger McFarlane School of Computer Science McGill University Montréal, Québec CANADA 19 March 2003.
Parallel and Distributed Simulation Global Virtual Time - Part 2.
Time Warp: Global Control Distributed Snapshots and Fossil Collection.
Parallel Simulation. Past, Present and Future C.D. Pham Laboratoire RESAM Universit ₫ Claude Bernard Lyon 1
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.
Parallel Programming Motivation and terminology – from ACM/IEEE 2013 curricula.
Development of Parallel Simulator for Wireless WCDMA Network Hong Zhang Communication lab of HUT.
HLA Support in a Discrete Event Simulation Language DiS-RT’99, Greenbelt, MD. Friday, October 22nd, 1999 C. D. PhamR. L. Bagrodia Department of Computer.
Time Management in the High Level Architecture. Outline Overview of time management services Time constrained and time regulating federates Related object.
Programming in the Many Software Engineering Paradigm for the 21 st Century Nenad Medvidovic Center for Software Engineering Computer Science Department.
Simulation concepts and architectures. Simulation Basics System: a collecting of entities that act and interact together toward the accomplishment of.
Parallel and Distributed Simulation Object-Oriented Simulation.
An Introduction to Rational Rose Real-Time
What is Concurrent Programming? Maram Bani Younes.
OMNET++. Outline Introduction Overview The NED Language Simple Modules.
Parallel and Distributed Simulation FDK Software.
Self Adaptivity in Grid Computing Reporter : Po - Jen Lo Sathish S. Vadhiyar and Jack J. Dongarra.
Synchronous Algorithms I Barrier Synchronizations and Computing LBTS.
1 CS 456 Software Engineering. 2 Contents 3 Chapter 1: Introduction.
Atlanta, Georgia TiNy Threads on BlueGene/P: Exploring Many-Core Parallelisms Beyond The Traditional OS Handong Ye, Robert Pavel, Aaron Landwehr, Guang.
Hardware Supported Time Synchronization in Multi-Core Architectures 林孟諭 Dept. of Electrical Engineering National Cheng Kung University Tainan, Taiwan,
Parallel and Distributed Simulation Hardware Platforms Simulation Fundamentals.
Integrating a Distributed Agent-Based Simulation into an HLA Federation Gary Kratkiewicz Amelia Fedyk Daniel Cerys.
Assessing the Suitability of UML for Modeling Software Architectures Nenad Medvidovic Computer Science Department University of Southern California Los.
High Level Architecture Overview and Rules Thanks to: Dr. Judith Dahmann, and others from: Defense Modeling and Simulation Office phone: (703)
Querying Large Databases Rukmini Kaushik. Purpose Research for efficient algorithms and software architectures of query engines.
Synchronous Parallel Environment for Emulation and Discrete-Event Simulation. The SPEEDES simulation engine allows the simulation builder to perform optimistic.
Parallel and Distributed Simulation Memory Management & Other Optimistic Protocols.
Distributed Virtual Environments Introduction. Outline What are they? DVEs vs. Analytic Simulations DIS –Design principles Example.
Modeling and Simulating Software Acquisition Process Architectures James Choi and Walt Scacchi Computer Science Dept. Institute for Software Research California.
The High Level Architecture Introduction. Outline High Level Architecture (HLA): Background Rules Interface Specification –Overview –Class Based Subscription.
Embedding Constraint Satisfaction using Parallel Soft-Core Processors on FPGAs Prasad Subramanian, Brandon Eames, Department of Electrical Engineering,
Tool Integration with Data and Computation Grid GWE - “Grid Wizard Enterprise”
Cache Coherence Protocols 1 Cache Coherence Protocols in Shared Memory Multiprocessors Mehmet Şenvar.
Parallel and Distributed Simulation Distributed Virtual Environments (DVE) & Software Introduction.
Distributed System Concepts and Architectures Services
SCHOOL OF ELECTRICAL AND COMPUTER ENGINEERING | SCHOOL OF COMPUTER SCIENCE | GEORGIA INSTITUTE OF TECHNOLOGY MANIFOLD Manifold Execution Model and System.
Framework of a Simulation Based Shop Floor Controller Using HLA Pramod Vijayakumar Systems and Industrial Engineering University of Arizona.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 3: Process-Concept.
Distributed simulation with MPI in ns-3 Joshua Pelkey and Dr. George Riley Wns3 March 25, 2011.
Data Distribution. Outline Fundamental concepts –Name space –Description expressions –Interest expressions Static Data Distribution: HLA Declaration Management.
High Level Architecture Time Management. Time management is a difficult subject There is no real time management in DIS (usually); things happen as packets.
1 Advanced Software Architecture Muhammad Bilal Bashir PhD Scholar (Computer Science) Mohammad Ali Jinnah University.
1 FESA architecture v.1.0 Framework Configuration & Data-entry Tool 5 th December 2003.
Operating Systems (CS 340 D) Dr. Abeer Mahmoud Princess Nora University Faculty of Computer & Information Systems Computer science Department.
Processes. Process Concept Process Scheduling Operations on Processes Interprocess Communication Communication in Client-Server Systems.
Tool Integration with Data and Computation Grid “Grid Wizard 2”
Parallel and Distributed Simulation Data Distribution II.
Adding Time-Step Management to Distributed Ptolemy-HLAcerti framework Yanxuan LI, Janette Cardoso, Pierre Siron 11th Biennial Ptolemy Miniconference Berkeley,
Clock Synchronization (Time Management) Deadlock Avoidance Using Null Messages.
IHP Im Technologiepark Frankfurt (Oder) Germany IHP Im Technologiepark Frankfurt (Oder) Germany ©
Parallel and Distributed Simulation Deadlock Detection & Recovery.
1 The XMSF Profile Overlay to the FEDEP Dr. Katherine L. Morse, SAIC Mr. Robert Lutz, JHU APL
Gary Kratkiewicz Amelia Fedyk Daniel Cerys
PDES Introduction The Time Warp Mechanism
Parallel and Distributed Simulation
Operating Systems (CS 340 D)
Chapter 3: Process Concept
Parallel and Distributed Simulation Techniques
High Level Architecture
Operating Systems (CS 340 D)
CPSC 531: System Modeling and Simulation
Parallel and Distributed Simulation
Operating Systems : Overview
Operating Systems : Overview
Parallel Exact Stochastic Simulation in Biochemical Systems
Presentation transcript:

Building Parallel Time-Constrained HLA Federates: A Case Study with the Parsec Parallel Simulation Language Winter Simulation Conference (WSC’98), Washington D.C. Tuesday, December 15th, 1998 C. D. PhamR. L. Bagrodia Department of Computer Science University of California, Los Angeles

Outline Overview of HLA and Parallel simulation The rational behind this work The Parsec Language Architecture of a parallel federate with Parsec Conclusions

The HLA framework Runtime Infrastructure (RTI) Federation Management Declaration Management Object Management Ownership Management Time Management Data Distribution Management The High Level Architecture calls for a federation of simulations to achieve interoperability and reuse of software. Federation Without HLA, simulations are mostly independents and interoperability is not easy. Logical simulations Hardware, human-in-the loop real-time simulators Display, statistics Rules for the federation and the federates behavior An Object Model Template to describe the simulation objects An Interface Specification simulator real-time players tools

Real system Objects can have attributes HLA: How to interoperate? Interoperability is achieved by subscription and publication of object’s attributes between the federates in the federation execution. communication node throughput, position radio transmitter power, frequency wired node # links

RTI Ambassador Federate RTI HLA: Publication and Subscription Publication of an attribute means a federate can produce values for that attribute. Federate Ambassador RTI Ambassador I can provide the position for F14 planes publishObjectClass I want to know the position of all F14 planes. startUpdates subscribeObjectClass Attribute reflectAttributesValues Subscription to an attribute means a federate wishes to receive values for that attribute. updateAttributeValues Federate Ambassador

HLA: Time management HLA includes advanced time management services with receive order and time stamped messages FEDERATE Time-constrained 25 RTI RO23RO25 Time-regulated FEDERATE 25 Lookahead = 2 RTI NO! RO Compute a Lower Bound Time Stamp (LBTS) Ask for time advance grant

Parallel Simulation Concepts A model consists of simulation objects (logical processes) and events. LPs are distributed on several processors. Only time stamped events are exchanged between LPs. Synchronization and causality constraints are handled by a conservative or optimistic simulation algorithm.

The rational behind this work Parallel simulation can potentially reduce the simulation time of large scale systems. HLA can benefit from parallel federates in a federation execution to achieve speed-up for the entire federation. Federation sequential parallel real-time players parallel computer NOWs...

Parallel simulation and HLA As fast as possible execution. Conservative or optimistic synchronization among LPs. PADS HLA Mainly real time simulation. Conservative among all the federates. Time management Interactions Event paradigm. In most cases, only time stamped events. Subscription/publication. Received Order and Time Stamped Order.

Parallel federates... are time-constrained and time-regulated. must take into account TSO messages from the RTI, have to report a simulation time, have to ask for time advance grants. contain several logical processes. have to compute a global simulation time, provide non-blocking scheduling regarding time advance grants.

One or several federates? Having several federates sometimes facilitates the design of the model but introduces extra dependencies in a conservative federates It is better to have one federate for the entire set of Logical Processes

Need for an accurate GST Even a conservative federate has to implement a GST computation. The GST is the only simulation time value the RTI knows about the parallel federate. The GST must be computed frequently for the other federate to advance in time.

When and how to advance the time LPs cannot request time advance grants directly from the RTI. Messages from the RTI gain to be directly handled by the synchronization algorithm. It is possible to use the LBTS from the RTI

The PARSEC language LP are programmed as an actor or entity all activities of an entity are initiated on message receipts An LP cannot directly modify the state of another LP Event are represented by message communications e(t,p,a): send message m(e) at time t to LP p On receiving m(e), p executes actions a change its state represented by local variables schedule events (messages) at time >=t LPs are scheduled with a large variety of algorithms Conservative with null-messages, conditional events, synchronous, optimistic and adaptive algorithms. Message-based, process-interaction approach Parallel conservative federates Shared memory architecture RTI v1.0 for Solaris 2.5 ENVIRONMENT

Translation of notifications Notifications from the RTI are translated into a PARSEC message and sent back to the entities. RTI callback reflectAttributeValues c1.a1 h Receive (HLACallback m) { switch (m.type) { case reflect: Update(m.C, m.A); break; case discover: … } has subscribed to c1.a1 Entities can register to receive a given set of notification types. has registered to reflect and discover HLA_registerEntity( self, reflect | discover); Ensure that both TSO and RO messages can be mixed into PARSEC Ensure that the entities receive the messages at the correct time

Time management support Sequential federates RTI Entities interact directly with the RTI HLA_timeAdvanceGrantRequest() Request and wait for a time advance grant using nextEventRequest. ENTITY

Parallel federates Entities interact with the RTI via a time manager entity HLA_addEntitySimclock()HLA_provideEntitySimclock() Indicates to the PARSEC runtime that an entity wishes to participate in the GST computation. Allocates data structures for the calling entity. Provides a simulation time value to the time manager. Performs the GST computation and asks for the time advance request from the RTI. RTI ENTITY

Overview of time management Parallel federates

The wireless model example 1 sequential federate: a weather federate that publishes a weather_condition attribute. 1 parallel federate: a wireless communication network that subscribes to the weather_condition attribute. The transmission quality depends on the weather_condition attribute. Can the parallel federate provide speedup for the entire federation execution?

Conclusions