226 | | 5. We then define the tasks to perform when all the resources and declared applications in all the defined groups are ready. |
227 | | * tracker: this group includes a single resource, which will act as the BitTorrent tracker for the other resources. We associate a ''bttrack'' application to this group, and set the parameter properties for that application. |
228 | | * seeder: this group holds the resources which will seed the video content to the other resources. Thus it has a transmission daemon application associated to it, with the correct parameter set. |
229 | | * leecher: this group contains the resources which will download the video content from other peers. It also has an associated transmission daemon application. |
230 | | |
231 | | |
| 226 | 5. We then define the tasks to perform at time '''t''' when all the resources and declared applications in all the defined groups are ready. The time offsets below are in seconds. |
| 227 | * t: we start the cleaning applications on all the leechers and all the resources |
| 228 | * t+10: we start the tracker application on the tracker resource |
| 229 | * t+15: we start the BitTorrent applications on the peers (i.e. seeders and leechers) |
| 230 | * t+20: we limit the upload rate on all the peers. Note that here we are using the '''exec''' OEDL command, which allows you to request the execution of a shell command on a group of resources. |
| 231 | * t+25: we start the VLC application on the peers downloading the video content |
| 232 | * finally we let the experiment run until t+220, when we perform another cleaning task before terminating the experiment run |