From 2c0affb70d06918e6ba0c9409d4cb7afc39b603a Mon Sep 17 00:00:00 2001 From: Jan Gelety Date: Sat, 12 Sep 2020 01:25:23 +0200 Subject: test: compute max_translations_per_thread based on worker threads number Change-Id: I1c638aef886bf37a9feb4a29e4949c7c8f19b717 Signed-off-by: Jan Gelety (cherry picked from commit d99951620507d354c4803eb1ee26609d992b70b3) Change-Id: Iaf5b4dffe603b0cf5cf0430fc6ca20acb7a01fda Signed-off-by: Jan Gelety --- resources/libraries/python/NATUtil.py | 16 ++++++++++++++++ ...0-ethip4tcp-nat44ed-h1024-p63-s64512-cps-ndrpdr.robot | 7 ++++++- ...thip4tcp-nat44ed-h16384-p63-s1032192-cps-ndrpdr.robot | 7 ++++++- ...ip4tcp-nat44ed-h262144-p63-s16515072-cps-ndrpdr.robot | 7 ++++++- ...-ethip4tcp-nat44ed-h4096-p63-s258048-cps-ndrpdr.robot | 7 ++++++- ...thip4tcp-nat44ed-h65536-p63-s4128768-cps-ndrpdr.robot | 7 ++++++- ...0-ethip4udp-nat44ed-h1024-p63-s64512-cps-ndrpdr.robot | 7 ++++++- ...-ethip4udp-nat44ed-h1024-p63-s64512-udir-ndrpdr.robot | 7 ++++++- ...thip4udp-nat44ed-h16384-p63-s1032192-cps-ndrpdr.robot | 7 ++++++- ...hip4udp-nat44ed-h16384-p63-s1032192-udir-ndrpdr.robot | 7 ++++++- ...ip4udp-nat44ed-h262144-p63-s16515072-cps-ndrpdr.robot | 7 ++++++- ...p4udp-nat44ed-h262144-p63-s16515072-udir-ndrpdr.robot | 7 ++++++- ...-ethip4udp-nat44ed-h4096-p63-s258048-cps-ndrpdr.robot | 7 ++++++- ...ethip4udp-nat44ed-h4096-p63-s258048-udir-ndrpdr.robot | 7 ++++++- ...thip4udp-nat44ed-h65536-p63-s4128768-cps-ndrpdr.robot | 7 ++++++- ...hip4udp-nat44ed-h65536-p63-s4128768-udir-ndrpdr.robot | 7 ++++++- 16 files changed, 106 insertions(+), 15 deletions(-) diff --git a/resources/libraries/python/NATUtil.py b/resources/libraries/python/NATUtil.py index 857870393e..aabcd36cda 100644 --- a/resources/libraries/python/NATUtil.py +++ b/resources/libraries/python/NATUtil.py @@ -185,6 +185,22 @@ class NATUtil: ] PapiSocketExecutor.dump_and_log(node, cmds) + @staticmethod + def compute_max_translations_per_thread(sessions, threads): + """Compute value of max_translations_per_thread NAT44 parameter based on + total number of worker threads. + + :param sessions: Required number of NAT44 sessions. + :param threads: Number of worker threads. + :type sessions: int + :type threads: int + :returns: Value of max_translations_per_thread NAT44 parameter. + :rtype: int + """ + from math import log2, modf + rest, mult = modf(log2(sessions/(10*threads))) + return 2 ** (int(mult) + (1 if rest else 0)) * 10 + # DET44 PAPI calls # DET44 means deterministic mode of NAT44 @staticmethod diff --git a/tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4tcp-nat44ed-h1024-p63-s64512-cps-ndrpdr.robot b/tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4tcp-nat44ed-h1024-p63-s64512-cps-ndrpdr.robot index 35ffc3ca3e..905c5526f8 100644 --- a/tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4tcp-nat44ed-h1024-p63-s64512-cps-ndrpdr.robot +++ b/tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4tcp-nat44ed-h1024-p63-s64512-cps-ndrpdr.robot @@ -76,12 +76,15 @@ | ${dest_mask}= | ${22} # NAT settings | ${nat_mode}= | endpoint-dependent -| ${max_translations_per_thread}= | 81920 | ${in_net}= | 192.168.0.0 | ${in_mask}= | ${22} | ${out_net}= | 68.142.68.0 | ${out_net_end}= | 68.142.68.0 | ${out_mask}= | ${32} +# Scale settings +| ${n_hosts}= | ${1024} +| ${n_ports}= | ${63} +| ${n_sessions}= | ${${n_hosts} * ${n_ports}} # Traffic profile: | ${traffic_profile}= | trex-astf-ethip4tcp-1024h | ${cps}= | ${64512} @@ -120,6 +123,8 @@ | | And Add worker threads to all DUTs | ${phy_cores} | ${rxq} | | And Pre-initialize layer driver | ${nic_driver} | | And Add NAT to all DUTs | nat_mode=${nat_mode} +| | ${max_translations_per_thread}= | Compute Max Translations Per Thread +| | ... | ${n_sessions} | ${thr_count_int} | | And Add NAT max translations per thread to all DUTs | | ... | ${max_translations_per_thread} | | And Apply startup configuration on all VPP DUTs diff --git a/tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4tcp-nat44ed-h16384-p63-s1032192-cps-ndrpdr.robot b/tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4tcp-nat44ed-h16384-p63-s1032192-cps-ndrpdr.robot index ac9d2de465..836f60208a 100644 --- a/tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4tcp-nat44ed-h16384-p63-s1032192-cps-ndrpdr.robot +++ b/tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4tcp-nat44ed-h16384-p63-s1032192-cps-ndrpdr.robot @@ -76,12 +76,15 @@ | ${dest_mask}= | ${18} # NAT settings | ${nat_mode}= | endpoint-dependent -| ${max_translations_per_thread}= | 655360 | ${in_net}= | 192.168.0.0 | ${in_mask}= | ${18} | ${out_net}= | 68.142.68.0 | ${out_net_end}= | 68.142.68.15 | ${out_mask}= | ${28} +# Scale settings +| ${n_hosts}= | ${16384} +| ${n_ports}= | ${63} +| ${n_sessions}= | ${${n_hosts} * ${n_ports}} # Traffic profile: | ${traffic_profile}= | trex-astf-ethip4tcp-16384h | ${cps}= | ${1032192} @@ -120,6 +123,8 @@ | | And Add worker threads to all DUTs | ${phy_cores} | ${rxq} | | And Pre-initialize layer driver | ${nic_driver} | | And Add NAT to all DUTs | nat_mode=${nat_mode} +| | ${max_translations_per_thread}= | Compute Max Translations Per Thread +| | ... | ${n_sessions} | ${thr_count_int} | | And Add NAT max translations per thread to all DUTs | | ... | ${max_translations_per_thread} | | And Apply startup configuration on all VPP DUTs diff --git a/tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4tcp-nat44ed-h262144-p63-s16515072-cps-ndrpdr.robot b/tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4tcp-nat44ed-h262144-p63-s16515072-cps-ndrpdr.robot index 2595f2d89b..47aa07ff44 100644 --- a/tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4tcp-nat44ed-h262144-p63-s16515072-cps-ndrpdr.robot +++ b/tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4tcp-nat44ed-h262144-p63-s16515072-cps-ndrpdr.robot @@ -76,12 +76,15 @@ | ${dest_mask}= | ${14} # NAT settings | ${nat_mode}= | endpoint-dependent -| ${max_translations_per_thread}= | 10485760 | ${in_net}= | 172.16.0.0 | ${in_mask}= | ${14} | ${out_net}= | 68.142.68.0 | ${out_net_end}= | 68.142.68.255 | ${out_mask}= | ${24} +# Scale settings +| ${n_hosts}= | ${262144} +| ${n_ports}= | ${63} +| ${n_sessions}= | ${${n_hosts} * ${n_ports}} # Traffic profile: | ${traffic_profile}= | trex-astf-ethip4tcp-262144h | ${cps}= | ${16515072} @@ -120,6 +123,8 @@ | | And Add worker threads to all DUTs | ${phy_cores} | ${rxq} | | And Pre-initialize layer driver | ${nic_driver} | | And Add NAT to all DUTs | nat_mode=${nat_mode} +| | ${max_translations_per_thread}= | Compute Max Translations Per Thread +| | ... | ${n_sessions} | ${thr_count_int} | | And Add NAT max translations per thread to all DUTs | | ... | ${max_translations_per_thread} | | And Apply startup configuration on all VPP DUTs diff --git a/tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4tcp-nat44ed-h4096-p63-s258048-cps-ndrpdr.robot b/tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4tcp-nat44ed-h4096-p63-s258048-cps-ndrpdr.robot index fb1c31195c..873ac1a30a 100644 --- a/tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4tcp-nat44ed-h4096-p63-s258048-cps-ndrpdr.robot +++ b/tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4tcp-nat44ed-h4096-p63-s258048-cps-ndrpdr.robot @@ -76,12 +76,15 @@ | ${dest_mask}= | ${20} # NAT settings | ${nat_mode}= | endpoint-dependent -| ${max_translations_per_thread}= | 163840 | ${in_net}= | 192.168.0.0 | ${in_mask}= | ${20} | ${out_net}= | 68.142.68.0 | ${out_net_end}= | 68.142.68.3 | ${out_mask}= | ${30} +# Scale settings +| ${n_hosts}= | ${4096} +| ${n_ports}= | ${63} +| ${n_sessions}= | ${${n_hosts} * ${n_ports}} # Traffic profile: | ${traffic_profile}= | trex-astf-ethip4tcp-4096h | ${cps}= | ${258048} @@ -120,6 +123,8 @@ | | And Add worker threads to all DUTs | ${phy_cores} | ${rxq} | | And Pre-initialize layer driver | ${nic_driver} | | And Add NAT to all DUTs | nat_mode=${nat_mode} +| | ${max_translations_per_thread}= | Compute Max Translations Per Thread +| | ... | ${n_sessions} | ${thr_count_int} | | And Add NAT max translations per thread to all DUTs | | ... | ${max_translations_per_thread} | | And Apply startup configuration on all VPP DUTs diff --git a/tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4tcp-nat44ed-h65536-p63-s4128768-cps-ndrpdr.robot b/tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4tcp-nat44ed-h65536-p63-s4128768-cps-ndrpdr.robot index 7f9ac68dbf..7f98f1c9bb 100644 --- a/tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4tcp-nat44ed-h65536-p63-s4128768-cps-ndrpdr.robot +++ b/tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4tcp-nat44ed-h65536-p63-s4128768-cps-ndrpdr.robot @@ -76,12 +76,15 @@ | ${dest_mask}= | ${16} # NAT settings | ${nat_mode}= | endpoint-dependent -| ${max_translations_per_thread}= | 2621440 | ${in_net}= | 192.168.0.0 | ${in_mask}= | ${16} | ${out_net}= | 68.142.68.0 | ${out_net_end}= | 68.142.68.63 | ${out_mask}= | ${26} +# Scale settings +| ${n_hosts}= | ${65536} +| ${n_ports}= | ${63} +| ${n_sessions}= | ${${n_hosts} * ${n_ports}} # Traffic profile: | ${traffic_profile}= | trex-astf-ethip4tcp-65536h | ${cps}= | ${4128768} @@ -120,6 +123,8 @@ | | And Add worker threads to all DUTs | ${phy_cores} | ${rxq} | | And Pre-initialize layer driver | ${nic_driver} | | And Add NAT to all DUTs | nat_mode=${nat_mode} +| | ${max_translations_per_thread}= | Compute Max Translations Per Thread +| | ... | ${n_sessions} | ${thr_count_int} | | And Add NAT max translations per thread to all DUTs | | ... | ${max_translations_per_thread} | | And Apply startup configuration on all VPP DUTs diff --git a/tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4udp-nat44ed-h1024-p63-s64512-cps-ndrpdr.robot b/tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4udp-nat44ed-h1024-p63-s64512-cps-ndrpdr.robot index 710e96f555..cfdcfac9ce 100644 --- a/tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4udp-nat44ed-h1024-p63-s64512-cps-ndrpdr.robot +++ b/tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4udp-nat44ed-h1024-p63-s64512-cps-ndrpdr.robot @@ -76,12 +76,15 @@ | ${dest_mask}= | ${22} # NAT settings | ${nat_mode}= | endpoint-dependent -| ${max_translations_per_thread}= | 81920 | ${in_net}= | 192.168.0.0 | ${in_mask}= | ${22} | ${out_net}= | 68.142.68.0 | ${out_net_end}= | 68.142.68.0 | ${out_mask}= | ${32} +# Scale settings +| ${n_hosts}= | ${1024} +| ${n_ports}= | ${63} +| ${n_sessions}= | ${${n_hosts} * ${n_ports}} # Traffic profile: | ${traffic_profile}= | trex-astf-ethip4udp-1024h | ${cps}= | ${64512} @@ -120,6 +123,8 @@ | | And Add worker threads to all DUTs | ${phy_cores} | ${rxq} | | And Pre-initialize layer driver | ${nic_driver} | | And Add NAT to all DUTs | nat_mode=${nat_mode} +| | ${max_translations_per_thread}= | Compute Max Translations Per Thread +| | ... | ${n_sessions} | ${thr_count_int} | | And Add NAT max translations per thread to all DUTs | | ... | ${max_translations_per_thread} | | And Apply startup configuration on all VPP DUTs diff --git a/tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4udp-nat44ed-h1024-p63-s64512-udir-ndrpdr.robot b/tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4udp-nat44ed-h1024-p63-s64512-udir-ndrpdr.robot index 0f83b9ef4b..c0f974e54d 100644 --- a/tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4udp-nat44ed-h1024-p63-s64512-udir-ndrpdr.robot +++ b/tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4udp-nat44ed-h1024-p63-s64512-udir-ndrpdr.robot @@ -74,12 +74,15 @@ | ${dest_mask}= | ${8} # NAT settings | ${nat_mode}= | endpoint-dependent -| ${max_translations_per_thread}= | 64512 | ${in_net}= | 192.168.0.0 | ${in_mask}= | ${8} | ${out_net}= | 68.142.68.0 | ${out_net_end}= | 68.142.68.0 | ${out_mask}= | ${32} +# Scale settings +| ${n_hosts}= | ${1024} +| ${n_ports}= | ${63} +| ${n_sessions}= | ${${n_hosts} * ${n_ports}} # Traffic profile: | ${traffic_profile}= | trex-stl-ethip4udp-1024u63p-udir @@ -105,6 +108,8 @@ | | And Add worker threads to all DUTs | ${phy_cores} | ${rxq} | | And Pre-initialize layer driver | ${nic_driver} | | And Add NAT to all DUTs | nat_mode=${nat_mode} +| | ${max_translations_per_thread}= | Compute Max Translations Per Thread +| | ... | ${n_sessions} | ${thr_count_int} | | And Add NAT max translations per thread to all DUTs | | ... | ${max_translations_per_thread} | | And Apply startup configuration on all VPP DUTs diff --git a/tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4udp-nat44ed-h16384-p63-s1032192-cps-ndrpdr.robot b/tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4udp-nat44ed-h16384-p63-s1032192-cps-ndrpdr.robot index fa2149304f..7ecdf09e44 100644 --- a/tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4udp-nat44ed-h16384-p63-s1032192-cps-ndrpdr.robot +++ b/tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4udp-nat44ed-h16384-p63-s1032192-cps-ndrpdr.robot @@ -76,12 +76,15 @@ | ${dest_mask}= | ${18} # NAT settings | ${nat_mode}= | endpoint-dependent -| ${max_translations_per_thread}= | 655360 | ${in_net}= | 192.168.0.0 | ${in_mask}= | ${18} | ${out_net}= | 68.142.68.0 | ${out_net_end}= | 68.142.68.15 | ${out_mask}= | ${28} +# Scale settings +| ${n_hosts}= | ${16384} +| ${n_ports}= | ${63} +| ${n_sessions}= | ${${n_hosts} * ${n_ports}} # Traffic profile: | ${traffic_profile}= | trex-astf-ethip4udp-16384h | ${cps}= | ${1032192} @@ -120,6 +123,8 @@ | | And Add worker threads to all DUTs | ${phy_cores} | ${rxq} | | And Pre-initialize layer driver | ${nic_driver} | | And Add NAT to all DUTs | nat_mode=${nat_mode} +| | ${max_translations_per_thread}= | Compute Max Translations Per Thread +| | ... | ${n_sessions} | ${thr_count_int} | | And Add NAT max translations per thread to all DUTs | | ... | ${max_translations_per_thread} | | And Apply startup configuration on all VPP DUTs diff --git a/tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4udp-nat44ed-h16384-p63-s1032192-udir-ndrpdr.robot b/tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4udp-nat44ed-h16384-p63-s1032192-udir-ndrpdr.robot index 3007649599..ea33f8cd00 100644 --- a/tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4udp-nat44ed-h16384-p63-s1032192-udir-ndrpdr.robot +++ b/tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4udp-nat44ed-h16384-p63-s1032192-udir-ndrpdr.robot @@ -74,12 +74,15 @@ | ${dest_mask}= | ${8} # NAT settings | ${nat_mode}= | endpoint-dependent -| ${max_translations_per_thread}= | 1032192 | ${in_net}= | 192.168.0.0 | ${in_mask}= | ${18} | ${out_net}= | 68.142.68.0 | ${out_net_end}= | 68.142.68.15 | ${out_mask}= | ${28} +# Scale settings +| ${n_hosts}= | ${16384} +| ${n_ports}= | ${63} +| ${n_sessions}= | ${${n_hosts} * ${n_ports}} # Traffic profile: | ${traffic_profile}= | trex-stl-ethip4udp-16384u63p-udir @@ -105,6 +108,8 @@ | | And Add worker threads to all DUTs | ${phy_cores} | ${rxq} | | And Pre-initialize layer driver | ${nic_driver} | | And Add NAT to all DUTs | nat_mode=${nat_mode} +| | ${max_translations_per_thread}= | Compute Max Translations Per Thread +| | ... | ${n_sessions} | ${thr_count_int} | | And Add NAT max translations per thread to all DUTs | | ... | ${max_translations_per_thread} | | And Apply startup configuration on all VPP DUTs diff --git a/tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4udp-nat44ed-h262144-p63-s16515072-cps-ndrpdr.robot b/tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4udp-nat44ed-h262144-p63-s16515072-cps-ndrpdr.robot index 87af2992c5..cf40a03d00 100644 --- a/tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4udp-nat44ed-h262144-p63-s16515072-cps-ndrpdr.robot +++ b/tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4udp-nat44ed-h262144-p63-s16515072-cps-ndrpdr.robot @@ -76,12 +76,15 @@ | ${dest_mask}= | ${14} # NAT settings | ${nat_mode}= | endpoint-dependent -| ${max_translations_per_thread}= | 10485760 | ${in_net}= | 172.16.0.0 | ${in_mask}= | ${14} | ${out_net}= | 68.142.68.0 | ${out_net_end}= | 68.142.68.255 | ${out_mask}= | ${24} +# Scale settings +| ${n_hosts}= | ${262144} +| ${n_ports}= | ${63} +| ${n_sessions}= | ${${n_hosts} * ${n_ports}} # Traffic profile: | ${traffic_profile}= | trex-astf-ethip4udp-262144h | ${cps}= | ${16515072} @@ -120,6 +123,8 @@ | | And Add worker threads to all DUTs | ${phy_cores} | ${rxq} | | And Pre-initialize layer driver | ${nic_driver} | | And Add NAT to all DUTs | nat_mode=${nat_mode} +| | ${max_translations_per_thread}= | Compute Max Translations Per Thread +| | ... | ${n_sessions} | ${thr_count_int} | | And Add NAT max translations per thread to all DUTs | | ... | ${max_translations_per_thread} | | And Apply startup configuration on all VPP DUTs diff --git a/tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4udp-nat44ed-h262144-p63-s16515072-udir-ndrpdr.robot b/tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4udp-nat44ed-h262144-p63-s16515072-udir-ndrpdr.robot index 22e4cabe7d..4deb867fec 100644 --- a/tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4udp-nat44ed-h262144-p63-s16515072-udir-ndrpdr.robot +++ b/tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4udp-nat44ed-h262144-p63-s16515072-udir-ndrpdr.robot @@ -74,12 +74,15 @@ | ${dest_mask}= | ${8} # NAT settings | ${nat_mode}= | endpoint-dependent -| ${max_translations_per_thread}= | 16515072 | ${in_net}= | 192.168.0.0 | ${in_mask}= | ${8} | ${out_net}= | 68.142.68.0 | ${out_net_end}= | 68.142.68.255 | ${out_mask}= | ${24} +# Scale settings +| ${n_hosts}= | ${262144} +| ${n_ports}= | ${63} +| ${n_sessions}= | ${${n_hosts} * ${n_ports}} # Traffic profile: | ${traffic_profile}= | trex-stl-ethip4udp-262144u63p-udir @@ -105,6 +108,8 @@ | | And Add worker threads to all DUTs | ${phy_cores} | ${rxq} | | And Pre-initialize layer driver | ${nic_driver} | | And Add NAT to all DUTs | nat_mode=${nat_mode} +| | ${max_translations_per_thread}= | Compute Max Translations Per Thread +| | ... | ${n_sessions} | ${thr_count_int} | | And Add NAT max translations per thread to all DUTs | | ... | ${max_translations_per_thread} | | And Apply startup configuration on all VPP DUTs diff --git a/tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4udp-nat44ed-h4096-p63-s258048-cps-ndrpdr.robot b/tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4udp-nat44ed-h4096-p63-s258048-cps-ndrpdr.robot index bccd6a7c43..98a00a655d 100644 --- a/tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4udp-nat44ed-h4096-p63-s258048-cps-ndrpdr.robot +++ b/tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4udp-nat44ed-h4096-p63-s258048-cps-ndrpdr.robot @@ -76,12 +76,15 @@ | ${dest_mask}= | ${20} # NAT settings | ${nat_mode}= | endpoint-dependent -| ${max_translations_per_thread}= | 163840 | ${in_net}= | 192.168.0.0 | ${in_mask}= | ${20} | ${out_net}= | 68.142.68.0 | ${out_net_end}= | 68.142.68.3 | ${out_mask}= | ${30} +# Scale settings +| ${n_hosts}= | ${4096} +| ${n_ports}= | ${63} +| ${n_sessions}= | ${${n_hosts} * ${n_ports}} # Traffic profile: | ${traffic_profile}= | trex-astf-ethip4udp-4096h | ${cps}= | ${258048} @@ -120,6 +123,8 @@ | | And Add worker threads to all DUTs | ${phy_cores} | ${rxq} | | And Pre-initialize layer driver | ${nic_driver} | | And Add NAT to all DUTs | nat_mode=${nat_mode} +| | ${max_translations_per_thread}= | Compute Max Translations Per Thread +| | ... | ${n_sessions} | ${thr_count_int} | | And Add NAT max translations per thread to all DUTs | | ... | ${max_translations_per_thread} | | And Apply startup configuration on all VPP DUTs diff --git a/tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4udp-nat44ed-h4096-p63-s258048-udir-ndrpdr.robot b/tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4udp-nat44ed-h4096-p63-s258048-udir-ndrpdr.robot index c075fbfb7c..a0d19bbee0 100644 --- a/tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4udp-nat44ed-h4096-p63-s258048-udir-ndrpdr.robot +++ b/tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4udp-nat44ed-h4096-p63-s258048-udir-ndrpdr.robot @@ -74,12 +74,15 @@ | ${dest_mask}= | ${8} # NAT settings | ${nat_mode}= | endpoint-dependent -| ${max_translations_per_thread}= | 258048 | ${in_net}= | 192.168.0.0 | ${in_mask}= | ${8} | ${out_net}= | 68.142.68.0 | ${out_net_end}= | 68.142.68.3 | ${out_mask}= | ${30} +# Scale settings +| ${n_hosts}= | ${4096} +| ${n_ports}= | ${63} +| ${n_sessions}= | ${${n_hosts} * ${n_ports}} # Traffic profile: | ${traffic_profile}= | trex-stl-ethip4udp-4096u63p-udir @@ -105,6 +108,8 @@ | | And Add worker threads to all DUTs | ${phy_cores} | ${rxq} | | And Pre-initialize layer driver | ${nic_driver} | | And Add NAT to all DUTs | nat_mode=${nat_mode} +| | ${max_translations_per_thread}= | Compute Max Translations Per Thread +| | ... | ${n_sessions} | ${thr_count_int} | | And Add NAT max translations per thread to all DUTs | | ... | ${max_translations_per_thread} | | And Apply startup configuration on all VPP DUTs diff --git a/tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4udp-nat44ed-h65536-p63-s4128768-cps-ndrpdr.robot b/tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4udp-nat44ed-h65536-p63-s4128768-cps-ndrpdr.robot index f0017e96f4..bdd0ce5164 100644 --- a/tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4udp-nat44ed-h65536-p63-s4128768-cps-ndrpdr.robot +++ b/tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4udp-nat44ed-h65536-p63-s4128768-cps-ndrpdr.robot @@ -76,12 +76,15 @@ | ${dest_mask}= | ${16} # NAT settings | ${nat_mode}= | endpoint-dependent -| ${max_translations_per_thread}= | 2621440 | ${in_net}= | 192.168.0.0 | ${in_mask}= | ${16} | ${out_net}= | 68.142.68.0 | ${out_net_end}= | 68.142.68.63 | ${out_mask}= | ${26} +# Scale settings +| ${n_hosts}= | ${65536} +| ${n_ports}= | ${63} +| ${n_sessions}= | ${${n_hosts} * ${n_ports}} # Traffic profile: | ${traffic_profile}= | trex-astf-ethip4udp-65536h | ${cps}= | ${4128768} @@ -120,6 +123,8 @@ | | And Add worker threads to all DUTs | ${phy_cores} | ${rxq} | | And Pre-initialize layer driver | ${nic_driver} | | And Add NAT to all DUTs | nat_mode=${nat_mode} +| | ${max_translations_per_thread}= | Compute Max Translations Per Thread +| | ... | ${n_sessions} | ${thr_count_int} | | And Add NAT max translations per thread to all DUTs | | ... | ${max_translations_per_thread} | | And Apply startup configuration on all VPP DUTs diff --git a/tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4udp-nat44ed-h65536-p63-s4128768-udir-ndrpdr.robot b/tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4udp-nat44ed-h65536-p63-s4128768-udir-ndrpdr.robot index c2a67ca0c6..9c4b9a25dc 100644 --- a/tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4udp-nat44ed-h65536-p63-s4128768-udir-ndrpdr.robot +++ b/tests/vpp/perf/ip4/2n1l-10ge2p1x710-ethip4udp-nat44ed-h65536-p63-s4128768-udir-ndrpdr.robot @@ -74,12 +74,15 @@ | ${dest_mask}= | ${8} # NAT settings | ${nat_mode}= | endpoint-dependent -| ${max_translations_per_thread}= | 4128768 | ${in_net}= | 192.168.0.0 | ${in_mask}= | ${8} | ${out_net}= | 68.142.68.0 | ${out_net_end}= | 68.142.68.63 | ${out_mask}= | ${26} +# Scale settings +| ${n_hosts}= | ${65536} +| ${n_ports}= | ${63} +| ${n_sessions}= | ${${n_hosts} * ${n_ports}} # Traffic profile: | ${traffic_profile}= | trex-stl-ethip4udp-65536u63p-udir @@ -105,6 +108,8 @@ | | And Add worker threads to all DUTs | ${phy_cores} | ${rxq} | | And Pre-initialize layer driver | ${nic_driver} | | And Add NAT to all DUTs | nat_mode=${nat_mode} +| | ${max_translations_per_thread}= | Compute Max Translations Per Thread +| | ... | ${n_sessions} | ${thr_count_int} | | And Add NAT max translations per thread to all DUTs | | ... | ${max_translations_per_thread} | | And Apply startup configuration on all VPP DUTs -- cgit 1.2.3-korg