You can find some Ansible playbooks for generating traffic with nuttcp and iperf3 for the LSST demo in 2017. In order to generate bidirectional traffic, you should have access to both servers.
The main playbook is nuttcp.yml
. Host specific configuration for each flow is under host_vars, for example destination IP address, control and data plane port. In the same way, global variables are set in the playbook itself.
ansible-playbook killall_nuttcp.yml --user=LOCALUSER --forks=6
ansible-playbook nuttcp.yml --user=LOCALUSER --forks=6
ansible-playbook nuttcp.yml --user=LOCALUSER --limit=ps-bw.l3-santiago.ampath.net --forks=6
ansible-playbook nuttcp.yml --user=LOCALUSER -e=flow_bw=2G -vv --forks=6
ansible-playbook iperf3.yml --user=LOCALUSER --limit=ps-bw.l3-santiago.ampath.net -vv --forks=6
ansible-playbook iperf3.yml --user=LOCALUSER -vv --forks=6