aboutgitcodebugslistschat
path: root/test/demo/passt
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/passt
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/passt')
-rw-r--r--test/demo/passt38
1 files changed, 19 insertions, 19 deletions
diff --git a/test/demo/passt b/test/demo/passt
index 36796f7..ce40e20 100644
--- a/test/demo/passt
+++ b/test/demo/passt
@@ -85,7 +85,7 @@ guest cd passt
gout TARGET_PID pgrep -P $(cat pasta.pid)
sleep 1
-passtb ./passt -f -t 5201,5203
+passtb ./passt -f -t 10001,10003
sleep 2
guest nsenter -t __TARGET_PID__ -U -n --preserve-credentials
@@ -128,9 +128,9 @@ nl
nl
say Let's try to communicate between host and guest.
sleep 2
-guestb socat TCP6-LISTEN:5201 STDIO
+guestb socat TCP6-LISTEN:10001 STDIO
sleep 2
-host echo "Hello from the host" | socat -u STDIN TCP6:[::1]:5201
+host echo "Hello from the host" | socat -u STDIN TCP6:[::1]:10001
sleep 5
nl
@@ -177,18 +177,18 @@ th flow host>guest guest>host
set OPTS -P4 -w 64M -l 1M -i1 --pacing-timer 100000
tr TCP/IPv6 throughput
-hostb sleep 10; iperf3 -c ::1 __OPTS__
-gout BW iperf3 -s1J | jq -rM ".end.sum_received.bits_per_second"
+hostb sleep 10; iperf3 -c ::1 -p 10001 __OPTS__
+gout BW iperf3 -s1J -p 10001 | jq -rM ".end.sum_received.bits_per_second"
bw __BW__ 2.0 3.0
sleep 5
-guestb sleep 10; iperf3 -c __GW6__%__IFNAME__ -p 5202 __OPTS__ -O3
-hout BW iperf3 -s1J -p 5202 | jq -rM ".end.sum_received.bits_per_second"
+guestb sleep 10; iperf3 -c __GW6__%__IFNAME__ -p 10002 __OPTS__ -O3
+hout BW iperf3 -s1J -p 10002 | jq -rM ".end.sum_received.bits_per_second"
bw __BW__ 2.0 3.0
tl TCP/IPv6 RR latency
-guestb tcp_rr -C 5201 -P 5203 -6 --nolog
+guestb tcp_rr -C 10001 -P 10003 -6 --nolog
sleep 2
-hout LAT tcp_rr -C 5201 -P 5203 --nolog -c -H ::1 | sed -n 's/^throughput=\(.*\)/\1/p'
+hout LAT tcp_rr -C 10001 -P 10003 --nolog -c -H ::1 | sed -n 's/^throughput=\(.*\)/\1/p'
lat __LAT__ 1000 800
sleep 2
hostb tcp_rr -6 --nolog
@@ -198,9 +198,9 @@ lat __LAT__ 1000 800
sleep 2
tl TCP/IPv6 CRR latency
-guestb tcp_crr -C 5201 -P 5203 -6 --nolog
+guestb tcp_crr -C 10001 -P 10003 -6 --nolog
sleep 2
-hout LAT tcp_crr -C 5201 -P 5203 --nolog -c -H ::1 | sed -n 's/^throughput=\(.*\)/\1/p'
+hout LAT tcp_crr -C 10001 -P 10003 --nolog -c -H ::1 | sed -n 's/^throughput=\(.*\)/\1/p'
lat __LAT__ 1000 800
sleep 2
hostb tcp_crr -6 --nolog
@@ -210,18 +210,18 @@ lat __LAT__ 1000 800
sleep 2
tr TCP/IPv4 throughput
-hostb sleep 10; iperf3 -c 127.0.0.1 __OPTS__
-gout BW iperf3 -s1J | jq -rM ".end.sum_received.bits_per_second"
+hostb sleep 10; iperf3 -c 127.0.0.1 -p 10001 __OPTS__
+gout BW iperf3 -p 10001 -s1J | jq -rM ".end.sum_received.bits_per_second"
bw __BW__ 2.0 3.0
sleep 5
-guestb sleep 10; iperf3 -c __GW__ -p 5202 __OPTS__ -O3
-hout BW iperf3 -s1J -p 5202 | jq -rM ".end.sum_received.bits_per_second"
+guestb sleep 10; iperf3 -c __GW__ -p 10002 __OPTS__ -O3
+hout BW iperf3 -s1J -p 10002 | jq -rM ".end.sum_received.bits_per_second"
bw __BW__ 2.0 3.0
tl TCP/IPv4 RR latency
-guestb tcp_rr -C 5201 -P 5203 -4 --nolog
+guestb tcp_rr -C 10001 -P 10003 -4 --nolog
sleep 2
-hout LAT tcp_rr -C 5201 -P 5203 --nolog -c -H 127.0.0.1 | sed -n 's/^throughput=\(.*\)/\1/p'
+hout LAT tcp_rr -C 10001 -P 10003 --nolog -c -H 127.0.0.1 | sed -n 's/^throughput=\(.*\)/\1/p'
lat __LAT__ 1000 800
sleep 2
hostb tcp_rr -4 --nolog
@@ -231,9 +231,9 @@ lat __LAT__ 1000 800
sleep 2
tl TCP/IPv4 CRR latency
-guestb tcp_crr -C 5201 -P 5203 -4 --nolog
+guestb tcp_crr -C 10001 -P 10003 -4 --nolog
sleep 2
-hout LAT tcp_crr -C 5201 -P 5203 --nolog -c -H 127.0.0.1 | sed -n 's/^throughput=\(.*\)/\1/p'
+hout LAT tcp_crr -C 10001 -P 10003 --nolog -c -H 127.0.0.1 | sed -n 's/^throughput=\(.*\)/\1/p'
lat __LAT__ 1000 800
sleep 2
hostb tcp_crr -4 --nolog