#!/bin/sh
#
# Purpose:	start 2 udp flows (like usndrs-2npr0 but with TOS = 1
#

source /users/onl/.topology	# get defs of external interfaces

# prime the ARP caches
echo "Priming the ARP caches"
ssh $n1p2 ping -c 5 n2p2
ssh $n1p3 ping -c 5 n2p3

# start udp sndrs
echo "Begin transmission"
### ssh $n1p2 /usr/local/bin/iperf -c n2p2 -u -b 200m -S 1 -t 20 &
### ssh $n1p3 /usr/local/bin/iperf -c n2p3 -u -b 200m -S 1 -t 20 &

ssh $n1p2 /usr/local/bin/iperf -c n2p2 -u -b 200m -S 16 -t 10 &
sleep 4
ssh $n1p3 /usr/local/bin/iperf -c n2p3 -u -b 200m -S 16 -t 10 &
