• No results found

Application of Petri Nets to Evaluation of Grid Applications Efficiency

N/A
N/A
Protected

Academic year: 2021

Share "Application of Petri Nets to Evaluation of Grid Applications Efficiency"

Copied!
28
0
0

Loading.... (view fulltext now)

Full text

(1)

Application of Petri Nets to

Evaluation of Grid Applications

Efficiency

Wojciech Rząsa

1

,

Marian Bubak

2,3

(1) Rzeszow University of Technology, Poland

(2) Institute of Computer Science AGH, Krakow, Poland

(3) ACC Cyfronet, AGH, Krakow, Poland

(2)

Outline

Motivation and the goal

Related work

Analysis method

The models

Enabling the simulation

Results

(3)

Motivation

GT2 security overhead

Secured connection enables

Authentication

Data integrity

Confidentiality

Connection establishment

[Baliś, Bubak, Rząsa, Szepieniec 2004]

30

896

Secured

Established

in 1 second

Requested in 1 second

Connections

Failed

4

1691

1692

Clear

0

Data transmission

(4)

Motivation

Communication overhead examples

Secure communication

GT2 GSI

GT3/GT4 transport-level and message-level security

SSL/TLS

VPN

Communication layers

TCP/IP

HTTP over TCP/IP

SOAP over HTTP over TCP/IP

(5)

Motivation

Distributed application efficiency

Communication overhead

Delay caused by the other resources

e.g. CPU

Application logic and topology

(6)

The goal

Analyze efficiency of distributed application

Depending on

Parameters of resources

Application design

(7)

Simulations of the Grid –

examples

Replica management simulators

OptorSim

DataGrid project, 2004

GridNet

[Lamehamedi, Shentu, Szymanski, Deelman 2003]

ChicagoSim

[Ranganathan, Foster 2001]

Scheduling algorithms simulators

SimGrid

[Casanova, Legrand, Marchal 2003]

GridSim

[Buyya 2005]

Grid security simulator –

G3S

[Naqvi, Riguidel 2005]

Grid application simulators

(8)

Simulations of the Grid –

tools and engines exploited

General purpose discrete-event simulators

PARSEC

[Bagrodia]

ChicagoSim

SimJava

[McNab,Howell 1998]

GridSim

CSIM

[Schwetman 1998]

Performance Prophet

Network Simulator (ns)

GridNet

(9)

The method

Model the environment and the application

(10)

Parts of the model

Model of the Grid resources

(11)

node1

node3

node4

node5

Nodes

:

CPU(s)

The model

(12)

node1

node3

node4

node5

net1

net3

net4

net2

net5

Parameters of the

net segments

:

Bandwidth

Delay

Capacity (queues)

(13)

node1

node3

node4

node5

net1

net3

net4

net2

net5

link2_4

The model

(14)

node1

node3

node4

node5

net1

net3

net4

net2

net5

link2_4

link1_5

The model

(15)

node1

node3

node4

node5

net1

net3

net4

net2

net5

link2_4

link1_5

element1

element1

element2

element2

element3

element3

element4

element4

element5

element5

The model

Elements

of the application

located on the nodes

(16)

node1

node3

node4

node5

net1

net3

net4

net2

net5

link2_4

link1_5

element1

element1

element2

element2

element3

element3

element4

element4

element5

element5

conn1

The model

Network connections

established between the

(17)

node1

node3

node4

node5

net1

net3

net4

net2

net5

link2_4

link1_5

element1

element1

element2

element2

element3

element3

element4

element4

element5

element5

conn1

ur

c

es

.x

m

l

a

pp

lic

at

ion

.x

m

l

m

a

pp

ing.

xm

l

The model

Described using XML

separate files

(18)

Parameters of the

application element

Network connection parameters

Delay caused by processing

Parameters of generated communication

All parameters described using expressions

if ($time<1000) { 100*$incomingVolume }

else { pow($incomingVolume,3) }

(19)

Reliable simulation

High level model – convenient for application

developers

Executable model for reliable simulation

Based on a formalism

Properly reflecting activities of concurrent,

distributed applications

Automatic transformation, transparent for the

user

(20)

Enabling the simulation

Petri Nets

Concurrency

Synchronization

Conflict

Mutual exclusion

Reliable formal model of concurrent processes

Simulation

efficient

interactive

(21)

Timed Colored Petri Net

Classical PN extended by

Color sets – data types

Colors of tokens – values

Guards defined for transitions

Arc expressions

More compact and transparent model

Time

Tokens with timestamps

Timestamps modified by transitions

Timestamps affect availability of tokens

(22)

Experiment

node01

node03

Data

Data

64kbps

64kbps

64kbps

At most one persistent connection

between each two nodes

Transmission of 100 packages of data

No other data processing

Measurement of wall time of whole experiment

Nodes: AMD Athlon 64 1.8GHZ, 2GB RAM

(23)

Results (64kbps links)

50 100 150 200 250 300 350 400

Experiment and simulation Raw TCP, 64kbps links Experiment Simulation S im u la tio n ti m e [s] 200 400 600 800 1000 1200 1400 1600 1800 2000 2200 0 10 20 30 40 50 60 70

Experiment and simulation

Raw TCP, 64kbps links Experiment Simulation Package size [B] S im ul at io n tim e [s ]

(24)

128 and 64kbps links

node01

node02

node03

Data

Data

Data

Data

64kbps

128kbps

128kbps

(25)

Results (128 and 64kbps links)

0 500 1000 1500 2000 2500 3000 3500 0 10 20 30 40 50 60 70 80 90 100

Experiment and simulation

Raw TCP, 128, 64,128 kbps links Experiment Simulation Package size [B] S im u la tio n t im e [ s ] 0 50 100 150 200 250 300 350

Experiment and simulation

Raw TCP, 128, 64,128 kbps links Experiment Simulation S im u la ti o n tim e [s ]

(26)

64 and 128kbps links

node01

node02

node03

Data

Data

Data

Data

128kbps

64kbps

64kbps

(27)

Results (64 and 128kbps links)

0 500 1000 1500 2000 2500 3000 3500 0 10 20 30 40 50 60 70 80 90

Experiment and simulation

Raw TCP, 64,128, 64 kbps links Experiment Simulation Package size [B] S im u la tio n t im e [ s] 0 50 100 150 200 250

Experiment and simulation

Raw TCP, 64,128, 64 kbps links Experiment Simulation S im ul at io n tim e [s ]

(28)

Conclusions and future work

Conclusions

Correct results if TCP model works correctly

The Petri net based model works correctly

Inaccuracy caused mostly by incorrect TCP flow

control implementation

Future work

Correct TCP model

Improve High-level application model

Feasibility study – ATLAS TDAQ

References

Related documents

spent by the machine in performing transitions t 4 and t 5 is negligible. The rules for the information flow dynamics of PPNs [recall rules 4) to 7) in Section III-A] along with

Notion of term is presented as a mean for describing processes, axioms are given and operational semantics is assigned to process expressions (terms).. Section 5 concentrates on

Section 4 sketches how the method of S-invariant analysis applied to Pr/T nets can help to reveal properties of software process models described by FUNSOFT nets.. Finally, section

They are a widely used model for concurrency, attractive from the theoretical point of view because of its simplicity and its intrinsically concurrent and distributed nature, and

spent by the machine in performing transitions t 4 and t 5 is negligible. The rules for the information flow dynamics of PPNs [recall rules 4) to 7) in Section III-A] along with

Figure 4.a) shows the error of the transition weights between the original model and the inferred model from the log. Note that weight errors of all race policies collapse,.. as

• Property based model checking of Algebraic Petri nets: a technique based on slicing has been successfully proposed to handle the state space explosion problem (see chapter 4)..

In particular, our methods for enforcing safety properties (mutual exclusion and deadlock prevention) are more tractable when Java pro- grams are represented as Petri nets2. Modern