diff options
author | Jan Gelety <jgelety@cisco.com> | 2018-03-22 13:51:33 +0100 |
---|---|---|
committer | Jan Gelety <jgelety@cisco.com> | 2018-04-23 11:16:07 +0000 |
commit | 179b1fd92324163a5375be388240eb91fe7e7004 (patch) | |
tree | b0f1d1cbbb861fdd1bfc8202136915ff98e94ced | |
parent | b1c21534b9ffcd30779fb0c7ebb6173a9edc4d9f (diff) |
CSIT-1009: SRv6 proxy tests
- SRv6 with endpoint to SR-unaware Service Function via static proxy
- SRv6 with endpoint to SR-unaware Service Function via dynamic proxy
- SRv6 with endpoint to SR-unaware Service Function via masquerading proxy
Change-Id: I6a6062cb41d810bf9e27dacfd866181bfde4c693
Signed-off-by: Jan Gelety <jgelety@cisco.com>
(cherry picked from commit 73a01b1a7fc836c964627eea2c08106df0da5aee)
18 files changed, 1068 insertions, 20 deletions
diff --git a/docs/tag_documentation.rst b/docs/tag_documentation.rst index e33bd6fa6b..5e51b918df 100644 --- a/docs/tag_documentation.rst +++ b/docs/tag_documentation.rst @@ -356,6 +356,10 @@ Encapsulation tags All test cases with IPSEC. +.. topic:: SRv6 + + All test cases with Segment routing over IPv6 dataplane. + Interface tags -------------- @@ -446,6 +450,22 @@ Feature tags ACL plugin configured and tested with 50 not-hitting ACEs. +.. topic:: SRv6_PROXY + + SRv6 endpoint to SR-unaware appliance via proxy. + +.. topic:: SRv6_PROXY_STAT + + SRv6 endpoint to SR-unaware appliance via static proxy. + +.. topic:: SRv6_PROXY_DYN + + SRv6 endpoint to SR-unaware appliance via dynamic proxy. + +.. topic:: SRv6_PROXY_MASQ + + SRv6 endpoint to SR-unaware appliance via masquerading proxy. + Encryption tags --------------- diff --git a/resources/libraries/bash/dut_setup.sh b/resources/libraries/bash/dut_setup.sh index 988ffe1ce2..28b495c3fa 100644 --- a/resources/libraries/bash/dut_setup.sh +++ b/resources/libraries/bash/dut_setup.sh @@ -51,7 +51,10 @@ cmd 'sudo dmidecode | grep UUID' cmd 'lspci -Dnn' echo "[Command_desc] Adding dpdk-input trace" -cmd 'sudo vpp_api_test <<< "exec trace add dpdk-input 100"' +cmd 'sudo vpp_api_test <<< "exec trace add dpdk-input 50"' echo "[Command_desc] Adding vhost-user-input trace" -cmd 'sudo vpp_api_test <<< "exec trace add vhost-user-input 100"' +cmd 'sudo vpp_api_test <<< "exec trace add vhost-user-input 50"' + +echo "[Command_desc] Adding memif-input trace" +cmd 'sudo vpp_api_test <<< "exec trace add memif-input 50"' diff --git a/resources/libraries/python/DUTSetup.py b/resources/libraries/python/DUTSetup.py index 2741eaaf1f..ae42637f52 100644 --- a/resources/libraries/python/DUTSetup.py +++ b/resources/libraries/python/DUTSetup.py @@ -496,6 +496,7 @@ class DUTSetup(object): vat = VatExecutor() vat.execute_script("enable_dpdk_traces.vat", node, json_out=False) vat.execute_script("enable_vhost_user_traces.vat", node, json_out=False) + vat.execute_script("enable_memif_traces.vat", node, json_out=False) @staticmethod def install_vpp_on_all_duts(nodes, vpp_pkg_dir, vpp_rpm_pkgs, vpp_deb_pkgs): diff --git a/resources/libraries/python/Memif.py b/resources/libraries/python/Memif.py index d0ab6c74d1..b4c184e1be 100644 --- a/resources/libraries/python/Memif.py +++ b/resources/libraries/python/Memif.py @@ -175,7 +175,7 @@ class Memif(object): for item in memif_data: if memif_data[item]['sw_if_index'] == str(sw_if_idx): return item - return None + return None @staticmethod def vpp_get_memif_interface_mac(node, sw_if_idx): diff --git a/resources/libraries/python/SRv6.py b/resources/libraries/python/SRv6.py index 03a55a41ed..fe706f5f70 100644 --- a/resources/libraries/python/SRv6.py +++ b/resources/libraries/python/SRv6.py @@ -32,6 +32,12 @@ SRV6BEHAVIOUR_END_DT4 = 'end.dt4' SRV6BEHAVIOUR_END_DX6 = 'end.dx6' # Endpoint with decapsulation and IPv6 table lookup SRV6BEHAVIOUR_END_DT6 = 'end.dt6' +# Endpoint to SR-unaware appliance via static proxy +SRV6BEHAVIOUR_END_AS = 'end.as' +# Endpoint to SR-unaware appliance via dynamic proxy +SRV6BEHAVIOUR_END_AD = 'end.ad' +# Endpoint to SR-unaware appliance via masquerading +SRV6BEHAVIOUR_END_AM = 'end.am' class SRv6(object): @@ -42,7 +48,8 @@ class SRv6(object): @staticmethod def configure_sr_localsid(node, local_sid, behavior, interface=None, - next_hop=None, fib_table=None): + next_hop=None, fib_table=None, out_if=None, + in_if=None, src_addr=None, sid_list=None): """Create SRv6 LocalSID and binds it to a particular behaviour on the given node. @@ -55,12 +62,27 @@ class SRv6(object): xconnects). :param fib_table: FIB table for IPv4/IPv6 lookup (Optional, required for L3 routing). + :param out_if: Interface name of local interface for sending traffic + towards the Service Function (Optional, required for SRv6 endpoint + to SR-unaware appliance). + :param in_if: Interface name of local interface receiving the traffic + coming back from the Service Function (Optional, required for SRv6 + endpoint to SR-unaware appliance). + :param src_addr: Source address on the packets coming back on in_if + interface (Optional, required for SRv6 endpoint to SR-unaware + appliance via static proxy). + :param sid_list: SID list (Optional, required for SRv6 endpoint to + SR-unaware appliance via static proxy). :type node: dict :type local_sid: str :type behavior: str :type interface: str :type next_hop: int :type fib_table: str + :type out_if: str + :type in_if: str + :type src_addr: str + :type sid_list: list :raises ValueError: If unsupported SRv6 LocalSID function used or required parameter is missing. """ @@ -69,20 +91,36 @@ class SRv6(object): elif behavior in [SRV6BEHAVIOUR_END_X, SRV6BEHAVIOUR_END_DX4, SRV6BEHAVIOUR_END_DX6]: if interface is None or next_hop is None: - raise ValueError('Required data missing.\ninterface:{0}\n' - 'next_hop:{1}'.format(interface, next_hop)) + raise ValueError('Required parameter(s) missing.\ninterface:{0}' + '\nnext_hop:{1}'.format(interface, next_hop)) interface_name = Topology.get_interface_name(node, interface) params = '{0} {1}'.format(interface_name, next_hop) elif behavior == SRV6BEHAVIOUR_END_DX2: if interface is None: - raise ValueError('Required data missing.\ninterface:{0}\n'. + raise ValueError('Required parameter missing.\ninterface:{0}'. format(interface)) params = '{0}'.format(interface) elif behavior in [SRV6BEHAVIOUR_END_DT4, SRV6BEHAVIOUR_END_DT6]: if fib_table is None: - raise ValueError('Required data missing.\nfib_table:{0}\n'. + raise ValueError('Required parameter missing.\nfib_table: {0}'. format(fib_table)) params = '{0}'.format(fib_table) + elif behavior == SRV6BEHAVIOUR_END_AS: + if next_hop is None or out_if is None or in_if is None or \ + src_addr is None or sid_list is None: + raise ValueError('Required parameter(s) missing.\nnext_hop:{0}' + '\nout_if:{1}\nin_if:{2}\nsrc_addr:{3}\n' + 'sid_list:{4}'.format(next_hop, out_if, in_if, + src_addr, sid_list)) + sid_conf = 'next ' + ' next '.join(sid_list) + params = 'nh {0} oif {1} iif {2} src {3} {4}'.\ + format(next_hop, out_if, in_if, src_addr, sid_conf) + elif behavior in [SRV6BEHAVIOUR_END_AD, SRV6BEHAVIOUR_END_AM]: + if next_hop is None or out_if is None or in_if is None: + raise ValueError('Required parameter(s) missing.\nnext_hop:{0}' + '\nout_if:{1}\nin_if:{2}'. + format(next_hop, out_if, in_if)) + params = 'nh {0} oif {1} iif {2}'.format(next_hop, out_if, in_if) else: raise ValueError('Unsupported SRv6 LocalSID function: {0}'. format(behavior)) @@ -217,9 +255,13 @@ class SRv6(object): vat.vat_terminal_exec_cmd_from_template( 'srv6/sr_steer_add_del.vat', params=params, bsid=bsid) - if "exec error: Misc" in vat.vat_stdout: - raise RuntimeError('Create SRv6 steering policy for BindingSID {0}' - ' failed on node {1}'.format(bsid, node['host'])) + sr_steer_errors = ("exec error: Misc", + "sr steer: No SR policy specified") + for err in sr_steer_errors: + if err in vat.vat_stdout: + raise RuntimeError('Create SRv6 steering policy for BindingSID' + ' {0} failed on node {1}'. + format(bsid, node['host'])) @staticmethod def delete_sr_steer(node, mode, bsid, interface=None, ip_addr=None, diff --git a/resources/libraries/python/Trace.py b/resources/libraries/python/Trace.py index c61a8deda4..10a55ce140 100644 --- a/resources/libraries/python/Trace.py +++ b/resources/libraries/python/Trace.py @@ -13,7 +13,7 @@ """Packet trace library.""" -from resources.libraries.python.VatExecutor import VatExecutor +from resources.libraries.python.VatExecutor import VatExecutor, VatTerminal from resources.libraries.python.topology import NodeType @@ -21,16 +21,21 @@ class Trace(object): """This class provides methods to manipulate the VPP packet trace.""" @staticmethod - def show_packet_trace_on_all_duts(nodes): + def show_packet_trace_on_all_duts(nodes, maximum=None): """Show VPP packet trace. :param nodes: Nodes from which the packet trace will be displayed. + :param maximum: Maximum number of packet traces to be displayed. :type nodes: list + :type maximum: int """ + maximum = "max {count}".format(count=maximum) if maximum is not None\ + else "" for node in nodes.values(): if node['type'] == NodeType.DUT: - vat = VatExecutor() - vat.execute_script("show_trace.vat", node, json_out=False) + with VatTerminal(node, json_param=False) as vat: + vat.vat_terminal_exec_cmd_from_template( + 'show_trace.vat', maximum=maximum) @staticmethod def clear_packet_trace_on_all_duts(nodes): diff --git a/resources/libraries/robot/overlay/srv6.robot b/resources/libraries/robot/overlay/srv6.robot index b253311d0e..a0a557e6d9 100644 --- a/resources/libraries/robot/overlay/srv6.robot +++ b/resources/libraries/robot/overlay/srv6.robot @@ -30,6 +30,18 @@ | | ... | None; required for L3 xconnects). Type: string | | ... | - fib_table - FIB table for IPv4/IPv6 lookup (Optional, default value: | | ... | None; required for L3 routing). Type: string +| | ... | - out_if - Interface name of local interface for sending traffic +| | ... | towards the Service Function (Optional, default value: None; +| | ... | required for SRv6 endpoint to SR-unaware appliance). Type: string +| | ... | - in_if - Interface name of local interface receiving the traffic +| | ... | coming back from the Service Function (Optional, default value: +| | ... | None; required for SRv6 endpoint to SR-unaware appliance). +| | ... | Type: string +| | ... | - src_addr - Source address on the packets coming back on in_if +| | ... | interface (Optional, default value: None; required for SRv6 endpoint +| | ... | to SR-unaware appliance via static proxy). Type: string +| | ... | - sid_list - SID list (Optional, default value: []; required for SRv6 +| | ... | endpoint to SR-unaware appliance via static proxy). Type: list | | ... | | ... | *Example:* | | ... @@ -40,12 +52,22 @@ | | ... | \| end.dx4 \| interface=GigabitEthernet0/8/0 \| next_hop=10.0.0.1 \| | | ... | \| Configure SR LocalSID on DUT \| ${nodes['DUT2']} \| E:: \ | | ... | \| end.dt6 \| fib_table=2 \| +| | ... | \| Configure SR LocalSID on DUT \| ${nodes['DUT2']} \| E:: \ +| | ... | \| end.ad \| next_hop=10.0.0.1 \| out_if=DUT2_VHOST1 \ +| | ... | \| in_if=DUT2_VHOST2 \| +| | ... | \| Configure SR LocalSID on DUT \| ${nodes['DUT2']} \| E:: \ +| | ... | \| end.as \| next_hop=10.0.0.1 \| out_if=DUT2_VHOST1 \ +| | ... | \| in_if=DUT2_VHOST2 \| src_addr=B:: \| sid_list=['C::', 'D::'] \| | | ... | | [Arguments] | ${dut_node} | ${local_sid} | ${behavior} | | ... | ${interface}=${None} | ${next_hop}=${None} | ${fib_table}=${None} +| | ... | ${out_if}=${None} | ${in_if}=${None} | ${src_addr}=${None} +| | ... | @{sid_list} | | ... | | Configure SR LocalSID | ${dut_node} | ${local_sid} | ${behavior} | | ... | interface=${interface} | next_hop=${next_hop} | fib_table=${fib_table} +| | ... | out_if=${out_if} | in_if=${in_if} | src_addr=${src_addr} +| | ... | sid_list=${sid_list} | Delete SR LocalSID on DUT | | [Documentation] | Delete SRv6 LocalSID on the given DUT node. diff --git a/resources/libraries/robot/performance/performance_configuration.robot b/resources/libraries/robot/performance/performance_configuration.robot index 46e0e5bb6c..a864a023bf 100644 --- a/resources/libraries/robot/performance/performance_configuration.robot +++ b/resources/libraries/robot/performance/performance_configuration.robot @@ -635,6 +635,7 @@ | | ... | ${dut1_if2} | | Vpp Route Add | ${dut2} | ${sid2} | ${sid_prefix} | ${dut1_if2_ip6} | | ... | ${dut2_if1} +# Configure SRv6 for direction0 | | Set SR Encaps Source Address on DUT | ${dut1} | ${dut1_sid1} | | @{sid_list_dir0}= | Run Keyword If | "${n}" == "1" | | ... | Create List | ${dut2_sid1} @@ -655,6 +656,7 @@ | | Run Keyword If | "${n}" == "2" and "${prepos}" == "without" | | ... | Vpp Route Add | ${dut2} | ${dut2_sid1_2} | ${sid_prefix} | | ... | ${tg_if2_ip6_subnet}2 | ${dut2_if2} +# Configure SRv6 for direction1 | | Set SR Encaps Source Address on DUT | ${dut2} | ${dut2_sid2} | | @{sid_list_dir1}= | Run Keyword If | "${n}" == "1" | | ... | Create List | ${dut1_sid2} @@ -676,6 +678,109 @@ | | ... | Vpp Route Add | ${dut1} | ${dut1_sid2_2} | ${sid_prefix} | | ... | ${tg_if1_ip6_subnet}2 | ${dut1_if1} +| Initialize IPv6 forwarding over SRv6 with endpoint to SR-unaware Service Function via '${behavior}' behaviour in 3-node circular topology +| | [Documentation] +| | ... | Create pair of Memif interfaces on all defined VPP nodes. Set UP +| | ... | state on VPP interfaces in path on nodes in 3-node circular topology. +| | ... | Get the interface MAC addresses and setup neighbours on all VPP +| | ... | interfaces. Setup IPv6 addresses on all interfaces. Set segment +| | ... | routing for IPv6 with defined behaviour function and configure IPv6 +| | ... | routes on both DUT nodes. +| | ... +| | ${tg1_if1_mac}= | Get Interface MAC | ${tg} | ${tg_if1} +| | ${tg1_if2_mac}= | Get Interface MAC | ${tg} | ${tg_if2} +| | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2} +| | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1} +| | ${sock1}= | Set Variable | memif-DUT1_VNF +| | ${sock2}= | Set Variable | memif-DUT2_VNF +| | Set up memif interfaces on DUT node | ${dut1} | ${sock1} | ${sock1} +| | ... | ${1} | dut1-memif-1-if1 | dut1-memif-1-if2 | ${rxq} | ${rxq} +| | Set up memif interfaces on DUT node | ${dut2} | ${sock2} | ${sock2} +| | ... | ${1} | dut2-memif-1-if1 | dut2-memif-1-if2 | ${rxq} | ${rxq} +| | ${duts}= | Get Matches | ${nodes} | DUT* +| | :FOR | ${dut} | IN | @{duts} +| | | Show Memif | ${nodes['${dut}']} +| | VPP Set If IPv6 Addr | ${dut1} | ${dut1_if1} | ${dut1_if1_ip6} | ${prefix} +| | VPP Set If IPv6 Addr | ${dut1} | ${dut1_if2} | ${dut1_if2_ip6} | ${prefix} +| | VPP Set If IPv6 Addr | ${dut1} | ${dut1-memif-1-if1} +| | ... | ${dut1-memif-1-if1_ip6} | ${prefix} +| | VPP Set If IPv6 Addr | ${dut1} | ${dut1-memif-1-if2} +| | ... | ${dut1-memif-1-if2_ip6} | ${prefix} +| | VPP Set If IPv6 Addr | ${dut2} | ${dut2_if1} | ${dut2_if1_ip6} | ${prefix} +| | VPP Set If IPv6 Addr | ${dut2} | ${dut2_if2} | ${dut2_if2_ip6} | ${prefix} +| | VPP Set If IPv6 Addr | ${dut2} | ${dut2-memif-1-if1} +| | ... | ${dut2-memif-1-if1_ip6} | ${prefix} +| | VPP Set If IPv6 Addr | ${dut2} | ${dut2-memif-1-if2} +| | ... | ${dut2-memif-1-if2_ip6} | ${prefix} +| | Suppress ICMPv6 router advertisement message | ${nodes} +| | Add Ip Neighbor | ${dut1} | ${dut1_if2} | ${dut2_if1_ip6} | ${dut2_if1_mac} +| | Add Ip Neighbor | ${dut2} | ${dut2_if1} | ${dut1_if2_ip6} | ${dut1_if2_mac} +| | Add Ip Neighbor | ${dut1} | ${dut1_if1} | ${tg_if1_ip6_subnet}2 +| | ... | ${tg1_if1_mac} +| | Add Ip Neighbor | ${dut2} | ${dut2_if2} | ${tg_if2_ip6_subnet}2 +| | ... | ${tg1_if2_mac} +| | ${dut1-memif-1-if2_mac}= | Get Interface MAC | ${dut1} | memif2 +| | ${dut2-memif-1-if2_mac}= | Get Interface MAC | ${dut2} | memif2 +| | Add Ip Neighbor | ${dut1} | ${dut1-memif-1-if1} | ${dut1_nh} +| | ... | ${dut1-memif-1-if2_mac} +| | Add Ip Neighbor | ${dut2} | ${dut2-memif-1-if1} | ${dut2_nh} +| | ... | ${dut2-memif-1-if2_mac} +| | Vpp Route Add | ${dut1} | ${dut2_sid1} | ${sid_prefix} | ${dut2_if1_ip6} +| | ... | ${dut1_if2} +| | Vpp Route Add | ${dut1} | ${out_sid2_1} | ${sid_prefix} +| | ... | ${tg_if1_ip6_subnet}2 | ${dut1_if1} +| | Vpp Route Add | ${dut2} | ${dut1_sid2} | ${sid_prefix} | ${dut1_if2_ip6} +| | ... | ${dut2_if1} +| | Vpp Route Add | ${dut2} | ${out_sid1_1} | ${sid_prefix} +| | ... | ${tg_if2_ip6_subnet}2 | ${dut2_if2} +# Configure SRv6 for direction0 on DUT1 +| | Set SR Encaps Source Address on DUT | ${dut1} | ${dut1_sid1} +| | @{sid_list_dir0}= | Create List | ${dut2_sid1} | ${out_sid1_1} +| | ... | ${out_sid1_2} +| | Configure SR Policy on DUT | ${dut1} | ${dut1_bsid} | encap +| | ... | @{sid_list_dir0} +| | Configure SR Steer on DUT | ${dut1} | L3 | ${dut1_bsid} +| | ... | ip_addr=${tg_if2_ip6_subnet} | prefix=${sid_prefix} +# Configure SRv6 for direction1 on DUT2 +| | Set SR Encaps Source Address on DUT | ${dut2} | ${dut2_sid2} +| | @{sid_list_dir1}= | Create List | ${dut1_sid2} | ${out_sid2_1} +| | ... | ${out_sid2_2} +| | Configure SR Policy on DUT | ${dut2} | ${dut2_bsid} | encap +| | ... | @{sid_list_dir1} +| | Configure SR Steer on DUT | ${dut2} | L3 | ${dut2_bsid} +| | ... | ip_addr=${tg_if1_ip6_subnet} | prefix=${sid_prefix} +# Configure SRv6 for direction0 on DUT2 +| | ${dut2_out_if}= | Get Interface Name | ${dut2} | memif1 +| | ${dut2_in_if}= | Get Interface Name | ${dut2} | memif2 +| | Remove Values From List | ${sid_list_dir0} | ${dut2_sid1} +| | Run Keyword If | "${behavior}" == "static_proxy" +| | ... | Configure SR LocalSID on DUT | ${dut2} | ${dut2_sid1} | end.as +| | ... | ${None} | ${dut2_nh} | ${None} | ${dut2_out_if} | ${dut2_in_if} +| | ... | ${dut1_sid1} | @{sid_list_dir0} +| | ... | ELSE IF | "${behavior}" == "dynamic_proxy" +| | ... | Configure SR LocalSID on DUT | ${dut2} | ${dut2_sid1} | end.ad +| | ... | next_hop=${dut2_nh} | out_if=${dut2_out_if} | in_if=${dut2_in_if} +| | ... | ELSE IF | "${behavior}" == "masquerading" +| | ... | Configure SR LocalSID on DUT | ${dut2} | ${dut2_sid1} | end.am +| | ... | next_hop=${dut2_nh} | out_if=${dut2_out_if} | in_if=${dut2_in_if} +| | ... | ELSE | Fail | Unsupported behaviour: ${behavior} +# Configure SRv6 for direction1 on DUT1 +| | ${dut1_out_if}= | Get Interface Name | ${dut1} | memif1 +| | ${dut1_in_if}= | Get Interface Name | ${dut1} | memif2 +| | Remove Values From List | ${sid_list_dir1} | ${dut1_sid2} +| | Run Keyword If | "${behavior}" == "static_proxy" +| | ... | Configure SR LocalSID on DUT | ${dut1} | ${dut1_sid2} | end.as +| | ... | ${None} | ${dut1_nh} | ${None} | ${dut1_out_if} | ${dut1_in_if} +| | ... | ${dut2_sid2} | @{sid_list_dir1} +| | ... | ELSE IF | "${behavior}" == "dynamic_proxy" +| | ... | Configure SR LocalSID on DUT | ${dut1} | ${dut1_sid2} | end.ad +| | ... | next_hop=${dut1_nh} | out_if=${dut1_out_if} | in_if=${dut1_in_if} +| | ... | ELSE IF | "${behavior}" == "masquerading" +| | ... | Configure SR LocalSID on DUT | ${dut1} | ${dut1_sid2} | end.am +| | ... | next_hop=${dut1_nh} | out_if=${dut1_out_if} | in_if=${dut1_in_if} +| | ... | ELSE | Fail | Unsupported behaviour: ${behavior} +| | All Vpp Interfaces Ready Wait | ${nodes} + | Initialize L2 xconnect in 3-node circular topology | | [Documentation] | | ... | Setup L2 xconnect topology by cross connecting two interfaces on diff --git a/resources/libraries/robot/performance/performance_setup.robot b/resources/libraries/robot/performance/performance_setup.robot index e66a98b19c..8a17a6ab7b 100644 --- a/resources/libraries/robot/performance/performance_setup.robot +++ b/resources/libraries/robot/performance/performance_setup.robot @@ -407,6 +407,27 @@ | | Set Suite Variable | @{plugins_to_enable} | | Append To List | ${plugins_to_enable} | acl_plugin.so +| Set up performance test suite with Static SRv6 proxy +| | [Documentation] +| | ... | Append srv6as_plugin.so to the list of enabled plugins. +| | ... +| | Set Suite Variable | @{plugins_to_enable} +| | Append To List | ${plugins_to_enable} | srv6as_plugin.so + +| Set up performance test suite with Dynamic SRv6 proxy +| | [Documentation] +| | ... | Append srv6ad_plugin.so to the list of enabled plugins. +| | ... +| | Set Suite Variable | @{plugins_to_enable} +| | Append To List | ${plugins_to_enable} | srv6ad_plugin.so + +| Set up performance test suite with Masquerading SRv6 proxy +| | [Documentation] +| | ... | Append srv6am_plugin.so to the list of enabled plugins. +| | ... +| | Set Suite Variable | @{plugins_to_enable} +| | Append To List | ${plugins_to_enable} | srv6am_plugin.so + | Set up 3-node performance topology with wrk and DUT's NIC model | | [Documentation] | | ... | Suite preparation phase that setup default startup configuration of diff --git a/resources/libraries/robot/performance/performance_utils.robot b/resources/libraries/robot/performance/performance_utils.robot index 036f06fd2b..4acaec9c33 100644 --- a/resources/libraries/robot/performance/performance_utils.robot +++ b/resources/libraries/robot/performance/performance_utils.robot @@ -572,7 +572,7 @@ | | ... | ${topology_type} | warmup_time=0 | | Run Keyword If | ${dut_stats}==${True} | Show statistics on all DUTs | ${nodes} | | Run Keyword If | ${dut_stats}==${True} and ${pkt_trace}==${True} -| | ... | Show Packet Trace On All Duts | ${nodes} +| | ... | Show Packet Trace On All Duts | ${nodes} | maximum=${100} | | Return From Keyword | ${results} | Clear and show runtime counters with running traffic diff --git a/resources/templates/vat/enable_dpdk_traces.vat b/resources/templates/vat/enable_dpdk_traces.vat index 38af76a5b5..d4a755d59c 100644 --- a/resources/templates/vat/enable_dpdk_traces.vat +++ b/resources/templates/vat/enable_dpdk_traces.vat @@ -1 +1 @@ -exec trace add dpdk-input 100
\ No newline at end of file +exec trace add dpdk-input 50
\ No newline at end of file diff --git a/resources/templates/vat/enable_memif_traces.vat b/resources/templates/vat/enable_memif_traces.vat new file mode 100644 index 0000000000..761d357c56 --- /dev/null +++ b/resources/templates/vat/enable_memif_traces.vat @@ -0,0 +1 @@ +exec trace add memif-input 50
\ No newline at end of file diff --git a/resources/templates/vat/enable_vhost_user_traces.vat b/resources/templates/vat/enable_vhost_user_traces.vat index 9b5c6465dc..de2917619f 100644 --- a/resources/templates/vat/enable_vhost_user_traces.vat +++ b/resources/templates/vat/enable_vhost_user_traces.vat @@ -1 +1 @@ -exec trace add vhost-user-input 100
\ No newline at end of file +exec trace add vhost-user-input 50
\ No newline at end of file diff --git a/resources/templates/vat/show_trace.vat b/resources/templates/vat/show_trace.vat index 9146d3c89e..453315c1d5 100644 --- a/resources/templates/vat/show_trace.vat +++ b/resources/templates/vat/show_trace.vat @@ -1 +1 @@ -exec show trace +exec show trace {maximum} diff --git a/resources/templates/vat/srv6/sr_steer_policies_show.vat b/resources/templates/vat/srv6/sr_steer_policies_show.vat index af4f783082..177c329df2 100644 --- a/resources/templates/vat/srv6/sr_steer_policies_show.vat +++ b/resources/templates/vat/srv6/sr_steer_policies_show.vat @@ -1 +1 @@ -exec show sr steering policies
\ No newline at end of file +exec show sr steering-policies
\ No newline at end of file diff --git a/tests/vpp/perf/srv6/10ge2p1x520-ethip6srhip6-ip6base-srv6proxy-dyn-ndrpdrdisc.robot b/tests/vpp/perf/srv6/10ge2p1x520-ethip6srhip6-ip6base-srv6proxy-dyn-ndrpdrdisc.robot new file mode 100644 index 0000000000..5488d8a935 --- /dev/null +++ b/tests/vpp/perf/srv6/10ge2p1x520-ethip6srhip6-ip6base-srv6proxy-dyn-ndrpdrdisc.robot @@ -0,0 +1,276 @@ +# Copyright (c) 2018 Cisco and/or its affiliates. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at: +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +*** Settings *** +| Resource | resources/libraries/robot/performance/performance_setup.robot +| ... +| Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDRDISC +| ... | NIC_Intel-X520-DA2 | SRv6 | IP6FWD | FEATURE | SRv6_PROXY +| ... | SRv6_PROXY_DYN | MEMIF | LXC +| ... +| Suite Setup | Run Keywords +| ... | Set up 3-node performance topology with DUT's NIC model | L3 +| ... | Intel-X520-DA2 +| ... | AND | Set up performance test suite with MEMIF +| ... | AND | Set up performance test suite with Dynamic SRv6 proxy +| ... | AND | Set up performance topology with containers +| ... +| Suite Teardown | Tear down 3-node performance topology with container +| ... +| Test Setup | Set up performance test +| ... +| Test Teardown | Tear down performance test with SRv6 with encapsulation +| ... | ${min_rate}pps | ${framesize} | ${traffic_profile} +| ... +| Documentation | *Packet throughput Segment routing over IPv6 dataplane with\ +| ... | Dynamic SRv6 proxy test cases* +| ... +| ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology\ +| ... | with single links between nodes. +| ... | *[Enc] Packet Encapsulations:* Eth-IPv6-SRH-IPv6 on DUT1-DUT2 and\ +| ... | DUTn->TG, Eth-IPv6 on TG->DUTn and DUTn-LXC for IPv6 routing over SRv6. +| ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with IPv6\ +| ... | routing and static route, SR policy and steering policy for one\ +| ... | direction and one SR behaviour (function) - End.AD - for other\ +| ... | direction. DUT1 and DUT2 are tested with 2p10GE NIC X520 Niantic\ +| ... | by Intel. +| ... | *[Ver] TG verification:* TG finds and reports throughput NDR (Non Drop\ +| ... | Rate) with zero packet loss tolerance or throughput PDR (Partial Drop\ +| ... | Rate) with non-zero packet loss tolerance (LT) expressed in percentage\ +| ... | of packets transmitted. NDR and PDR are discovered for different\ +| ... | Ethernet L2 frame sizes using either binary search or linear search\ +| ... | algorithms with configured starting rate and final step that determines\ +| ... | throughput measurement resolution. Test packets are generated by TG on\ +| ... | links to DUTs. TG traffic profile contains two L3 flow-groups\ +| ... | (flow-group per direction, 253 flows per flow-group) with\ +| ... | all packets containing Ethernet header,IPv6 header with static payload.\ +| ... | MAC addresses are matching MAC addresses of the TG node interfaces. +| ... | *[Ref] Applicable standard specifications:* SRv6 Network Programming -\ +| ... | draft 3 and Segment Routing for Service Chaining - internet draft 01. +| ... + +*** Variables *** +# X520-DA2 bandwidth limit +| ${s_limit}= | ${10000000000} +# SIDs +| ${dut1_sid1}= | 2002:1:: +| ${dut1_sid2}= | 2003:2:: +| ${dut1_bsid}= | 2002:1::1 +| ${dut2_sid1}= | 2002:2:: +| ${dut2_sid2}= | 2003:1:: +| ${dut2_bsid}= | 2003:1::1 +| ${out_sid1_1}= | 2002:3:: +| ${out_sid1_2}= | 2002:4:: +| ${out_sid2_1}= | 2003:3:: +| ${out_sid2_2}= | 2003:4:: +| ${sid_prefix}= | ${64} +# IP settings +| ${tg_if1_ip6_subnet}= | 2001:1:: +| ${tg_if2_ip6_subnet}= | 2001:2:: +| ${dut1_if1_ip6}= | 2001:1::1 +| ${dut1_if2_ip6}= | 2001:3::1 +| ${dut1-memif-1-if1_ip6}= | 3001:1::1 +| ${dut1-memif-1-if2_ip6}= | 3001:1::2 +| ${dut1_nh}= | 4002:: +| ${dut2_if1_ip6}= | 2001:3::2 +| ${dut2_if2_ip6}= | 2001:2::1 +| ${dut2-memif-1-if1_ip6}= | 3002:1::1 +| ${dut2-memif-1-if2_ip6}= | 3002:1::2 +| ${dut2_nh}= | 4001:: +| ${prefix}= | ${64} +# outer IPv6 header + SRH with 3 SIDs: 40+(8+3*16)B +| ${srv6_overhead_3sids}= | ${96} +# Traffic profile: +| ${traffic_profile}= | trex-sl-3n-ethip6-ip6src253 +# LXC container +| ${container_count}= | ${1} +| ${container_engine}= | LXC +| ${container_image}= | ${EMPTY} +# CPU settings +| ${system_cpus}= | ${1} +| ${vpp_cpus}= | ${5} +| ${container_cpus}= | ${5} + +*** Keywords *** +| Discover NDR or PDR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via dynamic proxy behaviour +| | [Arguments] | ${wt} | ${rxq} | ${framesize} | ${min_rate} | ${search_type} +| | Set Test Variable | ${framesize} +| | Set Test Variable | ${min_rate} +| | Set Test Variable | ${rxq} +| | ${get_framesize}= | Get Frame Size | ${framesize} +| | ${max_rate}= | Calculate pps | ${s_limit} +| | ... | ${get_framesize} + ${srv6_overhead_3sids} +| | ${binary_min}= | Set Variable | ${min_rate} +| | ${binary_max}= | Set Variable | ${max_rate} +| | ${threshold}= | Set Variable | ${min_rate} +| | Given Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology +| | And Add PCI devices to DUTs in 3-node single link topology +| | ${get_framesize}= | Get Frame Size | ${framesize} +| | And Run Keyword If | ${get_framesize} + ${srv6_overhead_3sids} < ${1522} +| | ... | Add no multi seg to all DUTs +| | And Apply startup configuration on all VPP DUTs +| | When Initialize IPv6 forwarding over SRv6 with endpoint to SR-unaware Service Function via 'dynamic_proxy' behaviour in 3-node circular topology +| | Then Run Keyword If | '${search_type}' == 'NDR' +| | ... | Find NDR using binary search and pps +| | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile} +| | ... | ${min_rate} | ${max_rate} | ${threshold} +| | ... | ELSE IF | '${search_type}' == 'PDR' +| | ... | Find PDR using binary search and pps +| | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile} +| | ... | ${min_rate} | ${max_rate} | ${threshold} +| | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type} + +*** Test Cases *** +| tc01-78B-1t1c-ethip6srhip6-ip6base-srv6proxy-dyn-ndrdisc +| | [Documentation] +| | ... | [Cfg] DUT runs IPv6 over SRv6 routing with dynamic SRv6 proxy config\ +| | ... | with 1 thread, 1 phy core, 1 receive queue per NIC port. +| | ... | [Ver] Find NDR for 78 Byte frames using binary search start at 10GE\ +| | ... | linerate, step 50kpps. +| | ... +| | [Tags] | 78B | 1T1C | STHREAD | NDRDISC +| | ... +| | [Template] | Discover NDR or PDR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via dynamic proxy behaviour +| | wt=1 | rxq=1 | framesize=${78} | min_rate=${50000} | search_type=NDR + +| tc02-78B-1t1c-ethip6srhip6-ip6base-srv6proxy-dyn-pdrdisc +| | [Documentation] +| | ... | [Cfg] DUT runs IPv6 over SRv6 routing with dynamic SRv6 proxy config\ +| | ... | with 1 thread, 1 phy core, 1 receive queue per NIC port. +| | ... | [Ver] Find PDR for 78 Byte frames using binary search start at 10GE\ +| | ... | linerate, step 50kpps, LT=0.5%. +| | ... +| | [Tags] | 78B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH +| | ... +| | [Template] | Discover NDR or PDR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via dynamic proxy behaviour +| | wt=1 | rxq=1 | framesize=${78} | min_rate=${50000} | search_type=PDR + +| tc03-78B-2t2c-ethip6srhip6-ip6base-srv6proxy-dyn-ndrdisc +| | [Documentation] +| | ... | [Cfg] DUT runs IPv6 over SRv6 routing with dynamic SRv6 proxy config\ +| | ... | with 2 threads, 2 phy cores, 1 receive queue per NIC port. +| | ... | [Ver] Find NDR for 78 Byte frames using binary search start at 10GE\ +| | ... | linerate, step 50kpps. +| | ... +| | [Tags] | 78B | 2T2C | MTHREAD | NDRDISC +| | ... +| | [Template] | Discover NDR or PDR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via dynamic proxy behaviour +| | wt=2 | rxq=1 | framesize=${78} | min_rate=${50000} | search_type=NDR + +| tc04-78B-2t2c-ethip6srhip6-ip6base-srv6proxy-dyn-pdrdisc +| | [Documentation] +| | ... | [Cfg] DUT runs IPv6 over SRv6 routing with dynamic SRv6 proxy config\ +| | ... | with 2 threads, 2 phy cores, 1 receive queue per NIC port. +| | ... | [Ver] Find PDR for 78 Byte frames using binary search start at 10GE\ +| | ... | linerate, step 50kpps, LT=0.5%. +| | ... +| | [Tags] | 78B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH +| | ... +| | [Template] | Discover NDR or PDR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via dynamic proxy behaviour +| | wt=2 | rxq=1 | framesize=${78} | min_rate=${50000} | search_type=PDR + +| tc05-78B-4t4c-ethip6srhip6-ip6base-srv6proxy-dyn-ndrdisc +| | [Documentation] +| | ... | [Cfg] DUT runs IPv6 over SRv6 routing with dynamic SRv6 proxy config\ +| | ... | with 4 threads, 4 phy cores, 2 receive queues per NIC port. +| | ... | [Ver] Find NDR for 78 Byte frames using binary search start at 10GE\ +| | ... | linerate, step 50kpps. +| | ... +| | [Tags] | 78B | 4T4C | MTHREAD | NDRDISC +| | ... +| | [Template] | Discover NDR or PDR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via dynamic proxy behaviour +| | wt=4 | rxq=2 | framesize=${78} | min_rate=${50000} | search_type=NDR + +| tc06-78B-4t4c-ethip6srhip6-ip6base-srv6proxy-dyn-pdrdisc +| | [Documentation] +| | ... | [Cfg] DUT runs IPv6 over SRv6 routing with dynamic SRv6 proxy config\ +| | ... | with 4 threads, 4 phy cores, 2 receive queues per NIC port. +| | ... | [Ver] Find PDR for 78 Byte frames using binary search start at 10GE\ +| | ... | linerate, step 50kpps, LT=0.5%. +| | ... +| | [Tags] | 78B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH +| | ... +| | [Template] | Discover NDR or PDR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via dynamic proxy behaviour +| | wt=4 | rxq=2 | framesize=${78} | min_rate=${50000} | search_type=PDR + +| tc07-1518B-1t1c-ethip6srhip6-ip6base-srv6proxy-dyn-ndrdisc +| | [Documentation] +| | ... | [Cfg] DUT runs IPv6 over SRv6 routing with dynamic SRv6 proxy config\ +| | ... | with 1 thread, 1 phy core, 1 receive queue per NIC port. +| | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE\ +| | ... | linerate, step 50kpps. +| | ... +| | [Tags] | 1518B | 1T1C | STHREAD | NDRDISC +| | ... +| | [Template] | Discover NDR or PDR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via dynamic proxy behaviour +| | wt=1 | rxq=1 | framesize=${1518} | min_rate=${50000} | search_type=NDR + +| tc08-1518B-1t1c-ethip6srhip6-ip6base-srv6proxy-dyn-pdrdisc +| | [Documentation] +| | ... | [Cfg] DUT runs IPv6 over SRv6 routing with dynamic SRv6 proxy config\ +| | ... | with 1 thread, 1 phy core, 1 receive queue per NIC port. +| | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE\ +| | ... | linerate, step 50kpps, LT=0.5%. +| | ... +| | [Tags] | 1518B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH +| | ... +| | [Template] | Discover NDR or PDR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via dynamic proxy behaviour +| | wt=1 | rxq=1 | framesize=${1518} | min_rate=${50000} | search_type=PDR + +| tc09-1518B-2t2c-ethip6srhip6-ip6base-srv6proxy-dyn-ndrdisc +| | [Documentation] +| | ... | [Cfg] DUT runs IPv6 over SRv6 routing with dynamic SRv6 proxy config\ +| | ... | with 2 threads, 2 phy cores, 1 receive queue per NIC port. +| | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE\ +| | ... | linerate, step 50kpps. +| | ... +| | [Tags] | 1518B | 2T2C | MTHREAD | NDRDISC +| | ... +| | [Template] | Discover NDR or PDR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via dynamic proxy behaviour +| | wt=2 | rxq=1 | framesize=${1518} | min_rate=${50000} | search_type=NDR + +| tc10-1518B-2t2c-ethip6srhip6-ip6base-srv6proxy-dyn-pdrdisc +| | [Documentation] +| | ... | [Cfg] DUT runs IPv6 over SRv6 routing with dynamic SRv6 proxy config\ +| | ... | with 2 threads, 2 phy cores, 1 receive queue per NIC port. +| | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE\ +| | ... | linerate, step 50kpps, LT=0.5%. +| | ... +| | [Tags] | 1518B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH +| | ... +| | [Template] | Discover NDR or PDR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via dynamic proxy behaviour +| | wt=2 | rxq=1 | framesize=${1518} | min_rate=${50000} | search_type=PDR + +| tc11-1518B-4t4c-ethip6srhip6-ip6base-srv6proxy-dyn-ndrdisc +| | [Documentation] +| | ... | [Cfg] DUT runs IPv6 over SRv6 routing with dynamic SRv6 proxy config\ +| | ... | with 4 threads, 4 phy cores, 2 receive queues per NIC port. +| | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE\ +| | ... | linerate, step 50kpps. +| | ... +| | [Tags] | 1518B | 4T4C | MTHREAD | NDRDISC +| | ... +| | [Template] | Discover NDR or PDR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via dynamic proxy behaviour +| | wt=4 | rxq=2 | framesize=${1518} | min_rate=${50000} | search_type=NDR + +| tc12-1518B-4t4c-ethip6srhip6-ip6base-srv6proxy-dyn-pdrdisc +| | [Documentation] +| | ... | [Cfg] DUT runs IPv6 over SRv6 routing with dynamic SRv6 proxy config\ +| | ... | with 4 threads, 4 phy cores, 2 receive queues per NIC port. +| | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE\ +| | ... | linerate, step 50kpps, LT=0.5%. +| | ... +| | [Tags] | 1518B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH +| | ... +| | [Template] | Discover NDR or PDR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via dynamic proxy behaviour +| | wt=4 | rxq=2 | framesize=${1518} | min_rate=${50000} | search_type=PDR diff --git a/tests/vpp/perf/srv6/10ge2p1x520-ethip6srhip6-ip6base-srv6proxy-masq-ndrpdrdisc.robot b/tests/vpp/perf/srv6/10ge2p1x520-ethip6srhip6-ip6base-srv6proxy-masq-ndrpdrdisc.robot new file mode 100644 index 0000000000..85089c57a0 --- /dev/null +++ b/tests/vpp/perf/srv6/10ge2p1x520-ethip6srhip6-ip6base-srv6proxy-masq-ndrpdrdisc.robot @@ -0,0 +1,276 @@ +# Copyright (c) 2018 Cisco and/or its affiliates. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at: +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +*** Settings *** +| Resource | resources/libraries/robot/performance/performance_setup.robot +| ... +| Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDRDISC +| ... | NIC_Intel-X520-DA2 | SRv6 | IP6FWD | FEATURE | SRv6_PROXY +| ... | SRv6_PROXY_MASQ | MEMIF | LXC +| ... +| Suite Setup | Run Keywords +| ... | Set up 3-node performance topology with DUT's NIC model | L3 +| ... | Intel-X520-DA2 +| ... | AND | Set up performance test suite with MEMIF +| ... | AND | Set up performance test suite with Masquerading SRv6 proxy +| ... | AND | Set up performance topology with containers +| ... +| Suite Teardown | Tear down 3-node performance topology with container +| ... +| Test Setup | Set up performance test +| ... +| Test Teardown | Tear down performance test with SRv6 with encapsulation +| ... | ${min_rate}pps | ${framesize} | ${traffic_profile} +| ... +| Documentation | *Packet throughput Segment routing over IPv6 dataplane with\ +| ... | Masquerading SRv6 proxy test cases* +| ... +| ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology\ +| ... | with single links between nodes. +| ... | *[Enc] Packet Encapsulations:* Eth-IPv6-SRH-IPv6 on DUT1-DUT2, DUTn-LXC\ +| ... | and DUTn->TG, Eth-IPv6 on TG->DUTn for IPv6 routing over SRv6. +| ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with IPv6\ +| ... | routing and static route, SR policy and steering policy for one\ +| ... | direction and one SR behaviour (function) - End.AM - for other\ +| ... | direction. DUT1 and DUT2 are tested with 2p10GE NIC X520 Niantic\ +| ... | by Intel. +| ... | *[Ver] TG verification:* TG finds and reports throughput NDR (Non Drop\ +| ... | Rate) with zero packet loss tolerance or throughput PDR (Partial Drop\ +| ... | Rate) with non-zero packet loss tolerance (LT) expressed in percentage\ +| ... | of packets transmitted. NDR and PDR are discovered for different\ +| ... | Ethernet L2 frame sizes using either binary search or linear search\ +| ... | algorithms with configured starting rate and final step that determines\ +| ... | throughput measurement resolution. Test packets are generated by TG on\ +| ... | links to DUTs. TG traffic profile contains two L3 flow-groups\ +| ... | (flow-group per direction, 253 flows per flow-group) with\ +| ... | all packets containing Ethernet header,IPv6 header with static payload.\ +| ... | MAC addresses are matching MAC addresses of the TG node interfaces. +| ... | *[Ref] Applicable standard specifications:* SRv6 Network Programming -\ +| ... | draft 3 and Segment Routing for Service Chaining - internet draft 01. +| ... + +*** Variables *** +# X520-DA2 bandwidth limit +| ${s_limit}= | ${10000000000} +# SIDs +| ${dut1_sid1}= | 2002:1:: +| ${dut1_sid2}= | 2003:2:: +| ${dut1_bsid}= | 2002:1::1 +| ${dut2_sid1}= | 2002:2:: +| ${dut2_sid2}= | 2003:1:: +| ${dut2_bsid}= | 2003:1::1 +| ${out_sid1_1}= | 2002:3:: +| ${out_sid1_2}= | 2002:4:: +| ${out_sid2_1}= | 2003:3:: +| ${out_sid2_2}= | 2003:4:: +| ${sid_prefix}= | ${64} +# IP settings +| ${tg_if1_ip6_subnet}= | 2001:1:: +| ${tg_if2_ip6_subnet}= | 2001:2:: +| ${dut1_if1_ip6}= | 2001:1::1 +| ${dut1_if2_ip6}= | 2001:3::1 +| ${dut1-memif-1-if1_ip6}= | 3001:1::1 +| ${dut1-memif-1-if2_ip6}= | 3001:1::2 +| ${dut1_nh}= | 4002:: +| ${dut2_if1_ip6}= | 2001:3::2 +| ${dut2_if2_ip6}= | 2001:2::1 +| ${dut2-memif-1-if1_ip6}= | 3002:1::1 +| ${dut2-memif-1-if2_ip6}= | 3002:1::2 +| ${dut2_nh}= | 4001:: +| ${prefix}= | ${64} +# outer IPv6 header + SRH with 3 SIDs: 40+(8+3*16)B +| ${srv6_overhead_3sids}= | ${96} +# Traffic profile: +| ${traffic_profile}= | trex-sl-3n-ethip6-ip6src253 +# LXC container +| ${container_count}= | ${1} +| ${container_engine}= | LXC +| ${container_image}= | ${EMPTY} +# CPU settings +| ${system_cpus}= | ${1} +| ${vpp_cpus}= | ${5} +| ${container_cpus}= | ${5} + +*** Keywords *** +| Discover NDR or PDR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via masquerading proxy behaviour +| | [Arguments] | ${wt} | ${rxq} | ${framesize} | ${min_rate} | ${search_type} +| | Set Test Variable | ${framesize} +| | Set Test Variable | ${min_rate} +| | Set Test Variable | ${rxq} +| | ${get_framesize}= | Get Frame Size | ${framesize} +| | ${max_rate}= | Calculate pps | ${s_limit} +| | ... | ${get_framesize} + ${srv6_overhead_3sids} +| | ${binary_min}= | Set Variable | ${min_rate} +| | ${binary_max}= | Set Variable | ${max_rate} +| | ${threshold}= | Set Variable | ${min_rate} +| | Given Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology +| | And Add PCI devices to DUTs in 3-node single link topology +| | ${get_framesize}= | Get Frame Size | ${framesize} +| | And Run Keyword If | ${get_framesize} + ${srv6_overhead_3sids} < ${1522} +| | ... | Add no multi seg to all DUTs +| | And Apply startup configuration on all VPP DUTs +| | When Initialize IPv6 forwarding over SRv6 with endpoint to SR-unaware Service Function via 'masquerading' behaviour in 3-node circular topology +| | Then Run Keyword If | '${search_type}' == 'NDR' +| | ... | Find NDR using binary search and pps +| | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile} +| | ... | ${min_rate} | ${max_rate} | ${threshold} +| | ... | ELSE IF | '${search_type}' == 'PDR' +| | ... | Find PDR using binary search and pps +| | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile} +| | ... | ${min_rate} | ${max_rate} | ${threshold} +| | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type} + +*** Test Cases *** +| tc01-78B-1t1c-ethip6srhip6-ip6base-srv6proxy-masq-ndrdisc +| | [Documentation] +| | ... | [Cfg] DUT runs IPv6 over SRv6 routing with masquerading SRv6 proxy\ +| | ... | config with 1 thread, 1 phy core, 1 receive queue per NIC port. +| | ... | [Ver] Find NDR for 78 Byte frames using binary search start at 10GE\ +| | ... | linerate, step 50kpps. +| | ... +| | [Tags] | 78B | 1T1C | STHREAD | NDRDISC +| | ... +| | [Template] | Discover NDR or PDR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via masquerading proxy behaviour +| | wt=1 | rxq=1 | framesize=${78} | min_rate=${50000} | search_type=NDR + +| tc02-78B-1t1c-ethip6srhip6-ip6base-srv6proxy-masq-pdrdisc +| | [Documentation] +| | ... | [Cfg] DUT runs IPv6 over SRv6 routing with masquerading SRv6 proxy\ +| | ... | config with 1 thread, 1 phy core, 1 receive queue per NIC port. +| | ... | [Ver] Find PDR for 78 Byte frames using binary search start at 10GE\ +| | ... | linerate, step 50kpps, LT=0.5%. +| | ... +| | [Tags] | 78B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH +| | ... +| | [Template] | Discover NDR or PDR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via masquerading proxy behaviour +| | wt=1 | rxq=1 | framesize=${78} | min_rate=${50000} | search_type=PDR + +| tc03-78B-2t2c-ethip6srhip6-ip6base-srv6proxy-masq-ndrdisc +| | [Documentation] +| | ... | [Cfg] DUT runs IPv6 over SRv6 routing with masquerading SRv6 proxy\ +| | ... | config with 2 threads, 2 phy cores, 1 receive queue per NIC port. +| | ... | [Ver] Find NDR for 78 Byte frames using binary search start at 10GE\ +| | ... | linerate, step 50kpps. +| | ... +| | [Tags] | 78B | 2T2C | MTHREAD | NDRDISC +| | ... +| | [Template] | Discover NDR or PDR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via masquerading proxy behaviour +| | wt=2 | rxq=1 | framesize=${78} | min_rate=${50000} | search_type=NDR + +| tc04-78B-2t2c-ethip6srhip6-ip6base-srv6proxy-masq-pdrdisc +| | [Documentation] +| | ... | [Cfg] DUT runs IPv6 over SRv6 routing with masquerading SRv6 proxy\ +| | ... | config with 2 threads, 2 phy cores, 1 receive queue per NIC port. +| | ... | [Ver] Find PDR for 78 Byte frames using binary search start at 10GE\ +| | ... | linerate, step 50kpps, LT=0.5%. +| | ... +| | [Tags] | 78B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH +| | ... +| | [Template] | Discover NDR or PDR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via masquerading proxy behaviour +| | wt=2 | rxq=1 | framesize=${78} | min_rate=${50000} | search_type=PDR + +| tc05-78B-4t4c-ethip6srhip6-ip6base-srv6proxy-masq-ndrdisc +| | [Documentation] +| | ... | [Cfg] DUT runs IPv6 over SRv6 routing with masquerading SRv6 proxy\ +| | ... | config with 4 threads, 4 phy cores, 2 receive queues per NIC port. +| | ... | [Ver] Find NDR for 78 Byte frames using binary search start at 10GE\ +| | ... | linerate, step 50kpps. +| | ... +| | [Tags] | 78B | 4T4C | MTHREAD | NDRDISC +| | ... +| | [Template] | Discover NDR or PDR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via masquerading proxy behaviour +| | wt=4 | rxq=2 | framesize=${78} | min_rate=${50000} | search_type=NDR + +| tc06-78B-4t4c-ethip6srhip6-ip6base-srv6proxy-masq-pdrdisc +| | [Documentation] +| | ... | [Cfg] DUT runs IPv6 over SRv6 routing with masquerading SRv6 proxy\ +| | ... | config with 4 threads, 4 phy cores, 2 receive queues per NIC port. +| | ... | [Ver] Find PDR for 78 Byte frames using binary search start at 10GE\ +| | ... | linerate, step 50kpps, LT=0.5%. +| | ... +| | [Tags] | 78B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH +| | ... +| | [Template] | Discover NDR or PDR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via masquerading proxy behaviour +| | wt=4 | rxq=2 | framesize=${78} | min_rate=${50000} | search_type=PDR + +| tc07-1518B-1t1c-ethip6srhip6-ip6base-srv6proxy-masq-ndrdisc +| | [Documentation] +| | ... | [Cfg] DUT runs IPv6 over SRv6 routing with masquerading SRv6 proxy\ +| | ... | config with 1 thread, 1 phy core, 1 receive queue per NIC port. +| | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE\ +| | ... | linerate, step 50kpps. +| | ... +| | [Tags] | 1518B | 1T1C | STHREAD | NDRDISC +| | ... +| | [Template] | Discover NDR or PDR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via masquerading proxy behaviour +| | wt=1 | rxq=1 | framesize=${1518} | min_rate=${50000} | search_type=NDR + +| tc08-1518B-1t1c-ethip6srhip6-ip6base-srv6proxy-masq-pdrdisc +| | [Documentation] +| | ... | [Cfg] DUT runs IPv6 over SRv6 routing with masquerading SRv6 proxy\ +| | ... | config with 1 thread, 1 phy core, 1 receive queue per NIC port. +| | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE\ +| | ... | linerate, step 50kpps, LT=0.5%. +| | ... +| | [Tags] | 1518B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH +| | ... +| | [Template] | Discover NDR or PDR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via masquerading proxy behaviour +| | wt=1 | rxq=1 | framesize=${1518} | min_rate=${50000} | search_type=PDR + +| tc09-1518B-2t2c-ethip6srhip6-ip6base-srv6proxy-masq-ndrdisc +| | [Documentation] +| | ... | [Cfg] DUT runs IPv6 over SRv6 routing with masquerading SRv6 proxy\ +| | ... | config with 2 threads, 2 phy cores, 1 receive queue per NIC port. +| | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE\ +| | ... | linerate, step 50kpps. +| | ... +| | [Tags] | 1518B | 2T2C | MTHREAD | NDRDISC +| | ... +| | [Template] | Discover NDR or PDR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via masquerading proxy behaviour +| | wt=2 | rxq=1 | framesize=${1518} | min_rate=${50000} | search_type=NDR + +| tc10-1518B-2t2c-ethip6srhip6-ip6base-srv6proxy-masq-pdrdisc +| | [Documentation] +| | ... | [Cfg] DUT runs IPv6 over SRv6 routing with masquerading SRv6 proxy\ +| | ... | config with 2 threads, 2 phy cores, 1 receive queue per NIC port. +| | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE\ +| | ... | linerate, step 50kpps, LT=0.5%. +| | ... +| | [Tags] | 1518B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH +| | ... +| | [Template] | Discover NDR or PDR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via masquerading proxy behaviour +| | wt=2 | rxq=1 | framesize=${1518} | min_rate=${50000} | search_type=PDR + +| tc11-1518B-4t4c-ethip6srhip6-ip6base-srv6proxy-masq-ndrdisc +| | [Documentation] +| | ... | [Cfg] DUT runs IPv6 over SRv6 routing with masquerading SRv6 proxy\ +| | ... | config with 4 threads, 4 phy cores, 2 receive queues per NIC port. +| | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE\ +| | ... | linerate, step 50kpps. +| | ... +| | [Tags] | 1518B | 4T4C | MTHREAD | NDRDISC +| | ... +| | [Template] | Discover NDR or PDR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via masquerading proxy behaviour +| | wt=4 | rxq=2 | framesize=${1518} | min_rate=${50000} | search_type=NDR + +| tc12-1518B-4t4c-ethip6srhip6-ip6base-srv6proxy-masq-pdrdisc +| | [Documentation] +| | ... | [Cfg] DUT runs IPv6 over SRv6 routing with masquerading SRv6 proxy\ +| | ... | config with 4 threads, 4 phy cores, 2 receive queues per NIC port. +| | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE\ +| | ... | linerate, step 50kpps, LT=0.5%. +| | ... +| | [Tags] | 1518B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH +| | ... +| | [Template] | Discover NDR or PDR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via masquerading proxy behaviour +| | wt=4 | rxq=2 | framesize=${1518} | min_rate=${50000} | search_type=PDR diff --git a/tests/vpp/perf/srv6/10ge2p1x520-ethip6srhip6-ip6base-srv6proxy-stat-ndrpdrdisc.robot b/tests/vpp/perf/srv6/10ge2p1x520-ethip6srhip6-ip6base-srv6proxy-stat-ndrpdrdisc.robot new file mode 100644 index 0000000000..0c9f57d564 --- /dev/null +++ b/tests/vpp/perf/srv6/10ge2p1x520-ethip6srhip6-ip6base-srv6proxy-stat-ndrpdrdisc.robot @@ -0,0 +1,276 @@ +# Copyright (c) 2018 Cisco and/or its affiliates. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at: +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +*** Settings *** +| Resource | resources/libraries/robot/performance/performance_setup.robot +| ... +| Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDRDISC +| ... | NIC_Intel-X520-DA2 | SRv6 | IP6FWD | FEATURE | SRv6_PROXY +| ... | SRv6_PROXY_STAT | MEMIF | LXC +| ... +| Suite Setup | Run Keywords +| ... | Set up 3-node performance topology with DUT's NIC model | L3 +| ... | Intel-X520-DA2 +| ... | AND | Set up performance test suite with MEMIF +| ... | AND | Set up performance test suite with Static SRv6 proxy +| ... | AND | Set up performance topology with containers +| ... +| Suite Teardown | Tear down 3-node performance topology with container +| ... +| Test Setup | Set up performance test +| ... +| Test Teardown | Tear down performance test with SRv6 with encapsulation +| ... | ${min_rate}pps | ${framesize} | ${traffic_profile} +| ... +| Documentation | *Packet throughput Segment routing over IPv6 dataplane with\ +| ... | Static SRv6 proxy test cases* +| ... +| ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology\ +| ... | with single links between nodes. +| ... | *[Enc] Packet Encapsulations:* Eth-IPv6-SRH-IPv6 on DUT1-DUT2 and\ +| ... | DUTn->TG, Eth-IPv6 on TG->DUTn and DUTn-LXC for IPv6 routing over SRv6. +| ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with IPv6\ +| ... | routing and static route, SR policy and steering policy for one\ +| ... | direction and one SR behaviour (function) - End.AS - for other\ +| ... | direction. DUT1 and DUT2 are tested with 2p10GE NIC X520 Niantic\ +| ... | by Intel. +| ... | *[Ver] TG verification:* TG finds and reports throughput NDR (Non Drop\ +| ... | Rate) with zero packet loss tolerance or throughput PDR (Partial Drop\ +| ... | Rate) with non-zero packet loss tolerance (LT) expressed in percentage\ +| ... | of packets transmitted. NDR and PDR are discovered for different\ +| ... | Ethernet L2 frame sizes using either binary search or linear search\ +| ... | algorithms with configured starting rate and final step that determines\ +| ... | throughput measurement resolution. Test packets are generated by TG on\ +| ... | links to DUTs. TG traffic profile contains two L3 flow-groups\ +| ... | (flow-group per direction, 253 flows per flow-group) with\ +| ... | all packets containing Ethernet header,IPv6 header with static payload.\ +| ... | MAC addresses are matching MAC addresses of the TG node interfaces. +| ... | *[Ref] Applicable standard specifications:* SRv6 Network Programming -\ +| ... | draft 3 and Segment Routing for Service Chaining - internet draft 01. +| ... + +*** Variables *** +# X520-DA2 bandwidth limit +| ${s_limit}= | ${10000000000} +# SIDs +| ${dut1_sid1}= | 2002:1:: +| ${dut1_sid2}= | 2003:2:: +| ${dut1_bsid}= | 2002:1::1 +| ${dut2_sid1}= | 2002:2:: +| ${dut2_sid2}= | 2003:1:: +| ${dut2_bsid}= | 2003:1::1 +| ${out_sid1_1}= | 2002:3:: +| ${out_sid1_2}= | 2002:4:: +| ${out_sid2_1}= | 2003:3:: +| ${out_sid2_2}= | 2003:4:: +| ${sid_prefix}= | ${64} +# IP settings +| ${tg_if1_ip6_subnet}= | 2001:1:: +| ${tg_if2_ip6_subnet}= | 2001:2:: +| ${dut1_if1_ip6}= | 2001:1::1 +| ${dut1_if2_ip6}= | 2001:3::1 +| ${dut1-memif-1-if1_ip6}= | 3001:1::1 +| ${dut1-memif-1-if2_ip6}= | 3001:1::2 +| ${dut1_nh}= | 4002:: +| ${dut2_if1_ip6}= | 2001:3::2 +| ${dut2_if2_ip6}= | 2001:2::1 +| ${dut2-memif-1-if1_ip6}= | 3002:1::1 +| ${dut2-memif-1-if2_ip6}= | 3002:1::2 +| ${dut2_nh}= | 4001:: +| ${prefix}= | ${64} +# outer IPv6 header + SRH with 3 SIDs: 40+(8+3*16)B +| ${srv6_overhead_3sids}= | ${96} +# Traffic profile: +| ${traffic_profile}= | trex-sl-3n-ethip6-ip6src253 +# LXC container +| ${container_count}= | ${1} +| ${container_engine}= | LXC +| ${container_image}= | ${EMPTY} +# CPU settings +| ${system_cpus}= | ${1} +| ${vpp_cpus}= | ${5} +| ${container_cpus}= | ${5} + +*** Keywords *** +| Discover NDR or PDR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via static proxy behaviour +| | [Arguments] | ${wt} | ${rxq} | ${framesize} | ${min_rate} | ${search_type} +| | Set Test Variable | ${framesize} +| | Set Test Variable | ${min_rate} +| | Set Test Variable | ${rxq} +| | ${get_framesize}= | Get Frame Size | ${framesize} +| | ${max_rate}= | Calculate pps | ${s_limit} +| | ... | ${get_framesize} + ${srv6_overhead_3sids} +| | ${binary_min}= | Set Variable | ${min_rate} +| | ${binary_max}= | Set Variable | ${max_rate} +| | ${threshold}= | Set Variable | ${min_rate} +| | Given Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology +| | And Add PCI devices to DUTs in 3-node single link topology +| | ${get_framesize}= | Get Frame Size | ${framesize} +| | And Run Keyword If | ${get_framesize} + ${srv6_overhead_3sids} < ${1522} +| | ... | Add no multi seg to all DUTs +| | And Apply startup configuration on all VPP DUTs +| | When Initialize IPv6 forwarding over SRv6 with endpoint to SR-unaware Service Function via 'static_proxy' behaviour in 3-node circular topology +| | Then Run Keyword If | '${search_type}' == 'NDR' +| | ... | Find NDR using binary search and pps +| | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile} +| | ... | ${min_rate} | ${max_rate} | ${threshold} +| | ... | ELSE IF | '${search_type}' == 'PDR' +| | ... | Find PDR using binary search and pps +| | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile} +| | ... | ${min_rate} | ${max_rate} | ${threshold} +| | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type} + +*** Test Cases *** +| tc01-78B-1t1c-ethip6srhip6-ip6base-srv6proxy-stat-ndrdisc +| | [Documentation] +| | ... | [Cfg] DUT runs IPv6 over SRv6 routing with static SRv6 proxy config\ +| | ... | with 1 thread, 1 phy core, 1 receive queue per NIC port. +| | ... | [Ver] Find NDR for 78 Byte frames using binary search start at 10GE\ +| | ... | linerate, step 50kpps. +| | ... +| | [Tags] | 78B | 1T1C | STHREAD | NDRDISC +| | ... +| | [Template] | Discover NDR or PDR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via static proxy behaviour +| | wt=1 | rxq=1 | framesize=${78} | min_rate=${50000} | search_type=NDR + +| tc02-78B-1t1c-ethip6srhip6-ip6base-srv6proxy-stat-pdrdisc +| | [Documentation] +| | ... | [Cfg] DUT runs IPv6 over SRv6 routing with static SRv6 proxy config\ +| | ... | with 1 thread, 1 phy core, 1 receive queue per NIC port. +| | ... | [Ver] Find PDR for 78 Byte frames using binary search start at 10GE\ +| | ... | linerate, step 50kpps, LT=0.5%. +| | ... +| | [Tags] | 78B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH +| | ... +| | [Template] | Discover NDR or PDR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via static proxy behaviour +| | wt=1 | rxq=1 | framesize=${78} | min_rate=${50000} | search_type=PDR + +| tc03-78B-2t2c-ethip6srhip6-ip6base-srv6proxy-stat-ndrdisc +| | [Documentation] +| | ... | [Cfg] DUT runs IPv6 over SRv6 routing with static SRv6 proxy config\ +| | ... | with 2 threads, 2 phy cores, 1 receive queue per NIC port. +| | ... | [Ver] Find NDR for 78 Byte frames using binary search start at 10GE\ +| | ... | linerate, step 50kpps. +| | ... +| | [Tags] | 78B | 2T2C | MTHREAD | NDRDISC +| | ... +| | [Template] | Discover NDR or PDR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via static proxy behaviour +| | wt=2 | rxq=1 | framesize=${78} | min_rate=${50000} | search_type=NDR + +| tc04-78B-2t2c-ethip6srhip6-ip6base-srv6proxy-stat-pdrdisc +| | [Documentation] +| | ... | [Cfg] DUT runs IPv6 over SRv6 routing with static SRv6 proxy config\ +| | ... | with 2 threads, 2 phy cores, 1 receive queue per NIC port. +| | ... | [Ver] Find PDR for 78 Byte frames using binary search start at 10GE\ +| | ... | linerate, step 50kpps, LT=0.5%. +| | ... +| | [Tags] | 78B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH +| | ... +| | [Template] | Discover NDR or PDR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via static proxy behaviour +| | wt=2 | rxq=1 | framesize=${78} | min_rate=${50000} | search_type=PDR + +| tc05-78B-4t4c-ethip6srhip6-ip6base-srv6proxy-stat-ndrdisc +| | [Documentation] +| | ... | [Cfg] DUT runs IPv6 over SRv6 routing with static SRv6 proxy config\ +| | ... | with 4 threads, 4 phy cores, 2 receive queues per NIC port. +| | ... | [Ver] Find NDR for 78 Byte frames using binary search start at 10GE\ +| | ... | linerate, step 50kpps. +| | ... +| | [Tags] | 78B | 4T4C | MTHREAD | NDRDISC +| | ... +| | [Template] | Discover NDR or PDR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via static proxy behaviour +| | wt=4 | rxq=2 | framesize=${78} | min_rate=${50000} | search_type=NDR + +| tc06-78B-4t4c-ethip6srhip6-ip6base-srv6proxy-stat-pdrdisc +| | [Documentation] +| | ... | [Cfg] DUT runs IPv6 over SRv6 routing with static SRv6 proxy config\ +| | ... | with 4 threads, 4 phy cores, 2 receive queues per NIC port. +| | ... | [Ver] Find PDR for 78 Byte frames using binary search start at 10GE\ +| | ... | linerate, step 50kpps, LT=0.5%. +| | ... +| | [Tags] | 78B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH +| | ... +| | [Template] | Discover NDR or PDR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via static proxy behaviour +| | wt=4 | rxq=2 | framesize=${78} | min_rate=${50000} | search_type=PDR + +| tc07-1518B-1t1c-ethip6srhip6-ip6base-srv6proxy-stat-ndrdisc +| | [Documentation] +| | ... | [[Cfg] DUT runs IPv6 over SRv6 routing with static SRv6 proxy config\ +| | ... | with 1 thread, 1 phy core, 1 receive queue per NIC port. +| | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE\ +| | ... | linerate, step 50kpps. +| | ... +| | [Tags] | 1518B | 1T1C | STHREAD | NDRDISC +| | ... +| | [Template] | Discover NDR or PDR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via static proxy behaviour +| | wt=1 | rxq=1 | framesize=${1518} | min_rate=${50000} | search_type=NDR + +| tc08-1518B-1t1c-ethip6srhip6-ip6base-srv6proxy-stat-pdrdisc +| | [Documentation] +| | ... | [Cfg] DUT runs IPv6 over SRv6 routing with static SRv6 proxy config\ +| | ... | with 1 thread, 1 phy core, 1 receive queue per NIC port. +| | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE\ +| | ... | linerate, step 50kpps, LT=0.5%. +| | ... +| | [Tags] | 1518B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH +| | ... +| | [Template] | Discover NDR or PDR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via static proxy behaviour +| | wt=1 | rxq=1 | framesize=${1518} | min_rate=${50000} | search_type=PDR + +| tc09-1518B-2t2c-ethip6srhip6-ip6base-srv6proxy-stat-ndrdisc +| | [Documentation] +| | ... | [Cfg] DUT runs IPv6 over SRv6 routing with static SRv6 proxy config\ +| | ... | with 2 threads, 2 phy cores, 1 receive queue per NIC port. +| | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE\ +| | ... | linerate, step 50kpps. +| | ... +| | [Tags] | 1518B | 2T2C | MTHREAD | NDRDISC +| | ... +| | [Template] | Discover NDR or PDR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via static proxy behaviour +| | wt=2 | rxq=1 | framesize=${1518} | min_rate=${50000} | search_type=NDR + +| tc10-1518B-2t2c-ethip6srhip6-ip6base-srv6proxy-stat-pdrdisc +| | [Documentation] +| | ... | [Cfg] DUT runs IPv6 over SRv6 routing with static SRv6 proxy config\ +| | ... | with 2 threads, 2 phy cores, 1 receive queue per NIC port. +| | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE\ +| | ... | linerate, step 50kpps, LT=0.5%. +| | ... +| | [Tags] | 1518B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH +| | ... +| | [Template] | Discover NDR or PDR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via static proxy behaviour +| | wt=2 | rxq=1 | framesize=${1518} | min_rate=${50000} | search_type=PDR + +| tc11-1518B-4t4c-ethip6srhip6-ip6base-srv6proxy-stat-ndrdisc +| | [Documentation] +| | ... | [Cfg] DUT runs IPv6 over SRv6 routing with static SRv6 proxy config\ +| | ... | with 4 threads, 4 phy cores, 2 receive queues per NIC port. +| | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE\ +| | ... | linerate, step 50kpps. +| | ... +| | [Tags] | 1518B | 4T4C | MTHREAD | NDRDISC +| | ... +| | [Template] | Discover NDR or PDR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via static proxy behaviour +| | wt=4 | rxq=2 | framesize=${1518} | min_rate=${50000} | search_type=NDR + +| tc12-1518B-4t4c-ethip6srhip6-ip6base-srv6proxy-stat-pdrdisc +| | [Documentation] +| | ... | [Cfg] DUT runs IPv6 over SRv6 routing with static SRv6 proxy config\ +| | ... | with 4 threads, 4 phy cores, 2 receive queues per NIC port. +| | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE\ +| | ... | linerate, step 50kpps, LT=0.5%. +| | ... +| | [Tags] | 1518B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH +| | ... +| | [Template] | Discover NDR or PDR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via static proxy behaviour +| | wt=4 | rxq=2 | framesize=${1518} | min_rate=${50000} | search_type=PDR |