RoundTrip & Flood¶
RoundTrip and Flood are two basic Hello World style Demonstrators.
A simple message is send around toward several (network) nodes. Typically, each node runs on a dedicated Raspberry-Pi. As DDS is network-agnostic; multiple nodes can run on the same computer. By example, on a PC/Laptop, which is great for demonstration and an easy start.
A standard setup is shown below, where 4 nodes are used; a trivial variations is to have more or less nodes
One node is called “master”, as it starts the roundtrip; and executes the measurements. The other nodes are called “hub” and have the same functionality; the “links” are set by configuration.
The difference between ‘RoundTrip’ and ‘Flood’ is how fast and in which order the message are processed.
In RoundTrip only one message is send around at the same time. The ‘Master’ starts a the sequence by sending one message (by example: “0”). And the receiving hub forwards it; often trivially changing it (in the example: by adding “1” to the incoming message). Only when the ‘master’ receives the message (let’s say “3”), it send a new message. In the example, that would be “4” (3+1). And the sequence starts again. After an configured number of roundtrips, the master stops sending/forwarding; and the demo is over. |
In Flood the ‘hub’ works exactly as in RoundTrip (RT_001): it receives a message and forwards it. Typically, the message is changed by adding a hub-specific postfix (by example the hub-number) The ‘master’ differs however: it does NOT wait for an incoming message to send the next message. Instead it sends all message as fast as possible. Still, the ‘Master’ has to read the incoming message; but can dispose them; reading should have a higher priority the sending! |