From b3549093f7a3e9e9b7688df95740ea0467bb5861 Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Sat, 24 Sep 2022 00:07:18 +0200 Subject: [PATCH] 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 --- test/demo/passt | 38 +++++----- test/demo/pasta | 16 ++--- test/demo/podman | 176 +++++++++++++++++++++++------------------------ 3 files changed, 115 insertions(+), 115 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 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 diff --git a/test/demo/podman b/test/demo/podman index a83a04f..c5bc05a 100644 --- a/test/demo/podman +++ b/test/demo/podman @@ -190,7 +190,7 @@ sleep 3 ns1 exit -ns1b podman run --rm --net=slirp4netns:allow_host_loopback=true,enable_ipv6=true -p 5201-5202:5201-5202/tcp -p 5201-5202:5201-5202/udp -ti alpine sh +ns1b podman run --rm --net=slirp4netns:allow_host_loopback=true,enable_ipv6=true -p 5221-5222:5221-5222/tcp -p 5221-5222:5221-5222/udp -ti alpine sh sleep 5 nl nl @@ -236,7 +236,7 @@ nl sleep 2 ns2b exit sleep 1 -ns2b ./bin/podman run --net=pasta:-T,5213-5214,-U,5213-5214 -p 5203-5204:5203-5204/tcp -p 5203-5204:5203-5204/udp --rm -ti alpine sh +ns2b ./bin/podman run --net=pasta:-T,5213-5214,-U,5213-5214 -p 5223-5224:5223-5224/tcp -p 5223-5224:5223-5224/udp --rm -ti alpine sh sleep 5 nl @@ -282,7 +282,7 @@ say port forwarder (on the path to the container). sleep 5 ns1 exit -ns1b podman run --rm --net=slirp4netns:allow_host_loopback=true,enable_ipv6=true,port_handler=slirp4netns -p 5201-5202:5201-5202/tcp -p 5201-5202:5201-5202/udp -ti alpine sh +ns1b podman run --rm --net=slirp4netns:allow_host_loopback=true,enable_ipv6=true,port_handler=slirp4netns -p 5221-5222:5221-5222/tcp -p 5221-5222:5221-5222/udp -ti alpine sh sleep 3 nl @@ -323,13 +323,13 @@ info non-loopback (tap) connections th mode slirp4netns pasta tr TCP/IPv6 to ns -#ns1b iperf3 -s1J -p 5201 | jq -rM ".end.sum_received.bits_per_second" >t1 -#hostb iperf3 -c __ADDR6__ -p 5201 __OPTS__ +#ns1b iperf3 -s1J -p 5221 | jq -rM ".end.sum_received.bits_per_second" >t1 +#hostb iperf3 -c __ADDR6__ -p 5221 __OPTS__ #ns1out BW cat t1 #bw __BW__ 0.0 0.0 bw - -ns2b iperf3 -s1J -p 5203 | jq -rM ".end.sum_received.bits_per_second" >t1 -hostb iperf3 -c __ADDR6__ -p 5203 __OPTS__ +ns2b iperf3 -s1J -p 5223 | jq -rM ".end.sum_received.bits_per_second" >t1 +hostb iperf3 -c __ADDR6__ -p 5223 __OPTS__ sleep 12 ns2b ns2out BW cat t1 @@ -337,36 +337,36 @@ bw __BW__ 0.0 0.0 hostb tl RR latency -#ns1b ./tcp_rr -6 --nolog -C 5201 -P 5202 +#ns1b ./tcp_rr -6 --nolog -C 5221 -P 5222 #sleep 2 -#hout LAT tcp_rr --nolog -c -H __ADDR6__ -C 5201 -P 5202 -l 5 | sed -n 's/^throughput=\(.*\)/\1/p' +#hout LAT tcp_rr --nolog -c -H __ADDR6__ -C 5221 -P 5222 -l 5 | sed -n 's/^throughput=\(.*\)/\1/p' #lat __LAT__ 100000 100000 lat - -ns2b ./tcp_rr -6 --nolog -C 5203 -P 5204 +ns2b ./tcp_rr -6 --nolog -C 5223 -P 5224 sleep 2 -hout LAT tcp_rr --nolog -c -H __ADDR6__ -C 5203 -P 5204 -l 5 | sed -n 's/^throughput=\(.*\)/\1/p' +hout LAT tcp_rr --nolog -c -H __ADDR6__ -C 5223 -P 5224 -l 5 | sed -n 's/^throughput=\(.*\)/\1/p' lat __LAT__ 100000 100000 tl CRR latency -#ns1b ./tcp_crr -6 --nolog -C 5201 -P 5202 +#ns1b ./tcp_crr -6 --nolog -C 5221 -P 5222 #sleep 2 -#hout LAT tcp_crr --nolog -c -H __ADDR6__ -C 5201 -P 5202 -l 5 | sed -n 's/^throughput=\(.*\)/\1/p' +#hout LAT tcp_crr --nolog -c -H __ADDR6__ -C 5221 -P 5222 -l 5 | sed -n 's/^throughput=\(.*\)/\1/p' #lat __LAT__ 100000 100000 lat - -ns2b ./tcp_crr -6 --nolog -C 5203 -P 5204 +ns2b ./tcp_crr -6 --nolog -C 5223 -P 5224 sleep 2 -hout LAT tcp_crr --nolog -c -H __ADDR6__ -C 5203 -P 5204 -l 5 | sed -n 's/^throughput=\(.*\)/\1/p' +hout LAT tcp_crr --nolog -c -H __ADDR6__ -C 5223 -P 5224 -l 5 | sed -n 's/^throughput=\(.*\)/\1/p' lat __LAT__ 100000 100000 tl TCP/IPv4 to ns -ns1b iperf3 -s1J -p 5201 | jq -rM ".end.sum_received.bits_per_second" >t1 -hostb iperf3 -c __ADDR4__ -p 5201 __OPTS__ +ns1b iperf3 -s1J -p 5221 | jq -rM ".end.sum_received.bits_per_second" >t1 +hostb iperf3 -c __ADDR4__ -p 5221 __OPTS__ sleep 12 ns1b ns1out BW cat t1 bw __BW__ 0.0 0.0 -ns2b iperf3 -s1J -p 5203 | jq -rM ".end.sum_received.bits_per_second" >t1 -hostb iperf3 -c __ADDR4__ -p 5203 __OPTS__ +ns2b iperf3 -s1J -p 5223 | jq -rM ".end.sum_received.bits_per_second" >t1 +hostb iperf3 -c __ADDR4__ -p 5223 __OPTS__ sleep 12 ns2b ns2out BW cat t1 @@ -374,23 +374,23 @@ bw __BW__ 0.0 0.0 hostb tl RR latency -ns1b ./tcp_rr -4 --nolog -C 5201 -P 5202 +ns1b ./tcp_rr -4 --nolog -C 5221 -P 5222 sleep 2 -hout LAT tcp_rr --nolog -c -H __ADDR4__ -C 5201 -P 5202 -l 5 | sed -n 's/^throughput=\(.*\)/\1/p' +hout LAT tcp_rr --nolog -c -H __ADDR4__ -C 5221 -P 5222 -l 5 | sed -n 's/^throughput=\(.*\)/\1/p' lat __LAT__ 100000 100000 -ns2b ./tcp_rr -4 --nolog -C 5203 -P 5204 +ns2b ./tcp_rr -4 --nolog -C 5223 -P 5224 sleep 2 -hout LAT tcp_rr --nolog -c -H __ADDR4__ -C 5203 -P 5204 -l 5 | sed -n 's/^throughput=\(.*\)/\1/p' +hout LAT tcp_rr --nolog -c -H __ADDR4__ -C 5223 -P 5224 -l 5 | sed -n 's/^throughput=\(.*\)/\1/p' lat __LAT__ 100000 100000 tl CRR latency -ns1b ./tcp_crr -4 --nolog -C 5201 -P 5202 +ns1b ./tcp_crr -4 --nolog -C 5221 -P 5222 sleep 2 -hout LAT tcp_crr --nolog -c -H __ADDR4__ -C 5201 -P 5202 -l 5 | sed -n 's/^throughput=\(.*\)/\1/p' +hout LAT tcp_crr --nolog -c -H __ADDR4__ -C 5221 -P 5222 -l 5 | sed -n 's/^throughput=\(.*\)/\1/p' lat __LAT__ 100000 100000 -ns2b ./tcp_crr -4 --nolog -C 5203 -P 5204 +ns2b ./tcp_crr -4 --nolog -C 5223 -P 5224 sleep 2 -hout LAT tcp_crr --nolog -c -H __ADDR4__ -C 5203 -P 5204 -l 5 | sed -n 's/^throughput=\(.*\)/\1/p' +hout LAT tcp_crr --nolog -c -H __ADDR4__ -C 5223 -P 5224 -l 5 | sed -n 's/^throughput=\(.*\)/\1/p' lat __LAT__ 100000 100000 tr TCP/IPv6 to host @@ -469,49 +469,49 @@ sleep 5 tr UDP/IPv6 to ns -#ns1b iperf3 -s1J -p 5201 | jq -rM ".intervals[0].sum.bits_per_second" >t1 -#hostb iperf3 -u -c __ADDR6__ -p 5201 -t5 -b 35G +#ns1b iperf3 -s1J -p 5221 | jq -rM ".intervals[0].sum.bits_per_second" >t1 +#hostb iperf3 -u -c __ADDR6__ -p 5221 -t5 -b 35G #sleep 10 #ns1out BW cat t1 #bw __BW__ 0.0 0.0 bw - -ns2b iperf3 -s1J -p 5204 | jq -rM ".intervals[0].sum.bits_per_second" >t1 -hostb iperf3 -u -c __ADDR6__ -p 5204 -t5 -b 35G +ns2b iperf3 -s1J -p 5224 | jq -rM ".intervals[0].sum.bits_per_second" >t1 +hostb iperf3 -u -c __ADDR6__ -p 5224 -t5 -b 35G sleep 10 ns2out BW cat t1 bw __BW__ 0.0 0.0 tl RR latency -#ns1b ./udp_rr -6 --nolog -C 5201 -P 5202 +#ns1b ./udp_rr -6 --nolog -C 5221 -P 5222 #sleep 2 -#hout LAT udp_rr --nolog -c -H __ADDR6__ -C 5201 -P 5202 -l 5 | sed -n 's/^throughput=\(.*\)/\1/p' +#hout LAT udp_rr --nolog -c -H __ADDR6__ -C 5221 -P 5222 -l 5 | sed -n 's/^throughput=\(.*\)/\1/p' #lat __LAT__ 100000 100000 lat - -ns2b ./udp_rr -6 --nolog -C 5203 -P 5204 +ns2b ./udp_rr -6 --nolog -C 5223 -P 5224 sleep 2 -hout LAT udp_rr --nolog -c -H __ADDR6__ -C 5203 -P 5204 -l 5 | sed -n 's/^throughput=\(.*\)/\1/p' +hout LAT udp_rr --nolog -c -H __ADDR6__ -C 5223 -P 5224 -l 5 | sed -n 's/^throughput=\(.*\)/\1/p' lat __LAT__ 100000 100000 tl UDP/IPv4 to ns -ns1b iperf3 -s1J -p 5201 | jq -rM ".intervals[0].sum.bits_per_second" >t1 -hostb iperf3 -u -c __ADDR4__ -p 5201 -t5 -b 35G +ns1b iperf3 -s1J -p 5221 | jq -rM ".intervals[0].sum.bits_per_second" >t1 +hostb iperf3 -u -c __ADDR4__ -p 5221 -t5 -b 35G sleep 10 ns1out BW cat t1 bw __BW__ 0.0 0.0 -ns2b iperf3 -s1J -p 5204 | jq -rM ".intervals[0].sum.bits_per_second" >t1 -hostb iperf3 -u -c __ADDR4__ -p 5204 -t5 -b 35G +ns2b iperf3 -s1J -p 5224 | jq -rM ".intervals[0].sum.bits_per_second" >t1 +hostb iperf3 -u -c __ADDR4__ -p 5224 -t5 -b 35G sleep 10 ns2out BW cat t1 bw __BW__ 0.0 0.0 tl RR latency -ns1b ./udp_rr -6 --nolog -C 5201 -P 5202 +ns1b ./udp_rr -6 --nolog -C 5221 -P 5222 sleep 2 -hout LAT udp_rr --nolog -c -H __ADDR4__ -C 5201 -P 5202 -l 5 | sed -n 's/^throughput=\(.*\)/\1/p' +hout LAT udp_rr --nolog -c -H __ADDR4__ -C 5221 -P 5222 -l 5 | sed -n 's/^throughput=\(.*\)/\1/p' lat __LAT__ 100000 100000 -ns2b ./udp_rr -6 --nolog -C 5203 -P 5204 +ns2b ./udp_rr -6 --nolog -C 5223 -P 5224 sleep 2 -hout LAT udp_rr --nolog -c -H __ADDR4__ -C 5203 -P 5204 -l 5 | sed -n 's/^throughput=\(.*\)/\1/p' +hout LAT udp_rr --nolog -c -H __ADDR4__ -C 5223 -P 5224 -l 5 | sed -n 's/^throughput=\(.*\)/\1/p' lat __LAT__ 100000 100000 tr UDP/IPv6 to host @@ -560,7 +560,7 @@ lat __LAT__ 100000 100000 ns1 exit -ns1 podman run --rm --net=slirp4netns:allow_host_loopback=true,enable_ipv6=true -p 5201-5202:5201-5202/tcp -p 5201-5202:5201-5202/udp -ti alpine sh +ns1 podman run --rm --net=slirp4netns:allow_host_loopback=true,enable_ipv6=true -p 5221-5222:5221-5222/tcp -p 5221-5222:5221-5222/udp -ti alpine sh ns1 apk add iperf3 jq bc ns1 wget lameexcu.se/tcp_rr; chmod 755 tcp_rr ns1 wget lameexcu.se/tcp_crr; chmod 755 tcp_crr @@ -572,16 +572,16 @@ th mode rootlesskit pasta tr TCP/IPv6 to ns -ns1b (iperf3 -s1J -p 5201 | jq -rM ".end.sum_received.bits_per_second" >t1) & -ns1b iperf3 -s1J -p 5202 | jq -rM ".end.sum_received.bits_per_second" >t2 -hostb iperf3 -c ::1 -p 5201 __OPTS__ & iperf3 -c ::1 -p 5202 __OPTS__ +ns1b (iperf3 -s1J -p 5221 | jq -rM ".end.sum_received.bits_per_second" >t1) & +ns1b iperf3 -s1J -p 5222 | jq -rM ".end.sum_received.bits_per_second" >t2 +hostb iperf3 -c ::1 -p 5221 __OPTS__ & iperf3 -c ::1 -p 5222 __OPTS__ sleep 12 ns1b ns1out BW echo "$(cat t1) + $(cat t2)" | bc -l bw __BW__ 0.0 0.0 -ns2b (iperf3 -s1J -p 5203 | jq -rM ".end.sum_received.bits_per_second" >t1) & -ns2b iperf3 -s1J -p 5204 | jq -rM ".end.sum_received.bits_per_second" >t2 -hostb iperf3 -c ::1 -p 5203 __OPTS__ & iperf3 -c ::1 -p 5204 __OPTS__ +ns2b (iperf3 -s1J -p 5223 | jq -rM ".end.sum_received.bits_per_second" >t1) & +ns2b iperf3 -s1J -p 5224 | jq -rM ".end.sum_received.bits_per_second" >t2 +hostb iperf3 -c ::1 -p 5223 __OPTS__ & iperf3 -c ::1 -p 5224 __OPTS__ sleep 12 ns2b ns2out BW echo "$(cat t1) + $(cat t2)" | bc -l @@ -589,36 +589,36 @@ bw __BW__ 0.0 0.0 hostb tl RR latency -ns1b ./tcp_rr -6 --nolog -C 5201 -P 5202 +ns1b ./tcp_rr -6 --nolog -C 5221 -P 5222 sleep 2 -hout LAT tcp_rr --nolog -c -H ::1 -C 5201 -P 5202 -l 5 | sed -n 's/^throughput=\(.*\)/\1/p' +hout LAT tcp_rr --nolog -c -H ::1 -C 5221 -P 5222 -l 5 | sed -n 's/^throughput=\(.*\)/\1/p' lat __LAT__ 100000 100000 -ns2b ./tcp_rr -6 --nolog -C 5203 -P 5204 +ns2b ./tcp_rr -6 --nolog -C 5223 -P 5224 sleep 2 -hout LAT tcp_rr --nolog -c -H ::1 -C 5203 -P 5204 -l 5 | sed -n 's/^throughput=\(.*\)/\1/p' +hout LAT tcp_rr --nolog -c -H ::1 -C 5223 -P 5224 -l 5 | sed -n 's/^throughput=\(.*\)/\1/p' lat __LAT__ 100000 100000 tl CRR latency -ns1b ./tcp_crr -6 --nolog -C 5201 -P 5202 +ns1b ./tcp_crr -6 --nolog -C 5221 -P 5222 sleep 2 -hout LAT tcp_crr --nolog -c -H ::1 -C 5201 -P 5202 -l 5 | sed -n 's/^throughput=\(.*\)/\1/p' +hout LAT tcp_crr --nolog -c -H ::1 -C 5221 -P 5222 -l 5 | sed -n 's/^throughput=\(.*\)/\1/p' lat __LAT__ 100000 100000 -ns2b ./tcp_crr -6 --nolog -C 5203 -P 5204 +ns2b ./tcp_crr -6 --nolog -C 5223 -P 5224 sleep 2 -hout LAT tcp_crr --nolog -c -H ::1 -C 5203 -P 5204 -l 5 | sed -n 's/^throughput=\(.*\)/\1/p' +hout LAT tcp_crr --nolog -c -H ::1 -C 5223 -P 5224 -l 5 | sed -n 's/^throughput=\(.*\)/\1/p' lat __LAT__ 100000 100000 tl TCP/IPv4 to ns -ns1b (iperf3 -s1J -p 5201 | jq -rM ".end.sum_received.bits_per_second" >t1) & -ns1b iperf3 -s1J -p 5202 | jq -rM ".end.sum_received.bits_per_second" >t2 -hostb iperf3 -c 127.0.0.1 -p 5201 __OPTS__ & iperf3 -c 127.0.0.1 -p 5202 __OPTS__ +ns1b (iperf3 -s1J -p 5221 | jq -rM ".end.sum_received.bits_per_second" >t1) & +ns1b iperf3 -s1J -p 5222 | jq -rM ".end.sum_received.bits_per_second" >t2 +hostb iperf3 -c 127.0.0.1 -p 5221 __OPTS__ & iperf3 -c 127.0.0.1 -p 5222 __OPTS__ sleep 12 ns1b ns1out BW echo "$(cat t1) + $(cat t2)" | bc -l bw __BW__ 0.0 0.0 -ns2b (iperf3 -s1J -p 5203 | jq -rM ".end.sum_received.bits_per_second" >t1) & -ns2b iperf3 -s1J -p 5204 | jq -rM ".end.sum_received.bits_per_second" >t2 -hostb iperf3 -c 127.0.0.1 -p 5203 __OPTS__ & iperf3 -c 127.0.0.1 -p 5204 __OPTS__ +ns2b (iperf3 -s1J -p 5223 | jq -rM ".end.sum_received.bits_per_second" >t1) & +ns2b iperf3 -s1J -p 5224 | jq -rM ".end.sum_received.bits_per_second" >t2 +hostb iperf3 -c 127.0.0.1 -p 5223 __OPTS__ & iperf3 -c 127.0.0.1 -p 5224 __OPTS__ sleep 12 ns2b ns2out BW echo "$(cat t1) + $(cat t2)" | bc -l @@ -626,23 +626,23 @@ bw __BW__ 0.0 0.0 hostb tl RR latency -ns1b ./tcp_rr -4 --nolog -C 5201 -P 5202 +ns1b ./tcp_rr -4 --nolog -C 5221 -P 5222 sleep 2 -hout LAT tcp_rr --nolog -c -H 127.0.0.1 -C 5201 -P 5202 -l 5 | sed -n 's/^throughput=\(.*\)/\1/p' +hout LAT tcp_rr --nolog -c -H 127.0.0.1 -C 5221 -P 5222 -l 5 | sed -n 's/^throughput=\(.*\)/\1/p' lat __LAT__ 100000 100000 -ns2b ./tcp_rr -4 --nolog -C 5203 -P 5204 +ns2b ./tcp_rr -4 --nolog -C 5223 -P 5224 sleep 2 -hout LAT tcp_rr --nolog -c -H 127.0.0.1 -C 5203 -P 5204 -l 5 | sed -n 's/^throughput=\(.*\)/\1/p' +hout LAT tcp_rr --nolog -c -H 127.0.0.1 -C 5223 -P 5224 -l 5 | sed -n 's/^throughput=\(.*\)/\1/p' lat __LAT__ 100000 100000 tl CRR latency -ns1b ./tcp_crr -4 --nolog -C 5201 -P 5202 +ns1b ./tcp_crr -4 --nolog -C 5221 -P 5222 sleep 2 -hout LAT tcp_crr --nolog -c -H 127.0.0.1 -C 5201 -P 5202 -l 5 | sed -n 's/^throughput=\(.*\)/\1/p' +hout LAT tcp_crr --nolog -c -H 127.0.0.1 -C 5221 -P 5222 -l 5 | sed -n 's/^throughput=\(.*\)/\1/p' lat __LAT__ 100000 100000 -ns2b ./tcp_crr -4 --nolog -C 5203 -P 5204 +ns2b ./tcp_crr -4 --nolog -C 5223 -P 5224 sleep 2 -hout LAT tcp_crr --nolog -c -H 127.0.0.1 -C 5203 -P 5204 -l 5 | sed -n 's/^throughput=\(.*\)/\1/p' +hout LAT tcp_crr --nolog -c -H 127.0.0.1 -C 5223 -P 5224 -l 5 | sed -n 's/^throughput=\(.*\)/\1/p' lat __LAT__ 100000 100000 tr TCP/IPv6 to host @@ -725,47 +725,47 @@ sleep 5 tr UDP/IPv6 to ns -ns1b iperf3 -s1J -p 5201 | jq -rM ".intervals[0].sum.bits_per_second" >t1 -hostb iperf3 -u -c ::1 -p 5201 -t5 -b 35G +ns1b iperf3 -s1J -p 5221 | jq -rM ".intervals[0].sum.bits_per_second" >t1 +hostb iperf3 -u -c ::1 -p 5221 -t5 -b 35G sleep 10 ns1out BW cat t1 bw __BW__ 0.0 0.0 -ns2b iperf3 -s1J -p 5204 | jq -rM ".intervals[0].sum.bits_per_second" >t1 -hostb iperf3 -u -c ::1 -p 5204 -t5 -b 35G +ns2b iperf3 -s1J -p 5224 | jq -rM ".intervals[0].sum.bits_per_second" >t1 +hostb iperf3 -u -c ::1 -p 5224 -t5 -b 35G sleep 10 ns2out BW cat t1 bw __BW__ 0.0 0.0 tl RR latency -ns1b ./udp_rr -6 --nolog -C 5201 -P 5202 +ns1b ./udp_rr -6 --nolog -C 5221 -P 5222 sleep 2 -hout LAT udp_rr --nolog -c -H ::1 -C 5201 -P 5202 -l 5 | sed -n 's/^throughput=\(.*\)/\1/p' +hout LAT udp_rr --nolog -c -H ::1 -C 5221 -P 5222 -l 5 | sed -n 's/^throughput=\(.*\)/\1/p' lat __LAT__ 100000 100000 -ns2b ./udp_rr -6 --nolog -C 5203 -P 5204 +ns2b ./udp_rr -6 --nolog -C 5223 -P 5224 sleep 2 -hout LAT udp_rr --nolog -c -H ::1 -C 5203 -P 5204 -l 5 | sed -n 's/^throughput=\(.*\)/\1/p' +hout LAT udp_rr --nolog -c -H ::1 -C 5223 -P 5224 -l 5 | sed -n 's/^throughput=\(.*\)/\1/p' lat __LAT__ 100000 100000 tl UDP/IPv4 to ns -ns1b iperf3 -s1J -p 5201 | jq -rM ".intervals[0].sum.bits_per_second" >t1 -hostb iperf3 -u -c 127.0.0.1 -p 5201 -t5 -b 35G +ns1b iperf3 -s1J -p 5221 | jq -rM ".intervals[0].sum.bits_per_second" >t1 +hostb iperf3 -u -c 127.0.0.1 -p 5221 -t5 -b 35G sleep 10 ns1out BW cat t1 bw __BW__ 0.0 0.0 -ns2b iperf3 -s1J -p 5204 | jq -rM ".intervals[0].sum.bits_per_second" >t1 -hostb iperf3 -u -c 127.0.0.1 -p 5204 -t5 -b 35G +ns2b iperf3 -s1J -p 5224 | jq -rM ".intervals[0].sum.bits_per_second" >t1 +hostb iperf3 -u -c 127.0.0.1 -p 5224 -t5 -b 35G sleep 10 ns2out BW cat t1 bw __BW__ 0.0 0.0 tl RR latency -ns1b ./udp_rr -6 --nolog -C 5201 -P 5202 +ns1b ./udp_rr -6 --nolog -C 5221 -P 5222 sleep 2 -hout LAT udp_rr --nolog -c -H 127.0.0.1 -C 5201 -P 5202 -l 5 | sed -n 's/^throughput=\(.*\)/\1/p' +hout LAT udp_rr --nolog -c -H 127.0.0.1 -C 5221 -P 5222 -l 5 | sed -n 's/^throughput=\(.*\)/\1/p' lat __LAT__ 100000 100000 -ns2b ./udp_rr -6 --nolog -C 5203 -P 5204 +ns2b ./udp_rr -6 --nolog -C 5223 -P 5224 sleep 2 -hout LAT udp_rr --nolog -c -H 127.0.0.1 -C 5203 -P 5204 -l 5 | sed -n 's/^throughput=\(.*\)/\1/p' +hout LAT udp_rr --nolog -c -H 127.0.0.1 -C 5223 -P 5224 -l 5 | sed -n 's/^throughput=\(.*\)/\1/p' lat __LAT__ 100000 100000 tr UDP/IPv6 to host