Linking Resource Test with Middleware Marshalling

Description

This example model can be used to test the network simulation.

Environment

None

Test Case Description

Test Step

Expected Result

1

Start PCM and import LinkingResourceTest in workspace

PCM IDE up and running, LinkingResourceTest project available in workspace

2

In the project, right-click on "LinkingResourceTest with Middleware Marshalling.launch" and select "Run As"->"1 LinkingResourceTest with Middleware Marshalling"

A simulation run is launched. The simulation should complete after a few minutes (or less).

3

Check the output in the console. It is easiest to copy it in a text editor and then search for the text occurences mentioned as expected results.

C1 sends two parameters to C2 with 3 characterisations:

  • param.NUMBER_OF_ELEMENTS is 10, and param is an Int array

  • param.BYTESIZE is 1000

  • aString.BYTESIZE is 333

The middleware can decide how to handle the size of the int array. At this time, the default glassfish model creates an additional bytesize of 2 * NUMBER_OF_ELEMENTS.

Thus, with the glassfish model in the same folder, the network should be loaded with a demand of 1353. With the network throughput of 10, that is an actual demand of 135.3 plus the latency, which is 0.01, so 135.31 is the final network load.

The simulation output should say at some point (if verbose output is log level debug are enabled):
"DEBUG: A network load of 135.31 has been determined. [de.uka.ipd.sdq.simucomframework.resources.SimulatedLinkingResource]"

For the communication back from the second component to the first, the RETURN.BYTESIZE is set to 500. Thus, a final network demand of 50.01 should be determined (including latency).

Attachments

1

Activity

Show:

Sebastian Krach November 26, 2021 at 8:11 AM
Edited

Middleware simulation is not yet supported by SimuLizar. This should be fixed once is done.

Floriment Klinaku January 29, 2021 at 8:42 AM

Used the Palladio Drop.

The output value is not the same as reported in the test case. Instead of 135.31 I received a network load 133.31. The other network demand is correct.

Martina Rapp January 14, 2021 at 4:48 PM

result testing day 11-11-2020: test failed

Sebastian Krach November 11, 2020 at 3:41 PM

Middleware simulation is not yet supported by SimuLizar. This should be fixed once SIMULIZAR-118.

Unresolved

Details

Assignee

Reporter

Priority

Created November 11, 2019 at 2:25 PM
Updated November 6, 2023 at 10:52 AM