DISTRIBUTED OPTIMISTIC SIMULATION OF DEVS AND CELL-DEVS MODELS WITH PCD++

DEVS is a sound formal modeling and simulation (M&S) framework based on generic dynamic system concepts. Cell-DEVS is a DEVS-based formalism intended to model complex physical systems as cell spaces. Time Warp is the most well-known optimistic synchronization protocol for parallel and distributed simulations. This work is devoted to developing new techniques for executing DEVS and Cell-DEVS models in parallel and distributed environments based on the WARPED kernel, an implementation of the Time Warp protocol. The resultant optimistic simulator, called as PCD++, is built as a new simulation engine for CD++, an M&S toolkit that implements the DEVS and Cell-DEVS formalisms. Algorithms in CD++ and the WARPED kernel are redesigned to carry out optimistic simulations using a non-hierarchical approach that reduces the communication overhead. The message-passing paradigm is analyzed using a high-level abstraction called wall clock time slice. A two-level user-controlled state-saving mechanism is proposed to achieve efficient and flexible state saving at runtime. This mechanism is integrated with both the copy state-saving and periodic state-saving strategies to realize a hybrid technique that gives simulator developers the full power to dynamically choose the best possible combination of state-saving strategies at runtime. An optimization strategy called one log file per node is provided to break the bottleneck caused by file I/O operations. The number of file descriptors consumed in the simulation is upper-bounded and the operational overhead is reduced substantially under this strategy. Different Time Warp optimizations are integrated into PCD++, and their effects are analyzed quantitatively. It is shown that PCD++ markedly outperforms other alternatives, and considerable speedups can be achieved in parallel and distributed simulations, indicating that PCD++ is well-suited for simulating large and complex models.

[1]  Ezequiel Glinsky,et al.  NEW TECHNIQUES FOR PARALLEL SIMULATION OF DEVS AND CELL-DEVS MODELS IN CD++ , 2004 .

[2]  Gabriel A. Wainer AVOIDING SERIALIZATION IN TIMED CELL-DEVS , 2007 .

[3]  Richard M. Fujimoto,et al.  Optimistic approaches to parallel discrete event simulation , 1990 .

[4]  Gabriel A. Wainer,et al.  Implementing parallel Cell-DEVS , 2003, 36th Annual Simulation Symposium, 2003..

[5]  Jacinto Dávila,et al.  GALATEA: A multi-agent, simulation platform , 2000 .

[6]  Ki-Hyung Kim,et al.  CORBA-Based, Multi-threaded Distributed Simulation of Hierarchical DEVS Models: Transforming Model Structure into a Non-hierarchical One , 2004, ICCSA.

[7]  Anthony Skjellum,et al.  A High-Performance, Portable Implementation of the MPI Message Passing Interface Standard , 1996, Parallel Comput..

[8]  Yi-Bing Lin,et al.  A study of time warp rollback mechanisms , 1991, TOMC.

[9]  E. Kofman,et al.  PowerDEVS : A DEVS – Based Environment for Hybrid System Modeling and Simulation , 2003 .

[10]  B. Zeigler,et al.  Distributed supply chain simulation in a DEVS/CORBA execution environment , 1999, WSC'99. 1999 Winter Simulation Conference Proceedings. 'Simulation - A Bridge to the Future' (Cat. No.99CH37038).

[11]  Gabriel A. Wainer,et al.  Models of complex physical systems using Cell-DEVS , 2001, Proceedings. 34th Annual Simulation Symposium.

[12]  Philip A. Wilsey,et al.  External adjustment of runtime parameters in Time Warp synchronized parallel simulators , 1997, Proceedings 11th International Parallel Processing Symposium.

[13]  Bernard P. Zeigler,et al.  Extending the DEVS-Scheme knowledge-based simulation environment for real-time event-based control , 1993, IEEE Trans. Robotics Autom..

[14]  Gabriel Wainer,et al.  Timed cell-DEVS: modeling and simulation of cell spaces , 2001 .

[15]  Gabriel A. Wainer,et al.  NEW EXTENSIONS TO THE CD++ TOOL , 2007 .

[16]  Philip A. Wilsey,et al.  An analytical comparison of periodic checkpointing and incremental state saving , 1993, PADS '93.

[17]  Bernard P. Zeigler,et al.  EXPERIMENTAL RESULTS OF TIMED CELL-DEVS QUANTIZATION , 2000 .

[18]  Nael B. Abu-Ghazaleh,et al.  Optimizing Message Delivery in Asynchronous Distributed Applications , 1999, Euro-Par.

[19]  Randal E. Bryant,et al.  SIMULATION OF PACKET COMMUNICATION ARCHITECTURE COMPUTER SYSTEMS , 1977 .

[20]  Rassul Ayani,et al.  Adaptive checkpointing in Time Warp , 1994, PADS '94.

[21]  Gabriel A. Wainer,et al.  TÉCNICO Specification , modelling and simulation of timed Cell-DEVS spaces , 1997 .

[22]  Gabriel A. Wainer,et al.  N-dimensional Cell-DEVS Models , 2002, Discret. Event Dyn. Syst..

[23]  R.M. Fujimoto,et al.  Parallel and distributed simulation systems , 2001, Proceeding of the 2001 Winter Simulation Conference (Cat. No.01CH37304).

[24]  Philip A. Wilsey,et al.  pGVT: an algorithm for accurate GVT estimation , 1994, PADS '94.

[25]  J. Sametinger,et al.  DISCRETE EVENT SIMULATION USING THE JAVABEANS COMPONENT MODEL , 1999 .

[26]  Philip A. Wilsey,et al.  Comparative analysis of periodic state saving techniques in time warp simulators , 1995, PADS.

[27]  B. Zeigler,et al.  Support for Hierarchical Modular Component-based Model Construction in DEVS / HLA 1 , 1999 .

[28]  Nael B. Abu-Ghazaleh,et al.  Optimizing communication in time-warp simulators , 1998, Workshop on Parallel and Distributed Simulation.

[29]  Bernard P. Zeigler,et al.  Parallel DEVS: a parallel, hierarchical, modular modeling formalism , 1994, Proceedings of Winter Simulation Conference.

[30]  Stephen Wolfram,et al.  Theory and Applications of Cellular Automata , 1986 .

[31]  Bernard P. Zeigler,et al.  DEVS-C++: a high performance modelling and simulation environment , 1996, Proceedings of HICSS-29: 29th Hawaii International Conference on System Sciences.

[32]  Adelinde M. Uhrmacher,et al.  Interacting multi-agent and simulation systems: an exploration into mole and james , 2001, AGENTS '01.

[33]  Friedemann Mattern,et al.  Efficient Algorithms for Distributed Snapshots and Global Virtual Time Approximation , 1993, J. Parallel Distributed Comput..

[34]  Bernard P. Zeigler,et al.  Theory of modeling and simulation , 1976 .

[35]  Gabriel A. Wainer CD++: a toolkit to develop DEVS models , 2002, Softw. Pract. Exp..

[36]  B. Zeigler,et al.  DEVS / RMI — AnAuto-Adaptive and Reconfigurable Distributed Simulation Environment for Engineering Studies , 2005 .

[37]  Atul Prakash,et al.  Filter: an algorithm for reducing cascaded rollbacks in optimistic distributed simulations , 1991, ANSS '91.

[38]  K. Mani Chandy,et al.  Distributed Simulation: A Case Study in Design and Verification of Distributed Programs , 1979, IEEE Transactions on Software Engineering.

[39]  Adelinde M. Uhrmacher,et al.  Dynamic structures in modeling and simulation: a reflective approach , 2001, TOMC.

[40]  David R. Jefferson,et al.  Virtual time , 1985, ICPP.

[41]  Juan de Lara,et al.  AToM3: A Tool for Multi-formalism and Meta-modelling , 2002, FASE.

[42]  Richard M. Fujimoto Distributed simulation systems , 2003, Proceedings of the 2003 Winter Simulation Conference, 2003..

[43]  Philip A. Wilsey,et al.  A Formal Specification and Verification Framework for Time Warp-Based Parallel Simulation , 2002, IEEE Trans. Software Eng..

[44]  L. Alvisi,et al.  A Survey of Rollback-Recovery Protocols , 2002 .

[45]  Gabriel Wainer Improved Cellular Models with Parallel Cell-DEVS , 2000 .

[46]  Jean Baptiste Filippi,et al.  The JDEVS modelling and simulation environment , 2002 .

[47]  Yi-Bing Lin,et al.  Selecting the checkpoint interval in time warp simulation , 1993, PADS '93.

[48]  Philip A. Wilsey,et al.  An Object-Oriented Time Warp Simulation Kernel , 1998, ISCOPE.

[49]  Alan Weiss,et al.  An analysis of rollback-based simulation , 1991, TOMC.

[50]  Dirk Grunwald,et al.  Customalloc: Efficient synthesized memory allocators , 1993, Softw. Pract. Exp..

[51]  G. A. Wainer,et al.  Models for continuous and hybrid system simulation , 2003, Proceedings of the 2003 Winter Simulation Conference, 2003..

[52]  Bernard P. Zeigler,et al.  Theory of Modeling and Simulation: Integrating Discrete Event and Continuous Complex Dynamic Systems , 2000 .