diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2023-01-04 00:49:07 +0100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2023-01-05 15:07:54 +0100 |
commit | 08c01f5b4e26b0c525875ea697958d058c0d3b7c (patch) | |
tree | ff69ba59e610e5711f9b1dcafee9fbb34e036348 /test/perf | |
parent | 310bdbdcf423372519df190c1677e2e2f3380158 (diff) | |
download | passt-08c01f5b4e26b0c525875ea697958d058c0d3b7c.tar passt-08c01f5b4e26b0c525875ea697958d058c0d3b7c.tar.gz passt-08c01f5b4e26b0c525875ea697958d058c0d3b7c.tar.bz2 passt-08c01f5b4e26b0c525875ea697958d058c0d3b7c.tar.lz passt-08c01f5b4e26b0c525875ea697958d058c0d3b7c.tar.xz passt-08c01f5b4e26b0c525875ea697958d058c0d3b7c.tar.zst passt-08c01f5b4e26b0c525875ea697958d058c0d3b7c.zip |
test/perf/pasta_udp: Add host to namespace cases for traffic via tap
These were missing as it wasn't clear, when the other tests were
introduced, if using the global address of a namespace, from the
host, should have resulted in traffic being routed via the tap
interface (as opposed to the loopback interface). We now clarified
that's actually the case.
Use same values and thresholds as the tests for loopback traffic, as
throughput figures currently indicate there isn't much difference.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'test/perf')
-rw-r--r-- | test/perf/pasta_udp | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/test/perf/pasta_udp b/test/perf/pasta_udp index 27ea724..112d70d 100644 --- a/test/perf/pasta_udp +++ b/test/perf/pasta_udp @@ -179,4 +179,41 @@ nsout LAT udp_rr --nolog -P 10003 -C 10013 -4 -c -H __GW__ | sed -n 's/^throughp hostw lat __LAT__ 200 150 + +tr UDP throughput over IPv6: host to ns +nsout IFNAME ip -j link show | jq -rM '.[] | select(.link_type == "ether").ifname' +nsout ADDR6 ip -j -6 addr show|jq -rM '.[] | select(.ifname == "__IFNAME__").addr_info[] | select(.scope == "global" and .prefixlen == 64).local' +bw - +bw - +bw - +iperf3 BW host ns __ADDR6__ 100${i}2 __THREADS__ __TIME__ __OPTS__ -b 15G +bw __BW__ 7.0 9.0 + +tl UDP RR latency over IPv6: host to ns +lat - +lat - +lat - +nsb udp_rr --nolog -P 10002 -C 10012 -6 +hout LAT udp_rr --nolog -P 10002 -C 10012 -6 -c -H __ADDR6__ | sed -n 's/^throughput=\(.*\)/\1/p' +nsw +lat __LAT__ 200 150 + + +tr UDP throughput over IPv4: host to ns +nsout ADDR ip -j -4 addr show|jq -rM '.[] | select(.ifname == "__IFNAME__").addr_info[0].local' +bw - +bw - +bw - +iperf3 BW host ns __ADDR__ 100${i}2 __THREADS__ __TIME__ __OPTS__ -b 15G +bw __BW__ 7.0 9.0 + +tl UDP RR latency over IPv4: host to ns +lat - +lat - +lat - +nsb udp_rr --nolog -P 10002 -C 10012 -4 +hout LAT udp_rr --nolog -P 10002 -C 10012 -4 -c -H __ADDR__ | sed -n 's/^throughput=\(.*\)/\1/p' +nsw +lat __LAT__ 200 150 + te |