+ All Categories
Home > Documents > Distributed Execution of Ptolemy Models Yang Zhao (ellen_zh@eecs) Thomas H. Feng (tfeng@eecs)

Distributed Execution of Ptolemy Models Yang Zhao (ellen_zh@eecs) Thomas H. Feng (tfeng@eecs)

Date post: 31-Dec-2015
Category:
Upload: chumani-walker
View: 31 times
Download: 0 times
Share this document with a friend
Description:
Distributed Execution of Ptolemy Models Yang Zhao (ellen_zh@eecs) Thomas H. Feng (tfeng@eecs) Class Project for EE290N. Demo. Overview. A framework to distributedly execute Ptolemy models (currently, PN models): DPN (Distributed PN) domain in Ptolemy - PowerPoint PPT Presentation
Popular Tags:
22
Distributed Execution of Ptolemy Models Yang Zhao (ellen_zh@eecs) Thomas H. Feng (tfeng@eecs) Class Project for EE290N
Transcript

Distributed Execution of Ptolemy Models

Yang Zhao (ellen_zh@eecs)

Thomas H. Feng (tfeng@eecs)

Class Project for EE290N

Demo

Overview

A framework to distributedly execute Ptolemy models (currently, PN models):

DPN (Distributed PN) domain in Ptolemy• Startup and communication between submodels• PN semantics (blocking read, blocking write)• Model deployment

Communication framework based on CORBA• Dynamically lookup machines (Naming Service)• Ptolemy process startup on request (ptAgent)• Message relay (ptAgent)

ptAgent

ptAgent ptAgent

Naming Service

Register (1)

ptAgent

ptAgent ptAgent

Naming Service

Register to Naming Service

(ptAgent,

Models)

Register (2)

ptAgent

ptAgent ptAgent

Naming Service

Look up to Naming Service

(ptAgent,

Models)

Lookup (1)

ptAgent

ptAgent ptAgent

Naming Service

after look up for ptAgent

Lookup (2)

Distributed Execution in Ptolemy

• Two major ways:– Distribute a big model to a set of hosts and

have them cooperate when executing to maintain the entire behavior.

– Discover applications or models currently running in the system and join them: ex, distributed games, chat rooms.

Lookup for Available ptAgents

Configuration

DOPLAP11 DOPLAP11DOPLAP19

Model Deployment

DOPLAP11 DOPLAP11DOPLAP19

Parse the model with the given configuration

ptAgent

ptAgent

Double click to distribute model.

Model Deployment

ptAgent

ptAgent

Double click to distribute model.

Launch/start modelLaunch/start model

Model Deployment

ptAgent

ptAgent

CommunicationHelper

CommunicationHelper

Model Execution

ptAgent

ptAgent

CommunicationHelper

CommunicationHelper

Event channel

Publisher/Consumer

Publisher/Consumer

Distributed Execution

Distributed Execution in Ptolemy

• Two major ways:√ Distribute a big model to a set of hosts and

have them cooperate when executing to maintain the entire behavior.

– Discover applications or models currently running in the system and join them: ex, distributed games, chat rooms.

Chat demo

ptAgent

ptAgent

Host1

Chat demo

ptAgent

ptAgent

Host1

ptAgent

ptAgent

Host1

connect to

Chat demo

Yet another way to use

Yet another way to use

Future Work

• Extend the current implementation to support more domains (e.g., DE, SDF)

• Improve communication efficiency to enable high-performance execution

• To preserve the semantics of timed domains, realize backtracking with AspectJ

• Provide more facility at a lower level, e.g., communication observer, debugger and life-time management


Recommended