aboutgitcodebugslistschat
path: root/test/demo/pasta
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2022-09-24 00:07:18 +0200
committerStefano Brivio <sbrivio@redhat.com>2022-09-24 00:07:18 +0200
commitb3549093f7a3e9e9b7688df95740ea0467bb5861 (patch)
tree040d0f67bcd4f5d9c1c12307fbdc313bd56b6ef4 /test/demo/pasta
parent6d08bfc3e0b5fa542608f5a7439de7cfdc7e993d (diff)
downloadpasst-b3549093f7a3e9e9b7688df95740ea0467bb5861.tar
passt-b3549093f7a3e9e9b7688df95740ea0467bb5861.tar.gz
passt-b3549093f7a3e9e9b7688df95740ea0467bb5861.tar.bz2
passt-b3549093f7a3e9e9b7688df95740ea0467bb5861.tar.lz
passt-b3549093f7a3e9e9b7688df95740ea0467bb5861.tar.xz
passt-b3549093f7a3e9e9b7688df95740ea0467bb5861.tar.zst
passt-b3549093f7a3e9e9b7688df95740ea0467bb5861.zip
test/demo: Avoid using port 5201 on the host
That's the default port for iperf3, which also means that it's quite likely in use on my test machine. Use different port numbers: recycle the scheme we use in tests for passt and pasta's demo, use 5221-5224 (a bit shorter) for the slirp4netns container in Podman's demo. Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'test/demo/pasta')
-rw-r--r--test/demo/pasta16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/demo/pasta b/test/demo/pasta
index 11e4d3c..ee046d0 100644
--- a/test/demo/pasta
+++ b/test/demo/pasta
@@ -185,12 +185,12 @@ th flow init>ns ns>init
set OPTS -P4 -l 1M -w 32M -i1 --pacing-timer 100000
tr TCP/IPv6 throughput
-hostb sleep 10; iperf3 -c ::1 __OPTS__
-nsout BW iperf3 -s1J | jq -rM ".end.sum_received.bits_per_second"
+hostb sleep 10; iperf3 -c ::1 -p 10001 __OPTS__
+nsout BW iperf3 -s1J -p 10001 | jq -rM ".end.sum_received.bits_per_second"
bw __BW__ 10.0 20.0
sleep 5
-nsb sleep 10; iperf3 -c ::1 __OPTS__
-hout BW iperf3 -s1J | jq -rM ".end.sum_received.bits_per_second"
+nsb sleep 10; iperf3 -c ::1 -p 10001 __OPTS__
+hout BW iperf3 -s1J -p 10001 | jq -rM ".end.sum_received.bits_per_second"
bw __BW__ 10.0 20.0
tl TCP/IPv6 RR latency
@@ -218,12 +218,12 @@ lat __LAT__ 1000 500
sleep 2
tr TCP/IPv4 throughput
-hostb sleep 10; iperf3 -c 127.0.0.1 __OPTS__
-nsout BW iperf3 -s1J | jq -rM ".end.sum_received.bits_per_second"
+hostb sleep 10; iperf3 -c 127.0.0.1 -p 10001 __OPTS__
+nsout BW iperf3 -s1J -p 10001 | jq -rM ".end.sum_received.bits_per_second"
bw __BW__ 10.0 20.0
sleep 5
-nsb sleep 10; iperf3 -c 127.0.0.1 __OPTS__
-hout BW iperf3 -s1J | jq -rM ".end.sum_received.bits_per_second"
+nsb sleep 10; iperf3 -c 127.0.0.1 -p 10001 __OPTS__
+hout BW iperf3 -s1J -p 10001 | jq -rM ".end.sum_received.bits_per_second"
bw __BW__ 10.0 20.0
tl TCP/IPv4 RR latency