07.01.2013 Views

Lecture Notes in Computer Science 3472

Lecture Notes in Computer Science 3472

Lecture Notes in Computer Science 3472

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

490 George D<strong>in</strong><br />

A B<br />

C D<br />

MEM = 256 MB<br />

CPU = 800 Mhz<br />

MEM = 256 MB<br />

CPU = 800 Mhz<br />

X<br />

X X Y<br />

SUT<br />

MEM = 128 MB<br />

CPU = 800 Mhz<br />

X Y<br />

MEM = 256 MB<br />

CPU = 800 Mhz<br />

Fig. 16.7. Example of a heterogeneous distributed execution environment<br />

dur<strong>in</strong>g the execution and distribute them between B and C accord<strong>in</strong>g to their<br />

memory capabilities.<br />

Distribution of components is a mathematical function of different parameters.<br />

This function is applied either at deployment time for each component<br />

(when its deployment is required) or for all components at once (if known)<br />

In the follow<strong>in</strong>g function def<strong>in</strong>ition, D is the distribution function, p1, p2, ...<br />

pn are the parameters which <strong>in</strong>fluence the distribution and h1 is the home where<br />

the test component should be distributed.<br />

h1 = D(p1, p2, ..., pn)<br />

Sometimes, it is also possible to compute the homes for all components (h1,<br />

h2, ..., hm).<br />

{h1, h2, ... hm} = D(p1, p2, ..., pn)<br />

There are two types of parameters which are taken <strong>in</strong>to consideration when<br />

distribut<strong>in</strong>g test components:<br />

• external parameters: bandwidth, CPU, memory<br />

• <strong>in</strong>ternal parameters: the number of components, type of components, type<br />

of behaviors, connections<br />

The external parameters are application <strong>in</strong>dependent parameters whose values<br />

depend on the execution environment and are constant for all applications<br />

runn<strong>in</strong>g on that environment. The <strong>in</strong>ternal parameters are related to the component<br />

based application itself and are different for each application.<br />

The TTCN-3 test components are distributed on different hosts. Unfortunately,<br />

<strong>in</strong> TTCN-3 it is not possible to recognize a component by its id. This<br />

problem appears when creat<strong>in</strong>g test components without names like <strong>in</strong> the follow<strong>in</strong>g<br />

example:

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!