10.2. crypto

10.2.1. 10ge2p1x710-ethip4ipsec10000tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr suite

RFC2544: Pkt throughput IPv4 IPsec tunnel mode.

[Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes. [Enc] Packet Encapsulations: Eth-IPv4 on TG-DUTn, Eth-IPv4-IPSec on DUT1-DUT2 [Cfg] DUT configuration: DUT1 and DUT2 are configured with multipleIPsec tunnels between them. DUTs get IPv4 traffic from TG, encrypt itand send to another DUT, where packets are decrypted and sent back to TG [Ver] TG verification: TG finds and reports throughput NDR (Non DropRate) with zero packet loss tolerance and throughput PDR (Partial DropRate) with non-zero packet loss tolerance (LT) expressed in percentageof packets transmitted. NDR and PDR are discovered for differentEthernet L2 frame sizes using MLRsearch library.Test packets are generated by TG on links to DUTs. TG traffic profile contains two L3 flow-groups (flow-group per direction, number of flows per flow-group equals to number of IPSec tunnels) with all packets containing Ethernet header, IPv4 header with IP protocol=61 and static payload. MAC addresses are matching MAC addresses of the TG node interfaces. Incrementing of IP.dst (IPv4 destination address) field is applied to both streams. [Ref] Applicable standard specifications: RFC4303 and RFC2544.

# Copyright (c) 2019 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/shared/default.robot
| Resource | resources/libraries/robot/crypto/ipsec.robot
| ...
| Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDR | TNL_10000
| ... | IP4FWD | IPSEC | IPSECSW | IPSECINT | NIC_Intel-X710 | SCALE
| ... | AES_128_CBC | HMAC_SHA_256 | HMAC | AES
| ...
| Suite Setup | Setup suite single link | performance
| Suite Teardown | Tear down suite | performance
| Test Setup | Setup test
| Test Teardown | Tear down test | performance
| ...
| Test Template | Local Template
| ...
| 
*** Variables ***
| @{plugins_to_enable}= | dpdk_plugin.so | crypto_ia32_plugin.so
| ... | crypto_ipsecmb_plugin.so | crypto_openssl_plugin.so
| ${osi_layer}= | L3
| ${nic_name}= | Intel-X710
| ${overhead}= | ${58}
| ${tg_if1_ip4}= | 192.168.10.2
| ${dut1_if1_ip4}= | 192.168.10.1
| ${dut1_if2_ip4}= | 100.0.0.1
| ${dut2_if1_ip4}= | 200.0.0.2
| ${dut2_if2_ip4}= | 192.168.20.1
| ${tg_if2_ip4}= | 192.168.20.2
| ${raddr_ip4}= | 20.0.0.0
| ${laddr_ip4}= | 10.0.0.0
| ${addr_range}= | ${24}
| ${n_tunnels}= | ${10000}
# Traffic profile:
| ${traffic_profile}= | trex-sl-3n-ethip4-ip4dst${n_tunnels}

10.2.1.1. Local Template

[Cfg] DUT runs IPSec tunneling AES_128_CBC / HMAC_SHA_256 config. Each DUT uses ${phy_cores} physical core(s) for worker threads. [Ver] Measure NDR and PDR values using MLRsearch algorithm.Arguments: - frame_size - Framesize in Bytes in integer or string (IMIX_v4_1). Type: integer, string - phy_cores - Number of physical cores. Type: integer - rxq - Number of RX queues, default value: ${None}. Type: integer


Set Test Variable  \${frame_size}
${encr_alg}=  Crypto Alg AES CBC 128
${auth_alg}=  Integ Alg SHA 256 128
Given Add worker threads and rxqueues to all DUTs  ${phy_cores}  ${rxq}
  And Add PCI devices to all DUTs
  And Set Max Rate And Jumbo And Handle Multi Seg
  And Apply startup configuration on all VPP DUTs
 When Initialize IPSec in 3-node circular topology
  And VPP IPsec Create Tunnel Interfaces  ${nodes}  ${dut1_if2_ip4}  ${dut2_if1_ip4}  ${dut1_if2}  ${dut2_if1}  ${n_tunnels}  ${encr_alg}  ${auth_alg}  ${laddr_ip4}  ${raddr_ip4}  ${addr_range}
 Then Find NDR and PDR intervals using optimized search

10.2.1.2. tc01-64B-1c-ethip4ipsec10000tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=${64}  phy_cores=${1}

10.2.1.3. tc02-64B-2c-ethip4ipsec10000tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=${64}  phy_cores=${2}

10.2.1.4. tc03-64B-4c-ethip4ipsec10000tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=${64}  phy_cores=${4}

10.2.1.5. tc04-1518B-1c-ethip4ipsec10000tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=${1518}  phy_cores=${1}

10.2.1.6. tc05-1518B-2c-ethip4ipsec10000tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=${1518}  phy_cores=${2}

10.2.1.7. tc06-1518B-4c-ethip4ipsec10000tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=${1518}  phy_cores=${4}

10.2.1.8. tc10-IMIX-1c-ethip4ipsec10000tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${1}

10.2.1.9. tc11-IMIX-2c-ethip4ipsec10000tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${2}

10.2.1.10. tc12-IMIX-4c-ethip4ipsec10000tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${4}

10.2.2. 10ge2p1x710-ethip4ipsec10000tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr suite

RFC2544: Pkt throughput IPv4 IPsec tunnel mode.

[Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes. [Enc] Packet Encapsulations: Eth-IPv4 on TG-DUTn, Eth-IPv4-IPSec on DUT1-DUT2 [Cfg] DUT configuration: DUT1 and DUT2 are configured with multipleIPsec tunnels between them. DUTs get IPv4 traffic from TG, encrypt itand send to another DUT, where packets are decrypted and sent back to TG [Ver] TG verification: TG finds and reports throughput NDR (Non DropRate) with zero packet loss tolerance and throughput PDR (Partial DropRate) with non-zero packet loss tolerance (LT) expressed in percentageof packets transmitted. NDR and PDR are discovered for differentEthernet L2 frame sizes using MLRsearch library.Test packets are generated by TG on links to DUTs. TG traffic profile contains two L3 flow-groups (flow-group per direction, number of flows per flow-group equals to number of IPSec tunnels) with all packets containing Ethernet header, IPv4 header with IP protocol=61 and static payload. MAC addresses are matching MAC addresses of the TG node interfaces. Incrementing of IP.dst (IPv4 destination address) field is applied to both streams. [Ref] Applicable standard specifications: RFC4303 and RFC2544.

# Copyright (c) 2019 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/shared/default.robot
| Resource | resources/libraries/robot/crypto/ipsec.robot
| ...
| Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDR | TNL_10000
| ... | IP4FWD | IPSEC | IPSECSW | IPSECINT | NIC_Intel-X710 | SCALE
| ... | AES_128_CBC | HMAC_SHA_512 | HMAC | AES
| ...
| Suite Setup | Setup suite single link | performance
| Suite Teardown | Tear down suite | performance
| Test Setup | Setup test
| Test Teardown | Tear down test | performance
| ...
| Test Template | Local Template
| ...
| 
*** Variables ***
| @{plugins_to_enable}= | dpdk_plugin.so | crypto_ia32_plugin.so
| ... | crypto_ipsecmb_plugin.so | crypto_openssl_plugin.so
| ${osi_layer}= | L3
| ${nic_name}= | Intel-X710
| ${overhead}= | ${58}
| ${tg_if1_ip4}= | 192.168.10.2
| ${dut1_if1_ip4}= | 192.168.10.1
| ${dut1_if2_ip4}= | 100.0.0.1
| ${dut2_if1_ip4}= | 200.0.0.2
| ${dut2_if2_ip4}= | 192.168.20.1
| ${tg_if2_ip4}= | 192.168.20.2
| ${raddr_ip4}= | 20.0.0.0
| ${laddr_ip4}= | 10.0.0.0
| ${addr_range}= | ${24}
| ${n_tunnels}= | ${10000}
# Traffic profile:
| ${traffic_profile}= | trex-sl-3n-ethip4-ip4dst${n_tunnels}

10.2.2.1. Local Template

[Cfg] DUT runs IPSec tunneling AES_128_CBC / HMAC_SHA_512 config. Each DUT uses ${phy_cores} physical core(s) for worker threads. [Ver] Measure NDR and PDR values using MLRsearch algorithm.Arguments: - frame_size - Framesize in Bytes in integer or string (IMIX_v4_1). Type: integer, string - phy_cores - Number of physical cores. Type: integer - rxq - Number of RX queues, default value: ${None}. Type: integer


Set Test Variable  \${frame_size}
${encr_alg}=  Crypto Alg AES CBC 128
${auth_alg}=  Integ Alg SHA 512 256
Given Add worker threads and rxqueues to all DUTs  ${phy_cores}  ${rxq}
  And Add PCI devices to all DUTs
  And Set Max Rate And Jumbo And Handle Multi Seg
  And Apply startup configuration on all VPP DUTs
 When Initialize IPSec in 3-node circular topology
  And VPP IPsec Create Tunnel Interfaces  ${nodes}  ${dut1_if2_ip4}  ${dut2_if1_ip4}  ${dut1_if2}  ${dut2_if1}  ${n_tunnels}  ${encr_alg}  ${auth_alg}  ${laddr_ip4}  ${raddr_ip4}  ${addr_range}
 Then Find NDR and PDR intervals using optimized search

10.2.2.2. tc01-64B-1c-ethip4ipsec10000tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=${64}  phy_cores=${1}

10.2.2.3. tc02-64B-2c-ethip4ipsec10000tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=${64}  phy_cores=${2}

10.2.2.4. tc03-64B-4c-ethip4ipsec10000tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=${64}  phy_cores=${4}

10.2.2.5. tc04-1518B-1c-ethip4ipsec10000tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=${1518}  phy_cores=${1}

10.2.2.6. tc05-1518B-2c-ethip4ipsec10000tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=${1518}  phy_cores=${2}

10.2.2.7. tc06-1518B-4c-ethip4ipsec10000tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=${1518}  phy_cores=${4}

10.2.2.8. tc10-IMIX-1c-ethip4ipsec10000tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${1}

10.2.2.9. tc11-IMIX-2c-ethip4ipsec10000tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${2}

10.2.2.10. tc12-IMIX-4c-ethip4ipsec10000tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${4}

10.2.3. 10ge2p1x710-ethip4ipsec10000tnlsw-ip4base-int-aes128gcm-ndrpdr suite

RFC2544: Pkt throughput IPv4 IPsec tunnel mode.

[Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes. [Enc] Packet Encapsulations: Eth-IPv4 on TG-DUTn, Eth-IPv4-IPSec on DUT1-DUT2 [Cfg] DUT configuration: DUT1 and DUT2 are configured with multipleIPsec tunnels between them. DUTs get IPv4 traffic from TG, encrypt itand send to another DUT, where packets are decrypted and sent back to TG [Ver] TG verification: TG finds and reports throughput NDR (Non DropRate) with zero packet loss tolerance and throughput PDR (Partial DropRate) with non-zero packet loss tolerance (LT) expressed in percentageof packets transmitted. NDR and PDR are discovered for differentEthernet L2 frame sizes using MLRsearch library.Test packets are generated by TG on links to DUTs. TG traffic profile contains two L3 flow-groups (flow-group per direction, number of flows per flow-group equals to number of IPSec tunnels) with all packets containing Ethernet header, IPv4 header with IP protocol=61 and static payload. MAC addresses are matching MAC addresses of the TG node interfaces. Incrementing of IP.dst (IPv4 destination address) field is applied to both streams. [Ref] Applicable standard specifications: RFC4303 and RFC2544.

# Copyright (c) 2019 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/shared/default.robot
| Resource | resources/libraries/robot/crypto/ipsec.robot
| ...
| Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDR | TNL_10000
| ... | IP4FWD | IPSEC | IPSECSW | IPSECINT | NIC_Intel-X710 | SCALE
| ... | AES_128_GCM | AES
| ...
| Suite Setup | Setup suite single link | performance
| Suite Teardown | Tear down suite | performance
| Test Setup | Setup test
| Test Teardown | Tear down test | performance
| ...
| Test Template | Local Template
| ...
| 
*** Variables ***
| @{plugins_to_enable}= | dpdk_plugin.so | crypto_ia32_plugin.so
| ... | crypto_ipsecmb_plugin.so | crypto_openssl_plugin.so
| ${osi_layer}= | L3
| ${nic_name}= | Intel-X710
| ${overhead}= | ${54}
| ${tg_if1_ip4}= | 192.168.10.2
| ${dut1_if1_ip4}= | 192.168.10.1
| ${dut1_if2_ip4}= | 100.0.0.1
| ${dut2_if1_ip4}= | 200.0.0.2
| ${dut2_if2_ip4}= | 192.168.20.1
| ${tg_if2_ip4}= | 192.168.20.2
| ${raddr_ip4}= | 20.0.0.0
| ${laddr_ip4}= | 10.0.0.0
| ${addr_range}= | ${24}
| ${n_tunnels}= | ${10000}
# Traffic profile:
| ${traffic_profile}= | trex-sl-3n-ethip4-ip4dst${n_tunnels}

10.2.3.1. Local Template

[Cfg] DUT runs IPSec tunneling AES_128_GCM config. Each DUT uses ${phy_cores} physical core(s) for worker threads. [Ver] Measure NDR and PDR values using MLRsearch algorithm.Arguments: - frame_size - Framesize in Bytes in integer or string (IMIX_v4_1). Type: integer, string - phy_cores - Number of physical cores. Type: integer - rxq - Number of RX queues, default value: ${None}. Type: integer


Set Test Variable  \${frame_size}
${encr_alg}=  Crypto Alg AES GCM 128
${auth_alg}=  Set Variable  ${NONE}
Given Add worker threads and rxqueues to all DUTs  ${phy_cores}  ${rxq}
  And Add PCI devices to all DUTs
  And Set Max Rate And Jumbo And Handle Multi Seg
  And Apply startup configuration on all VPP DUTs
 When Initialize IPSec in 3-node circular topology
  And VPP IPsec Create Tunnel Interfaces  ${nodes}  ${dut1_if2_ip4}  ${dut2_if1_ip4}  ${dut1_if2}  ${dut2_if1}  ${n_tunnels}  ${encr_alg}  ${auth_alg}  ${laddr_ip4}  ${raddr_ip4}  ${addr_range}
 Then Find NDR and PDR intervals using optimized search

10.2.3.2. tc01-64B-1c-ethip4ipsec10000tnlsw-ip4base-int-aes128gcm-ndrpdr


frame_size=${64}  phy_cores=${1}

10.2.3.3. tc02-64B-2c-ethip4ipsec10000tnlsw-ip4base-int-aes128gcm-ndrpdr


frame_size=${64}  phy_cores=${2}

10.2.3.4. tc03-64B-4c-ethip4ipsec10000tnlsw-ip4base-int-aes128gcm-ndrpdr


frame_size=${64}  phy_cores=${4}

10.2.3.5. tc04-1518B-1c-ethip4ipsec10000tnlsw-ip4base-int-aes128gcm-ndrpdr


frame_size=${1518}  phy_cores=${1}

10.2.3.6. tc05-1518B-2c-ethip4ipsec10000tnlsw-ip4base-int-aes128gcm-ndrpdr


frame_size=${1518}  phy_cores=${2}

10.2.3.7. tc06-1518B-4c-ethip4ipsec10000tnlsw-ip4base-int-aes128gcm-ndrpdr


frame_size=${1518}  phy_cores=${4}

10.2.3.8. tc10-IMIX-1c-ethip4ipsec10000tnlsw-ip4base-int-aes128gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${1}

10.2.3.9. tc11-IMIX-2c-ethip4ipsec10000tnlsw-ip4base-int-aes128gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${2}

10.2.3.10. tc12-IMIX-4c-ethip4ipsec10000tnlsw-ip4base-int-aes128gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${4}

10.2.4. 10ge2p1x710-ethip4ipsec10000tnlsw-ip4base-int-aes256gcm-ndrpdr suite

RFC2544: Pkt throughput IPv4 IPsec tunnel mode.

[Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes. [Enc] Packet Encapsulations: Eth-IPv4 on TG-DUTn, Eth-IPv4-IPSec on DUT1-DUT2 [Cfg] DUT configuration: DUT1 and DUT2 are configured with multipleIPsec tunnels between them. DUTs get IPv4 traffic from TG, encrypt itand send to another DUT, where packets are decrypted and sent back to TG [Ver] TG verification: TG finds and reports throughput NDR (Non DropRate) with zero packet loss tolerance and throughput PDR (Partial DropRate) with non-zero packet loss tolerance (LT) expressed in percentageof packets transmitted. NDR and PDR are discovered for differentEthernet L2 frame sizes using MLRsearch library.Test packets are generated by TG on links to DUTs. TG traffic profile contains two L3 flow-groups (flow-group per direction, number of flows per flow-group equals to number of IPSec tunnels) with all packets containing Ethernet header, IPv4 header with IP protocol=61 and static payload. MAC addresses are matching MAC addresses of the TG node interfaces. Incrementing of IP.dst (IPv4 destination address) field is applied to both streams. [Ref] Applicable standard specifications: RFC4303 and RFC2544.

# Copyright (c) 2019 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/shared/default.robot
| Resource | resources/libraries/robot/crypto/ipsec.robot
| ...
| Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDR | TNL_10000
| ... | IP4FWD | IPSEC | IPSECSW | IPSECINT | NIC_Intel-X710 | SCALE
| ... | AES_256_GCM | AES
| ...
| Suite Setup | Setup suite single link | performance
| Suite Teardown | Tear down suite | performance
| Test Setup | Setup test
| Test Teardown | Tear down test | performance
| ...
| Test Template | Local Template
| ...
| 
*** Variables ***
| @{plugins_to_enable}= | dpdk_plugin.so | crypto_ia32_plugin.so
| ... | crypto_ipsecmb_plugin.so | crypto_openssl_plugin.so
| ${osi_layer}= | L3
| ${nic_name}= | Intel-X710
| ${overhead}= | ${54}
| ${tg_if1_ip4}= | 192.168.10.2
| ${dut1_if1_ip4}= | 192.168.10.1
| ${dut1_if2_ip4}= | 100.0.0.1
| ${dut2_if1_ip4}= | 200.0.0.2
| ${dut2_if2_ip4}= | 192.168.20.1
| ${tg_if2_ip4}= | 192.168.20.2
| ${raddr_ip4}= | 20.0.0.0
| ${laddr_ip4}= | 10.0.0.0
| ${addr_range}= | ${24}
| ${n_tunnels}= | ${10000}
# Traffic profile:
| ${traffic_profile}= | trex-sl-3n-ethip4-ip4dst${n_tunnels}

10.2.4.1. Local Template

[Cfg] DUT runs IPSec tunneling AES_256_GCM config. Each DUT uses ${phy_cores} physical core(s) for worker threads. [Ver] Measure NDR and PDR values using MLRsearch algorithm.Arguments: - frame_size - Framesize in Bytes in integer or string (IMIX_v4_1). Type: integer, string - phy_cores - Number of physical cores. Type: integer - rxq - Number of RX queues, default value: ${None}. Type: integer


Set Test Variable  \${frame_size}
${encr_alg}=  Crypto Alg AES GCM 256
${auth_alg}=  Set Variable  ${NONE}
Given Add worker threads and rxqueues to all DUTs  ${phy_cores}  ${rxq}
  And Add PCI devices to all DUTs
  And Set Max Rate And Jumbo And Handle Multi Seg
  And Apply startup configuration on all VPP DUTs
 When Initialize IPSec in 3-node circular topology
  And VPP IPsec Create Tunnel Interfaces  ${nodes}  ${dut1_if2_ip4}  ${dut2_if1_ip4}  ${dut1_if2}  ${dut2_if1}  ${n_tunnels}  ${encr_alg}  ${auth_alg}  ${laddr_ip4}  ${raddr_ip4}  ${addr_range}
 Then Find NDR and PDR intervals using optimized search

10.2.4.2. tc01-64B-1c-ethip4ipsec10000tnlsw-ip4base-int-aes256gcm-ndrpdr


frame_size=${64}  phy_cores=${1}

10.2.4.3. tc02-64B-2c-ethip4ipsec10000tnlsw-ip4base-int-aes256gcm-ndrpdr


frame_size=${64}  phy_cores=${2}

10.2.4.4. tc03-64B-4c-ethip4ipsec10000tnlsw-ip4base-int-aes256gcm-ndrpdr


frame_size=${64}  phy_cores=${4}

10.2.4.5. tc04-1518B-1c-ethip4ipsec10000tnlsw-ip4base-int-aes256gcm-ndrpdr


frame_size=${1518}  phy_cores=${1}

10.2.4.6. tc05-1518B-2c-ethip4ipsec10000tnlsw-ip4base-int-aes256gcm-ndrpdr


frame_size=${1518}  phy_cores=${2}

10.2.4.7. tc06-1518B-4c-ethip4ipsec10000tnlsw-ip4base-int-aes256gcm-ndrpdr


frame_size=${1518}  phy_cores=${4}

10.2.4.8. tc10-IMIX-1c-ethip4ipsec10000tnlsw-ip4base-int-aes256gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${1}

10.2.4.9. tc11-IMIX-2c-ethip4ipsec10000tnlsw-ip4base-int-aes256gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${2}

10.2.4.10. tc12-IMIX-4c-ethip4ipsec10000tnlsw-ip4base-int-aes256gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${4}

10.2.5. 10ge2p1x710-ethip4ipsec1000tnlhw-ip4base-int-aes128cbc-hmac256sha-ndrpdr suite

RFC2544: Pkt throughput IPv4 IPsec tunnel mode.

[Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes. [Enc] Packet Encapsulations: Eth-IPv4 on TG-DUTn, Eth-IPv4-IPSec on DUT1-DUT2 [Cfg] DUT configuration: DUT1 and DUT2 are configured with multiple IPsec tunnels between them. DUTs get IPv4 traffic from TG, encrypt it and send to another DUT, where packets are decrypted and sent back to TG [Ver] TG verification: TG finds and reports throughput NDR (Non DropRate) with zero packet loss tolerance and throughput PDR (Partial DropRate) with non-zero packet loss tolerance (LT) expressed in percentageof packets transmitted. NDR and PDR are discovered for differentEthernet L2 frame sizes using MLRsearch library.Test packets are generated by TG on links to DUTs. TG traffic profile contains two L3 flow-groups (flow-group per direction, number of flows per flow-group equals to number of IPSec tunnels) with all packets containing Ethernet header, IPv4 header with IP protocol=61 and static payload. MAC addresses are matching MAC addresses of the TG node interfaces. Incrementing of IP.dst (IPv4 destination address) field is applied to both streams. [Ref] Applicable standard specifications: RFC4303 and RFC2544.

# Copyright (c) 2019 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/shared/default.robot
| Resource | resources/libraries/robot/crypto/ipsec.robot
| ...
| Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | SCALE | NDRPDR
| ... | IP4FWD | IPSEC | IPSECHW | IPSECINT | NIC_Intel-X710 | TNL_1000
| ... | AES_128_CBC | HMAC_SHA_256 | HMAC | AES
| ...
| Suite Setup | Setup suite single link | performance | ipsechw
| Suite Teardown | Tear down suite | performance
| Test Setup | Setup test
| Test Teardown | Tear down test | performance
| ...
| Test Template | Local Template
| ...
| 
*** Variables ***
| @{plugins_to_enable}= | dpdk_plugin.so | crypto_ia32_plugin.so
| ... | crypto_ipsecmb_plugin.so | crypto_openssl_plugin.so
| ${osi_layer}= | L3
| ${crypto_type}= | HW_DH895xcc
| ${nic_name}= | Intel-X710
| ${overhead}= | ${58}
| ${tg_if1_ip4}= | 192.168.10.2
| ${dut1_if1_ip4}= | 192.168.10.1
| ${dut1_if2_ip4}= | 100.0.0.1
| ${dut2_if1_ip4}= | 200.0.0.2
| ${dut2_if2_ip4}= | 192.168.20.1
| ${tg_if2_ip4}= | 192.168.20.2
| ${raddr_ip4}= | 20.0.0.0
| ${laddr_ip4}= | 10.0.0.0
| ${addr_range}= | ${24}
| ${n_tunnels}= | ${1000}
# Traffic profile:
| ${traffic_profile}= | trex-sl-3n-ethip4-ip4dst${n_tunnels}

10.2.5.1. Local Template

[Cfg] DUT runs IPSec tunneling AES_128_CBC / HMAC_SHA_256 config. Each DUT uses ${phy_cores} physical core(s) for worker threads. [Ver] Measure NDR and PDR values using MLRsearch algorithm.Arguments: - frame_size - Framesize in Bytes in integer or string (IMIX_v4_1). Type: integer, string - phy_cores - Number of physical cores. Type: integer - rxq - Number of RX queues, default value: ${None}. Type: integer


Set Test Variable  \${frame_size}
${encr_alg}=  Crypto Alg AES CBC 128
${auth_alg}=  Integ Alg SHA 256 128
Given Add worker threads and rxqueues to all DUTs  ${phy_cores}  ${rxq}
  And Add PCI devices to all DUTs
  And Set Max Rate And Jumbo And Handle Multi Seg
  And Add cryptodev to all DUTs  ${phy_cores}
  And Apply startup configuration on all VPP DUTs
 When Initialize IPSec in 3-node circular topology
  And VPP IPsec Create Tunnel Interfaces  ${nodes}  ${dut1_if2_ip4}  ${dut2_if1_ip4}  ${dut1_if2}  ${dut2_if1}  ${n_tunnels}  ${encr_alg}  ${auth_alg}  ${laddr_ip4}  ${raddr_ip4}  ${addr_range}
 Then Find NDR and PDR intervals using optimized search

10.2.5.2. tc01-64B-1c-ethip4ipsec1000tnlhw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=${64}  phy_cores=${1}

10.2.5.3. tc02-64B-2c-ethip4ipsec1000tnlhw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=${64}  phy_cores=${2}

10.2.5.4. tc03-64B-4c-ethip4ipsec1000tnlhw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=${64}  phy_cores=${4}

10.2.5.5. tc04-1518B-1c-ethip4ipsec1000tnlhw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=${1518}  phy_cores=${1}

10.2.5.6. tc05-1518B-2c-ethip4ipsec1000tnlhw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=${1518}  phy_cores=${2}

10.2.5.7. tc06-1518B-4c-ethip4ipsec1000tnlhw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=${1518}  phy_cores=${4}

10.2.5.8. tc10-IMIX-1c-ethip4ipsec1000tnlhw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${1}

10.2.5.9. tc11-IMIX-2c-ethip4ipsec1000tnlhw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${2}

10.2.5.10. tc12-IMIX-4c-ethip4ipsec1000tnlhw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${4}

10.2.6. 10ge2p1x710-ethip4ipsec1000tnlhw-ip4base-int-aes128cbc-hmac512sha-ndrpdr suite

RFC2544: Pkt throughput IPv4 IPsec tunnel mode.

[Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes. [Enc] Packet Encapsulations: Eth-IPv4 on TG-DUTn, Eth-IPv4-IPSec on DUT1-DUT2 [Cfg] DUT configuration: DUT1 and DUT2 are configured with multiple IPsec tunnels between them. DUTs get IPv4 traffic from TG, encrypt it and send to another DUT, where packets are decrypted and sent back to TG [Ver] TG verification: TG finds and reports throughput NDR (Non DropRate) with zero packet loss tolerance and throughput PDR (Partial DropRate) with non-zero packet loss tolerance (LT) expressed in percentageof packets transmitted. NDR and PDR are discovered for differentEthernet L2 frame sizes using MLRsearch library.Test packets are generated by TG on links to DUTs. TG traffic profile contains two L3 flow-groups (flow-group per direction, number of flows per flow-group equals to number of IPSec tunnels) with all packets containing Ethernet header, IPv4 header with IP protocol=61 and static payload. MAC addresses are matching MAC addresses of the TG node interfaces. Incrementing of IP.dst (IPv4 destination address) field is applied to both streams. [Ref] Applicable standard specifications: RFC4303 and RFC2544.

# Copyright (c) 2019 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/shared/default.robot
| Resource | resources/libraries/robot/crypto/ipsec.robot
| ...
| Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | SCALE | NDRPDR
| ... | IP4FWD | IPSEC | IPSECHW | IPSECINT | NIC_Intel-X710 | TNL_1000
| ... | AES_128_CBC | HMAC_SHA_512 | HMAC | AES
| ...
| Suite Setup | Setup suite single link | performance | ipsechw
| Suite Teardown | Tear down suite | performance
| Test Setup | Setup test
| Test Teardown | Tear down test | performance
| ...
| Test Template | Local Template
| ...
| 
*** Variables ***
| @{plugins_to_enable}= | dpdk_plugin.so | crypto_ia32_plugin.so
| ... | crypto_ipsecmb_plugin.so | crypto_openssl_plugin.so
| ${osi_layer}= | L3
| ${crypto_type}= | HW_DH895xcc
| ${nic_name}= | Intel-X710
| ${overhead}= | ${58}
| ${tg_if1_ip4}= | 192.168.10.2
| ${dut1_if1_ip4}= | 192.168.10.1
| ${dut1_if2_ip4}= | 100.0.0.1
| ${dut2_if1_ip4}= | 200.0.0.2
| ${dut2_if2_ip4}= | 192.168.20.1
| ${tg_if2_ip4}= | 192.168.20.2
| ${raddr_ip4}= | 20.0.0.0
| ${laddr_ip4}= | 10.0.0.0
| ${addr_range}= | ${24}
| ${n_tunnels}= | ${1000}
# Traffic profile:
| ${traffic_profile}= | trex-sl-3n-ethip4-ip4dst${n_tunnels}

10.2.6.1. Local Template

[Cfg] DUT runs IPSec tunneling AES_128_CBC / HMAC_SHA_512 config. Each DUT uses ${phy_cores} physical core(s) for worker threads. [Ver] Measure NDR and PDR values using MLRsearch algorithm.Arguments: - frame_size - Framesize in Bytes in integer or string (IMIX_v4_1). Type: integer, string - phy_cores - Number of physical cores. Type: integer - rxq - Number of RX queues, default value: ${None}. Type: integer


Set Test Variable  \${frame_size}
${encr_alg}=  Crypto Alg AES CBC 128
${auth_alg}=  Integ Alg SHA 512 256
Given Add worker threads and rxqueues to all DUTs  ${phy_cores}  ${rxq}
  And Add PCI devices to all DUTs
  And Set Max Rate And Jumbo And Handle Multi Seg
  And Add cryptodev to all DUTs  ${phy_cores}
  And Apply startup configuration on all VPP DUTs
 When Initialize IPSec in 3-node circular topology
  And VPP IPsec Create Tunnel Interfaces  ${nodes}  ${dut1_if2_ip4}  ${dut2_if1_ip4}  ${dut1_if2}  ${dut2_if1}  ${n_tunnels}  ${encr_alg}  ${auth_alg}  ${laddr_ip4}  ${raddr_ip4}  ${addr_range}
 Then Find NDR and PDR intervals using optimized search

10.2.6.2. tc01-64B-1c-ethip4ipsec1000tnlhw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=${64}  phy_cores=${1}

10.2.6.3. tc02-64B-2c-ethip4ipsec1000tnlhw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=${64}  phy_cores=${2}

10.2.6.4. tc03-64B-4c-ethip4ipsec1000tnlhw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=${64}  phy_cores=${4}

10.2.6.5. tc04-1518B-1c-ethip4ipsec1000tnlhw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=${1518}  phy_cores=${1}

10.2.6.6. tc05-1518B-2c-ethip4ipsec1000tnlhw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=${1518}  phy_cores=${2}

10.2.6.7. tc06-1518B-4c-ethip4ipsec1000tnlhw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=${1518}  phy_cores=${4}

10.2.6.8. tc10-IMIX-1c-ethip4ipsec1000tnlhw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${1}

10.2.6.9. tc11-IMIX-2c-ethip4ipsec1000tnlhw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${2}

10.2.6.10. tc12-IMIX-4c-ethip4ipsec1000tnlhw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${4}

10.2.7. 10ge2p1x710-ethip4ipsec1000tnlhw-ip4base-int-aes128gcm-ndrpdr suite

RFC2544: Pkt throughput IPv4 IPsec tunnel mode.

[Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes. [Enc] Packet Encapsulations: Eth-IPv4 on TG-DUTn, Eth-IPv4-IPSec on DUT1-DUT2 [Cfg] DUT configuration: DUT1 and DUT2 are configured with multiple IPsec tunnels between them. DUTs get IPv4 traffic from TG, encrypt it and send to another DUT, where packets are decrypted and sent back to TG [Ver] TG verification: TG finds and reports throughput NDR (Non DropRate) with zero packet loss tolerance and throughput PDR (Partial DropRate) with non-zero packet loss tolerance (LT) expressed in percentageof packets transmitted. NDR and PDR are discovered for differentEthernet L2 frame sizes using MLRsearch library.Test packets are generated by TG on links to DUTs. TG traffic profile contains two L3 flow-groups (flow-group per direction, number of flows per flow-group equals to number of IPSec tunnels) with all packets containing Ethernet header, IPv4 header with IP protocol=61 and static payload. MAC addresses are matching MAC addresses of the TG node interfaces. Incrementing of IP.dst (IPv4 destination address) field is applied to both streams. [Ref] Applicable standard specifications: RFC4303 and RFC2544.

# Copyright (c) 2019 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/shared/default.robot
| Resource | resources/libraries/robot/crypto/ipsec.robot
| ...
| Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | SCALE | NDRPDR
| ... | IP4FWD | IPSEC | IPSECHW | IPSECINT | NIC_Intel-X710 | TNL_1000
| ... | AES_128_GCM | AES
| ...
| Suite Setup | Setup suite single link | performance | ipsechw
| Suite Teardown | Tear down suite | performance
| Test Setup | Setup test
| Test Teardown | Tear down test | performance
| ...
| Test Template | Local Template
| ...
| 
*** Variables ***
| @{plugins_to_enable}= | dpdk_plugin.so | crypto_ia32_plugin.so
| ... | crypto_ipsecmb_plugin.so | crypto_openssl_plugin.so
| ${osi_layer}= | L3
| ${crypto_type}= | HW_DH895xcc
| ${nic_name}= | Intel-X710
| ${overhead}= | ${54}
| ${tg_if1_ip4}= | 192.168.10.2
| ${dut1_if1_ip4}= | 192.168.10.1
| ${dut1_if2_ip4}= | 100.0.0.1
| ${dut2_if1_ip4}= | 200.0.0.2
| ${dut2_if2_ip4}= | 192.168.20.1
| ${tg_if2_ip4}= | 192.168.20.2
| ${raddr_ip4}= | 20.0.0.0
| ${laddr_ip4}= | 10.0.0.0
| ${addr_range}= | ${24}
| ${n_tunnels}= | ${1000}
# Traffic profile:
| ${traffic_profile}= | trex-sl-3n-ethip4-ip4dst${n_tunnels}

10.2.7.1. Local Template

[Cfg] DUT runs IPSec tunneling AES_128_GCM config. Each DUT uses ${phy_cores} physical core(s) for worker threads. [Ver] Measure NDR and PDR values using MLRsearch algorithm.Arguments: - frame_size - Framesize in Bytes in integer or string (IMIX_v4_1). Type: integer, string - phy_cores - Number of physical cores. Type: integer - rxq - Number of RX queues, default value: ${None}. Type: integer


Set Test Variable  \${frame_size}
${encr_alg}=  Crypto Alg AES GCM 128
${auth_alg}=  Set Variable  ${NONE}
${ipsec_proto}=  IPsec Proto ESP
Given Add worker threads and rxqueues to all DUTs  ${phy_cores}  ${rxq}
  And Add PCI devices to all DUTs
  And Set Max Rate And Jumbo And Handle Multi Seg
  And Add cryptodev to all DUTs  ${phy_cores}
  And Apply startup configuration on all VPP DUTs
  And VPP IPsec Select Backend  ${dut1}  ${ipsec_proto}  index=${1}
  And VPP IPsec Select Backend  ${dut2}  ${ipsec_proto}  index=${1}
 When Initialize IPSec in 3-node circular topology
  And VPP IPsec Create Tunnel Interfaces  ${nodes}  ${dut1_if2_ip4}  ${dut2_if1_ip4}  ${dut1_if2}  ${dut2_if1}  ${n_tunnels}  ${encr_alg}  ${auth_alg}  ${laddr_ip4}  ${raddr_ip4}  ${addr_range}
 Then Find NDR and PDR intervals using optimized search

10.2.7.2. tc01-64B-1c-ethip4ipsec1000tnlhw-ip4base-int-aes128gcm-ndrpdr


frame_size=${64}  phy_cores=${1}

10.2.7.3. tc02-64B-2c-ethip4ipsec1000tnlhw-ip4base-int-aes128gcm-ndrpdr


frame_size=${64}  phy_cores=${2}

10.2.7.4. tc03-64B-4c-ethip4ipsec1000tnlhw-ip4base-int-aes128gcm-ndrpdr


frame_size=${64}  phy_cores=${4}

10.2.7.5. tc04-1518B-1c-ethip4ipsec1000tnlhw-ip4base-int-aes128gcm-ndrpdr


frame_size=${1518}  phy_cores=${1}

10.2.7.6. tc05-1518B-2c-ethip4ipsec1000tnlhw-ip4base-int-aes128gcm-ndrpdr


frame_size=${1518}  phy_cores=${2}

10.2.7.7. tc06-1518B-4c-ethip4ipsec1000tnlhw-ip4base-int-aes128gcm-ndrpdr


frame_size=${1518}  phy_cores=${4}

10.2.7.8. tc10-IMIX-1c-ethip4ipsec1000tnlhw-ip4base-int-aes128gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${1}

10.2.7.9. tc11-IMIX-2c-ethip4ipsec1000tnlhw-ip4base-int-aes128gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${2}

10.2.7.10. tc12-IMIX-4c-ethip4ipsec1000tnlhw-ip4base-int-aes128gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${4}

10.2.8. 10ge2p1x710-ethip4ipsec1000tnlhw-ip4base-int-aes256gcm-ndrpdr suite

RFC2544: Pkt throughput IPv4 IPsec tunnel mode.

[Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes. [Enc] Packet Encapsulations: Eth-IPv4 on TG-DUTn, Eth-IPv4-IPSec on DUT1-DUT2 [Cfg] DUT configuration: DUT1 and DUT2 are configured with multiple IPsec tunnels between them. DUTs get IPv4 traffic from TG, encrypt it and send to another DUT, where packets are decrypted and sent back to TG [Ver] TG verification: TG finds and reports throughput NDR (Non DropRate) with zero packet loss tolerance and throughput PDR (Partial DropRate) with non-zero packet loss tolerance (LT) expressed in percentageof packets transmitted. NDR and PDR are discovered for differentEthernet L2 frame sizes using MLRsearch library.Test packets are generated by TG on links to DUTs. TG traffic profile contains two L3 flow-groups (flow-group per direction, number of flows per flow-group equals to number of IPSec tunnels) with all packets containing Ethernet header, IPv4 header with IP protocol=61 and static payload. MAC addresses are matching MAC addresses of the TG node interfaces. Incrementing of IP.dst (IPv4 destination address) field is applied to both streams. [Ref] Applicable standard specifications: RFC4303 and RFC2544.

# Copyright (c) 2019 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/shared/default.robot
| Resource | resources/libraries/robot/crypto/ipsec.robot
| ...
| Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | SCALE | NDRPDR
| ... | IP4FWD | IPSEC | IPSECHW | IPSECINT | NIC_Intel-X710 | TNL_1000
| ... | AES_256_GCM | AES
| ...
| Suite Setup | Setup suite single link | performance | ipsechw
| Suite Teardown | Tear down suite | performance
| Test Setup | Setup test
| Test Teardown | Tear down test | performance
| ...
| Test Template | Local Template
| ...
| 
*** Variables ***
| @{plugins_to_enable}= | dpdk_plugin.so | crypto_ia32_plugin.so
| ... | crypto_ipsecmb_plugin.so | crypto_openssl_plugin.so
| ${osi_layer}= | L3
| ${crypto_type}= | HW_DH895xcc
| ${nic_name}= | Intel-X710
| ${overhead}= | ${54}
| ${tg_if1_ip4}= | 192.168.10.2
| ${dut1_if1_ip4}= | 192.168.10.1
| ${dut1_if2_ip4}= | 100.0.0.1
| ${dut2_if1_ip4}= | 200.0.0.2
| ${dut2_if2_ip4}= | 192.168.20.1
| ${tg_if2_ip4}= | 192.168.20.2
| ${raddr_ip4}= | 20.0.0.0
| ${laddr_ip4}= | 10.0.0.0
| ${addr_range}= | ${24}
| ${n_tunnels}= | ${1000}
# Traffic profile:
| ${traffic_profile}= | trex-sl-3n-ethip4-ip4dst${n_tunnels}

10.2.8.1. Local Template

[Cfg] DUT runs IPSec tunneling AES_256_GCM config. Each DUT uses ${phy_cores} physical core(s) for worker threads. [Ver] Measure NDR and PDR values using MLRsearch algorithm.Arguments: - frame_size - Framesize in Bytes in integer or string (IMIX_v4_1). Type: integer, string - phy_cores - Number of physical cores. Type: integer - rxq - Number of RX queues, default value: ${None}. Type: integer


Set Test Variable  \${frame_size}
${encr_alg}=  Crypto Alg AES GCM 256
${auth_alg}=  Set Variable  ${NONE}
${ipsec_proto}=  IPsec Proto ESP
Given Add worker threads and rxqueues to all DUTs  ${phy_cores}  ${rxq}
  And Add PCI devices to all DUTs
  And Set Max Rate And Jumbo And Handle Multi Seg
  And Add cryptodev to all DUTs  ${phy_cores}
  And Apply startup configuration on all VPP DUTs
  And VPP IPsec Select Backend  ${dut1}  ${ipsec_proto}  index=${1}
  And VPP IPsec Select Backend  ${dut2}  ${ipsec_proto}  index=${1}
 When Initialize IPSec in 3-node circular topology
  And VPP IPsec Create Tunnel Interfaces  ${nodes}  ${dut1_if2_ip4}  ${dut2_if1_ip4}  ${dut1_if2}  ${dut2_if1}  ${n_tunnels}  ${encr_alg}  ${auth_alg}  ${laddr_ip4}  ${raddr_ip4}  ${addr_range}
 Then Find NDR and PDR intervals using optimized search

10.2.8.2. tc01-64B-1c-ethip4ipsec1000tnlhw-ip4base-int-aes256gcm-ndrpdr


frame_size=${64}  phy_cores=${1}

10.2.8.3. tc02-64B-2c-ethip4ipsec1000tnlhw-ip4base-int-aes256gcm-ndrpdr


frame_size=${64}  phy_cores=${2}

10.2.8.4. tc03-64B-4c-ethip4ipsec1000tnlhw-ip4base-int-aes256gcm-ndrpdr


frame_size=${64}  phy_cores=${4}

10.2.8.5. tc04-1518B-1c-ethip4ipsec1000tnlhw-ip4base-int-aes256gcm-ndrpdr


frame_size=${1518}  phy_cores=${1}

10.2.8.6. tc05-1518B-2c-ethip4ipsec1000tnlhw-ip4base-int-aes256gcm-ndrpdr


frame_size=${1518}  phy_cores=${2}

10.2.8.7. tc06-1518B-4c-ethip4ipsec1000tnlhw-ip4base-int-aes256gcm-ndrpdr


frame_size=${1518}  phy_cores=${4}

10.2.8.8. tc10-IMIX-1c-ethip4ipsec1000tnlhw-ip4base-int-aes256gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${1}

10.2.8.9. tc11-IMIX-2c-ethip4ipsec1000tnlhw-ip4base-int-aes256gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${2}

10.2.8.10. tc12-IMIX-4c-ethip4ipsec1000tnlhw-ip4base-int-aes256gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${4}

10.2.9. 10ge2p1x710-ethip4ipsec1000tnlhw-ip4base-policy-aes128cbc-hmac256sha-ndrpdr suite

IPv4 IPsec tunnel mode performance test suite.

[Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes. [Enc] Packet Encapsulations: Eth-IPv4 on TG-DUTn, Eth-IPv4-IPSec on DUT1-DUT2 [Cfg] DUT configuration: DUT1 and DUT2 are configured with multiple IPsec tunnels between them. DUTs get IPv4 traffic from TG, encrypt it and send to another DUT, where packets are decrypted and sent back to TG [Ver] TG verification: TG finds and reports throughput NDR (Non DropRate) with zero packet loss tolerance and throughput PDR (Partial DropRate) with non-zero packet loss tolerance (LT) expressed in percentageof packets transmitted. NDR and PDR are discovered for differentEthernet L2 frame sizes using MLRsearch library.Test packets are generated by TG on links to DUTs. TG traffic profile contains two L3 flow-groups (flow-group per direction, number of flows per flow-group equals to number of IPSec tunnels) with all packets containing Ethernet header, IPv4 header with IP protocol=61 and static payload. MAC addresses are matching MAC addresses of the TG node interfaces. Incrementing of IP.dst (IPv4 destination address) field is applied to both streams. [Ref] Applicable standard specifications: RFC4303 and RFC2544.

# Copyright (c) 2019 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/shared/default.robot
| Resource | resources/libraries/robot/crypto/ipsec.robot
| ...
| Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | SCALE | NDRPDR
| ... | IP4FWD | IPSEC | IPSECHW | IPSECTUN | NIC_Intel-X710 | TNL_1000
| ... | AES_128_CBC | HMAC_SHA_256 | HMAC | AES
| ...
| Suite Setup | Setup suite single link | performance | ipsechw
| Suite Teardown | Tear down suite | performance
| Test Setup | Setup test
| Test Teardown | Tear down test | performance
| ...
| Test Template | Local Template
| ...
| 
*** Variables ***
| @{plugins_to_enable}= | dpdk_plugin.so | crypto_ia32_plugin.so
| ... | crypto_ipsecmb_plugin.so | crypto_openssl_plugin.so
| ${osi_layer}= | L3
| ${crypto_type}= | HW_DH895xcc
| ${nic_name}= | Intel-X710
| ${overhead}= | ${58}
| ${tg_if1_ip4}= | 192.168.10.2
| ${dut1_if1_ip4}= | 192.168.10.1
| ${dut1_if2_ip4}= | 100.0.0.1
| ${dut2_if1_ip4}= | 100.0.0.2
| ${dut2_if2_ip4}= | 192.168.20.1
| ${tg_if2_ip4}= | 192.168.20.2
| ${raddr_ip4}= | 20.0.0.0
| ${laddr_ip4}= | 10.0.0.0
| ${addr_range}= | ${24}
| ${n_tunnels}= | ${1000}
# Traffic profile:
| ${traffic_profile}= | trex-sl-3n-ethip4-ip4dst${n_tunnels}

10.2.9.1. Local Template

[Cfg] DUTs run 1000 IPsec tunnels AES_128_CBC / HMAC_SHA_256 config in each direction.Each DUT uses ${phy_cores} physical core(s) for worker threads. [Ver] Measure NDR and PDR values using MLRsearch algorithm.Arguments: - frame_size - Framesize in Bytes in integer or string (IMIX_v4_1). Type: integer, string - phy_cores - Number of physical cores. Type: integer - rxq - Number of RX queues, default value: ${None}. Type: integer


Set Test Variable  \${frame_size}
${encr_alg}=  Crypto Alg AES CBC 128
${auth_alg}=  Integ Alg SHA 256 128
Given Add worker threads and rxqueues to all DUTs  ${phy_cores}  ${rxq}
  And Add PCI devices to all DUTs
  And Set Max Rate And Jumbo And Handle Multi Seg
  And Add cryptodev to all DUTs  ${phy_cores}
  And Apply startup configuration on all VPP DUTs
 When Initialize IPSec in 3-node circular topology
  And VPP IPsec Add Multiple Tunnels  ${nodes}  ${dut1_if2}  ${dut2_if1}  ${n_tunnels}  ${encr_alg}  ${auth_alg}  ${dut1_if2_ip4}  ${dut2_if1_ip4}  ${laddr_ip4}  ${raddr_ip4}  ${addr_range}
 Then Find NDR and PDR intervals using optimized search

10.2.9.2. tc01-64B-1c-ethip4ipsec1000tnlhw-ip4base-policy-aes128cbc-hmac256sha-ndrpdr


frame_size=${64}  phy_cores=${1}

10.2.9.3. tc02-64B-2c-ethip4ipsec1000tnlhw-ip4base-policy-aes128cbc-hmac256sha-ndrpdr


frame_size=${64}  phy_cores=${2}

10.2.9.4. tc03-64B-4c-ethip4ipsec1000tnlhw-ip4base-policy-aes128cbc-hmac256sha-ndrpdr


frame_size=${64}  phy_cores=${4}

10.2.9.5. tc04-1518B-1c-ethip4ipsec1000tnlhw-ip4base-policy-aes128cbc-hmac256sha-ndrpdr


frame_size=${1518}  phy_cores=${1}

10.2.9.6. tc05-1518B-2c-ethip4ipsec1000tnlhw-ip4base-policy-aes128cbc-hmac256sha-ndrpdr


frame_size=${1518}  phy_cores=${2}

10.2.9.7. tc06-1518B-4c-ethip4ipsec1000tnlhw-ip4base-policy-aes128cbc-hmac256sha-ndrpdr


frame_size=${1518}  phy_cores=${4}

10.2.9.8. tc10-IMIX-1c-ethip4ipsec1000tnlhw-ip4base-policy-aes128cbc-hmac256sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${1}

10.2.9.9. tc11-IMIX-2c-ethip4ipsec1000tnlhw-ip4base-policy-aes128cbc-hmac256sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${2}

10.2.9.10. tc12-IMIX-4c-ethip4ipsec1000tnlhw-ip4base-policy-aes128cbc-hmac256sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${4}

10.2.10. 10ge2p1x710-ethip4ipsec1000tnlhw-ip4base-policy-aes128cbc-hmac512sha-ndrpdr suite

IPv4 IPsec tunnel mode performance test suite.

[Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes. [Enc] Packet Encapsulations: Eth-IPv4 on TG-DUTn, Eth-IPv4-IPSec on DUT1-DUT2 [Cfg] DUT configuration: DUT1 and DUT2 are configured with multiple IPsec tunnels between them. DUTs get IPv4 traffic from TG, encrypt it and send to another DUT, where packets are decrypted and sent back to TG [Ver] TG verification: TG finds and reports throughput NDR (Non DropRate) with zero packet loss tolerance and throughput PDR (Partial DropRate) with non-zero packet loss tolerance (LT) expressed in percentageof packets transmitted. NDR and PDR are discovered for differentEthernet L2 frame sizes using MLRsearch library.Test packets are generated by TG on links to DUTs. TG traffic profile contains two L3 flow-groups (flow-group per direction, number of flows per flow-group equals to number of IPSec tunnels) with all packets containing Ethernet header, IPv4 header with IP protocol=61 and static payload. MAC addresses are matching MAC addresses of the TG node interfaces. Incrementing of IP.dst (IPv4 destination address) field is applied to both streams. [Ref] Applicable standard specifications: RFC4303 and RFC2544.

# Copyright (c) 2019 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/shared/default.robot
| Resource | resources/libraries/robot/crypto/ipsec.robot
| ...
| Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | SCALE | NDRPDR
| ... | IP4FWD | IPSEC | IPSECHW | IPSECTUN | NIC_Intel-X710 | TNL_1000
| ... | AES_128_CBC | HMAC_SHA_512 | HMAC | AES
| ...
| Suite Setup | Setup suite single link | performance | ipsechw
| Suite Teardown | Tear down suite | performance
| Test Setup | Setup test
| Test Teardown | Tear down test | performance
| ...
| Test Template | Local Template
| ...
| 
*** Variables ***
| @{plugins_to_enable}= | dpdk_plugin.so | crypto_ia32_plugin.so
| ... | crypto_ipsecmb_plugin.so | crypto_openssl_plugin.so
| ${osi_layer}= | L3
| ${crypto_type}= | HW_DH895xcc
| ${nic_name}= | Intel-X710
| ${overhead}= | ${58}
| ${tg_if1_ip4}= | 192.168.10.2
| ${dut1_if1_ip4}= | 192.168.10.1
| ${dut1_if2_ip4}= | 100.0.0.1
| ${dut2_if1_ip4}= | 100.0.0.2
| ${dut2_if2_ip4}= | 192.168.20.1
| ${tg_if2_ip4}= | 192.168.20.2
| ${raddr_ip4}= | 20.0.0.0
| ${laddr_ip4}= | 10.0.0.0
| ${addr_range}= | ${24}
| ${n_tunnels}= | ${1000}
# Traffic profile:
| ${traffic_profile}= | trex-sl-3n-ethip4-ip4dst${n_tunnels}

10.2.10.1. Local Template

[Cfg] DUTs run 1000 IPsec tunnels AES_128_CBC / HMAC_SHA_512 config in each direction.Each DUT uses ${phy_cores} physical core(s) for worker threads. [Ver] Measure NDR and PDR values using MLRsearch algorithm.Arguments: - frame_size - Framesize in Bytes in integer or string (IMIX_v4_1). Type: integer, string - phy_cores - Number of physical cores. Type: integer - rxq - Number of RX queues, default value: ${None}. Type: integer


Set Test Variable  \${frame_size}
${encr_alg}=  Crypto Alg AES CBC 128
${auth_alg}=  Integ Alg SHA 512 256
Given Add worker threads and rxqueues to all DUTs  ${phy_cores}  ${rxq}
  And Add PCI devices to all DUTs
  And Set Max Rate And Jumbo And Handle Multi Seg
  And Add cryptodev to all DUTs  ${phy_cores}
  And Apply startup configuration on all VPP DUTs
 When Initialize IPSec in 3-node circular topology
  And VPP IPsec Add Multiple Tunnels  ${nodes}  ${dut1_if2}  ${dut2_if1}  ${n_tunnels}  ${encr_alg}  ${auth_alg}  ${dut1_if2_ip4}  ${dut2_if1_ip4}  ${laddr_ip4}  ${raddr_ip4}  ${addr_range}
 Then Find NDR and PDR intervals using optimized search

10.2.10.2. tc01-64B-1c-ethip4ipsec1000tnlhw-ip4base-policy-aes128cbc-hmac512sha-ndrpdr


frame_size=${64}  phy_cores=${1}

10.2.10.3. tc02-64B-2c-ethip4ipsec1000tnlhw-ip4base-policy-aes128cbc-hmac512sha-ndrpdr


frame_size=${64}  phy_cores=${2}

10.2.10.4. tc03-64B-4c-ethip4ipsec1000tnlhw-ip4base-policy-aes128cbc-hmac512sha-ndrpdr


frame_size=${64}  phy_cores=${4}

10.2.10.5. tc04-1518B-1c-ethip4ipsec1000tnlhw-ip4base-policy-aes128cbc-hmac512sha-ndrpdr


frame_size=${1518}  phy_cores=${1}

10.2.10.6. tc05-1518B-2c-ethip4ipsec1000tnlhw-ip4base-policy-aes128cbc-hmac512sha-ndrpdr


frame_size=${1518}  phy_cores=${2}

10.2.10.7. tc06-1518B-4c-ethip4ipsec1000tnlhw-ip4base-policy-aes128cbc-hmac512sha-ndrpdr


frame_size=${1518}  phy_cores=${4}

10.2.10.8. tc10-IMIX-1c-ethip4ipsec1000tnlhw-ip4base-policy-aes128cbc-hmac512sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${1}

10.2.10.9. tc11-IMIX-2c-ethip4ipsec1000tnlhw-ip4base-policy-aes128cbc-hmac512sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${2}

10.2.10.10. tc12-IMIX-4c-ethip4ipsec1000tnlhw-ip4base-policy-aes128cbc-hmac512sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${4}

10.2.11. 10ge2p1x710-ethip4ipsec1000tnlhw-ip4base-policy-aes128gcm-ndrpdr suite

IPv4 IPsec tunnel mode performance test suite.

[Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes. [Enc] Packet Encapsulations: Eth-IPv4 on TG-DUTn, Eth-IPv4-IPSec on DUT1-DUT2 [Cfg] DUT configuration: DUT1 and DUT2 are configured with multiple IPsec tunnels between them. DUTs get IPv4 traffic from TG, encrypt it and send to another DUT, where packets are decrypted and sent back to TG [Ver] TG verification: TG finds and reports throughput NDR (Non DropRate) with zero packet loss tolerance and throughput PDR (Partial DropRate) with non-zero packet loss tolerance (LT) expressed in percentageof packets transmitted. NDR and PDR are discovered for differentEthernet L2 frame sizes using MLRsearch library.Test packets are generated by TG on links to DUTs. TG traffic profile contains two L3 flow-groups (flow-group per direction, number of flows per flow-group equals to number of IPSec tunnels) with all packets containing Ethernet header, IPv4 header with IP protocol=61 and static payload. MAC addresses are matching MAC addresses of the TG node interfaces. Incrementing of IP.dst (IPv4 destination address) field is applied to both streams. [Ref] Applicable standard specifications: RFC4303 and RFC2544.

# Copyright (c) 2019 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/shared/default.robot
| Resource | resources/libraries/robot/crypto/ipsec.robot
| ...
| Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | SCALE | NDRPDR
| ... | IP4FWD | IPSEC | IPSECHW | IPSECTUN | NIC_Intel-X710 | TNL_1000
| ... | AES_128_GCM | AES
| ...
| Suite Setup | Setup suite single link | performance | ipsechw
| Suite Teardown | Tear down suite | performance
| Test Setup | Setup test
| Test Teardown | Tear down test | performance
| ...
| Test Template | Local Template
| ...
| 
*** Variables ***
| @{plugins_to_enable}= | dpdk_plugin.so | crypto_ia32_plugin.so
| ... | crypto_ipsecmb_plugin.so | crypto_openssl_plugin.so
| ${osi_layer}= | L3
| ${crypto_type}= | HW_DH895xcc
| ${nic_name}= | Intel-X710
| ${overhead}= | ${54}
| ${tg_if1_ip4}= | 192.168.10.2
| ${dut1_if1_ip4}= | 192.168.10.1
| ${dut1_if2_ip4}= | 100.0.0.1
| ${dut2_if1_ip4}= | 100.0.0.2
| ${dut2_if2_ip4}= | 192.168.20.1
| ${tg_if2_ip4}= | 192.168.20.2
| ${raddr_ip4}= | 20.0.0.0
| ${laddr_ip4}= | 10.0.0.0
| ${addr_range}= | ${24}
| ${n_tunnels}= | ${1000}
# Traffic profile:
| ${traffic_profile}= | trex-sl-3n-ethip4-ip4dst${n_tunnels}

10.2.11.1. Local Template

[Cfg] DUTs run 1000 IPsec tunnels AES_128_GCM in each direction. Each DUT uses ${phy_cores} physical core(s) for worker threads. [Ver] Measure NDR and PDR values using MLRsearch algorithm.Arguments: - frame_size - Framesize in Bytes in integer or string (IMIX_v4_1). Type: integer, string - phy_cores - Number of physical cores. Type: integer - rxq - Number of RX queues, default value: ${None}. Type: integer


Set Test Variable  \${frame_size}
${encr_alg}=  Crypto Alg AES GCM 128
${auth_alg}=  Set Variable  ${NONE}
${ipsec_proto}=  IPsec Proto ESP
Given Add worker threads and rxqueues to all DUTs  ${phy_cores}  ${rxq}
  And Add PCI devices to all DUTs
  And Set Max Rate And Jumbo And Handle Multi Seg
  And Add cryptodev to all DUTs  ${phy_cores}
  And Apply startup configuration on all VPP DUTs
  And VPP IPsec Select Backend  ${dut1}  ${ipsec_proto}  index=${1}
  And VPP IPsec Select Backend  ${dut2}  ${ipsec_proto}  index=${1}
 When Initialize IPSec in 3-node circular topology
  And VPP IPsec Add Multiple Tunnels  ${nodes}  ${dut1_if2}  ${dut2_if1}  ${n_tunnels}  ${encr_alg}  ${auth_alg}  ${dut1_if2_ip4}  ${dut2_if1_ip4}  ${laddr_ip4}  ${raddr_ip4}  ${addr_range}
 Then Find NDR and PDR intervals using optimized search

10.2.11.2. tc01-64B-1c-ethip4ipsec1000tnlhw-ip4base-policy-aes128gcm-ndrpdr


frame_size=${64}  phy_cores=${1}

10.2.11.3. tc02-64B-2c-ethip4ipsec1000tnlhw-ip4base-policy-aes128gcm-ndrpdr


frame_size=${64}  phy_cores=${2}

10.2.11.4. tc03-64B-4c-ethip4ipsec1000tnlhw-ip4base-policy-aes128gcm-ndrpdr


frame_size=${64}  phy_cores=${4}

10.2.11.5. tc04-1518B-1c-ethip4ipsec1000tnlhw-ip4base-policy-aes128gcm-ndrpdr


frame_size=${1518}  phy_cores=${1}

10.2.11.6. tc05-1518B-2c-ethip4ipsec1000tnlhw-ip4base-policy-aes128gcm-ndrpdr


frame_size=${1518}  phy_cores=${2}

10.2.11.7. tc06-1518B-4c-ethip4ipsec1000tnlhw-ip4base-policy-aes128gcm-ndrpdr


frame_size=${1518}  phy_cores=${4}

10.2.11.8. tc10-IMIX-1c-ethip4ipsec1000tnlhw-ip4base-policy-aes128gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${1}

10.2.11.9. tc11-IMIX-2c-ethip4ipsec1000tnlhw-ip4base-policy-aes128gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${2}

10.2.11.10. tc12-IMIX-4c-ethip4ipsec1000tnlhw-ip4base-policy-aes128gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${4}

10.2.12. 10ge2p1x710-ethip4ipsec1000tnlhw-ip4base-policy-aes256gcm-ndrpdr suite

IPv4 IPsec tunnel mode performance test suite.

[Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes. [Enc] Packet Encapsulations: Eth-IPv4 on TG-DUTn, Eth-IPv4-IPSec on DUT1-DUT2 [Cfg] DUT configuration: DUT1 and DUT2 are configured with multiple IPsec tunnels between them. DUTs get IPv4 traffic from TG, encrypt it and send to another DUT, where packets are decrypted and sent back to TG [Ver] TG verification: TG finds and reports throughput NDR (Non DropRate) with zero packet loss tolerance and throughput PDR (Partial DropRate) with non-zero packet loss tolerance (LT) expressed in percentageof packets transmitted. NDR and PDR are discovered for differentEthernet L2 frame sizes using MLRsearch library.Test packets are generated by TG on links to DUTs. TG traffic profile contains two L3 flow-groups (flow-group per direction, number of flows per flow-group equals to number of IPSec tunnels) with all packets containing Ethernet header, IPv4 header with IP protocol=61 and static payload. MAC addresses are matching MAC addresses of the TG node interfaces. Incrementing of IP.dst (IPv4 destination address) field is applied to both streams. [Ref] Applicable standard specifications: RFC4303 and RFC2544.

# Copyright (c) 2019 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/shared/default.robot
| Resource | resources/libraries/robot/crypto/ipsec.robot
| ...
| Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | SCALE | NDRPDR
| ... | IP4FWD | IPSEC | IPSECHW | IPSECTUN | NIC_Intel-X710 | TNL_1000
| ... | AES_256_GCM | AES
| ...
| Suite Setup | Setup suite single link | performance | ipsechw
| Suite Teardown | Tear down suite | performance
| Test Setup | Setup test
| Test Teardown | Tear down test | performance
| ...
| Test Template | Local Template
| ...
| 
*** Variables ***
| @{plugins_to_enable}= | dpdk_plugin.so | crypto_ia32_plugin.so
| ... | crypto_ipsecmb_plugin.so | crypto_openssl_plugin.so
| ${osi_layer}= | L3
| ${crypto_type}= | HW_DH895xcc
| ${nic_name}= | Intel-X710
| ${overhead}= | ${54}
| ${tg_if1_ip4}= | 192.168.10.2
| ${dut1_if1_ip4}= | 192.168.10.1
| ${dut1_if2_ip4}= | 100.0.0.1
| ${dut2_if1_ip4}= | 100.0.0.2
| ${dut2_if2_ip4}= | 192.168.20.1
| ${tg_if2_ip4}= | 192.168.20.2
| ${raddr_ip4}= | 20.0.0.0
| ${laddr_ip4}= | 10.0.0.0
| ${addr_range}= | ${24}
| ${n_tunnels}= | ${1000}
# Traffic profile:
| ${traffic_profile}= | trex-sl-3n-ethip4-ip4dst${n_tunnels}

10.2.12.1. Local Template

[Cfg] DUTs run 1000 IPsec tunnels AES_256_GCM in each direction. Each DUT uses ${phy_cores} physical core(s) for worker threads. [Ver] Measure NDR and PDR values using MLRsearch algorithm.Arguments: - frame_size - Framesize in Bytes in integer or string (IMIX_v4_1). Type: integer, string - phy_cores - Number of physical cores. Type: integer - rxq - Number of RX queues, default value: ${None}. Type: integer


Set Test Variable  \${frame_size}
${encr_alg}=  Crypto Alg AES GCM 256
${auth_alg}=  Set Variable  ${NONE}
${ipsec_proto}=  IPsec Proto ESP
Given Add worker threads and rxqueues to all DUTs  ${phy_cores}  ${rxq}
  And Add PCI devices to all DUTs
  And Set Max Rate And Jumbo And Handle Multi Seg
  And Add cryptodev to all DUTs  ${phy_cores}
  And Apply startup configuration on all VPP DUTs
  And VPP IPsec Select Backend  ${dut1}  ${ipsec_proto}  index=${1}
  And VPP IPsec Select Backend  ${dut2}  ${ipsec_proto}  index=${1}
 When Initialize IPSec in 3-node circular topology
  And VPP IPsec Add Multiple Tunnels  ${nodes}  ${dut1_if2}  ${dut2_if1}  ${n_tunnels}  ${encr_alg}  ${auth_alg}  ${dut1_if2_ip4}  ${dut2_if1_ip4}  ${laddr_ip4}  ${raddr_ip4}  ${addr_range}
 Then Find NDR and PDR intervals using optimized search

10.2.12.2. tc01-64B-1c-ethip4ipsec1000tnlhw-ip4base-policy-aes256gcm-ndrpdr


frame_size=${64}  phy_cores=${1}

10.2.12.3. tc02-64B-2c-ethip4ipsec1000tnlhw-ip4base-policy-aes256gcm-ndrpdr


frame_size=${64}  phy_cores=${2}

10.2.12.4. tc03-64B-4c-ethip4ipsec1000tnlhw-ip4base-policy-aes256gcm-ndrpdr


frame_size=${64}  phy_cores=${4}

10.2.12.5. tc04-1518B-1c-ethip4ipsec1000tnlhw-ip4base-policy-aes256gcm-ndrpdr


frame_size=${1518}  phy_cores=${1}

10.2.12.6. tc05-1518B-2c-ethip4ipsec1000tnlhw-ip4base-policy-aes256gcm-ndrpdr


frame_size=${1518}  phy_cores=${2}

10.2.12.7. tc06-1518B-4c-ethip4ipsec1000tnlhw-ip4base-policy-aes256gcm-ndrpdr


frame_size=${1518}  phy_cores=${4}

10.2.12.8. tc10-IMIX-1c-ethip4ipsec1000tnlhw-ip4base-policy-aes256gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${1}

10.2.12.9. tc11-IMIX-2c-ethip4ipsec1000tnlhw-ip4base-policy-aes256gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${2}

10.2.12.10. tc12-IMIX-4c-ethip4ipsec1000tnlhw-ip4base-policy-aes256gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${4}

10.2.13. 10ge2p1x710-ethip4ipsec1000tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr suite

RFC2544: Pkt throughput IPv4 IPsec tunnel mode.

[Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes. [Enc] Packet Encapsulations: Eth-IPv4 on TG-DUTn, Eth-IPv4-IPSec on DUT1-DUT2 [Cfg] DUT configuration: DUT1 and DUT2 are configured with multipleIPsec tunnels between them. DUTs get IPv4 traffic from TG, encrypt itand send to another DUT, where packets are decrypted and sent back to TG [Ver] TG verification: TG finds and reports throughput NDR (Non DropRate) with zero packet loss tolerance and throughput PDR (Partial DropRate) with non-zero packet loss tolerance (LT) expressed in percentageof packets transmitted. NDR and PDR are discovered for differentEthernet L2 frame sizes using MLRsearch library.Test packets are generated by TG on links to DUTs. TG traffic profile contains two L3 flow-groups (flow-group per direction, number of flows per flow-group equals to number of IPSec tunnels) with all packets containing Ethernet header, IPv4 header with IP protocol=61 and static payload. MAC addresses are matching MAC addresses of the TG node interfaces. Incrementing of IP.dst (IPv4 destination address) field is applied to both streams. [Ref] Applicable standard specifications: RFC4303 and RFC2544.

# Copyright (c) 2019 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/shared/default.robot
| Resource | resources/libraries/robot/crypto/ipsec.robot
| ...
| Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDR | TNL_1000
| ... | IP4FWD | IPSEC | IPSECSW | IPSECINT | NIC_Intel-X710 | SCALE
| ... | AES_128_CBC | HMAC_SHA_256 | HMAC | AES
| ...
| Suite Setup | Setup suite single link | performance
| Suite Teardown | Tear down suite | performance
| Test Setup | Setup test
| Test Teardown | Tear down test | performance
| ...
| Test Template | Local Template
| ...
| 
*** Variables ***
| @{plugins_to_enable}= | dpdk_plugin.so | crypto_ia32_plugin.so
| ... | crypto_ipsecmb_plugin.so | crypto_openssl_plugin.so
| ${osi_layer}= | L3
| ${nic_name}= | Intel-X710
| ${overhead}= | ${58}
| ${tg_if1_ip4}= | 192.168.10.2
| ${dut1_if1_ip4}= | 192.168.10.1
| ${dut1_if2_ip4}= | 100.0.0.1
| ${dut2_if1_ip4}= | 200.0.0.2
| ${dut2_if2_ip4}= | 192.168.20.1
| ${tg_if2_ip4}= | 192.168.20.2
| ${raddr_ip4}= | 20.0.0.0
| ${laddr_ip4}= | 10.0.0.0
| ${addr_range}= | ${24}
| ${n_tunnels}= | ${1000}
# Traffic profile:
| ${traffic_profile}= | trex-sl-3n-ethip4-ip4dst${n_tunnels}

10.2.13.1. Local Template

[Cfg] DUT runs IPSec tunneling AES_128_CBC / HMAC_SHA_256 config. Each DUT uses ${phy_cores} physical core(s) for worker threads. [Ver] Measure NDR and PDR values using MLRsearch algorithm.Arguments: - frame_size - Framesize in Bytes in integer or string (IMIX_v4_1). Type: integer, string - phy_cores - Number of physical cores. Type: integer - rxq - Number of RX queues, default value: ${None}. Type: integer


Set Test Variable  \${frame_size}
${encr_alg}=  Crypto Alg AES CBC 128
${auth_alg}=  Integ Alg SHA 256 128
Given Add worker threads and rxqueues to all DUTs  ${phy_cores}  ${rxq}
  And Add PCI devices to all DUTs
  And Set Max Rate And Jumbo And Handle Multi Seg
  And Apply startup configuration on all VPP DUTs
 When Initialize IPSec in 3-node circular topology
  And VPP IPsec Create Tunnel Interfaces  ${nodes}  ${dut1_if2_ip4}  ${dut2_if1_ip4}  ${dut1_if2}  ${dut2_if1}  ${n_tunnels}  ${encr_alg}  ${auth_alg}  ${laddr_ip4}  ${raddr_ip4}  ${addr_range}
 Then Find NDR and PDR intervals using optimized search

10.2.13.2. tc01-64B-1c-ethip4ipsec1000tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=${64}  phy_cores=${1}

10.2.13.3. tc02-64B-2c-ethip4ipsec1000tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=${64}  phy_cores=${2}

10.2.13.4. tc03-64B-4c-ethip4ipsec1000tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=${64}  phy_cores=${4}

10.2.13.5. tc04-1518B-1c-ethip4ipsec1000tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=${1518}  phy_cores=${1}

10.2.13.6. tc05-1518B-2c-ethip4ipsec1000tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=${1518}  phy_cores=${2}

10.2.13.7. tc06-1518B-4c-ethip4ipsec1000tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=${1518}  phy_cores=${4}

10.2.13.8. tc10-IMIX-1c-ethip4ipsec1000tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${1}

10.2.13.9. tc11-IMIX-2c-ethip4ipsec1000tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${2}

10.2.13.10. tc12-IMIX-4c-ethip4ipsec1000tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${4}

10.2.14. 10ge2p1x710-ethip4ipsec1000tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr suite

RFC2544: Pkt throughput IPv4 IPsec tunnel mode.

[Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes. [Enc] Packet Encapsulations: Eth-IPv4 on TG-DUTn, Eth-IPv4-IPSec on DUT1-DUT2 [Cfg] DUT configuration: DUT1 and DUT2 are configured with multipleIPsec tunnels between them. DUTs get IPv4 traffic from TG, encrypt itand send to another DUT, where packets are decrypted and sent back to TG [Ver] TG verification: TG finds and reports throughput NDR (Non DropRate) with zero packet loss tolerance and throughput PDR (Partial DropRate) with non-zero packet loss tolerance (LT) expressed in percentageof packets transmitted. NDR and PDR are discovered for differentEthernet L2 frame sizes using MLRsearch library.Test packets are generated by TG on links to DUTs. TG traffic profile contains two L3 flow-groups (flow-group per direction, number of flows per flow-group equals to number of IPSec tunnels) with all packets containing Ethernet header, IPv4 header with IP protocol=61 and static payload. MAC addresses are matching MAC addresses of the TG node interfaces. Incrementing of IP.dst (IPv4 destination address) field is applied to both streams. [Ref] Applicable standard specifications: RFC4303 and RFC2544.

# Copyright (c) 2019 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/shared/default.robot
| Resource | resources/libraries/robot/crypto/ipsec.robot
| ...
| Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDR | TNL_1000
| ... | IP4FWD | IPSEC | IPSECSW | IPSECINT | NIC_Intel-X710 | SCALE
| ... | AES_128_CBC | HMAC_SHA_512 | HMAC | AES
| ...
| Suite Setup | Setup suite single link | performance
| Suite Teardown | Tear down suite | performance
| Test Setup | Setup test
| Test Teardown | Tear down test | performance
| ...
| Test Template | Local Template
| ...
| 
*** Variables ***
| @{plugins_to_enable}= | dpdk_plugin.so | crypto_ia32_plugin.so
| ... | crypto_ipsecmb_plugin.so | crypto_openssl_plugin.so
| ${osi_layer}= | L3
| ${nic_name}= | Intel-X710
| ${overhead}= | ${58}
| ${tg_if1_ip4}= | 192.168.10.2
| ${dut1_if1_ip4}= | 192.168.10.1
| ${dut1_if2_ip4}= | 100.0.0.1
| ${dut2_if1_ip4}= | 200.0.0.2
| ${dut2_if2_ip4}= | 192.168.20.1
| ${tg_if2_ip4}= | 192.168.20.2
| ${raddr_ip4}= | 20.0.0.0
| ${laddr_ip4}= | 10.0.0.0
| ${addr_range}= | ${24}
| ${n_tunnels}= | ${1000}
# Traffic profile:
| ${traffic_profile}= | trex-sl-3n-ethip4-ip4dst${n_tunnels}

10.2.14.1. Local Template

[Cfg] DUT runs IPSec tunneling AES_128_CBC / HMAC_SHA_512 config. Each DUT uses ${phy_cores} physical core(s) for worker threads. [Ver] Measure NDR and PDR values using MLRsearch algorithm.Arguments: - frame_size - Framesize in Bytes in integer or string (IMIX_v4_1). Type: integer, string - phy_cores - Number of physical cores. Type: integer - rxq - Number of RX queues, default value: ${None}. Type: integer


Set Test Variable  \${frame_size}
${encr_alg}=  Crypto Alg AES CBC 128
${auth_alg}=  Integ Alg SHA 512 256
Given Add worker threads and rxqueues to all DUTs  ${phy_cores}  ${rxq}
  And Add PCI devices to all DUTs
  And Set Max Rate And Jumbo And Handle Multi Seg
  And Apply startup configuration on all VPP DUTs
 When Initialize IPSec in 3-node circular topology
  And VPP IPsec Create Tunnel Interfaces  ${nodes}  ${dut1_if2_ip4}  ${dut2_if1_ip4}  ${dut1_if2}  ${dut2_if1}  ${n_tunnels}  ${encr_alg}  ${auth_alg}  ${laddr_ip4}  ${raddr_ip4}  ${addr_range}
 Then Find NDR and PDR intervals using optimized search

10.2.14.2. tc01-64B-1c-ethip4ipsec1000tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=${64}  phy_cores=${1}

10.2.14.3. tc02-64B-2c-ethip4ipsec1000tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=${64}  phy_cores=${2}

10.2.14.4. tc03-64B-4c-ethip4ipsec1000tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=${64}  phy_cores=${4}

10.2.14.5. tc04-1518B-1c-ethip4ipsec1000tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=${1518}  phy_cores=${1}

10.2.14.6. tc05-1518B-2c-ethip4ipsec1000tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=${1518}  phy_cores=${2}

10.2.14.7. tc06-1518B-4c-ethip4ipsec1000tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=${1518}  phy_cores=${4}

10.2.14.8. tc10-IMIX-1c-ethip4ipsec1000tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${1}

10.2.14.9. tc11-IMIX-2c-ethip4ipsec1000tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${2}

10.2.14.10. tc12-IMIX-4c-ethip4ipsec1000tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${4}

10.2.15. 10ge2p1x710-ethip4ipsec1000tnlsw-ip4base-int-aes128gcm-ndrpdr suite

RFC2544: Pkt throughput IPv4 IPsec tunnel mode.

[Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes. [Enc] Packet Encapsulations: Eth-IPv4 on TG-DUTn, Eth-IPv4-IPSec on DUT1-DUT2 [Cfg] DUT configuration: DUT1 and DUT2 are configured with multipleIPsec tunnels between them. DUTs get IPv4 traffic from TG, encrypt itand send to another DUT, where packets are decrypted and sent back to TG [Ver] TG verification: TG finds and reports throughput NDR (Non DropRate) with zero packet loss tolerance and throughput PDR (Partial DropRate) with non-zero packet loss tolerance (LT) expressed in percentageof packets transmitted. NDR and PDR are discovered for differentEthernet L2 frame sizes using MLRsearch library.Test packets are generated by TG on links to DUTs. TG traffic profile contains two L3 flow-groups (flow-group per direction, number of flows per flow-group equals to number of IPSec tunnels) with all packets containing Ethernet header, IPv4 header with IP protocol=61 and static payload. MAC addresses are matching MAC addresses of the TG node interfaces. Incrementing of IP.dst (IPv4 destination address) field is applied to both streams. [Ref] Applicable standard specifications: RFC4303 and RFC2544.

# Copyright (c) 2019 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/shared/default.robot
| Resource | resources/libraries/robot/crypto/ipsec.robot
| ...
| Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDR | TNL_1000
| ... | IP4FWD | IPSEC | IPSECSW | IPSECINT | NIC_Intel-X710 | SCALE
| ... | AES_128_GCM | AES
| ...
| Suite Setup | Setup suite single link | performance
| Suite Teardown | Tear down suite | performance
| Test Setup | Setup test
| Test Teardown | Tear down test | performance
| ...
| Test Template | Local Template
| ...
| 
*** Variables ***
| @{plugins_to_enable}= | dpdk_plugin.so | crypto_ia32_plugin.so
| ... | crypto_ipsecmb_plugin.so | crypto_openssl_plugin.so
| ${osi_layer}= | L3
| ${nic_name}= | Intel-X710
| ${overhead}= | ${54}
| ${tg_if1_ip4}= | 192.168.10.2
| ${dut1_if1_ip4}= | 192.168.10.1
| ${dut1_if2_ip4}= | 100.0.0.1
| ${dut2_if1_ip4}= | 200.0.0.2
| ${dut2_if2_ip4}= | 192.168.20.1
| ${tg_if2_ip4}= | 192.168.20.2
| ${raddr_ip4}= | 20.0.0.0
| ${laddr_ip4}= | 10.0.0.0
| ${addr_range}= | ${24}
| ${n_tunnels}= | ${1000}
# Traffic profile:
| ${traffic_profile}= | trex-sl-3n-ethip4-ip4dst${n_tunnels}

10.2.15.1. Local Template

[Cfg] DUT runs IPSec tunneling AES_128_GCM config. Each DUT uses ${phy_cores} physical core(s) for worker threads. [Ver] Measure NDR and PDR values using MLRsearch algorithm.Arguments: - frame_size - Framesize in Bytes in integer or string (IMIX_v4_1). Type: integer, string - phy_cores - Number of physical cores. Type: integer - rxq - Number of RX queues, default value: ${None}. Type: integer


Set Test Variable  \${frame_size}
${encr_alg}=  Crypto Alg AES GCM 128
${auth_alg}=  Set Variable  ${NONE}
${ipsec_proto} =  IPsec Proto ESP
Given Add worker threads and rxqueues to all DUTs  ${phy_cores}  ${rxq}
  And Add PCI devices to all DUTs
  And Set Max Rate And Jumbo And Handle Multi Seg
  And Apply startup configuration on all VPP DUTs
 When Initialize IPSec in 3-node circular topology
  And VPP IPsec Create Tunnel Interfaces  ${nodes}  ${dut1_if2_ip4}  ${dut2_if1_ip4}  ${dut1_if2}  ${dut2_if1}  ${n_tunnels}  ${encr_alg}  ${auth_alg}  ${laddr_ip4}  ${raddr_ip4}  ${addr_range}
 Then Find NDR and PDR intervals using optimized search

10.2.15.2. tc01-64B-1c-ethip4ipsec1000tnlsw-ip4base-int-aes128gcm-ndrpdr


frame_size=${64}  phy_cores=${1}

10.2.15.3. tc02-64B-2c-ethip4ipsec1000tnlsw-ip4base-int-aes128gcm-ndrpdr


frame_size=${64}  phy_cores=${2}

10.2.15.4. tc03-64B-4c-ethip4ipsec1000tnlsw-ip4base-int-aes128gcm-ndrpdr


frame_size=${64}  phy_cores=${4}

10.2.15.5. tc04-1518B-1c-ethip4ipsec1000tnlsw-ip4base-int-aes128gcm-ndrpdr


frame_size=${1518}  phy_cores=${1}

10.2.15.6. tc05-1518B-2c-ethip4ipsec1000tnlsw-ip4base-int-aes128gcm-ndrpdr


frame_size=${1518}  phy_cores=${2}

10.2.15.7. tc06-1518B-4c-ethip4ipsec1000tnlsw-ip4base-int-aes128gcm-ndrpdr


frame_size=${1518}  phy_cores=${4}

10.2.15.8. tc10-IMIX-1c-ethip4ipsec1000tnlsw-ip4base-int-aes128gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${1}

10.2.15.9. tc11-IMIX-2c-ethip4ipsec1000tnlsw-ip4base-int-aes128gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${2}

10.2.15.10. tc12-IMIX-4c-ethip4ipsec1000tnlsw-ip4base-int-aes128gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${4}

10.2.16. 10ge2p1x710-ethip4ipsec1000tnlsw-ip4base-int-aes256gcm-ndrpdr suite

RFC2544: Pkt throughput IPv4 IPsec tunnel mode.

[Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes. [Enc] Packet Encapsulations: Eth-IPv4 on TG-DUTn, Eth-IPv4-IPSec on DUT1-DUT2 [Cfg] DUT configuration: DUT1 and DUT2 are configured with multipleIPsec tunnels between them. DUTs get IPv4 traffic from TG, encrypt itand send to another DUT, where packets are decrypted and sent back to TG [Ver] TG verification: TG finds and reports throughput NDR (Non DropRate) with zero packet loss tolerance and throughput PDR (Partial DropRate) with non-zero packet loss tolerance (LT) expressed in percentageof packets transmitted. NDR and PDR are discovered for differentEthernet L2 frame sizes using MLRsearch library.Test packets are generated by TG on links to DUTs. TG traffic profile contains two L3 flow-groups (flow-group per direction, number of flows per flow-group equals to number of IPSec tunnels) with all packets containing Ethernet header, IPv4 header with IP protocol=61 and static payload. MAC addresses are matching MAC addresses of the TG node interfaces. Incrementing of IP.dst (IPv4 destination address) field is applied to both streams. [Ref] Applicable standard specifications: RFC4303 and RFC2544.

# Copyright (c) 2019 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/shared/default.robot
| Resource | resources/libraries/robot/crypto/ipsec.robot
| ...
| Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDR | TNL_1000
| ... | IP4FWD | IPSEC | IPSECSW | IPSECINT | NIC_Intel-X710 | SCALE
| ... | AES_256_GCM | AES
| ...
| Suite Setup | Setup suite single link | performance
| Suite Teardown | Tear down suite | performance
| Test Setup | Setup test
| Test Teardown | Tear down test | performance
| ...
| Test Template | Local Template
| ...
| 
*** Variables ***
| @{plugins_to_enable}= | dpdk_plugin.so | crypto_ia32_plugin.so
| ... | crypto_ipsecmb_plugin.so | crypto_openssl_plugin.so
| ${osi_layer}= | L3
| ${nic_name}= | Intel-X710
| ${overhead}= | ${54}
| ${tg_if1_ip4}= | 192.168.10.2
| ${dut1_if1_ip4}= | 192.168.10.1
| ${dut1_if2_ip4}= | 100.0.0.1
| ${dut2_if1_ip4}= | 200.0.0.2
| ${dut2_if2_ip4}= | 192.168.20.1
| ${tg_if2_ip4}= | 192.168.20.2
| ${raddr_ip4}= | 20.0.0.0
| ${laddr_ip4}= | 10.0.0.0
| ${addr_range}= | ${24}
| ${n_tunnels}= | ${1000}
# Traffic profile:
| ${traffic_profile}= | trex-sl-3n-ethip4-ip4dst${n_tunnels}

10.2.16.1. Local Template

[Cfg] DUT runs IPSec tunneling AES_256_GCM config. Each DUT uses ${phy_cores} physical core(s) for worker threads. [Ver] Measure NDR and PDR values using MLRsearch algorithm.Arguments: - frame_size - Framesize in Bytes in integer or string (IMIX_v4_1). Type: integer, string - phy_cores - Number of physical cores. Type: integer - rxq - Number of RX queues, default value: ${None}. Type: integer


Set Test Variable  \${frame_size}
${encr_alg}=  Crypto Alg AES GCM 256
${auth_alg}=  Set Variable  ${NONE}
${ipsec_proto} =  IPsec Proto ESP
Given Add worker threads and rxqueues to all DUTs  ${phy_cores}  ${rxq}
  And Add PCI devices to all DUTs
  And Set Max Rate And Jumbo And Handle Multi Seg
  And Apply startup configuration on all VPP DUTs
 When Initialize IPSec in 3-node circular topology
  And VPP IPsec Create Tunnel Interfaces  ${nodes}  ${dut1_if2_ip4}  ${dut2_if1_ip4}  ${dut1_if2}  ${dut2_if1}  ${n_tunnels}  ${encr_alg}  ${auth_alg}  ${laddr_ip4}  ${raddr_ip4}  ${addr_range}
 Then Find NDR and PDR intervals using optimized search

10.2.16.2. tc01-64B-1c-ethip4ipsec1000tnlsw-ip4base-int-aes256gcm-ndrpdr


frame_size=${64}  phy_cores=${1}

10.2.16.3. tc02-64B-2c-ethip4ipsec1000tnlsw-ip4base-int-aes256gcm-ndrpdr


frame_size=${64}  phy_cores=${2}

10.2.16.4. tc03-64B-4c-ethip4ipsec1000tnlsw-ip4base-int-aes256gcm-ndrpdr


frame_size=${64}  phy_cores=${4}

10.2.16.5. tc04-1518B-1c-ethip4ipsec1000tnlsw-ip4base-int-aes256gcm-ndrpdr


frame_size=${1518}  phy_cores=${1}

10.2.16.6. tc05-1518B-2c-ethip4ipsec1000tnlsw-ip4base-int-aes256gcm-ndrpdr


frame_size=${1518}  phy_cores=${2}

10.2.16.7. tc06-1518B-4c-ethip4ipsec1000tnlsw-ip4base-int-aes256gcm-ndrpdr


frame_size=${1518}  phy_cores=${4}

10.2.16.8. tc10-IMIX-1c-ethip4ipsec1000tnlsw-ip4base-int-aes256gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${1}

10.2.16.9. tc11-IMIX-2c-ethip4ipsec1000tnlsw-ip4base-int-aes256gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${2}

10.2.16.10. tc12-IMIX-4c-ethip4ipsec1000tnlsw-ip4base-int-aes256gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${4}

10.2.17. 10ge2p1x710-ethip4ipsec1000tnlsw-ip4base-policy-aes128cbc-hmac256sha-ndrpdr suite

IPv4 IPsec tunnel mode performance test suite.

[Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes. [Enc] Packet Encapsulations: Eth-IPv4 on TG-DUTn, Eth-IPv4-IPSec on DUT1-DUT2 [Cfg] DUT configuration: DUT1 and DUT2 are configured with multipleIPsec tunnels between them. DUTs get IPv4 traffic from TG, encrypt itand send to another DUT, where packets are decrypted and sent back to TG [Ver] TG verification: TG finds and reports throughput NDR (Non DropRate) with zero packet loss tolerance and throughput PDR (Partial DropRate) with non-zero packet loss tolerance (LT) expressed in percentageof packets transmitted. NDR and PDR are discovered for differentEthernet L2 frame sizes using MLRsearch library.Test packets are generated by TG on links to DUTs. TG traffic profile contains two L3 flow-groups (flow-group per direction, number of flows per flow-group equals to number of IPSec tunnels) with all packets containing Ethernet header, IPv4 header with IP protocol=61 and static payload. MAC addresses are matching MAC addresses of the TG node interfaces. Incrementing of IP.dst (IPv4 destination address) field is applied to both streams. [Ref] Applicable standard specifications: RFC4303 and RFC2544.

# Copyright (c) 2019 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/shared/default.robot
| Resource | resources/libraries/robot/crypto/ipsec.robot
| ...
| Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDR | TNL_1000
| ... | IP4FWD | IPSEC | IPSECSW | IPSECTUN | NIC_Intel-X710 | SCALE
| ... | AES_128_CBC | HMAC_SHA_256 | HMAC | AES
| ...
| Suite Setup | Setup suite single link | performance
| Suite Teardown | Tear down suite | performance
| Test Setup | Setup test
| Test Teardown | Tear down test | performance
| ...
| Test Template | Local Template
| ...
| 
*** Variables ***
| @{plugins_to_enable}= | dpdk_plugin.so | crypto_ia32_plugin.so
| ... | crypto_ipsecmb_plugin.so | crypto_openssl_plugin.so
| ${osi_layer}= | L3
| ${nic_name}= | Intel-X710
| ${overhead}= | ${58}
| ${tg_if1_ip4}= | 192.168.10.2
| ${dut1_if1_ip4}= | 192.168.10.1
| ${dut1_if2_ip4}= | 100.0.0.1
| ${dut2_if1_ip4}= | 100.0.0.2
| ${dut2_if2_ip4}= | 192.168.20.1
| ${tg_if2_ip4}= | 192.168.20.2
| ${raddr_ip4}= | 20.0.0.0
| ${laddr_ip4}= | 10.0.0.0
| ${addr_range}= | ${24}
| ${n_tunnels}= | ${1000}
# Traffic profile:
| ${traffic_profile}= | trex-sl-3n-ethip4-ip4dst${n_tunnels}

10.2.17.1. Local Template

[Cfg] DUT runs IPSec tunneling AES_128_CBC / HMAC_SHA_256 config. Each DUT uses ${phy_cores} physical core(s) for worker threads. [Ver] Measure NDR and PDR values using MLRsearch algorithm.Arguments: - frame_size - Framesize in Bytes in integer or string (IMIX_v4_1). Type: integer, string - phy_cores - Number of physical cores. Type: integer - search_type - NDR or PDR. Type: string - rxq - Number of RX queues, default value: ${None}. Type: integer - min_rate - Min rate for binary search, default value: ${50000}. Type: integer


Set Test Variable  \${frame_size}
${encr_alg}=  Crypto Alg AES CBC 128
${auth_alg}=  Integ Alg SHA 256 128
Given Add worker threads and rxqueues to all DUTs  ${phy_cores}  ${rxq}
  And Add PCI devices to all DUTs
  And Set Max Rate And Jumbo And Handle Multi Seg
  And Apply startup configuration on all VPP DUTs
 When Initialize IPSec in 3-node circular topology
  And VPP IPsec Add Multiple Tunnels  ${nodes}  ${dut1_if2}  ${dut2_if1}  ${n_tunnels}  ${encr_alg}  ${auth_alg}  ${dut1_if2_ip4}  ${dut2_if1_ip4}  ${laddr_ip4}  ${raddr_ip4}  ${addr_range}
 Then Find NDR and PDR intervals using optimized search

10.2.17.2. tc01-64B-1c-ethip4ipsec1000tnlsw-ip4base-policy-aes128cbc-hmac256sha-ndrpdr


frame_size=${64}  phy_cores=${1}

10.2.17.3. tc02-64B-2c-ethip4ipsec1000tnlsw-ip4base-policy-aes128cbc-hmac256sha-ndrpdr


frame_size=${64}  phy_cores=${2}

10.2.17.4. tc03-64B-4c-ethip4ipsec1000tnlsw-ip4base-policy-aes128cbc-hmac256sha-ndrpdr


frame_size=${64}  phy_cores=${4}

10.2.17.5. tc04-1518B-1c-ethip4ipsec1000tnlsw-ip4base-policy-aes128cbc-hmac256sha-ndrpdr


frame_size=${1518}  phy_cores=${1}

10.2.17.6. tc05-1518B-2c-ethip4ipsec1000tnlsw-ip4base-policy-aes128cbc-hmac256sha-ndrpdr


frame_size=${1518}  phy_cores=${2}

10.2.17.7. tc06-1518B-4c-ethip4ipsec1000tnlsw-ip4base-policy-aes128cbc-hmac256sha-ndrpdr


frame_size=${1518}  phy_cores=${4}

10.2.17.8. tc10-IMIX-1c-ethip4ipsec1000tnlsw-ip4base-policy-aes128cbc-hmac256sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${1}

10.2.17.9. tc11-IMIX-2c-ethip4ipsec1000tnlsw-ip4base-policy-aes128cbc-hmac256sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${2}

10.2.17.10. tc12-IMIX-4c-ethip4ipsec1000tnlsw-ip4base-policy-aes128cbc-hmac256sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${4}

10.2.18. 10ge2p1x710-ethip4ipsec1000tnlsw-ip4base-policy-aes128cbc-hmac512sha-ndrpdr suite

IPv4 IPsec tunnel mode performance test suite.

[Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes. [Enc] Packet Encapsulations: Eth-IPv4 on TG-DUTn, Eth-IPv4-IPSec on DUT1-DUT2 [Cfg] DUT configuration: DUT1 and DUT2 are configured with multipleIPsec tunnels between them. DUTs get IPv4 traffic from TG, encrypt itand send to another DUT, where packets are decrypted and sent back to TG [Ver] TG verification: TG finds and reports throughput NDR (Non DropRate) with zero packet loss tolerance and throughput PDR (Partial DropRate) with non-zero packet loss tolerance (LT) expressed in percentageof packets transmitted. NDR and PDR are discovered for differentEthernet L2 frame sizes using MLRsearch library.Test packets are generated by TG on links to DUTs. TG traffic profile contains two L3 flow-groups (flow-group per direction, number of flows per flow-group equals to number of IPSec tunnels) with all packets containing Ethernet header, IPv4 header with IP protocol=61 and static payload. MAC addresses are matching MAC addresses of the TG node interfaces. Incrementing of IP.dst (IPv4 destination address) field is applied to both streams. [Ref] Applicable standard specifications: RFC4303 and RFC2544.

# Copyright (c) 2019 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/shared/default.robot
| Resource | resources/libraries/robot/crypto/ipsec.robot
| ...
| Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDR | TNL_1000
| ... | IP4FWD | IPSEC | IPSECSW | IPSECTUN | NIC_Intel-X710 | SCALE
| ... | AES_128_CBC | HMAC_SHA_512 | HMAC | AES
| ...
| Suite Setup | Setup suite single link | performance
| Suite Teardown | Tear down suite | performance
| Test Setup | Setup test
| Test Teardown | Tear down test | performance
| ...
| Test Template | Local Template
| ...
| 
*** Variables ***
| @{plugins_to_enable}= | dpdk_plugin.so | crypto_ia32_plugin.so
| ... | crypto_ipsecmb_plugin.so | crypto_openssl_plugin.so
| ${osi_layer}= | L3
| ${nic_name}= | Intel-X710
| ${overhead}= | ${58}
| ${tg_if1_ip4}= | 192.168.10.2
| ${dut1_if1_ip4}= | 192.168.10.1
| ${dut1_if2_ip4}= | 100.0.0.1
| ${dut2_if1_ip4}= | 100.0.0.2
| ${dut2_if2_ip4}= | 192.168.20.1
| ${tg_if2_ip4}= | 192.168.20.2
| ${raddr_ip4}= | 20.0.0.0
| ${laddr_ip4}= | 10.0.0.0
| ${addr_range}= | ${24}
| ${n_tunnels}= | ${1000}
# Traffic profile:
| ${traffic_profile}= | trex-sl-3n-ethip4-ip4dst${n_tunnels}

10.2.18.1. Local Template

[Cfg] DUT runs IPSec tunneling AES_128_CBC / HMAC_SHA_512 config. Each DUT uses ${phy_cores} physical core(s) for worker threads. [Ver] Measure NDR and PDR values using MLRsearch algorithm.Arguments: - frame_size - Framesize in Bytes in integer or string (IMIX_v4_1). Type: integer, string - phy_cores - Number of physical cores. Type: integer - search_type - NDR or PDR. Type: string - rxq - Number of RX queues, default value: ${None}. Type: integer - min_rate - Min rate for binary search, default value: ${50000}. Type: integer


Set Test Variable  \${frame_size}
${encr_alg}=  Crypto Alg AES CBC 128
${auth_alg}=  Integ Alg SHA 512 256
Given Add worker threads and rxqueues to all DUTs  ${phy_cores}  ${rxq}
  And Add PCI devices to all DUTs
  And Set Max Rate And Jumbo And Handle Multi Seg
  And Apply startup configuration on all VPP DUTs
 When Initialize IPSec in 3-node circular topology
  And VPP IPsec Add Multiple Tunnels  ${nodes}  ${dut1_if2}  ${dut2_if1}  ${n_tunnels}  ${encr_alg}  ${auth_alg}  ${dut1_if2_ip4}  ${dut2_if1_ip4}  ${laddr_ip4}  ${raddr_ip4}  ${addr_range}
 Then Find NDR and PDR intervals using optimized search

10.2.18.2. tc01-64B-1c-ethip4ipsec1000tnlsw-ip4base-policy-aes128cbc-hmac512sha-ndrpdr


frame_size=${64}  phy_cores=${1}

10.2.18.3. tc02-64B-2c-ethip4ipsec1000tnlsw-ip4base-policy-aes128cbc-hmac512sha-ndrpdr


frame_size=${64}  phy_cores=${2}

10.2.18.4. tc03-64B-4c-ethip4ipsec1000tnlsw-ip4base-policy-aes128cbc-hmac512sha-ndrpdr


frame_size=${64}  phy_cores=${4}

10.2.18.5. tc04-1518B-1c-ethip4ipsec1000tnlsw-ip4base-policy-aes128cbc-hmac512sha-ndrpdr


frame_size=${1518}  phy_cores=${1}

10.2.18.6. tc05-1518B-2c-ethip4ipsec1000tnlsw-ip4base-policy-aes128cbc-hmac512sha-ndrpdr


frame_size=${1518}  phy_cores=${2}

10.2.18.7. tc06-1518B-4c-ethip4ipsec1000tnlsw-ip4base-policy-aes128cbc-hmac512sha-ndrpdr


frame_size=${1518}  phy_cores=${4}

10.2.18.8. tc10-IMIX-1c-ethip4ipsec1000tnlsw-ip4base-policy-aes128cbc-hmac512sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${1}

10.2.18.9. tc11-IMIX-2c-ethip4ipsec1000tnlsw-ip4base-policy-aes128cbc-hmac512sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${2}

10.2.18.10. tc12-IMIX-4c-ethip4ipsec1000tnlsw-ip4base-policy-aes128cbc-hmac512sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${4}

10.2.19. 10ge2p1x710-ethip4ipsec1000tnlsw-ip4base-policy-aes128gcm-ndrpdr suite

IPv4 IPsec tunnel mode performance test suite.

[Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes. [Enc] Packet Encapsulations: Eth-IPv4 on TG-DUTn, Eth-IPv4-IPSec on DUT1-DUT2 [Cfg] DUT configuration: DUT1 and DUT2 are configured with multipleIPsec tunnels between them. DUTs get IPv4 traffic from TG, encrypt itand send to another DUT, where packets are decrypted and sent back to TG [Ver] TG verification: TG finds and reports throughput NDR (Non DropRate) with zero packet loss tolerance and throughput PDR (Partial DropRate) with non-zero packet loss tolerance (LT) expressed in percentageof packets transmitted. NDR and PDR are discovered for differentEthernet L2 frame sizes using MLRsearch library.Test packets are generated by TG on links to DUTs. TG traffic profile contains two L3 flow-groups (flow-group per direction, number of flows per flow-group equals to number of IPSec tunnels) with all packets containing Ethernet header, IPv4 header with IP protocol=61 and static payload. MAC addresses are matching MAC addresses of the TG node interfaces. Incrementing of IP.dst (IPv4 destination address) field is applied to both streams. [Ref] Applicable standard specifications: RFC4303 and RFC2544.

# Copyright (c) 2019 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/shared/default.robot
| Resource | resources/libraries/robot/crypto/ipsec.robot
| ...
| Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDR | TNL_1000
| ... | IP4FWD | IPSEC | IPSECSW | IPSECTUN | NIC_Intel-X710 | SCALE
| ... | AES_128_GCM | AES
| ...
| Suite Setup | Setup suite single link | performance
| Suite Teardown | Tear down suite | performance
| Test Setup | Setup test
| Test Teardown | Tear down test | performance
| ...
| Test Template | Local Template
| ...
| 
*** Variables ***
| @{plugins_to_enable}= | dpdk_plugin.so | crypto_ia32_plugin.so
| ... | crypto_ipsecmb_plugin.so | crypto_openssl_plugin.so
| ${osi_layer}= | L3
| ${nic_name}= | Intel-X710
| ${overhead}= | ${54}
| ${tg_if1_ip4}= | 192.168.10.2
| ${dut1_if1_ip4}= | 192.168.10.1
| ${dut1_if2_ip4}= | 100.0.0.1
| ${dut2_if1_ip4}= | 100.0.0.2
| ${dut2_if2_ip4}= | 192.168.20.1
| ${tg_if2_ip4}= | 192.168.20.2
| ${raddr_ip4}= | 20.0.0.0
| ${laddr_ip4}= | 10.0.0.0
| ${addr_range}= | ${24}
| ${n_tunnels}= | ${1000}
# Traffic profile:
| ${traffic_profile}= | trex-sl-3n-ethip4-ip4dst${n_tunnels}

10.2.19.1. Local Template

[Cfg] DUT runs IPSec tunneling AES_128_GCM config. Each DUT uses ${phy_cores} physical core(s) for worker threads. [Ver] Measure NDR and PDR values using MLRsearch algorithm.Arguments: - frame_size - Framesize in Bytes in integer or string (IMIX_v4_1). Type: integer, string - phy_cores - Number of physical cores. Type: integer - search_type - NDR or PDR. Type: string - rxq - Number of RX queues, default value: ${None}. Type: integer - min_rate - Min rate for binary search, default value: ${50000}. Type: integer


Set Test Variable  \${frame_size}
${encr_alg}=  Crypto Alg AES GCM 128
${auth_alg}=  Set Variable  ${NONE}
${ipsec_proto}=  IPsec Proto ESP
Given Add worker threads and rxqueues to all DUTs  ${phy_cores}  ${rxq}
  And Add PCI devices to all DUTs
  And Set Max Rate And Jumbo And Handle Multi Seg
  And Apply startup configuration on all VPP DUTs
 When Initialize IPSec in 3-node circular topology
  And VPP IPsec Add Multiple Tunnels  ${nodes}  ${dut1_if2}  ${dut2_if1}  ${n_tunnels}  ${encr_alg}  ${auth_alg}  ${dut1_if2_ip4}  ${dut2_if1_ip4}  ${laddr_ip4}  ${raddr_ip4}  ${addr_range}
 Then Find NDR and PDR intervals using optimized search

10.2.19.2. tc01-64B-1c-ethip4ipsec1000tnlsw-ip4base-policy-aes128gcm-ndrpdr


frame_size=${64}  phy_cores=${1}

10.2.19.3. tc02-64B-2c-ethip4ipsec1000tnlsw-ip4base-policy-aes128gcm-ndrpdr


frame_size=${64}  phy_cores=${2}

10.2.19.4. tc03-64B-4c-ethip4ipsec1000tnlsw-ip4base-policy-aes128gcm-ndrpdr


frame_size=${64}  phy_cores=${4}

10.2.19.5. tc04-1518B-1c-ethip4ipsec1000tnlsw-ip4base-policy-aes128gcm-ndrpdr


frame_size=${1518}  phy_cores=${1}

10.2.19.6. tc05-1518B-2c-ethip4ipsec1000tnlsw-ip4base-policy-aes128gcm-ndrpdr


frame_size=${1518}  phy_cores=${2}

10.2.19.7. tc06-1518B-4c-ethip4ipsec1000tnlsw-ip4base-policy-aes128gcm-ndrpdr


frame_size=${1518}  phy_cores=${4}

10.2.19.8. tc10-IMIX-1c-ethip4ipsec1000tnlsw-ip4base-policy-aes128gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${1}

10.2.19.9. tc11-IMIX-2c-ethip4ipsec1000tnlsw-ip4base-policy-aes128gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${2}

10.2.19.10. tc12-IMIX-4c-ethip4ipsec1000tnlsw-ip4base-policy-aes128gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${4}

10.2.20. 10ge2p1x710-ethip4ipsec1000tnlsw-ip4base-policy-aes256gcm-ndrpdr suite

IPv4 IPsec tunnel mode performance test suite.

[Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes. [Enc] Packet Encapsulations: Eth-IPv4 on TG-DUTn, Eth-IPv4-IPSec on DUT1-DUT2 [Cfg] DUT configuration: DUT1 and DUT2 are configured with multipleIPsec tunnels between them. DUTs get IPv4 traffic from TG, encrypt itand send to another DUT, where packets are decrypted and sent back to TG [Ver] TG verification: TG finds and reports throughput NDR (Non DropRate) with zero packet loss tolerance and throughput PDR (Partial DropRate) with non-zero packet loss tolerance (LT) expressed in percentageof packets transmitted. NDR and PDR are discovered for differentEthernet L2 frame sizes using MLRsearch library.Test packets are generated by TG on links to DUTs. TG traffic profile contains two L3 flow-groups (flow-group per direction, number of flows per flow-group equals to number of IPSec tunnels) with all packets containing Ethernet header, IPv4 header with IP protocol=61 and static payload. MAC addresses are matching MAC addresses of the TG node interfaces. Incrementing of IP.dst (IPv4 destination address) field is applied to both streams. [Ref] Applicable standard specifications: RFC4303 and RFC2544.

# Copyright (c) 2019 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/shared/default.robot
| Resource | resources/libraries/robot/crypto/ipsec.robot
| ...
| Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDR | TNL_1000
| ... | IP4FWD | IPSEC | IPSECSW | IPSECTUN | NIC_Intel-X710 | SCALE
| ... | AES_256_GCM | AES
| ...
| Suite Setup | Setup suite single link | performance
| Suite Teardown | Tear down suite | performance
| Test Setup | Setup test
| Test Teardown | Tear down test | performance
| ...
| Test Template | Local Template
| ...
| 
*** Variables ***
| @{plugins_to_enable}= | dpdk_plugin.so | crypto_ia32_plugin.so
| ... | crypto_ipsecmb_plugin.so | crypto_openssl_plugin.so
| ${osi_layer}= | L3
| ${nic_name}= | Intel-X710
| ${overhead}= | ${54}
| ${tg_if1_ip4}= | 192.168.10.2
| ${dut1_if1_ip4}= | 192.168.10.1
| ${dut1_if2_ip4}= | 100.0.0.1
| ${dut2_if1_ip4}= | 100.0.0.2
| ${dut2_if2_ip4}= | 192.168.20.1
| ${tg_if2_ip4}= | 192.168.20.2
| ${raddr_ip4}= | 20.0.0.0
| ${laddr_ip4}= | 10.0.0.0
| ${addr_range}= | ${24}
| ${n_tunnels}= | ${1000}
# Traffic profile:
| ${traffic_profile}= | trex-sl-3n-ethip4-ip4dst${n_tunnels}

10.2.20.1. Local Template

[Cfg] DUT runs IPSec tunneling AES_256_GCM config. Each DUT uses ${phy_cores} physical core(s) for worker threads. [Ver] Measure NDR and PDR values using MLRsearch algorithm.Arguments: - frame_size - Framesize in Bytes in integer or string (IMIX_v4_1). Type: integer, string - phy_cores - Number of physical cores. Type: integer - search_type - NDR or PDR. Type: string - rxq - Number of RX queues, default value: ${None}. Type: integer - min_rate - Min rate for binary search, default value: ${50000}. Type: integer


Set Test Variable  \${frame_size}
${encr_alg}=  Crypto Alg AES GCM 256
${auth_alg}=  Set Variable  ${NONE}
${ipsec_proto}=  IPsec Proto ESP
Given Add worker threads and rxqueues to all DUTs  ${phy_cores}  ${rxq}
  And Add PCI devices to all DUTs
  And Set Max Rate And Jumbo And Handle Multi Seg
  And Apply startup configuration on all VPP DUTs
 When Initialize IPSec in 3-node circular topology
  And VPP IPsec Add Multiple Tunnels  ${nodes}  ${dut1_if2}  ${dut2_if1}  ${n_tunnels}  ${encr_alg}  ${auth_alg}  ${dut1_if2_ip4}  ${dut2_if1_ip4}  ${laddr_ip4}  ${raddr_ip4}  ${addr_range}
 Then Find NDR and PDR intervals using optimized search

10.2.20.2. tc01-64B-1c-ethip4ipsec1000tnlsw-ip4base-policy-aes256gcm-ndrpdr


frame_size=${64}  phy_cores=${1}

10.2.20.3. tc02-64B-2c-ethip4ipsec1000tnlsw-ip4base-policy-aes256gcm-ndrpdr


frame_size=${64}  phy_cores=${2}

10.2.20.4. tc03-64B-4c-ethip4ipsec1000tnlsw-ip4base-policy-aes256gcm-ndrpdr


frame_size=${64}  phy_cores=${4}

10.2.20.5. tc04-1518B-1c-ethip4ipsec1000tnlsw-ip4base-policy-aes256gcm-ndrpdr


frame_size=${1518}  phy_cores=${1}

10.2.20.6. tc05-1518B-2c-ethip4ipsec1000tnlsw-ip4base-policy-aes256gcm-ndrpdr


frame_size=${1518}  phy_cores=${2}

10.2.20.7. tc06-1518B-4c-ethip4ipsec1000tnlsw-ip4base-policy-aes256gcm-ndrpdr


frame_size=${1518}  phy_cores=${4}

10.2.20.8. tc10-IMIX-1c-ethip4ipsec1000tnlsw-ip4base-policy-aes256gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${1}

10.2.20.9. tc11-IMIX-2c-ethip4ipsec1000tnlsw-ip4base-policy-aes256gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${2}

10.2.20.10. tc12-IMIX-4c-ethip4ipsec1000tnlsw-ip4base-policy-aes256gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${4}

10.2.21. 10ge2p1x710-ethip4ipsec1tnlhw-ip4base-int-aes128cbc-hmac256sha-ndrpdr suite

RFC2544: Pkt throughput IPv4 IPsec tunnel mode.

[Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes. [Enc] Packet Encapsulations: Eth-IPv4 on TG-DUTn, Eth-IPv4-IPSec on DUT1-DUT2 [Cfg] DUT configuration: DUT1 and DUT2 are configured with multiple IPsec tunnels between them. DUTs get IPv4 traffic from TG, encrypt it and send to another DUT, where packets are decrypted and sent back to TG [Ver] TG verification: TG finds and reports throughput NDR (Non DropRate) with zero packet loss tolerance and throughput PDR (Partial DropRate) with non-zero packet loss tolerance (LT) expressed in percentageof packets transmitted. NDR and PDR are discovered for differentEthernet L2 frame sizes using MLRsearch library.Test packets are generated by TG on links to DUTs. TG traffic profile contains two L3 flow-groups (flow-group per direction, number of flows per flow-group equals to number of IPSec tunnels) with all packets containing Ethernet header, IPv4 header with IP protocol=61 and static payload. MAC addresses are matching MAC addresses of the TG node interfaces. Incrementing of IP.dst (IPv4 destination address) field is applied to both streams. [Ref] Applicable standard specifications: RFC4303 and RFC2544.

# Copyright (c) 2019 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/shared/default.robot
| Resource | resources/libraries/robot/crypto/ipsec.robot
| ...
| Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDR
| ... | IP4FWD | IPSEC | IPSECHW | IPSECINT | NIC_Intel-X710 | BASE
| ... | AES_128_CBC | HMAC_SHA_256 | HMAC | AES
| ...
| Suite Setup | Setup suite single link | performance | ipsechw
| Suite Teardown | Tear down suite | performance
| Test Setup | Setup test
| Test Teardown | Tear down test | performance
| ...
| Test Template | Local Template
| ...
| 
*** Variables ***
| @{plugins_to_enable}= | dpdk_plugin.so | crypto_ia32_plugin.so
| ... | crypto_ipsecmb_plugin.so | crypto_openssl_plugin.so
| ${osi_layer}= | L3
| ${crypto_type}= | HW_DH895xcc
| ${nic_name}= | Intel-X710
| ${overhead}= | ${58}
| ${tg_if1_ip4}= | 192.168.10.2
| ${dut1_if1_ip4}= | 192.168.10.1
| ${dut1_if2_ip4}= | 100.0.0.1
| ${dut2_if1_ip4}= | 200.0.0.2
| ${dut2_if2_ip4}= | 192.168.20.1
| ${tg_if2_ip4}= | 192.168.20.2
| ${raddr_ip4}= | 20.0.0.0
| ${laddr_ip4}= | 10.0.0.0
| ${addr_range}= | ${24}
| ${n_tunnels}= | ${1}
# Traffic profile:
| ${traffic_profile}= | trex-sl-3n-ethip4-ip4dst${n_tunnels}

10.2.21.1. Local Template

[Cfg] DUT runs IPSec tunneling AES_128_CBC / HMAC_SHA_256 config. Each DUT uses ${phy_cores} physical core(s) for worker threads. [Ver] Measure NDR and PDR values using MLRsearch algorithm.Arguments: - frame_size - Framesize in Bytes in integer or string (IMIX_v4_1). Type: integer, string - phy_cores - Number of physical cores. Type: integer - rxq - Number of RX queues, default value: ${None}. Type: integer


Set Test Variable  \${frame_size}
${encr_alg}=  Crypto Alg AES CBC 128
${auth_alg}=  Integ Alg SHA 256 128
Given Add worker threads and rxqueues to all DUTs  ${phy_cores}  ${rxq}
  And Add PCI devices to all DUTs
  And Set Max Rate And Jumbo And Handle Multi Seg
  And Add cryptodev to all DUTs  ${phy_cores}
  And Apply startup configuration on all VPP DUTs
 When Initialize IPSec in 3-node circular topology
  And VPP IPsec Create Tunnel Interfaces  ${nodes}  ${dut1_if2_ip4}  ${dut2_if1_ip4}  ${dut1_if2}  ${dut2_if1}  ${n_tunnels}  ${encr_alg}  ${auth_alg}  ${laddr_ip4}  ${raddr_ip4}  ${addr_range}
 Then Find NDR and PDR intervals using optimized search

10.2.21.2. tc01-64B-1c-ethip4ipsec1tnlhw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=${64}  phy_cores=${1}

10.2.21.3. tc02-64B-2c-ethip4ipsec1tnlhw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=${64}  phy_cores=${2}

10.2.21.4. tc03-64B-4c-ethip4ipsec1tnlhw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=${64}  phy_cores=${4}

10.2.21.5. tc04-1518B-1c-ethip4ipsec1tnlhw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=${1518}  phy_cores=${1}

10.2.21.6. tc05-1518B-2c-ethip4ipsec1tnlhw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=${1518}  phy_cores=${2}

10.2.21.7. tc06-1518B-4c-ethip4ipsec1tnlhw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=${1518}  phy_cores=${4}

10.2.21.8. tc10-IMIX-1c-ethip4ipsec1tnlhw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${1}

10.2.21.9. tc11-IMIX-2c-ethip4ipsec1tnlhw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${2}

10.2.21.10. tc12-IMIX-4c-ethip4ipsec1tnlhw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${4}

10.2.22. 10ge2p1x710-ethip4ipsec1tnlhw-ip4base-int-aes128cbc-hmac512sha-ndrpdr suite

RFC2544: Pkt throughput IPv4 IPsec tunnel mode.

[Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes. [Enc] Packet Encapsulations: Eth-IPv4 on TG-DUTn, Eth-IPv4-IPSec on DUT1-DUT2 [Cfg] DUT configuration: DUT1 and DUT2 are configured with multiple IPsec tunnels between them. DUTs get IPv4 traffic from TG, encrypt it and send to another DUT, where packets are decrypted and sent back to TG [Ver] TG verification: TG finds and reports throughput NDR (Non DropRate) with zero packet loss tolerance and throughput PDR (Partial DropRate) with non-zero packet loss tolerance (LT) expressed in percentageof packets transmitted. NDR and PDR are discovered for differentEthernet L2 frame sizes using MLRsearch library.Test packets are generated by TG on links to DUTs. TG traffic profile contains two L3 flow-groups (flow-group per direction, number of flows per flow-group equals to number of IPSec tunnels) with all packets containing Ethernet header, IPv4 header with IP protocol=61 and static payload. MAC addresses are matching MAC addresses of the TG node interfaces. Incrementing of IP.dst (IPv4 destination address) field is applied to both streams. [Ref] Applicable standard specifications: RFC4303 and RFC2544.

# Copyright (c) 2019 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/shared/default.robot
| Resource | resources/libraries/robot/crypto/ipsec.robot
| ...
| Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDR
| ... | IP4FWD | IPSEC | IPSECHW | IPSECINT | NIC_Intel-X710 | BASE
| ... | AES_128_CBC | HMAC_SHA_512 | HMAC | AES
| ...
| Suite Setup | Setup suite single link | performance | ipsechw
| Suite Teardown | Tear down suite | performance
| Test Setup | Setup test
| Test Teardown | Tear down test | performance
| ...
| Test Template | Local Template
| ...
| 
*** Variables ***
| @{plugins_to_enable}= | dpdk_plugin.so | crypto_ia32_plugin.so
| ... | crypto_ipsecmb_plugin.so | crypto_openssl_plugin.so
| ${osi_layer}= | L3
| ${crypto_type}= | HW_DH895xcc
| ${nic_name}= | Intel-X710
| ${overhead}= | ${58}
| ${tg_if1_ip4}= | 192.168.10.2
| ${dut1_if1_ip4}= | 192.168.10.1
| ${dut1_if2_ip4}= | 100.0.0.1
| ${dut2_if1_ip4}= | 200.0.0.2
| ${dut2_if2_ip4}= | 192.168.20.1
| ${tg_if2_ip4}= | 192.168.20.2
| ${raddr_ip4}= | 20.0.0.0
| ${laddr_ip4}= | 10.0.0.0
| ${addr_range}= | ${24}
| ${n_tunnels}= | ${1}
# Traffic profile:
| ${traffic_profile}= | trex-sl-3n-ethip4-ip4dst${n_tunnels}

10.2.22.1. Local Template

[Cfg] DUT runs IPSec tunneling AES_128_CBC / HMAC_SHA_512 config. Each DUT uses ${phy_cores} physical core(s) for worker threads. [Ver] Measure NDR and PDR values using MLRsearch algorithm.Arguments: - frame_size - Framesize in Bytes in integer or string (IMIX_v4_1). Type: integer, string - phy_cores - Number of physical cores. Type: integer - rxq - Number of RX queues, default value: ${None}. Type: integer


Set Test Variable  \${frame_size}
${encr_alg}=  Crypto Alg AES CBC 128
${auth_alg}=  Integ Alg SHA 512 256
Given Add worker threads and rxqueues to all DUTs  ${phy_cores}  ${rxq}
  And Add PCI devices to all DUTs
  And Set Max Rate And Jumbo And Handle Multi Seg
  And Add cryptodev to all DUTs  ${phy_cores}
  And Apply startup configuration on all VPP DUTs
 When Initialize IPSec in 3-node circular topology
  And VPP IPsec Create Tunnel Interfaces  ${nodes}  ${dut1_if2_ip4}  ${dut2_if1_ip4}  ${dut1_if2}  ${dut2_if1}  ${n_tunnels}  ${encr_alg}  ${auth_alg}  ${laddr_ip4}  ${raddr_ip4}  ${addr_range}
 Then Find NDR and PDR intervals using optimized search

10.2.22.2. tc01-64B-1c-ethip4ipsec1tnlhw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=${64}  phy_cores=${1}

10.2.22.3. tc02-64B-2c-ethip4ipsec1tnlhw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=${64}  phy_cores=${2}

10.2.22.4. tc03-64B-4c-ethip4ipsec1tnlhw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=${64}  phy_cores=${4}

10.2.22.5. tc04-1518B-1c-ethip4ipsec1tnlhw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=${1518}  phy_cores=${1}

10.2.22.6. tc05-1518B-2c-ethip4ipsec1tnlhw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=${1518}  phy_cores=${2}

10.2.22.7. tc06-1518B-4c-ethip4ipsec1tnlhw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=${1518}  phy_cores=${4}

10.2.22.8. tc10-IMIX-1c-ethip4ipsec1tnlhw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${1}

10.2.22.9. tc11-IMIX-2c-ethip4ipsec1tnlhw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${2}

10.2.22.10. tc12-IMIX-4c-ethip4ipsec1tnlhw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${4}

10.2.23. 10ge2p1x710-ethip4ipsec1tnlhw-ip4base-int-aes128gcm-ndrpdr suite

RFC2544: Pkt throughput IPv4 IPsec tunnel mode.

[Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes. [Enc] Packet Encapsulations: Eth-IPv4 on TG-DUTn, Eth-IPv4-IPSec on DUT1-DUT2 [Cfg] DUT configuration: DUT1 and DUT2 are configured with multiple IPsec tunnels between them. DUTs get IPv4 traffic from TG, encrypt it and send to another DUT, where packets are decrypted and sent back to TG [Ver] TG verification: TG finds and reports throughput NDR (Non DropRate) with zero packet loss tolerance and throughput PDR (Partial DropRate) with non-zero packet loss tolerance (LT) expressed in percentageof packets transmitted. NDR and PDR are discovered for differentEthernet L2 frame sizes using MLRsearch library.Test packets are generated by TG on links to DUTs. TG traffic profile contains two L3 flow-groups (flow-group per direction, number of flows per flow-group equals to number of IPSec tunnels) with all packets containing Ethernet header, IPv4 header with IP protocol=61 and static payload. MAC addresses are matching MAC addresses of the TG node interfaces. Incrementing of IP.dst (IPv4 destination address) field is applied to both streams. [Ref] Applicable standard specifications: RFC4303 and RFC2544.

# Copyright (c) 2019 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/shared/default.robot
| Resource | resources/libraries/robot/crypto/ipsec.robot
| ...
| Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDR
| ... | IP4FWD | IPSEC | IPSECHW | IPSECINT | NIC_Intel-X710 | BASE
| ... | AES_128_GCM | AES
| ...
| Suite Setup | Setup suite single link | performance | ipsechw
| Suite Teardown | Tear down suite | performance
| Test Setup | Setup test
| Test Teardown | Tear down test | performance
| ...
| Test Template | Local Template
| ...
| 
*** Variables ***
| @{plugins_to_enable}= | dpdk_plugin.so | crypto_ia32_plugin.so
| ... | crypto_ipsecmb_plugin.so | crypto_openssl_plugin.so
| ${osi_layer}= | L3
| ${crypto_type}= | HW_DH895xcc
| ${nic_name}= | Intel-X710
| ${overhead}= | ${54}
| ${tg_if1_ip4}= | 192.168.10.2
| ${dut1_if1_ip4}= | 192.168.10.1
| ${dut1_if2_ip4}= | 100.0.0.1
| ${dut2_if1_ip4}= | 200.0.0.2
| ${dut2_if2_ip4}= | 192.168.20.1
| ${tg_if2_ip4}= | 192.168.20.2
| ${raddr_ip4}= | 20.0.0.0
| ${laddr_ip4}= | 10.0.0.0
| ${addr_range}= | ${24}
| ${n_tunnels}= | ${1}
# Traffic profile:
| ${traffic_profile}= | trex-sl-3n-ethip4-ip4dst${n_tunnels}

10.2.23.1. Local Template

[Cfg] DUT runs IPSec tunneling AES_128_GCM config. Each DUT uses ${phy_cores} physical core(s) for worker threads. [Ver] Measure NDR and PDR values using MLRsearch algorithm.Arguments: - frame_size - Framesize in Bytes in integer or string (IMIX_v4_1). Type: integer, string - phy_cores - Number of physical cores. Type: integer - rxq - Number of RX queues, default value: ${None}. Type: integer


Set Test Variable  \${frame_size}
${encr_alg}=  Crypto Alg AES GCM 128
${auth_alg}=  Set Variable  ${NONE}
${ipsec_proto}=  IPsec Proto ESP
Given Add worker threads and rxqueues to all DUTs  ${phy_cores}  ${rxq}
  And Add PCI devices to all DUTs
  And Set Max Rate And Jumbo And Handle Multi Seg
  And Add cryptodev to all DUTs  ${phy_cores}
  And Apply startup configuration on all VPP DUTs
  And VPP IPsec Select Backend  ${dut1}  ${ipsec_proto}  index=${1}
  And VPP IPsec Select Backend  ${dut2}  ${ipsec_proto}  index=${1}
 When Initialize IPSec in 3-node circular topology
  And VPP IPsec Create Tunnel Interfaces  ${nodes}  ${dut1_if2_ip4}  ${dut2_if1_ip4}  ${dut1_if2}  ${dut2_if1}  ${n_tunnels}  ${encr_alg}  ${auth_alg}  ${laddr_ip4}  ${raddr_ip4}  ${addr_range}
 Then Find NDR and PDR intervals using optimized search

10.2.23.2. tc01-64B-1c-ethip4ipsec1tnlhw-ip4base-int-aes128gcm-ndrpdr


frame_size=${64}  phy_cores=${1}

10.2.23.3. tc02-64B-2c-ethip4ipsec1tnlhw-ip4base-int-aes128gcm-ndrpdr


frame_size=${64}  phy_cores=${2}

10.2.23.4. tc03-64B-4c-ethip4ipsec1tnlhw-ip4base-int-aes128gcm-ndrpdr


frame_size=${64}  phy_cores=${4}

10.2.23.5. tc04-1518B-1c-ethip4ipsec1tnlhw-ip4base-int-aes128gcm-ndrpdr


frame_size=${1518}  phy_cores=${1}

10.2.23.6. tc05-1518B-2c-ethip4ipsec1tnlhw-ip4base-int-aes128gcm-ndrpdr


frame_size=${1518}  phy_cores=${2}

10.2.23.7. tc06-1518B-4c-ethip4ipsec1tnlhw-ip4base-int-aes128gcm-ndrpdr


frame_size=${1518}  phy_cores=${4}

10.2.23.8. tc10-IMIX-1c-ethip4ipsec1tnlhw-ip4base-int-aes128gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${1}

10.2.23.9. tc11-IMIX-2c-ethip4ipsec1tnlhw-ip4base-int-aes128gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${2}

10.2.23.10. tc12-IMIX-4c-ethip4ipsec1tnlhw-ip4base-int-aes128gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${4}

10.2.24. 10ge2p1x710-ethip4ipsec1tnlhw-ip4base-int-aes256gcm-ndrpdr suite

RFC2544: Pkt throughput IPv4 IPsec tunnel mode.

[Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes. [Enc] Packet Encapsulations: Eth-IPv4 on TG-DUTn, Eth-IPv4-IPSec on DUT1-DUT2 [Cfg] DUT configuration: DUT1 and DUT2 are configured with multiple IPsec tunnels between them. DUTs get IPv4 traffic from TG, encrypt it and send to another DUT, where packets are decrypted and sent back to TG [Ver] TG verification: TG finds and reports throughput NDR (Non DropRate) with zero packet loss tolerance and throughput PDR (Partial DropRate) with non-zero packet loss tolerance (LT) expressed in percentageof packets transmitted. NDR and PDR are discovered for differentEthernet L2 frame sizes using MLRsearch library.Test packets are generated by TG on links to DUTs. TG traffic profile contains two L3 flow-groups (flow-group per direction, number of flows per flow-group equals to number of IPSec tunnels) with all packets containing Ethernet header, IPv4 header with IP protocol=61 and static payload. MAC addresses are matching MAC addresses of the TG node interfaces. Incrementing of IP.dst (IPv4 destination address) field is applied to both streams. [Ref] Applicable standard specifications: RFC4303 and RFC2544.

# Copyright (c) 2019 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/shared/default.robot
| Resource | resources/libraries/robot/crypto/ipsec.robot
| ...
| Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDR
| ... | IP4FWD | IPSEC | IPSECHW | IPSECINT | NIC_Intel-X710 | BASE
| ... | AES_256_GCM | AES
| ...
| Suite Setup | Setup suite single link | performance | ipsechw
| Suite Teardown | Tear down suite | performance
| Test Setup | Setup test
| Test Teardown | Tear down test | performance
| ...
| Test Template | Local Template
| ...
| 
*** Variables ***
| @{plugins_to_enable}= | dpdk_plugin.so | crypto_ia32_plugin.so
| ... | crypto_ipsecmb_plugin.so | crypto_openssl_plugin.so
| ${osi_layer}= | L3
| ${crypto_type}= | HW_DH895xcc
| ${nic_name}= | Intel-X710
| ${overhead}= | ${54}
| ${tg_if1_ip4}= | 192.168.10.2
| ${dut1_if1_ip4}= | 192.168.10.1
| ${dut1_if2_ip4}= | 100.0.0.1
| ${dut2_if1_ip4}= | 200.0.0.2
| ${dut2_if2_ip4}= | 192.168.20.1
| ${tg_if2_ip4}= | 192.168.20.2
| ${raddr_ip4}= | 20.0.0.0
| ${laddr_ip4}= | 10.0.0.0
| ${addr_range}= | ${24}
| ${n_tunnels}= | ${1}
# Traffic profile:
| ${traffic_profile}= | trex-sl-3n-ethip4-ip4dst${n_tunnels}

10.2.24.1. Local Template

[Cfg] DUT runs IPSec tunneling AES_256_GCM config. Each DUT uses ${phy_cores} physical core(s) for worker threads. [Ver] Measure NDR and PDR values using MLRsearch algorithm.Arguments: - frame_size - Framesize in Bytes in integer or string (IMIX_v4_1). Type: integer, string - phy_cores - Number of physical cores. Type: integer - rxq - Number of RX queues, default value: ${None}. Type: integer


Set Test Variable  \${frame_size}
${encr_alg}=  Crypto Alg AES GCM 256
${auth_alg}=  Set Variable  ${NONE}
${ipsec_proto}=  IPsec Proto ESP
Given Add worker threads and rxqueues to all DUTs  ${phy_cores}  ${rxq}
  And Add PCI devices to all DUTs
  And Set Max Rate And Jumbo And Handle Multi Seg
  And Add cryptodev to all DUTs  ${phy_cores}
  And Apply startup configuration on all VPP DUTs
  And VPP IPsec Select Backend  ${dut1}  ${ipsec_proto}  index=${1}
  And VPP IPsec Select Backend  ${dut2}  ${ipsec_proto}  index=${1}
 When Initialize IPSec in 3-node circular topology
  And VPP IPsec Create Tunnel Interfaces  ${nodes}  ${dut1_if2_ip4}  ${dut2_if1_ip4}  ${dut1_if2}  ${dut2_if1}  ${n_tunnels}  ${encr_alg}  ${auth_alg}  ${laddr_ip4}  ${raddr_ip4}  ${addr_range}
 Then Find NDR and PDR intervals using optimized search

10.2.24.2. tc01-64B-1c-ethip4ipsec1tnlhw-ip4base-int-aes256gcm-ndrpdr


frame_size=${64}  phy_cores=${1}

10.2.24.3. tc02-64B-2c-ethip4ipsec1tnlhw-ip4base-int-aes256gcm-ndrpdr


frame_size=${64}  phy_cores=${2}

10.2.24.4. tc03-64B-4c-ethip4ipsec1tnlhw-ip4base-int-aes256gcm-ndrpdr


frame_size=${64}  phy_cores=${4}

10.2.24.5. tc04-1518B-1c-ethip4ipsec1tnlhw-ip4base-int-aes256gcm-ndrpdr


frame_size=${1518}  phy_cores=${1}

10.2.24.6. tc05-1518B-2c-ethip4ipsec1tnlhw-ip4base-int-aes256gcm-ndrpdr


frame_size=${1518}  phy_cores=${2}

10.2.24.7. tc06-1518B-4c-ethip4ipsec1tnlhw-ip4base-int-aes256gcm-ndrpdr


frame_size=${1518}  phy_cores=${4}

10.2.24.8. tc10-IMIX-1c-ethip4ipsec1tnlhw-ip4base-int-aes256gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${1}

10.2.24.9. tc11-IMIX-2c-ethip4ipsec1tnlhw-ip4base-int-aes256gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${2}

10.2.24.10. tc12-IMIX-4c-ethip4ipsec1tnlhw-ip4base-int-aes256gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${4}

10.2.25. 10ge2p1x710-ethip4ipsec1tnlhw-ip4base-policy-aes128cbc-hmac256sha-ndrpdr suite

IPv4 IPsec tunnel mode performance test suite.

[Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes. [Enc] Packet Encapsulations: Eth-IPv4 on TG-DUTn, Eth-IPv4-IPSec on DUT1-DUT2 [Cfg] DUT configuration: DUT1 and DUT2 are configured with multiple IPsec tunnels between them. DUTs get IPv4 traffic from TG, encrypt it and send to another DUT, where packets are decrypted and sent back to TG [Ver] TG verification: TG finds and reports throughput NDR (Non DropRate) with zero packet loss tolerance and throughput PDR (Partial DropRate) with non-zero packet loss tolerance (LT) expressed in percentageof packets transmitted. NDR and PDR are discovered for differentEthernet L2 frame sizes using MLRsearch library.TG traffic profile contains two L3 flow-groups (flow-group per direction, number of flows per flow-group equals to number of IPSec tunnels) with all packets containing Ethernet header, IPv4 header with IP protocol=61 and static payload. MAC addresses are matching MAC addresses of the TG node interfaces. Incrementing of IP.dst (IPv4 destination address) field is applied to both streams. [Ref] Applicable standard specifications: RFC4303 and RFC2544.

# Copyright (c) 2019 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/shared/default.robot
| Resource | resources/libraries/robot/crypto/ipsec.robot
| ...
| Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDR
| ... | IP4FWD | IPSEC | IPSECHW | IPSECTUN | NIC_Intel-X710 | BASE |
| ... | AES_128_CBC | HMAC_SHA_256 | HMAC | AES
| ...
| Suite Setup | Setup suite single link | performance | ipsechw
| Suite Teardown | Tear down suite | performance
| Test Setup | Setup test
| Test Teardown | Tear down test | performance
| ...
| Test Template | Local Template
| ...
| 
*** Variables ***
| @{plugins_to_enable}= | dpdk_plugin.so | crypto_ia32_plugin.so
| ... | crypto_ipsecmb_plugin.so | crypto_openssl_plugin.so
| ${osi_layer}= | L3
| ${crypto_type}= | HW_DH895xcc
| ${nic_name}= | Intel-X710
| ${overhead}= | ${58}
| ${tg_if1_ip4}= | 192.168.10.2
| ${dut1_if1_ip4}= | 192.168.10.1
| ${dut1_if2_ip4}= | 100.0.0.1
| ${dut2_if1_ip4}= | 100.0.0.2
| ${dut2_if2_ip4}= | 192.168.20.1
| ${tg_if2_ip4}= | 192.168.20.2
| ${raddr_ip4}= | 20.0.0.0
| ${laddr_ip4}= | 10.0.0.0
| ${addr_range}= | ${24}
| ${n_tunnels}= | ${1}
# Traffic profile:
| ${traffic_profile}= | trex-sl-3n-ethip4-ip4dst${n_tunnels}

10.2.25.1. Local Template

[Cfg] DUTs run 1 IPsec tunnel AES_CBC_128 / HMAC_256_SHA in each direction.Each DUT uses ${phy_cores} physical core(s) for worker threads. [Ver] Measure NDR and PDR values using MLRsearch algorithm.Arguments: - frame_size - Framesize in Bytes in integer or string (IMIX_v4_1). Type: integer, string - phy_cores - Number of physical cores. Type: integer - rxq - Number of RX queues, default value: ${None}. Type: integer


Set Test Variable  \${frame_size}
${encr_alg}=  Crypto Alg AES CBC 128
${auth_alg}=  Integ Alg SHA 256 128
Given Add worker threads and rxqueues to all DUTs  ${phy_cores}  ${rxq}
  And Add PCI devices to all DUTs
  And Set Max Rate And Jumbo And Handle Multi Seg
  And Add cryptodev to all DUTs  ${phy_cores}
  And Apply startup configuration on all VPP DUTs
 When Initialize IPSec in 3-node circular topology
  And VPP IPsec Add Multiple Tunnels  ${nodes}  ${dut1_if2}  ${dut2_if1}  ${n_tunnels}  ${encr_alg}  ${auth_alg}  ${dut1_if2_ip4}  ${dut2_if1_ip4}  ${laddr_ip4}  ${raddr_ip4}  ${addr_range}
 Then Find NDR and PDR intervals using optimized search

10.2.25.2. tc01-64B-1c-ethip4ipsec1tnlhw-ip4base-policy-aes128cbc-hmac256sha-ndrpdr


frame_size=${64}  phy_cores=${1}

10.2.25.3. tc02-64B-2c-ethip4ipsec1tnlhw-ip4base-policy-aes128cbc-hmac256sha-ndrpdr


frame_size=${64}  phy_cores=${2}

10.2.25.4. tc03-64B-4c-ethip4ipsec1tnlhw-ip4base-policy-aes128cbc-hmac256sha-ndrpdr


frame_size=${64}  phy_cores=${4}

10.2.25.5. tc04-1518B-1c-ethip4ipsec1tnlhw-ip4base-policy-aes128cbc-hmac256sha-ndrpdr


frame_size=${1518}  phy_cores=${1}

10.2.25.6. tc05-1518B-2c-ethip4ipsec1tnlhw-ip4base-policy-aes128cbc-hmac256sha-ndrpdr


frame_size=${1518}  phy_cores=${2}

10.2.25.7. tc06-1518B-4c-ethip4ipsec1tnlhw-ip4base-policy-aes128cbc-hmac256sha-ndrpdr


frame_size=${1518}  phy_cores=${4}

10.2.25.8. tc10-IMIX-1c-ethip4ipsec1tnlhw-ip4base-policy-aes128cbc-hmac256sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${1}

10.2.25.9. tc11-IMIX-2c-ethip4ipsec1tnlhw-ip4base-policy-aes128cbc-hmac256sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${2}

10.2.25.10. tc12-IMIX-4c-ethip4ipsec1tnlhw-ip4base-policy-aes128cbc-hmac256sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${4}

10.2.26. 10ge2p1x710-ethip4ipsec1tnlhw-ip4base-policy-aes128cbc-hmac512sha-ndrpdr suite

IPv4 IPsec tunnel mode performance test suite.

[Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes. [Enc] Packet Encapsulations: Eth-IPv4 on TG-DUTn, Eth-IPv4-IPSec on DUT1-DUT2 [Cfg] DUT configuration: DUT1 and DUT2 are configured with multiple IPsec tunnels between them. DUTs get IPv4 traffic from TG, encrypt it and send to another DUT, where packets are decrypted and sent back to TG [Ver] TG verification: TG finds and reports throughput NDR (Non DropRate) with zero packet loss tolerance and throughput PDR (Partial DropRate) with non-zero packet loss tolerance (LT) expressed in percentageof packets transmitted. NDR and PDR are discovered for differentEthernet L2 frame sizes using MLRsearch library.TG traffic profile contains two L3 flow-groups (flow-group per direction, number of flows per flow-group equals to number of IPSec tunnels) with all packets containing Ethernet header, IPv4 header with IP protocol=61 and static payload. MAC addresses are matching MAC addresses of the TG node interfaces. Incrementing of IP.dst (IPv4 destination address) field is applied to both streams. [Ref] Applicable standard specifications: RFC4303 and RFC2544.

# Copyright (c) 2019 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/shared/default.robot
| Resource | resources/libraries/robot/crypto/ipsec.robot
| ...
| Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDR
| ... | IP4FWD | IPSEC | IPSECHW | IPSECTUN | NIC_Intel-X710 | BASE |
| ... | AES_128_CBC | HMAC_SHA_512 | HMAC | AES
| ...
| Suite Setup | Setup suite single link | performance | ipsechw
| Suite Teardown | Tear down suite | performance
| Test Setup | Setup test
| Test Teardown | Tear down test | performance
| ...
| Test Template | Local Template
| ...
| 
*** Variables ***
| @{plugins_to_enable}= | dpdk_plugin.so | crypto_ia32_plugin.so
| ... | crypto_ipsecmb_plugin.so | crypto_openssl_plugin.so
| ${osi_layer}= | L3
| ${crypto_type}= | HW_DH895xcc
| ${nic_name}= | Intel-X710
| ${overhead}= | ${58}
| ${tg_if1_ip4}= | 192.168.10.2
| ${dut1_if1_ip4}= | 192.168.10.1
| ${dut1_if2_ip4}= | 100.0.0.1
| ${dut2_if1_ip4}= | 100.0.0.2
| ${dut2_if2_ip4}= | 192.168.20.1
| ${tg_if2_ip4}= | 192.168.20.2
| ${raddr_ip4}= | 20.0.0.0
| ${laddr_ip4}= | 10.0.0.0
| ${addr_range}= | ${24}
| ${n_tunnels}= | ${1}
# Traffic profile:
| ${traffic_profile}= | trex-sl-3n-ethip4-ip4dst${n_tunnels}

10.2.26.1. Local Template

[Cfg] DUTs run 1 IPsec tunnel AES_CBC_128 / HMAC_512_SHA in each direction.Each DUT uses ${phy_cores} physical core(s) for worker threads. [Ver] Measure NDR and PDR values using MLRsearch algorithm.Arguments: - frame_size - Framesize in Bytes in integer or string (IMIX_v4_1). Type: integer, string - phy_cores - Number of physical cores. Type: integer - rxq - Number of RX queues, default value: ${None}. Type: integer


Set Test Variable  \${frame_size}
${encr_alg}=  Crypto Alg AES CBC 128
${auth_alg}=  Integ Alg SHA 512 256
Given Add worker threads and rxqueues to all DUTs  ${phy_cores}  ${rxq}
  And Add PCI devices to all DUTs
  And Set Max Rate And Jumbo And Handle Multi Seg
  And Add cryptodev to all DUTs  ${phy_cores}
  And Apply startup configuration on all VPP DUTs
 When Initialize IPSec in 3-node circular topology
  And VPP IPsec Add Multiple Tunnels  ${nodes}  ${dut1_if2}  ${dut2_if1}  ${n_tunnels}  ${encr_alg}  ${auth_alg}  ${dut1_if2_ip4}  ${dut2_if1_ip4}  ${laddr_ip4}  ${raddr_ip4}  ${addr_range}
 Then Find NDR and PDR intervals using optimized search

10.2.26.2. tc01-64B-1c-ethip4ipsec1tnlhw-ip4base-policy-aes128cbc-hmac512sha-ndrpdr


frame_size=${64}  phy_cores=${1}

10.2.26.3. tc02-64B-2c-ethip4ipsec1tnlhw-ip4base-policy-aes128cbc-hmac512sha-ndrpdr


frame_size=${64}  phy_cores=${2}

10.2.26.4. tc03-64B-4c-ethip4ipsec1tnlhw-ip4base-policy-aes128cbc-hmac512sha-ndrpdr


frame_size=${64}  phy_cores=${4}

10.2.26.5. tc04-1518B-1c-ethip4ipsec1tnlhw-ip4base-policy-aes128cbc-hmac512sha-ndrpdr


frame_size=${1518}  phy_cores=${1}

10.2.26.6. tc05-1518B-2c-ethip4ipsec1tnlhw-ip4base-policy-aes128cbc-hmac512sha-ndrpdr


frame_size=${1518}  phy_cores=${2}

10.2.26.7. tc06-1518B-4c-ethip4ipsec1tnlhw-ip4base-policy-aes128cbc-hmac512sha-ndrpdr


frame_size=${1518}  phy_cores=${4}

10.2.26.8. tc10-IMIX-1c-ethip4ipsec1tnlhw-ip4base-policy-aes128cbc-hmac512sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${1}

10.2.26.9. tc11-IMIX-2c-ethip4ipsec1tnlhw-ip4base-policy-aes128cbc-hmac512sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${2}

10.2.26.10. tc12-IMIX-4c-ethip4ipsec1tnlhw-ip4base-policy-aes128cbc-hmac512sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${4}

10.2.27. 10ge2p1x710-ethip4ipsec1tnlhw-ip4base-policy-aes128gcm-ndrpdr suite

IPv4 IPsec tunnel mode performance test suite.

[Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes. [Enc] Packet Encapsulations: Eth-IPv4 on TG-DUTn, Eth-IPv4-IPSec on DUT1-DUT2 [Cfg] DUT configuration: DUT1 and DUT2 are configured with multiple IPsec tunnels between them. DUTs get IPv4 traffic from TG, encrypt it and send to another DUT, where packets are decrypted and sent back to TG [Ver] TG verification: TG finds and reports throughput NDR (Non DropRate) with zero packet loss tolerance and throughput PDR (Partial DropRate) with non-zero packet loss tolerance (LT) expressed in percentageof packets transmitted. NDR and PDR are discovered for differentEthernet L2 frame sizes using MLRsearch library.Test packets are generated by TG on links to DUTs. TG traffic profile contains two L3 flow-groups (flow-group per direction, number of flows per flow-group equals to number of IPSec tunnels) with all packets containing Ethernet header, IPv4 header with IP protocol=61 and static payload. MAC addresses are matching MAC addresses of the TG node interfaces. Incrementing of IP.dst (IPv4 destination address) field is applied to both streams. [Ref] Applicable standard specifications: RFC4303 and RFC2544.

# Copyright (c) 2019 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/shared/default.robot
| Resource | resources/libraries/robot/crypto/ipsec.robot
| ...
| Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDR
| ... | IP4FWD | IPSEC | IPSECHW | IPSECTUN | NIC_Intel-X710 | BASE
| ... | AES_128_GCM | AES
| ...
| Suite Setup | Setup suite single link | performance | ipsechw
| Suite Teardown | Tear down suite | performance
| Test Setup | Setup test
| Test Teardown | Tear down test | performance
| ...
| Test Template | Local Template
| ...
| 
*** Variables ***
| @{plugins_to_enable}= | dpdk_plugin.so | crypto_ia32_plugin.so
| ... | crypto_ipsecmb_plugin.so | crypto_openssl_plugin.so
| ${osi_layer}= | L3
| ${crypto_type}= | HW_DH895xcc
| ${nic_name}= | Intel-X710
| ${overhead}= | ${54}
| ${tg_if1_ip4}= | 192.168.10.2
| ${dut1_if1_ip4}= | 192.168.10.1
| ${dut1_if2_ip4}= | 100.0.0.1
| ${dut2_if1_ip4}= | 100.0.0.2
| ${dut2_if2_ip4}= | 192.168.20.1
| ${tg_if2_ip4}= | 192.168.20.2
| ${raddr_ip4}= | 20.0.0.0
| ${laddr_ip4}= | 10.0.0.0
| ${addr_range}= | ${24}
| ${n_tunnels}= | ${1}
# Traffic profile:
| ${traffic_profile}= | trex-sl-3n-ethip4-ip4dst${n_tunnels}

10.2.27.1. Local Template

[Cfg] DUTs run 1 IPsec tunnel AES_128_GCM in each direction.Each DUT uses ${phy_cores} physical core(s) for worker threads. [Ver] Measure NDR and PDR values using MLRsearch algorithm.Arguments: - frame_size - Framesize in Bytes in integer or string (IMIX_v4_1). Type: integer, string - phy_cores - Number of physical cores. Type: integer - rxq - Number of RX queues, default value: ${None}. Type: integer


Set Test Variable  \${frame_size}
${encr_alg}=  Crypto Alg AES GCM 128
${auth_alg}=  Set Variable  ${NONE}
${ipsec_proto}=  IPsec Proto ESP
Given Add worker threads and rxqueues to all DUTs  ${phy_cores}  ${rxq}
  And Add PCI devices to all DUTs
  And Set Max Rate And Jumbo And Handle Multi Seg
  And Add cryptodev to all DUTs  ${phy_cores}
  And Apply startup configuration on all VPP DUTs
  And VPP IPsec Select Backend  ${dut1}  ${ipsec_proto}  index=${1}
  And VPP IPsec Select Backend  ${dut2}  ${ipsec_proto}  index=${1}
 When Initialize IPSec in 3-node circular topology
  And VPP IPsec Add Multiple Tunnels  ${nodes}  ${dut1_if2}  ${dut2_if1}  ${n_tunnels}  ${encr_alg}  ${auth_alg}  ${dut1_if2_ip4}  ${dut2_if1_ip4}  ${laddr_ip4}  ${raddr_ip4}  ${addr_range}
 Then Find NDR and PDR intervals using optimized search

10.2.27.2. tc01-64B-1c-ethip4ipsec1tnlhw-ip4base-policy-aes128gcm-ndrpdr


frame_size=${64}  phy_cores=${1}

10.2.27.3. tc02-64B-2c-ethip4ipsec1tnlhw-ip4base-policy-aes128gcm-ndrpdr


frame_size=${64}  phy_cores=${2}

10.2.27.4. tc03-64B-4c-ethip4ipsec1tnlhw-ip4base-policy-aes128gcm-ndrpdr


frame_size=${64}  phy_cores=${4}

10.2.27.5. tc04-1518B-1c-ethip4ipsec1tnlhw-ip4base-policy-aes128gcm-ndrpdr


frame_size=${1518}  phy_cores=${1}

10.2.27.6. tc05-1518B-2c-ethip4ipsec1tnlhw-ip4base-policy-aes128gcm-ndrpdr


frame_size=${1518}  phy_cores=${2}

10.2.27.7. tc06-1518B-4c-ethip4ipsec1tnlhw-ip4base-policy-aes128gcm-ndrpdr


frame_size=${1518}  phy_cores=${4}

10.2.27.8. tc10-IMIX-1c-ethip4ipsec1tnlhw-ip4base-policy-aes128gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${1}

10.2.27.9. tc11-IMIX-2c-ethip4ipsec1tnlhw-ip4base-policy-aes128gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${2}

10.2.27.10. tc12-IMIX-4c-ethip4ipsec1tnlhw-ip4base-policy-aes128gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${4}

10.2.28. 10ge2p1x710-ethip4ipsec1tnlhw-ip4base-policy-aes256gcm-ndrpdr suite

IPv4 IPsec tunnel mode performance test suite.

[Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes. [Enc] Packet Encapsulations: Eth-IPv4 on TG-DUTn, Eth-IPv4-IPSec on DUT1-DUT2 [Cfg] DUT configuration: DUT1 and DUT2 are configured with multiple IPsec tunnels between them. DUTs get IPv4 traffic from TG, encrypt it and send to another DUT, where packets are decrypted and sent back to TG [Ver] TG verification: TG finds and reports throughput NDR (Non DropRate) with zero packet loss tolerance and throughput PDR (Partial DropRate) with non-zero packet loss tolerance (LT) expressed in percentageof packets transmitted. NDR and PDR are discovered for differentEthernet L2 frame sizes using MLRsearch library.Test packets are generated by TG on links to DUTs. TG traffic profile contains two L3 flow-groups (flow-group per direction, number of flows per flow-group equals to number of IPSec tunnels) with all packets containing Ethernet header, IPv4 header with IP protocol=61 and static payload. MAC addresses are matching MAC addresses of the TG node interfaces. Incrementing of IP.dst (IPv4 destination address) field is applied to both streams. [Ref] Applicable standard specifications: RFC4303 and RFC2544.

# Copyright (c) 2019 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/shared/default.robot
| Resource | resources/libraries/robot/crypto/ipsec.robot
| ...
| Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDR
| ... | IP4FWD | IPSEC | IPSECHW | IPSECTUN | NIC_Intel-X710 | BASE
| ... | AES_256_GCM | AES
| ...
| Suite Setup | Setup suite single link | performance | ipsechw
| Suite Teardown | Tear down suite | performance
| Test Setup | Setup test
| Test Teardown | Tear down test | performance
| ...
| Test Template | Local Template
| ...
| 
*** Variables ***
| @{plugins_to_enable}= | dpdk_plugin.so | crypto_ia32_plugin.so
| ... | crypto_ipsecmb_plugin.so | crypto_openssl_plugin.so
| ${osi_layer}= | L3
| ${crypto_type}= | HW_DH895xcc
| ${nic_name}= | Intel-X710
| ${overhead}= | ${54}
| ${tg_if1_ip4}= | 192.168.10.2
| ${dut1_if1_ip4}= | 192.168.10.1
| ${dut1_if2_ip4}= | 100.0.0.1
| ${dut2_if1_ip4}= | 100.0.0.2
| ${dut2_if2_ip4}= | 192.168.20.1
| ${tg_if2_ip4}= | 192.168.20.2
| ${raddr_ip4}= | 20.0.0.0
| ${laddr_ip4}= | 10.0.0.0
| ${addr_range}= | ${24}
| ${n_tunnels}= | ${1}
# Traffic profile:
| ${traffic_profile}= | trex-sl-3n-ethip4-ip4dst${n_tunnels}

10.2.28.1. Local Template

[Cfg] DUTs run 1 IPsec tunnel AES_256_GCM in each direction.Each DUT uses ${phy_cores} physical core(s) for worker threads. [Ver] Measure NDR and PDR values using MLRsearch algorithm.Arguments: - frame_size - Framesize in Bytes in integer or string (IMIX_v4_1). Type: integer, string - phy_cores - Number of physical cores. Type: integer - rxq - Number of RX queues, default value: ${None}. Type: integer


Set Test Variable  \${frame_size}
${encr_alg}=  Crypto Alg AES GCM 256
${auth_alg}=  Set Variable  ${NONE}
${ipsec_proto}=  IPsec Proto ESP
Given Add worker threads and rxqueues to all DUTs  ${phy_cores}  ${rxq}
  And Add PCI devices to all DUTs
  And Set Max Rate And Jumbo And Handle Multi Seg
  And Add cryptodev to all DUTs  ${phy_cores}
  And Apply startup configuration on all VPP DUTs
  And VPP IPsec Select Backend  ${dut1}  ${ipsec_proto}  index=${1}
  And VPP IPsec Select Backend  ${dut2}  ${ipsec_proto}  index=${1}
 When Initialize IPSec in 3-node circular topology
  And VPP IPsec Add Multiple Tunnels  ${nodes}  ${dut1_if2}  ${dut2_if1}  ${n_tunnels}  ${encr_alg}  ${auth_alg}  ${dut1_if2_ip4}  ${dut2_if1_ip4}  ${laddr_ip4}  ${raddr_ip4}  ${addr_range}
 Then Find NDR and PDR intervals using optimized search

10.2.28.2. tc01-64B-1c-ethip4ipsec1tnlhw-ip4base-policy-aes256gcm-ndrpdr


frame_size=${64}  phy_cores=${1}

10.2.28.3. tc02-64B-2c-ethip4ipsec1tnlhw-ip4base-policy-aes256gcm-ndrpdr


frame_size=${64}  phy_cores=${2}

10.2.28.4. tc03-64B-4c-ethip4ipsec1tnlhw-ip4base-policy-aes256gcm-ndrpdr


frame_size=${64}  phy_cores=${4}

10.2.28.5. tc04-1518B-1c-ethip4ipsec1tnlhw-ip4base-policy-aes256gcm-ndrpdr


frame_size=${1518}  phy_cores=${1}

10.2.28.6. tc05-1518B-2c-ethip4ipsec1tnlhw-ip4base-policy-aes256gcm-ndrpdr


frame_size=${1518}  phy_cores=${2}

10.2.28.7. tc06-1518B-4c-ethip4ipsec1tnlhw-ip4base-policy-aes256gcm-ndrpdr


frame_size=${1518}  phy_cores=${4}

10.2.28.8. tc10-IMIX-1c-ethip4ipsec1tnlhw-ip4base-policy-aes256gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${1}

10.2.28.9. tc11-IMIX-2c-ethip4ipsec1tnlhw-ip4base-policy-aes256gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${2}

10.2.28.10. tc12-IMIX-4c-ethip4ipsec1tnlhw-ip4base-policy-aes256gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${4}

10.2.29. 10ge2p1x710-ethip4ipsec1tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr suite

RFC2544: Pkt throughput IPv4 IPsec tunnel mode.

[Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes. [Enc] Packet Encapsulations: Eth-IPv4 on TG-DUTn, Eth-IPv4-IPSec on DUT1-DUT2 [Cfg] DUT configuration: DUT1 and DUT2 are configured with multipleIPsec tunnels between them. DUTs get IPv4 traffic from TG, encrypt itand send to another DUT, where packets are decrypted and sent back to TG [Ver] TG verification: TG finds and reports throughput NDR (Non DropRate) with zero packet loss tolerance and throughput PDR (Partial DropRate) with non-zero packet loss tolerance (LT) expressed in percentageof packets transmitted. NDR and PDR are discovered for differentEthernet L2 frame sizes using MLRsearch library.Test packets are generated by TG on links to DUTs. TG traffic profile contains two L3 flow-groups (flow-group per direction, number of flows per flow-group equals to number of IPSec tunnels) with all packets containing Ethernet header, IPv4 header with IP protocol=61 and static payload. MAC addresses are matching MAC addresses of the TG node interfaces. Incrementing of IP.dst (IPv4 destination address) field is applied to both streams. [Ref] Applicable standard specifications: RFC4303 and RFC2544.

# Copyright (c) 2019 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/shared/default.robot
| Resource | resources/libraries/robot/crypto/ipsec.robot
| ...
| Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDR
| ... | IP4FWD | IPSEC | IPSECSW | IPSECINT | NIC_Intel-X710 | BASE
| ... | AES_128_CBC | HMAC_SHA_256 | HMAC | AES
| ...
| Suite Setup | Setup suite single link | performance
| Suite Teardown | Tear down suite | performance
| Test Setup | Setup test
| Test Teardown | Tear down test | performance
| ...
| Test Template | Local Template
| ...
| 
*** Variables ***
| @{plugins_to_enable}= | dpdk_plugin.so | crypto_ia32_plugin.so
| ... | crypto_ipsecmb_plugin.so | crypto_openssl_plugin.so
| ${osi_layer}= | L3
| ${nic_name}= | Intel-X710
| ${overhead}= | ${58}
| ${tg_if1_ip4}= | 192.168.10.2
| ${dut1_if1_ip4}= | 192.168.10.1
| ${dut1_if2_ip4}= | 100.0.0.1
| ${dut2_if1_ip4}= | 200.0.0.2
| ${dut2_if2_ip4}= | 192.168.20.1
| ${tg_if2_ip4}= | 192.168.20.2
| ${raddr_ip4}= | 20.0.0.0
| ${laddr_ip4}= | 10.0.0.0
| ${addr_range}= | ${24}
| ${n_tunnels}= | ${1}
# Traffic profile:
| ${traffic_profile}= | trex-sl-3n-ethip4-ip4dst${n_tunnels}

10.2.29.1. Local Template

[Cfg] DUT runs IPSec tunneling AES_128_CBC / HMAC_SHA_256 config.Each DUT uses ${phy_cores} physical core(s) for worker threads. [Ver] Measure NDR and PDR values using MLRsearch algorithm.Arguments: - frame_size - Framesize in Bytes in integer or string (IMIX_v4_1). Type: integer, string - phy_cores - Number of physical cores. Type: integer - rxq - Number of RX queues, default value: ${None}. Type: integer


Set Test Variable  \${frame_size}
${encr_alg}=  Crypto Alg AES CBC 128
${auth_alg}=  Integ Alg SHA 256 128
Given Add worker threads and rxqueues to all DUTs  ${phy_cores}  ${rxq}
  And Add PCI devices to all DUTs
  And Set Max Rate And Jumbo And Handle Multi Seg
  And Apply startup configuration on all VPP DUTs
 When Initialize IPSec in 3-node circular topology
  And VPP IPsec Create Tunnel Interfaces  ${nodes}  ${dut1_if2_ip4}  ${dut2_if1_ip4}  ${dut1_if2}  ${dut2_if1}  ${n_tunnels}  ${encr_alg}  ${auth_alg}  ${laddr_ip4}  ${raddr_ip4}  ${addr_range}
 Then Find NDR and PDR intervals using optimized search

10.2.29.2. tc01-64B-1c-ethip4ipsec1tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=${64}  phy_cores=${1}

10.2.29.3. tc02-64B-2c-ethip4ipsec1tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=${64}  phy_cores=${2}

10.2.29.4. tc03-64B-4c-ethip4ipsec1tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=${64}  phy_cores=${4}

10.2.29.5. tc04-1518B-1c-ethip4ipsec1tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=${1518}  phy_cores=${1}

10.2.29.6. tc05-1518B-2c-ethip4ipsec1tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=${1518}  phy_cores=${2}

10.2.29.7. tc06-1518B-4c-ethip4ipsec1tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=${1518}  phy_cores=${4}

10.2.29.8. tc10-IMIX-1c-ethip4ipsec1tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${1}

10.2.29.9. tc11-IMIX-2c-ethip4ipsec1tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${2}

10.2.29.10. tc12-IMIX-4c-ethip4ipsec1tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${4}

10.2.30. 10ge2p1x710-ethip4ipsec1tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr suite

RFC2544: Pkt throughput IPv4 IPsec tunnel mode.

[Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes. [Enc] Packet Encapsulations: Eth-IPv4 on TG-DUTn, Eth-IPv4-IPSec on DUT1-DUT2 [Cfg] DUT configuration: DUT1 and DUT2 are configured with multipleIPsec tunnels between them. DUTs get IPv4 traffic from TG, encrypt itand send to another DUT, where packets are decrypted and sent back to TG [Ver] TG verification: TG finds and reports throughput NDR (Non DropRate) with zero packet loss tolerance and throughput PDR (Partial DropRate) with non-zero packet loss tolerance (LT) expressed in percentageof packets transmitted. NDR and PDR are discovered for differentEthernet L2 frame sizes using MLRsearch library.Test packets are generated by TG on links to DUTs. TG traffic profile contains two L3 flow-groups (flow-group per direction, number of flows per flow-group equals to number of IPSec tunnels) with all packets containing Ethernet header, IPv4 header with IP protocol=61 and static payload. MAC addresses are matching MAC addresses of the TG node interfaces. Incrementing of IP.dst (IPv4 destination address) field is applied to both streams. [Ref] Applicable standard specifications: RFC4303 and RFC2544.

# Copyright (c) 2019 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/shared/default.robot
| Resource | resources/libraries/robot/crypto/ipsec.robot
| ...
| Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDR
| ... | IP4FWD | IPSEC | IPSECSW | IPSECINT | NIC_Intel-X710 | BASE
| ... | AES_128_CBC | HMAC_SHA_512 | HMAC | AES
| ...
| Suite Setup | Setup suite single link | performance
| Suite Teardown | Tear down suite | performance
| Test Setup | Setup test
| Test Teardown | Tear down test | performance
| ...
| Test Template | Local Template
| ...
| 
*** Variables ***
| @{plugins_to_enable}= | dpdk_plugin.so | crypto_ia32_plugin.so
| ... | crypto_ipsecmb_plugin.so | crypto_openssl_plugin.so
| ${osi_layer}= | L3
| ${nic_name}= | Intel-X710
| ${overhead}= | ${58}
| ${tg_if1_ip4}= | 192.168.10.2
| ${dut1_if1_ip4}= | 192.168.10.1
| ${dut1_if2_ip4}= | 100.0.0.1
| ${dut2_if1_ip4}= | 200.0.0.2
| ${dut2_if2_ip4}= | 192.168.20.1
| ${tg_if2_ip4}= | 192.168.20.2
| ${raddr_ip4}= | 20.0.0.0
| ${laddr_ip4}= | 10.0.0.0
| ${addr_range}= | ${24}
| ${n_tunnels}= | ${1}
# Traffic profile:
| ${traffic_profile}= | trex-sl-3n-ethip4-ip4dst${n_tunnels}

10.2.30.1. Local Template

[Cfg] DUT runs IPSec tunneling AES_128_CBC / HMAC_SHA_512 config.Each DUT uses ${phy_cores} physical core(s) for worker threads. [Ver] Measure NDR and PDR values using MLRsearch algorithm.Arguments: - frame_size - Framesize in Bytes in integer or string (IMIX_v4_1). Type: integer, string - phy_cores - Number of physical cores. Type: integer - rxq - Number of RX queues, default value: ${None}. Type: integer


Set Test Variable  \${frame_size}
${encr_alg}=  Crypto Alg AES CBC 128
${auth_alg}=  Integ Alg SHA 512 256
Given Add worker threads and rxqueues to all DUTs  ${phy_cores}  ${rxq}
  And Add PCI devices to all DUTs
  And Set Max Rate And Jumbo And Handle Multi Seg
  And Apply startup configuration on all VPP DUTs
 When Initialize IPSec in 3-node circular topology
  And VPP IPsec Create Tunnel Interfaces  ${nodes}  ${dut1_if2_ip4}  ${dut2_if1_ip4}  ${dut1_if2}  ${dut2_if1}  ${n_tunnels}  ${encr_alg}  ${auth_alg}  ${laddr_ip4}  ${raddr_ip4}  ${addr_range}
 Then Find NDR and PDR intervals using optimized search

10.2.30.2. tc01-64B-1c-ethip4ipsec1tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=${64}  phy_cores=${1}

10.2.30.3. tc02-64B-2c-ethip4ipsec1tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=${64}  phy_cores=${2}

10.2.30.4. tc03-64B-4c-ethip4ipsec1tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=${64}  phy_cores=${4}

10.2.30.5. tc04-1518B-1c-ethip4ipsec1tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=${1518}  phy_cores=${1}

10.2.30.6. tc05-1518B-2c-ethip4ipsec1tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=${1518}  phy_cores=${2}

10.2.30.7. tc06-1518B-4c-ethip4ipsec1tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=${1518}  phy_cores=${4}

10.2.30.8. tc10-IMIX-1c-ethip4ipsec1tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${1}

10.2.30.9. tc11-IMIX-2c-ethip4ipsec1tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${2}

10.2.30.10. tc12-IMIX-4c-ethip4ipsec1tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${4}

10.2.31. 10ge2p1x710-ethip4ipsec1tnlsw-ip4base-int-aes128gcm-ndrpdr suite

RFC2544: Pkt throughput IPv4 IPsec tunnel mode.

[Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes. [Enc] Packet Encapsulations: Eth-IPv4 on TG-DUTn, Eth-IPv4-IPSec on DUT1-DUT2 [Cfg] DUT configuration: DUT1 and DUT2 are configured with multipleIPsec tunnels between them. DUTs get IPv4 traffic from TG, encrypt itand send to another DUT, where packets are decrypted and sent back to TG [Ver] TG verification: TG finds and reports throughput NDR (Non DropRate) with zero packet loss tolerance and throughput PDR (Partial DropRate) with non-zero packet loss tolerance (LT) expressed in percentageof packets transmitted. NDR and PDR are discovered for differentEthernet L2 frame sizes using MLRsearch library.Test packets are generated by TG on links to DUTs. TG traffic profile contains two L3 flow-groups (flow-group per direction, number of flows per flow-group equals to number of IPSec tunnels) with all packets containing Ethernet header, IPv4 header with IP protocol=61 and static payload. MAC addresses are matching MAC addresses of the TG node interfaces. Incrementing of IP.dst (IPv4 destination address) field is applied to both streams. [Ref] Applicable standard specifications: RFC4303 and RFC2544.

# Copyright (c) 2019 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/shared/default.robot
| Resource | resources/libraries/robot/crypto/ipsec.robot
| ...
| Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDR
| ... | IP4FWD | IPSEC | IPSECSW | IPSECINT | NIC_Intel-X710 | BASE
| ... | AES_128_GCM | AES
| ...
| Suite Setup | Setup suite single link | performance
| Suite Teardown | Tear down suite | performance
| Test Setup | Setup test
| Test Teardown | Tear down test | performance
| ...
| Test Template | Local Template
| ...
| 
*** Variables ***
| @{plugins_to_enable}= | dpdk_plugin.so | crypto_ia32_plugin.so
| ... | crypto_ipsecmb_plugin.so | crypto_openssl_plugin.so
| ${osi_layer}= | L3
| ${nic_name}= | Intel-X710
| ${overhead}= | ${54}
| ${tg_if1_ip4}= | 192.168.10.2
| ${dut1_if1_ip4}= | 192.168.10.1
| ${dut1_if2_ip4}= | 100.0.0.1
| ${dut2_if1_ip4}= | 200.0.0.2
| ${dut2_if2_ip4}= | 192.168.20.1
| ${tg_if2_ip4}= | 192.168.20.2
| ${raddr_ip4}= | 20.0.0.0
| ${laddr_ip4}= | 10.0.0.0
| ${addr_range}= | ${24}
| ${n_tunnels}= | ${1}
# Traffic profile:
| ${traffic_profile}= | trex-sl-3n-ethip4-ip4dst${n_tunnels}

10.2.31.1. Local Template

[Cfg] DUT runs IPSec tunneling AES_128_GCM config.Each DUT uses ${phy_cores} physical core(s) for worker threads. [Ver] Measure NDR and PDR values using MLRsearch algorithm.Arguments: - frame_size - Framesize in Bytes in integer or string (IMIX_v4_1). Type: integer, string - phy_cores - Number of physical cores. Type: integer - rxq - Number of RX queues, default value: ${None}. Type: integer


Set Test Variable  \${frame_size}
${encr_alg} =  Crypto Alg AES GCM 128
${auth_alg} =  Set Variable  ${NONE}
${ipsec_proto} =  IPsec Proto ESP
Given Add worker threads and rxqueues to all DUTs  ${phy_cores}  ${rxq}
  And Add PCI devices to all DUTs
  And Set Max Rate And Jumbo And Handle Multi Seg
  And Apply startup configuration on all VPP DUTs
 When Initialize IPSec in 3-node circular topology
  And VPP IPsec Create Tunnel Interfaces  ${nodes}  ${dut1_if2_ip4}  ${dut2_if1_ip4}  ${dut1_if2}  ${dut2_if1}  ${n_tunnels}  ${encr_alg}  ${auth_alg}  ${laddr_ip4}  ${raddr_ip4}  ${addr_range}
 Then Find NDR and PDR intervals using optimized search

10.2.31.2. tc01-64B-1c-ethip4ipsec1tnlsw-ip4base-int-aes128gcm-ndrpdr


frame_size=${64}  phy_cores=${1}

10.2.31.3. tc02-64B-2c-ethip4ipsec1tnlsw-ip4base-int-aes128gcm-ndrpdr


frame_size=${64}  phy_cores=${2}

10.2.31.4. tc03-64B-4c-ethip4ipsec1tnlsw-ip4base-int-aes128gcm-ndrpdr


frame_size=${64}  phy_cores=${4}

10.2.31.5. tc04-1518B-1c-ethip4ipsec1tnlsw-ip4base-int-aes128gcm-ndrpdr


frame_size=${1518}  phy_cores=${1}

10.2.31.6. tc05-1518B-2c-ethip4ipsec1tnlsw-ip4base-int-aes128gcm-ndrpdr


frame_size=${1518}  phy_cores=${2}

10.2.31.7. tc06-1518B-4c-ethip4ipsec1tnlsw-ip4base-int-aes128gcm-ndrpdr


frame_size=${1518}  phy_cores=${4}

10.2.31.8. tc10-IMIX-1c-ethip4ipsec1tnlsw-ip4base-int-aes128gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${1}

10.2.31.9. tc11-IMIX-2c-ethip4ipsec1tnlsw-ip4base-int-aes128gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${2}

10.2.31.10. tc12-IMIX-4c-ethip4ipsec1tnlsw-ip4base-int-aes128gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${4}

10.2.32. 10ge2p1x710-ethip4ipsec1tnlsw-ip4base-int-aes256gcm-ndrpdr suite

RFC2544: Pkt throughput IPv4 IPsec tunnel mode.

[Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes. [Enc] Packet Encapsulations: Eth-IPv4 on TG-DUTn, Eth-IPv4-IPSec on DUT1-DUT2 [Cfg] DUT configuration: DUT1 and DUT2 are configured with multipleIPsec tunnels between them. DUTs get IPv4 traffic from TG, encrypt itand send to another DUT, where packets are decrypted and sent back to TG [Ver] TG verification: TG finds and reports throughput NDR (Non DropRate) with zero packet loss tolerance and throughput PDR (Partial DropRate) with non-zero packet loss tolerance (LT) expressed in percentageof packets transmitted. NDR and PDR are discovered for differentEthernet L2 frame sizes using MLRsearch library.Test packets are generated by TG on links to DUTs. TG traffic profile contains two L3 flow-groups (flow-group per direction, number of flows per flow-group equals to number of IPSec tunnels) with all packets containing Ethernet header, IPv4 header with IP protocol=61 and static payload. MAC addresses are matching MAC addresses of the TG node interfaces. Incrementing of IP.dst (IPv4 destination address) field is applied to both streams. [Ref] Applicable standard specifications: RFC4303 and RFC2544.

# Copyright (c) 2019 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/shared/default.robot
| Resource | resources/libraries/robot/crypto/ipsec.robot
| ...
| Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDR
| ... | IP4FWD | IPSEC | IPSECSW | IPSECINT | NIC_Intel-X710 | BASE
| ... | AES_256_GCM | AES
| ...
| Suite Setup | Setup suite single link | performance
| Suite Teardown | Tear down suite | performance
| Test Setup | Setup test
| Test Teardown | Tear down test | performance
| ...
| Test Template | Local Template
| ...
| 
*** Variables ***
| @{plugins_to_enable}= | dpdk_plugin.so | crypto_ia32_plugin.so
| ... | crypto_ipsecmb_plugin.so | crypto_openssl_plugin.so
| ${osi_layer}= | L3
| ${nic_name}= | Intel-X710
| ${overhead}= | ${54}
| ${tg_if1_ip4}= | 192.168.10.2
| ${dut1_if1_ip4}= | 192.168.10.1
| ${dut1_if2_ip4}= | 100.0.0.1
| ${dut2_if1_ip4}= | 200.0.0.2
| ${dut2_if2_ip4}= | 192.168.20.1
| ${tg_if2_ip4}= | 192.168.20.2
| ${raddr_ip4}= | 20.0.0.0
| ${laddr_ip4}= | 10.0.0.0
| ${addr_range}= | ${24}
| ${n_tunnels}= | ${1}
# Traffic profile:
| ${traffic_profile}= | trex-sl-3n-ethip4-ip4dst${n_tunnels}

10.2.32.1. Local Template

[Cfg] DUT runs IPSec tunneling AES_256_GCM config.Each DUT uses ${phy_cores} physical core(s) for worker threads.[Ver] Measure NDR and PDR values using MLRsearch algorithm.Arguments: - frame_size - Framesize in Bytes in integer or string (IMIX_v4_1). Type: integer, string - phy_cores - Number of physical cores. Type: integer - rxq - Number of RX queues, default value: ${None}. Type: integer


Set Test Variable  \${frame_size}
${encr_alg} =  Crypto Alg AES GCM 256
${auth_alg} =  Set Variable  ${NONE}
${ipsec_proto} =  IPsec Proto ESP
Given Add worker threads and rxqueues to all DUTs  ${phy_cores}  ${rxq}
  And Add PCI devices to all DUTs
  And Set Max Rate And Jumbo And Handle Multi Seg
  And Apply startup configuration on all VPP DUTs
 When Initialize IPSec in 3-node circular topology
  And VPP IPsec Create Tunnel Interfaces  ${nodes}  ${dut1_if2_ip4}  ${dut2_if1_ip4}  ${dut1_if2}  ${dut2_if1}  ${n_tunnels}  ${encr_alg}  ${auth_alg}  ${laddr_ip4}  ${raddr_ip4}  ${addr_range}
 Then Find NDR and PDR intervals using optimized search

10.2.32.2. tc01-64B-1c-ethip4ipsec1tnlsw-ip4base-int-aes256gcm-ndrpdr


frame_size=${64}  phy_cores=${1}

10.2.32.3. tc02-64B-2c-ethip4ipsec1tnlsw-ip4base-int-aes256gcm-ndrpdr


frame_size=${64}  phy_cores=${2}

10.2.32.4. tc03-64B-4c-ethip4ipsec1tnlsw-ip4base-int-aes256gcm-ndrpdr


frame_size=${64}  phy_cores=${4}

10.2.32.5. tc04-1518B-1c-ethip4ipsec1tnlsw-ip4base-int-aes256gcm-ndrpdr


frame_size=${1518}  phy_cores=${1}

10.2.32.6. tc05-1518B-2c-ethip4ipsec1tnlsw-ip4base-int-aes256gcm-ndrpdr


frame_size=${1518}  phy_cores=${2}

10.2.32.7. tc06-1518B-4c-ethip4ipsec1tnlsw-ip4base-int-aes256gcm-ndrpdr


frame_size=${1518}  phy_cores=${4}

10.2.32.8. tc10-IMIX-1c-ethip4ipsec1tnlsw-ip4base-int-aes256gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${1}

10.2.32.9. tc11-IMIX-2c-ethip4ipsec1tnlsw-ip4base-int-aes256gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${2}

10.2.32.10. tc12-IMIX-4c-ethip4ipsec1tnlsw-ip4base-int-aes256gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${4}

10.2.33. 10ge2p1x710-ethip4ipsec1tnlsw-ip4base-policy-aes128cbc-hmac256sha-ndrpdr suite

IPv4 IPsec tunnel mode performance test suite.

[Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes. [Enc] Packet Encapsulations: Eth-IPv4 on TG-DUTn, Eth-IPv4-IPSec on DUT1-DUT2 [Cfg] DUT configuration: DUT1 and DUT2 are configured with multipleIPsec tunnels between them. DUTs get IPv4 traffic from TG, encrypt itand send to another DUT, where packets are decrypted and sent back to TG [Ver] TG verification: TG finds and reports throughput NDR (Non DropRate) with zero packet loss tolerance and throughput PDR (Partial DropRate) with non-zero packet loss tolerance (LT) expressed in percentageof packets transmitted. NDR and PDR are discovered for differentEthernet L2 frame sizes using MLRsearch library.Test packets are generated by TG on links to DUTs. TG traffic profile contains two L3 flow-groups (flow-group per direction, number of flows per flow-group equals to number of IPSec tunnels) with all packets containing Ethernet header, IPv4 header with IP protocol=61 and static payload. MAC addresses are matching MAC addresses of the TG node interfaces. Incrementing of IP.dst (IPv4 destination address) field is applied to both streams. [Ref] Applicable standard specifications: RFC4303 and RFC2544.

# Copyright (c) 2019 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/shared/default.robot
| Resource | resources/libraries/robot/crypto/ipsec.robot
| ...
| Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDR
| ... | IP4FWD | IPSEC | IPSECSW | IPSECTUN | NIC_Intel-X710 | BASE
| ... | AES_128_CBC | HMAC_SHA_256 | HMAC | AES
| ...
| Suite Setup | Setup suite single link | performance
| Suite Teardown | Tear down suite | performance
| Test Setup | Setup test
| Test Teardown | Tear down test | performance
| ...
| Test Template | Local Template
| ...
| 
*** Variables ***
| @{plugins_to_enable}= | dpdk_plugin.so | crypto_ia32_plugin.so
| ... | crypto_ipsecmb_plugin.so | crypto_openssl_plugin.so
| ${osi_layer}= | L3
| ${nic_name}= | Intel-X710
| ${overhead}= | ${58}
| ${tg_if1_ip4}= | 192.168.10.2
| ${dut1_if1_ip4}= | 192.168.10.1
| ${dut1_if2_ip4}= | 100.0.0.1
| ${dut2_if1_ip4}= | 100.0.0.2
| ${dut2_if2_ip4}= | 192.168.20.1
| ${tg_if2_ip4}= | 192.168.20.2
| ${raddr_ip4}= | 20.0.0.0
| ${laddr_ip4}= | 10.0.0.0
| ${addr_range}= | ${24}
| ${n_tunnels}= | ${1}
# Traffic profile:
| ${traffic_profile}= | trex-sl-3n-ethip4-ip4dst${n_tunnels}

10.2.33.1. Local Template

[Cfg] DUT runs IPSec tunneling AES_128_CBC / HMAC_SHA_256 config.Each DUT uses ${phy_cores} physical core(s) for worker threads. [Ver] Measure NDR and PDR values using MLRsearch algorithm.Arguments: - frame_size - Framesize in Bytes in integer or string (IMIX_v4_1). Type: integer, string - phy_cores - Number of physical cores. Type: integer - search_type - NDR or PDR. Type: string - rxq - Number of RX queues, default value: ${None}. Type: integer - min_rate - Min rate for binary search, default value: ${50000}. Type: integer


Set Test Variable  \${frame_size}
${encr_alg}=  Crypto Alg AES CBC 128
${auth_alg}=  Integ Alg SHA 256 128
Given Add worker threads and rxqueues to all DUTs  ${phy_cores}  ${rxq}
  And Add PCI devices to all DUTs
  And Set Max Rate And Jumbo And Handle Multi Seg
  And Apply startup configuration on all VPP DUTs
 When Initialize IPSec in 3-node circular topology
  And VPP IPsec Add Multiple Tunnels  ${nodes}  ${dut1_if2}  ${dut2_if1}  ${n_tunnels}  ${encr_alg}  ${auth_alg}  ${dut1_if2_ip4}  ${dut2_if1_ip4}  ${laddr_ip4}  ${raddr_ip4}  ${addr_range}
 Then Find NDR and PDR intervals using optimized search

10.2.33.2. tc01-64B-1c-ethip4ipsec1tnlsw-ip4base-policy-aes128cbc-hmac256sha-ndrpdr


frame_size=${64}  phy_cores=${1}

10.2.33.3. tc02-64B-2c-ethip4ipsec1tnlsw-ip4base-policy-aes128cbc-hmac256sha-ndrpdr


frame_size=${64}  phy_cores=${2}

10.2.33.4. tc03-64B-4c-ethip4ipsec1tnlsw-ip4base-policy-aes128cbc-hmac256sha-ndrpdr


frame_size=${64}  phy_cores=${4}

10.2.33.5. tc04-1518B-1c-ethip4ipsec1tnlsw-ip4base-policy-aes128cbc-hmac256sha-ndrpdr


frame_size=${1518}  phy_cores=${1}

10.2.33.6. tc05-1518B-2c-ethip4ipsec1tnlsw-ip4base-policy-aes128cbc-hmac256sha-ndrpdr


frame_size=${1518}  phy_cores=${2}

10.2.33.7. tc06-1518B-4c-ethip4ipsec1tnlsw-ip4base-policy-aes128cbc-hmac256sha-ndrpdr


frame_size=${1518}  phy_cores=${4}

10.2.33.8. tc10-IMIX-1c-ethip4ipsec1tnlsw-ip4base-policy-aes128cbc-hmac256sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${1}

10.2.33.9. tc11-IMIX-2c-ethip4ipsec1tnlsw-ip4base-policy-aes128cbc-hmac256sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${2}

10.2.33.10. tc12-IMIX-4c-ethip4ipsec1tnlsw-ip4base-policy-aes128cbc-hmac256sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${4}

10.2.34. 10ge2p1x710-ethip4ipsec1tnlsw-ip4base-policy-aes128cbc-hmac512sha-ndrpdr suite

IPv4 IPsec tunnel mode performance test suite.

[Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes. [Enc] Packet Encapsulations: Eth-IPv4 on TG-DUTn, Eth-IPv4-IPSec on DUT1-DUT2 [Cfg] DUT configuration: DUT1 and DUT2 are configured with multipleIPsec tunnels between them. DUTs get IPv4 traffic from TG, encrypt itand send to another DUT, where packets are decrypted and sent back to TG [Ver] TG verification: TG finds and reports throughput NDR (Non DropRate) with zero packet loss tolerance and throughput PDR (Partial DropRate) with non-zero packet loss tolerance (LT) expressed in percentageof packets transmitted. NDR and PDR are discovered for differentEthernet L2 frame sizes using MLRsearch library.Test packets are generated by TG on links to DUTs. TG traffic profile contains two L3 flow-groups (flow-group per direction, number of flows per flow-group equals to number of IPSec tunnels) with all packets containing Ethernet header, IPv4 header with IP protocol=61 and static payload. MAC addresses are matching MAC addresses of the TG node interfaces. Incrementing of IP.dst (IPv4 destination address) field is applied to both streams. [Ref] Applicable standard specifications: RFC4303 and RFC2544.

# Copyright (c) 2019 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/shared/default.robot
| Resource | resources/libraries/robot/crypto/ipsec.robot
| ...
| Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDR
| ... | IP4FWD | IPSEC | IPSECSW | IPSECTUN | NIC_Intel-X710 | BASE
| ... | AES_128_CBC | HMAC_SHA_512 | HMAC | AES
| ...
| Suite Setup | Setup suite single link | performance
| Suite Teardown | Tear down suite | performance
| Test Setup | Setup test
| Test Teardown | Tear down test | performance
| ...
| Test Template | Local Template
| ...
| 
*** Variables ***
| @{plugins_to_enable}= | dpdk_plugin.so | crypto_ia32_plugin.so
| ... | crypto_ipsecmb_plugin.so | crypto_openssl_plugin.so
| ${osi_layer}= | L3
| ${nic_name}= | Intel-X710
| ${overhead}= | ${58}
| ${tg_if1_ip4}= | 192.168.10.2
| ${dut1_if1_ip4}= | 192.168.10.1
| ${dut1_if2_ip4}= | 100.0.0.1
| ${dut2_if1_ip4}= | 100.0.0.2
| ${dut2_if2_ip4}= | 192.168.20.1
| ${tg_if2_ip4}= | 192.168.20.2
| ${raddr_ip4}= | 20.0.0.0
| ${laddr_ip4}= | 10.0.0.0
| ${addr_range}= | ${24}
| ${n_tunnels}= | ${1}
# Traffic profile:
| ${traffic_profile}= | trex-sl-3n-ethip4-ip4dst${n_tunnels}

10.2.34.1. Local Template

[Cfg] DUT runs IPSec tunneling AES_128_CBC / HMAC_SHA_512 config.Each DUT uses ${phy_cores} physical core(s) for worker threads. [Ver] Measure NDR and PDR values using MLRsearch algorithm.Arguments: - frame_size - Framesize in Bytes in integer or string (IMIX_v4_1). Type: integer, string - phy_cores - Number of physical cores. Type: integer - search_type - NDR or PDR. Type: string - rxq - Number of RX queues, default value: ${None}. Type: integer - min_rate - Min rate for binary search, default value: ${50000}. Type: integer


Set Test Variable  \${frame_size}
${encr_alg}=  Crypto Alg AES CBC 128
${auth_alg}=  Integ Alg SHA 512 256
Given Add worker threads and rxqueues to all DUTs  ${phy_cores}  ${rxq}
  And Add PCI devices to all DUTs
  And Set Max Rate And Jumbo And Handle Multi Seg
  And Apply startup configuration on all VPP DUTs
 When Initialize IPSec in 3-node circular topology
  And VPP IPsec Add Multiple Tunnels  ${nodes}  ${dut1_if2}  ${dut2_if1}  ${n_tunnels}  ${encr_alg}  ${auth_alg}  ${dut1_if2_ip4}  ${dut2_if1_ip4}  ${laddr_ip4}  ${raddr_ip4}  ${addr_range}
 Then Find NDR and PDR intervals using optimized search

10.2.34.2. tc01-64B-1c-ethip4ipsec1tnlsw-ip4base-policy-aes128cbc-hmac512sha-ndrpdr


frame_size=${64}  phy_cores=${1}

10.2.34.3. tc02-64B-2c-ethip4ipsec1tnlsw-ip4base-policy-aes128cbc-hmac512sha-ndrpdr


frame_size=${64}  phy_cores=${2}

10.2.34.4. tc03-64B-4c-ethip4ipsec1tnlsw-ip4base-policy-aes128cbc-hmac512sha-ndrpdr


frame_size=${64}  phy_cores=${4}

10.2.34.5. tc04-1518B-1c-ethip4ipsec1tnlsw-ip4base-policy-aes128cbc-hmac512sha-ndrpdr


frame_size=${1518}  phy_cores=${1}

10.2.34.6. tc05-1518B-2c-ethip4ipsec1tnlsw-ip4base-policy-aes128cbc-hmac512sha-ndrpdr


frame_size=${1518}  phy_cores=${2}

10.2.34.7. tc06-1518B-4c-ethip4ipsec1tnlsw-ip4base-policy-aes128cbc-hmac512sha-ndrpdr


frame_size=${1518}  phy_cores=${4}

10.2.34.8. tc10-IMIX-1c-ethip4ipsec1tnlsw-ip4base-policy-aes128cbc-hmac512sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${1}

10.2.34.9. tc11-IMIX-2c-ethip4ipsec1tnlsw-ip4base-policy-aes128cbc-hmac512sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${2}

10.2.34.10. tc12-IMIX-4c-ethip4ipsec1tnlsw-ip4base-policy-aes128cbc-hmac512sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${4}

10.2.35. 10ge2p1x710-ethip4ipsec1tnlsw-ip4base-policy-aes128gcm-ndrpdr suite

IPv4 IPsec tunnel mode performance test suite.

[Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes. [Enc] Packet Encapsulations: Eth-IPv4 on TG-DUTn, Eth-IPv4-IPSec on DUT1-DUT2 [Cfg] DUT configuration: DUT1 and DUT2 are configured with multipleIPsec tunnels between them. DUTs get IPv4 traffic from TG, encrypt itand send to another DUT, where packets are decrypted and sent back to TG [Ver] TG verification: TG finds and reports throughput NDR (Non DropRate) with zero packet loss tolerance and throughput PDR (Partial DropRate) with non-zero packet loss tolerance (LT) expressed in percentageof packets transmitted. NDR and PDR are discovered for differentEthernet L2 frame sizes using MLRsearch library.Test packets are generated by TG on links to DUTs. TG traffic profile contains two L3 flow-groups (flow-group per direction, number of flows per flow-group equals to number of IPSec tunnels) with all packets containing Ethernet header, IPv4 header with IP protocol=61 and static payload. MAC addresses are matching MAC addresses of the TG node interfaces. Incrementing of IP.dst (IPv4 destination address) field is applied to both streams. [Ref] Applicable standard specifications: RFC4303 and RFC2544.

# Copyright (c) 2019 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/shared/default.robot
| Resource | resources/libraries/robot/crypto/ipsec.robot
| ...
| Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDR
| ... | IP4FWD | IPSEC | IPSECSW | IPSECTUN | NIC_Intel-X710 | BASE
| ... | AES_128_GCM | AES
| ...
| Suite Setup | Setup suite single link | performance
| Suite Teardown | Tear down suite | performance
| Test Setup | Setup test
| Test Teardown | Tear down test | performance
| ...
| Test Template | Local Template
| ...
| 
*** Variables ***
| @{plugins_to_enable}= | dpdk_plugin.so | crypto_ia32_plugin.so
| ... | crypto_ipsecmb_plugin.so | crypto_openssl_plugin.so
| ${osi_layer}= | L3
| ${nic_name}= | Intel-X710
| ${overhead}= | ${54}
| ${tg_if1_ip4}= | 192.168.10.2
| ${dut1_if1_ip4}= | 192.168.10.1
| ${dut1_if2_ip4}= | 100.0.0.1
| ${dut2_if1_ip4}= | 100.0.0.2
| ${dut2_if2_ip4}= | 192.168.20.1
| ${tg_if2_ip4}= | 192.168.20.2
| ${raddr_ip4}= | 20.0.0.0
| ${laddr_ip4}= | 10.0.0.0
| ${addr_range}= | ${24}
| ${n_tunnels}= | ${1}
# Traffic profile:
| ${traffic_profile}= | trex-sl-3n-ethip4-ip4dst${n_tunnels}

10.2.35.1. Local Template

[Cfg] DUT runs IPSec tunneling AES_256_GCM config.Each DUT uses ${phy_cores} physical core(s) for worker threads. [Ver] Measure NDR and PDR values using MLRsearch algorithm.Arguments: - frame_size - Framesize in Bytes in integer or string (IMIX_v4_1). Type: integer, string - phy_cores - Number of physical cores. Type: integer - search_type - NDR or PDR. Type: string - rxq - Number of RX queues, default value: ${None}. Type: integer - min_rate - Min rate for binary search, default value: ${50000}. Type: integer


Set Test Variable  \${frame_size}
${encr_alg}=  Crypto Alg AES GCM 128
${auth_alg}=  Set Variable  ${NONE}
${ipsec_proto}=  IPsec Proto ESP
Given Add worker threads and rxqueues to all DUTs  ${phy_cores}  ${rxq}
  And Add PCI devices to all DUTs
  And Set Max Rate And Jumbo And Handle Multi Seg
  And Apply startup configuration on all VPP DUTs
 When Initialize IPSec in 3-node circular topology
  And VPP IPsec Add Multiple Tunnels  ${nodes}  ${dut1_if2}  ${dut2_if1}  ${n_tunnels}  ${encr_alg}  ${auth_alg}  ${dut1_if2_ip4}  ${dut2_if1_ip4}  ${laddr_ip4}  ${raddr_ip4}  ${addr_range}
 Then Find NDR and PDR intervals using optimized search

10.2.35.2. tc01-64B-1c-ethip4ipsec1tnlsw-ip4base-policy-aes128gcm-ndrpdr


frame_size=${64}  phy_cores=${1}

10.2.35.3. tc02-64B-2c-ethip4ipsec1tnlsw-ip4base-policy-aes128gcm-ndrpdr


frame_size=${64}  phy_cores=${2}

10.2.35.4. tc03-64B-4c-ethip4ipsec1tnlsw-ip4base-policy-aes128gcm-ndrpdr


frame_size=${64}  phy_cores=${4}

10.2.35.5. tc04-1518B-1c-ethip4ipsec1tnlsw-ip4base-policy-aes128gcm-ndrpdr


frame_size=${1518}  phy_cores=${1}

10.2.35.6. tc05-1518B-2c-ethip4ipsec1tnlsw-ip4base-policy-aes128gcm-ndrpdr


frame_size=${1518}  phy_cores=${2}

10.2.35.7. tc06-1518B-4c-ethip4ipsec1tnlsw-ip4base-policy-aes128gcm-ndrpdr


frame_size=${1518}  phy_cores=${4}

10.2.35.8. tc10-IMIX-1c-ethip4ipsec1tnlsw-ip4base-policy-aes128gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${1}

10.2.35.9. tc11-IMIX-2c-ethip4ipsec1tnlsw-ip4base-policy-aes128gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${2}

10.2.35.10. tc12-IMIX-4c-ethip4ipsec1tnlsw-ip4base-policy-aes128gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${4}

10.2.36. 10ge2p1x710-ethip4ipsec1tnlsw-ip4base-policy-aes256gcm-ndrpdr suite

IPv4 IPsec tunnel mode performance test suite.

[Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes. [Enc] Packet Encapsulations: Eth-IPv4 on TG-DUTn, Eth-IPv4-IPSec on DUT1-DUT2 [Cfg] DUT configuration: DUT1 and DUT2 are configured with multipleIPsec tunnels between them. DUTs get IPv4 traffic from TG, encrypt itand send to another DUT, where packets are decrypted and sent back to TG [Ver] TG verification: TG finds and reports throughput NDR (Non DropRate) with zero packet loss tolerance and throughput PDR (Partial DropRate) with non-zero packet loss tolerance (LT) expressed in percentageof packets transmitted. NDR and PDR are discovered for differentEthernet L2 frame sizes using MLRsearch library.Test packets are generated by TG on links to DUTs. TG traffic profile contains two L3 flow-groups (flow-group per direction, number of flows per flow-group equals to number of IPSec tunnels) with all packets containing Ethernet header, IPv4 header with IP protocol=61 and static payload. MAC addresses are matching MAC addresses of the TG node interfaces. Incrementing of IP.dst (IPv4 destination address) field is applied to both streams. [Ref] Applicable standard specifications: RFC4303 and RFC2544.

# Copyright (c) 2019 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/shared/default.robot
| Resource | resources/libraries/robot/crypto/ipsec.robot
| ...
| Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDR
| ... | IP4FWD | IPSEC | IPSECSW | IPSECTUN | NIC_Intel-X710 | BASE
| ... | AES_256_GCM | AES
| ...
| Suite Setup | Setup suite single link | performance
| Suite Teardown | Tear down suite | performance
| Test Setup | Setup test
| Test Teardown | Tear down test | performance
| ...
| Test Template | Local Template
| ...
| 
*** Variables ***
| @{plugins_to_enable}= | dpdk_plugin.so | crypto_ia32_plugin.so
| ... | crypto_ipsecmb_plugin.so | crypto_openssl_plugin.so
| ${osi_layer}= | L3
| ${nic_name}= | Intel-X710
| ${overhead}= | ${54}
| ${tg_if1_ip4}= | 192.168.10.2
| ${dut1_if1_ip4}= | 192.168.10.1
| ${dut1_if2_ip4}= | 100.0.0.1
| ${dut2_if1_ip4}= | 100.0.0.2
| ${dut2_if2_ip4}= | 192.168.20.1
| ${tg_if2_ip4}= | 192.168.20.2
| ${raddr_ip4}= | 20.0.0.0
| ${laddr_ip4}= | 10.0.0.0
| ${addr_range}= | ${24}
| ${n_tunnels}= | ${1}
# Traffic profile:
| ${traffic_profile}= | trex-sl-3n-ethip4-ip4dst${n_tunnels}

10.2.36.1. Local Template

[Cfg] DUT runs IPSec tunneling AES_256_GCM config.Each DUT uses ${phy_cores} physical core(s) for worker threads. [Ver] Measure NDR and PDR values using MLRsearch algorithm.Arguments: - frame_size - Framesize in Bytes in integer or string (IMIX_v4_1). Type: integer, string - phy_cores - Number of physical cores. Type: integer - search_type - NDR or PDR. Type: string - rxq - Number of RX queues, default value: ${None}. Type: integer - min_rate - Min rate for binary search, default value: ${50000}. Type: integer


Set Test Variable  \${frame_size}
${encr_alg}=  Crypto Alg AES GCM 256
${auth_alg}=  Set Variable  ${NONE}
${ipsec_proto}=  IPsec Proto ESP
Given Add worker threads and rxqueues to all DUTs  ${phy_cores}  ${rxq}
  And Add PCI devices to all DUTs
  And Set Max Rate And Jumbo And Handle Multi Seg
  And Apply startup configuration on all VPP DUTs
 When Initialize IPSec in 3-node circular topology
  And VPP IPsec Add Multiple Tunnels  ${nodes}  ${dut1_if2}  ${dut2_if1}  ${n_tunnels}  ${encr_alg}  ${auth_alg}  ${dut1_if2_ip4}  ${dut2_if1_ip4}  ${laddr_ip4}  ${raddr_ip4}  ${addr_range}
 Then Find NDR and PDR intervals using optimized search

10.2.36.2. tc01-64B-1c-ethip4ipsec1tnlsw-ip4base-policy-aes256gcm-ndrpdr


frame_size=${64}  phy_cores=${1}

10.2.36.3. tc02-64B-2c-ethip4ipsec1tnlsw-ip4base-policy-aes256gcm-ndrpdr


frame_size=${64}  phy_cores=${2}

10.2.36.4. tc03-64B-4c-ethip4ipsec1tnlsw-ip4base-policy-aes256gcm-ndrpdr


frame_size=${64}  phy_cores=${4}

10.2.36.5. tc04-1518B-1c-ethip4ipsec1tnlsw-ip4base-policy-aes256gcm-ndrpdr


frame_size=${1518}  phy_cores=${1}

10.2.36.6. tc05-1518B-2c-ethip4ipsec1tnlsw-ip4base-policy-aes256gcm-ndrpdr


frame_size=${1518}  phy_cores=${2}

10.2.36.7. tc06-1518B-4c-ethip4ipsec1tnlsw-ip4base-policy-aes256gcm-ndrpdr


frame_size=${1518}  phy_cores=${4}

10.2.36.8. tc10-IMIX-1c-ethip4ipsec1tnlsw-ip4base-policy-aes256gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${1}

10.2.36.9. tc11-IMIX-2c-ethip4ipsec1tnlsw-ip4base-policy-aes256gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${2}

10.2.36.10. tc12-IMIX-4c-ethip4ipsec1tnlsw-ip4base-policy-aes256gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${4}

10.2.37. 10ge2p1x710-ethip4ipsec20000tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr suite

RFC2544: Pkt throughput IPv4 IPsec tunnel mode.

[Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes. [Enc] Packet Encapsulations: Eth-IPv4 on TG-DUTn, Eth-IPv4-IPSec on DUT1-DUT2 [Cfg] DUT configuration: DUT1 and DUT2 are configured with multipleIPsec tunnels between them. DUTs get IPv4 traffic from TG, encrypt itand send to another DUT, where packets are decrypted and sent back to TG [Ver] TG verification: TG finds and reports throughput NDR (Non DropRate) with zero packet loss tolerance and throughput PDR (Partial DropRate) with non-zero packet loss tolerance (LT) expressed in percentageof packets transmitted. NDR and PDR are discovered for differentEthernet L2 frame sizes using MLRsearch library.Test packets are generated by TG on links to DUTs. TG traffic profile contains two L3 flow-groups (flow-group per direction, number of flows per flow-group equals to number of IPSec tunnels) with all packets containing Ethernet header, IPv4 header with IP protocol=61 and static payload. MAC addresses are matching MAC addresses of the TG node interfaces. Incrementing of IP.dst (IPv4 destination address) field is applied to both streams. [Ref] Applicable standard specifications: RFC4303 and RFC2544.

# Copyright (c) 2019 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/shared/default.robot
| Resource | resources/libraries/robot/crypto/ipsec.robot
| ...
| Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDR | TNL_20000
| ... | IP4FWD | IPSEC | IPSECSW | IPSECINT | NIC_Intel-X710 | SCALE
| ... | AES_128_CBC | HMAC_SHA_256 | HMAC | AES
| ...
| Suite Setup | Setup suite single link | performance
| Suite Teardown | Tear down suite | performance
| Test Setup | Setup test
| Test Teardown | Tear down test | performance
| ...
| Test Template | Local Template
| ...
| 
*** Variables ***
| @{plugins_to_enable}= | dpdk_plugin.so | crypto_ia32_plugin.so
| ... | crypto_ipsecmb_plugin.so | crypto_openssl_plugin.so
| ${osi_layer}= | L3
| ${nic_name}= | Intel-X710
| ${overhead}= | ${54}
| ${tg_if1_ip4}= | 192.168.10.2
| ${dut1_if1_ip4}= | 192.168.10.1
| ${dut1_if2_ip4}= | 100.0.0.1
| ${dut2_if1_ip4}= | 200.0.0.2
| ${dut2_if2_ip4}= | 192.168.20.1
| ${tg_if2_ip4}= | 192.168.20.2
| ${raddr_ip4}= | 20.0.0.0
| ${laddr_ip4}= | 10.0.0.0
| ${addr_range}= | ${24}
| ${n_tunnels}= | ${20000}
# Traffic profile:
| ${traffic_profile}= | trex-sl-3n-ethip4-ip4dst${n_tunnels}

10.2.37.1. Local Template

[Cfg] DUT runs IPSec tunneling AES_128_CBC / HMAC_SHA_256 config. Each DUT uses ${phy_cores} physical core(s) for worker threads. [Ver] Measure NDR and PDR values using MLRsearch algorithm.Arguments: - frame_size - Framesize in Bytes in integer or string (IMIX_v4_1). Type: integer, string - phy_cores - Number of physical cores. Type: integer - rxq - Number of RX queues, default value: ${None}. Type: integer


Set Test Variable  \${frame_size}
${encr_alg}=  Crypto Alg AES CBC 128
${auth_alg}=  Set Variable  ${NONE}
Given Add worker threads and rxqueues to all DUTs  ${phy_cores}  ${rxq}
  And Add PCI devices to all DUTs
  And Set Max Rate And Jumbo And Handle Multi Seg
  And Apply startup configuration on all VPP DUTs
  And Initialize IPSec in 3-node circular topology
  And VPP IPsec Create Tunnel Interfaces  ${nodes}  ${dut1_if2_ip4}  ${dut2_if1_ip4}  ${dut1_if2}  ${dut2_if1}  ${n_tunnels}  ${encr_alg}  ${auth_alg}  ${laddr_ip4}  ${raddr_ip4}  ${addr_range}
 Then Find NDR and PDR intervals using optimized search

10.2.37.2. tc01-64B-1c-ethip4ipsec20000tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=${64}  phy_cores=${1}

10.2.37.3. tc02-64B-2c-ethip4ipsec20000tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=${64}  phy_cores=${2}

10.2.37.4. tc03-64B-4c-ethip4ipsec20000tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=${64}  phy_cores=${4}

10.2.37.5. tc04-1518B-1c-ethip4ipsec20000tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=${1518}  phy_cores=${1}

10.2.37.6. tc05-1518B-2c-ethip4ipsec20000tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=${1518}  phy_cores=${2}

10.2.37.7. tc06-1518B-4c-ethip4ipsec20000tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=${1518}  phy_cores=${4}

10.2.37.8. tc10-IMIX-1c-ethip4ipsec20000tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${1}

10.2.37.9. tc11-IMIX-2c-ethip4ipsec20000tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${2}

10.2.37.10. tc12-IMIX-4c-ethip4ipsec20000tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${4}

10.2.38. 10ge2p1x710-ethip4ipsec20000tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr suite

RFC2544: Pkt throughput IPv4 IPsec tunnel mode.

[Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes. [Enc] Packet Encapsulations: Eth-IPv4 on TG-DUTn, Eth-IPv4-IPSec on DUT1-DUT2 [Cfg] DUT configuration: DUT1 and DUT2 are configured with multipleIPsec tunnels between them. DUTs get IPv4 traffic from TG, encrypt itand send to another DUT, where packets are decrypted and sent back to TG [Ver] TG verification: TG finds and reports throughput NDR (Non DropRate) with zero packet loss tolerance and throughput PDR (Partial DropRate) with non-zero packet loss tolerance (LT) expressed in percentageof packets transmitted. NDR and PDR are discovered for differentEthernet L2 frame sizes using MLRsearch library.Test packets are generated by TG on links to DUTs. TG traffic profile contains two L3 flow-groups (flow-group per direction, number of flows per flow-group equals to number of IPSec tunnels) with all packets containing Ethernet header, IPv4 header with IP protocol=61 and static payload. MAC addresses are matching MAC addresses of the TG node interfaces. Incrementing of IP.dst (IPv4 destination address) field is applied to both streams. [Ref] Applicable standard specifications: RFC4303 and RFC2544.

# Copyright (c) 2019 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/shared/default.robot
| Resource | resources/libraries/robot/crypto/ipsec.robot
| ...
| Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDR | TNL_20000
| ... | IP4FWD | IPSEC | IPSECSW | IPSECINT | NIC_Intel-X710 | SCALE
| ... | AES_128_CBC | HMAC_SHA_512 | HMAC | AES
| ...
| Suite Setup | Setup suite single link | performance
| Suite Teardown | Tear down suite | performance
| Test Setup | Setup test
| Test Teardown | Tear down test | performance
| ...
| Test Template | Local Template
| ...
| 
*** Variables ***
| @{plugins_to_enable}= | dpdk_plugin.so | crypto_ia32_plugin.so
| ... | crypto_ipsecmb_plugin.so | crypto_openssl_plugin.so
| ${osi_layer}= | L3
| ${nic_name}= | Intel-X710
| ${overhead}= | ${54}
| ${tg_if1_ip4}= | 192.168.10.2
| ${dut1_if1_ip4}= | 192.168.10.1
| ${dut1_if2_ip4}= | 100.0.0.1
| ${dut2_if1_ip4}= | 200.0.0.2
| ${dut2_if2_ip4}= | 192.168.20.1
| ${tg_if2_ip4}= | 192.168.20.2
| ${raddr_ip4}= | 20.0.0.0
| ${laddr_ip4}= | 10.0.0.0
| ${addr_range}= | ${24}
| ${n_tunnels}= | ${20000}
# Traffic profile:
| ${traffic_profile}= | trex-sl-3n-ethip4-ip4dst${n_tunnels}

10.2.38.1. Local Template

[Cfg] DUT runs IPSec tunneling AES_128_CBC / HMAC_SHA_512 config. Each DUT uses ${phy_cores} physical core(s) for worker threads. [Ver] Measure NDR and PDR values using MLRsearch algorithm.Arguments: - frame_size - Framesize in Bytes in integer or string (IMIX_v4_1). Type: integer, string - phy_cores - Number of physical cores. Type: integer - rxq - Number of RX queues, default value: ${None}. Type: integer


Set Test Variable  \${frame_size}
${encr_alg}=  Crypto Alg AES CBC 128
${auth_alg}=  Set Variable  ${NONE}
Given Add worker threads and rxqueues to all DUTs  ${phy_cores}  ${rxq}
  And Add PCI devices to all DUTs
  And Set Max Rate And Jumbo And Handle Multi Seg
  And Apply startup configuration on all VPP DUTs
  And Initialize IPSec in 3-node circular topology
  And VPP IPsec Create Tunnel Interfaces  ${nodes}  ${dut1_if2_ip4}  ${dut2_if1_ip4}  ${dut1_if2}  ${dut2_if1}  ${n_tunnels}  ${encr_alg}  ${auth_alg}  ${laddr_ip4}  ${raddr_ip4}  ${addr_range}
 Then Find NDR and PDR intervals using optimized search

10.2.38.2. tc01-64B-1c-ethip4ipsec20000tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=${64}  phy_cores=${1}

10.2.38.3. tc02-64B-2c-ethip4ipsec20000tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=${64}  phy_cores=${2}

10.2.38.4. tc03-64B-4c-ethip4ipsec20000tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=${64}  phy_cores=${4}

10.2.38.5. tc04-1518B-1c-ethip4ipsec20000tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=${1518}  phy_cores=${1}

10.2.38.6. tc05-1518B-2c-ethip4ipsec20000tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=${1518}  phy_cores=${2}

10.2.38.7. tc06-1518B-4c-ethip4ipsec20000tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=${1518}  phy_cores=${4}

10.2.38.8. tc10-IMIX-1c-ethip4ipsec20000tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${1}

10.2.38.9. tc11-IMIX-2c-ethip4ipsec20000tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${2}

10.2.38.10. tc12-IMIX-4c-ethip4ipsec20000tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${4}

10.2.39. 10ge2p1x710-ethip4ipsec20000tnlsw-ip4base-int-aes128gcm-ndrpdr suite

RFC2544: Pkt throughput IPv4 IPsec tunnel mode.

[Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes. [Enc] Packet Encapsulations: Eth-IPv4 on TG-DUTn, Eth-IPv4-IPSec on DUT1-DUT2 [Cfg] DUT configuration: DUT1 and DUT2 are configured with multipleIPsec tunnels between them. DUTs get IPv4 traffic from TG, encrypt itand send to another DUT, where packets are decrypted and sent back to TG [Ver] TG verification: TG finds and reports throughput NDR (Non DropRate) with zero packet loss tolerance and throughput PDR (Partial DropRate) with non-zero packet loss tolerance (LT) expressed in percentageof packets transmitted. NDR and PDR are discovered for differentEthernet L2 frame sizes using MLRsearch library.Test packets are generated by TG on links to DUTs. TG traffic profile contains two L3 flow-groups (flow-group per direction, number of flows per flow-group equals to number of IPSec tunnels) with all packets containing Ethernet header, IPv4 header with IP protocol=61 and static payload. MAC addresses are matching MAC addresses of the TG node interfaces. Incrementing of IP.dst (IPv4 destination address) field is applied to both streams. [Ref] Applicable standard specifications: RFC4303 and RFC2544.

# Copyright (c) 2019 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/shared/default.robot
| Resource | resources/libraries/robot/crypto/ipsec.robot
| ...
| Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDR | TNL_20000
| ... | IP4FWD | IPSEC | IPSECSW | IPSECINT | NIC_Intel-X710 | SCALE
| ... | AES_128_GCM | AES
| ...
| Suite Setup | Setup suite single link | performance
| Suite Teardown | Tear down suite | performance
| Test Setup | Setup test
| Test Teardown | Tear down test | performance
| ...
| Test Template | Local Template
| ...
| 
*** Variables ***
| @{plugins_to_enable}= | dpdk_plugin.so | crypto_ia32_plugin.so
| ... | crypto_ipsecmb_plugin.so | crypto_openssl_plugin.so
| ${osi_layer}= | L3
| ${nic_name}= | Intel-X710
| ${overhead}= | ${54}
| ${tg_if1_ip4}= | 192.168.10.2
| ${dut1_if1_ip4}= | 192.168.10.1
| ${dut1_if2_ip4}= | 100.0.0.1
| ${dut2_if1_ip4}= | 200.0.0.2
| ${dut2_if2_ip4}= | 192.168.20.1
| ${tg_if2_ip4}= | 192.168.20.2
| ${raddr_ip4}= | 20.0.0.0
| ${laddr_ip4}= | 10.0.0.0
| ${addr_range}= | ${24}
| ${n_tunnels}= | ${20000}
# Traffic profile:
| ${traffic_profile}= | trex-sl-3n-ethip4-ip4dst${n_tunnels}

10.2.39.1. Local Template

[Cfg] DUT runs IPSec tunneling AES_128_GCM config. Each DUT uses ${phy_cores} physical core(s) for worker threads. [Ver] Measure NDR and PDR values using MLRsearch algorithm.Arguments: - frame_size - Framesize in Bytes in integer or string (IMIX_v4_1). Type: integer, string - phy_cores - Number of physical cores. Type: integer - rxq - Number of RX queues, default value: ${None}. Type: integer


Set Test Variable  \${frame_size}
${encr_alg}=  Crypto Alg AES GCM 128
${auth_alg}=  Set Variable  ${NONE}
Given Add worker threads and rxqueues to all DUTs  ${phy_cores}  ${rxq}
  And Add PCI devices to all DUTs
  And Set Max Rate And Jumbo And Handle Multi Seg
  And Apply startup configuration on all VPP DUTs
  And Initialize IPSec in 3-node circular topology
  And VPP IPsec Create Tunnel Interfaces  ${nodes}  ${dut1_if2_ip4}  ${dut2_if1_ip4}  ${dut1_if2}  ${dut2_if1}  ${n_tunnels}  ${encr_alg}  ${auth_alg}  ${laddr_ip4}  ${raddr_ip4}  ${addr_range}
 Then Find NDR and PDR intervals using optimized search

10.2.39.2. tc01-64B-1c-ethip4ipsec20000tnlsw-ip4base-int-aes128gcm-ndrpdr


frame_size=${64}  phy_cores=${1}

10.2.39.3. tc02-64B-2c-ethip4ipsec20000tnlsw-ip4base-int-aes128gcm-ndrpdr


frame_size=${64}  phy_cores=${2}

10.2.39.4. tc03-64B-4c-ethip4ipsec20000tnlsw-ip4base-int-aes128gcm-ndrpdr


frame_size=${64}  phy_cores=${4}

10.2.39.5. tc04-1518B-1c-ethip4ipsec20000tnlsw-ip4base-int-aes128gcm-ndrpdr


frame_size=${1518}  phy_cores=${1}

10.2.39.6. tc05-1518B-2c-ethip4ipsec20000tnlsw-ip4base-int-aes128gcm-ndrpdr


frame_size=${1518}  phy_cores=${2}

10.2.39.7. tc06-1518B-4c-ethip4ipsec20000tnlsw-ip4base-int-aes128gcm-ndrpdr


frame_size=${1518}  phy_cores=${4}

10.2.39.8. tc10-IMIX-1c-ethip4ipsec20000tnlsw-ip4base-int-aes128gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${1}

10.2.39.9. tc11-IMIX-2c-ethip4ipsec20000tnlsw-ip4base-int-aes128gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${2}

10.2.39.10. tc12-IMIX-4c-ethip4ipsec20000tnlsw-ip4base-int-aes128gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${4}

10.2.40. 10ge2p1x710-ethip4ipsec20000tnlsw-ip4base-int-aes256gcm-ndrpdr suite

RFC2544: Pkt throughput IPv4 IPsec tunnel mode.

[Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes. [Enc] Packet Encapsulations: Eth-IPv4 on TG-DUTn, Eth-IPv4-IPSec on DUT1-DUT2 [Cfg] DUT configuration: DUT1 and DUT2 are configured with multipleIPsec tunnels between them. DUTs get IPv4 traffic from TG, encrypt itand send to another DUT, where packets are decrypted and sent back to TG [Ver] TG verification: TG finds and reports throughput NDR (Non DropRate) with zero packet loss tolerance and throughput PDR (Partial DropRate) with non-zero packet loss tolerance (LT) expressed in percentageof packets transmitted. NDR and PDR are discovered for differentEthernet L2 frame sizes using MLRsearch library.Test packets are generated by TG on links to DUTs. TG traffic profile contains two L3 flow-groups (flow-group per direction, number of flows per flow-group equals to number of IPSec tunnels) with all packets containing Ethernet header, IPv4 header with IP protocol=61 and static payload. MAC addresses are matching MAC addresses of the TG node interfaces. Incrementing of IP.dst (IPv4 destination address) field is applied to both streams. [Ref] Applicable standard specifications: RFC4303 and RFC2544.

# Copyright (c) 2019 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/shared/default.robot
| Resource | resources/libraries/robot/crypto/ipsec.robot
| ...
| Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDR | TNL_20000
| ... | IP4FWD | IPSEC | IPSECSW | IPSECINT | NIC_Intel-X710 | SCALE
| ... | AES_256_GCM | AES
| ...
| Suite Setup | Setup suite single link | performance
| Suite Teardown | Tear down suite | performance
| Test Setup | Setup test
| Test Teardown | Tear down test | performance
| ...
| Test Template | Local Template
| ...
| 
*** Variables ***
| @{plugins_to_enable}= | dpdk_plugin.so | crypto_ia32_plugin.so
| ... | crypto_ipsecmb_plugin.so | crypto_openssl_plugin.so
| ${osi_layer}= | L3
| ${nic_name}= | Intel-X710
| ${overhead}= | ${54}
| ${tg_if1_ip4}= | 192.168.10.2
| ${dut1_if1_ip4}= | 192.168.10.1
| ${dut1_if2_ip4}= | 100.0.0.1
| ${dut2_if1_ip4}= | 200.0.0.2
| ${dut2_if2_ip4}= | 192.168.20.1
| ${tg_if2_ip4}= | 192.168.20.2
| ${raddr_ip4}= | 20.0.0.0
| ${laddr_ip4}= | 10.0.0.0
| ${addr_range}= | ${24}
| ${n_tunnels}= | ${20000}
# Traffic profile:
| ${traffic_profile}= | trex-sl-3n-ethip4-ip4dst${n_tunnels}

10.2.40.1. Local Template

[Cfg] DUT runs IPSec tunneling AES_256_GCM config. Each DUT uses ${phy_cores} physical core(s) for worker threads. [Ver] Measure NDR and PDR values using MLRsearch algorithm.Arguments: - frame_size - Framesize in Bytes in integer or string (IMIX_v4_1). Type: integer, string - phy_cores - Number of physical cores. Type: integer - rxq - Number of RX queues, default value: ${None}. Type: integer


Set Test Variable  \${frame_size}
${encr_alg}=  Crypto Alg AES GCM 256
${auth_alg}=  Set Variable  ${NONE}
Given Add worker threads and rxqueues to all DUTs  ${phy_cores}  ${rxq}
  And Add PCI devices to all DUTs
  And Set Max Rate And Jumbo And Handle Multi Seg
  And Apply startup configuration on all VPP DUTs
  And Initialize IPSec in 3-node circular topology
  And VPP IPsec Create Tunnel Interfaces  ${nodes}  ${dut1_if2_ip4}  ${dut2_if1_ip4}  ${dut1_if2}  ${dut2_if1}  ${n_tunnels}  ${encr_alg}  ${auth_alg}  ${laddr_ip4}  ${raddr_ip4}  ${addr_range}
 Then Find NDR and PDR intervals using optimized search

10.2.40.2. tc01-64B-1c-ethip4ipsec20000tnlsw-ip4base-int-aes256gcm-ndrpdr


frame_size=${64}  phy_cores=${1}

10.2.40.3. tc02-64B-2c-ethip4ipsec20000tnlsw-ip4base-int-aes256gcm-ndrpdr


frame_size=${64}  phy_cores=${2}

10.2.40.4. tc03-64B-4c-ethip4ipsec20000tnlsw-ip4base-int-aes256gcm-ndrpdr


frame_size=${64}  phy_cores=${4}

10.2.40.5. tc04-1518B-1c-ethip4ipsec20000tnlsw-ip4base-int-aes256gcm-ndrpdr


frame_size=${1518}  phy_cores=${1}

10.2.40.6. tc05-1518B-2c-ethip4ipsec20000tnlsw-ip4base-int-aes256gcm-ndrpdr


frame_size=${1518}  phy_cores=${2}

10.2.40.7. tc06-1518B-4c-ethip4ipsec20000tnlsw-ip4base-int-aes256gcm-ndrpdr


frame_size=${1518}  phy_cores=${4}

10.2.40.8. tc10-IMIX-1c-ethip4ipsec20000tnlsw-ip4base-int-aes256gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${1}

10.2.40.9. tc11-IMIX-2c-ethip4ipsec20000tnlsw-ip4base-int-aes256gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${2}

10.2.40.10. tc12-IMIX-4c-ethip4ipsec20000tnlsw-ip4base-int-aes256gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${4}

10.2.41. 10ge2p1x710-ethip4ipsec40000tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr suite

RFC2544: Pkt throughput IPv4 IPsec tunnel mode.

[Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes. [Enc] Packet Encapsulations: Eth-IPv4 on TG-DUTn, Eth-IPv4-IPSec on DUT1-DUT2 [Cfg] DUT configuration: DUT1 and DUT2 are configured with multipleIPsec tunnels between them. DUTs get IPv4 traffic from TG, encrypt itand send to another DUT, where packets are decrypted and sent back to TG [Ver] TG verification: TG finds and reports throughput NDR (Non DropRate) with zero packet loss tolerance and throughput PDR (Partial DropRate) with non-zero packet loss tolerance (LT) expressed in percentageof packets transmitted. NDR and PDR are discovered for differentEthernet L2 frame sizes using MLRsearch library.Test packets are generated by TG on links to DUTs. TG traffic profile contains two L3 flow-groups (flow-group per direction, number of flows per flow-group equals to number of IPSec tunnels) with all packets containing Ethernet header, IPv4 header with IP protocol=61 and static payload. MAC addresses are matching MAC addresses of the TG node interfaces. Incrementing of IP.dst (IPv4 destination address) field is applied to both streams. [Ref] Applicable standard specifications: RFC4303 and RFC2544.

# Copyright (c) 2019 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/shared/default.robot
| Resource | resources/libraries/robot/crypto/ipsec.robot
| ...
| Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDR | TNL_40000
| ... | IP4FWD | IPSEC | IPSECSW | IPSECINT | NIC_Intel-X710 | SCALE
| ... | AES_128_CBC | HMAC_SHA_256 | HMAC | AES
| ...
| Suite Setup | Setup suite single link | performance
| Suite Teardown | Tear down suite | performance
| Test Setup | Setup test
| Test Teardown | Tear down test | performance
| ...
| Test Template | Local Template
| ...
| 
*** Variables ***
| @{plugins_to_enable}= | dpdk_plugin.so | crypto_ia32_plugin.so
| ... | crypto_ipsecmb_plugin.so | crypto_openssl_plugin.so
| ${osi_layer}= | L3
| ${nic_name}= | Intel-X710
| ${overhead}= | ${54}
| ${tg_if1_ip4}= | 192.168.10.2
| ${dut1_if1_ip4}= | 192.168.10.1
| ${dut1_if2_ip4}= | 100.0.0.1
| ${dut2_if1_ip4}= | 200.0.0.2
| ${dut2_if2_ip4}= | 192.168.20.1
| ${tg_if2_ip4}= | 192.168.20.2
| ${raddr_ip4}= | 20.0.0.0
| ${laddr_ip4}= | 10.0.0.0
| ${addr_range}= | ${24}
| ${n_tunnels}= | ${40000}
# Traffic profile:
| ${traffic_profile}= | trex-sl-3n-ethip4-ip4dst${n_tunnels}

10.2.41.1. Local Template

[Cfg] DUT runs IPSec tunneling AES_128_CBC / HMAC_SHA_256 config. Each DUT uses ${phy_cores} physical core(s) for worker threads. [Ver] Measure NDR and PDR values using MLRsearch algorithm.Arguments: - frame_size - Framesize in Bytes in integer or string (IMIX_v4_1). Type: integer, string - phy_cores - Number of physical cores. Type: integer - rxq - Number of RX queues, default value: ${None}. Type: integer


Set Test Variable  \${frame_size}
${encr_alg}=  Crypto Alg AES CBC 128
${auth_alg}=  Integ Alg SHA 256 128
Given Add worker threads and rxqueues to all DUTs  ${phy_cores}  ${rxq}
  And Add PCI devices to all DUTs
  And Set Max Rate And Jumbo And Handle Multi Seg
  And Apply startup configuration on all VPP DUTs
  And Initialize IPSec in 3-node circular topology
  And VPP IPsec Create Tunnel Interfaces  ${nodes}  ${dut1_if2_ip4}  ${dut2_if1_ip4}  ${dut1_if2}  ${dut2_if1}  ${n_tunnels}  ${encr_alg}  ${auth_alg}  ${laddr_ip4}  ${raddr_ip4}  ${addr_range}
 Then Find NDR and PDR intervals using optimized search

10.2.41.2. tc01-64B-1c-ethip4ipsec40000tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=${64}  phy_cores=${1}

10.2.41.3. tc02-64B-2c-ethip4ipsec40000tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=${64}  phy_cores=${2}

10.2.41.4. tc03-64B-4c-ethip4ipsec40000tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=${64}  phy_cores=${4}

10.2.41.5. tc04-1518B-1c-ethip4ipsec40000tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=${1518}  phy_cores=${1}

10.2.41.6. tc05-1518B-2c-ethip4ipsec40000tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=${1518}  phy_cores=${2}

10.2.41.7. tc06-1518B-4c-ethip4ipsec40000tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=${1518}  phy_cores=${4}

10.2.41.8. tc10-IMIX-1c-ethip4ipsec40000tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${1}

10.2.41.9. tc11-IMIX-2c-ethip4ipsec40000tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${2}

10.2.41.10. tc12-IMIX-4c-ethip4ipsec40000tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${4}

10.2.42. 10ge2p1x710-ethip4ipsec40000tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr suite

RFC2544: Pkt throughput IPv4 IPsec tunnel mode.

[Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes. [Enc] Packet Encapsulations: Eth-IPv4 on TG-DUTn, Eth-IPv4-IPSec on DUT1-DUT2 [Cfg] DUT configuration: DUT1 and DUT2 are configured with multipleIPsec tunnels between them. DUTs get IPv4 traffic from TG, encrypt itand send to another DUT, where packets are decrypted and sent back to TG [Ver] TG verification: TG finds and reports throughput NDR (Non DropRate) with zero packet loss tolerance and throughput PDR (Partial DropRate) with non-zero packet loss tolerance (LT) expressed in percentageof packets transmitted. NDR and PDR are discovered for differentEthernet L2 frame sizes using MLRsearch library.Test packets are generated by TG on links to DUTs. TG traffic profile contains two L3 flow-groups (flow-group per direction, number of flows per flow-group equals to number of IPSec tunnels) with all packets containing Ethernet header, IPv4 header with IP protocol=61 and static payload. MAC addresses are matching MAC addresses of the TG node interfaces. Incrementing of IP.dst (IPv4 destination address) field is applied to both streams. [Ref] Applicable standard specifications: RFC4303 and RFC2544.

# Copyright (c) 2019 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/shared/default.robot
| Resource | resources/libraries/robot/crypto/ipsec.robot
| ...
| Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDR | TNL_40000
| ... | IP4FWD | IPSEC | IPSECSW | IPSECINT | NIC_Intel-X710 | SCALE
| ... | AES_128_CBC | HMAC_SHA_512 | HMAC | AES
| ...
| Suite Setup | Setup suite single link | performance
| Suite Teardown | Tear down suite | performance
| Test Setup | Setup test
| Test Teardown | Tear down test | performance
| ...
| Test Template | Local Template
| ...
| 
*** Variables ***
| @{plugins_to_enable}= | dpdk_plugin.so | crypto_ia32_plugin.so
| ... | crypto_ipsecmb_plugin.so | crypto_openssl_plugin.so
| ${osi_layer}= | L3
| ${nic_name}= | Intel-X710
| ${overhead}= | ${54}
| ${tg_if1_ip4}= | 192.168.10.2
| ${dut1_if1_ip4}= | 192.168.10.1
| ${dut1_if2_ip4}= | 100.0.0.1
| ${dut2_if1_ip4}= | 200.0.0.2
| ${dut2_if2_ip4}= | 192.168.20.1
| ${tg_if2_ip4}= | 192.168.20.2
| ${raddr_ip4}= | 20.0.0.0
| ${laddr_ip4}= | 10.0.0.0
| ${addr_range}= | ${24}
| ${n_tunnels}= | ${40000}
# Traffic profile:
| ${traffic_profile}= | trex-sl-3n-ethip4-ip4dst${n_tunnels}

10.2.42.1. Local Template

[Cfg] DUT runs IPSec tunneling AES_128_CBC / HMAC_SHA_512 config. Each DUT uses ${phy_cores} physical core(s) for worker threads. [Ver] Measure NDR and PDR values using MLRsearch algorithm.Arguments: - frame_size - Framesize in Bytes in integer or string (IMIX_v4_1). Type: integer, string - phy_cores - Number of physical cores. Type: integer - rxq - Number of RX queues, default value: ${None}. Type: integer


Set Test Variable  \${frame_size}
${encr_alg}=  Crypto Alg AES CBC 128
${auth_alg}=  Integ Alg SHA 512 256
Given Add worker threads and rxqueues to all DUTs  ${phy_cores}  ${rxq}
  And Add PCI devices to all DUTs
  And Set Max Rate And Jumbo And Handle Multi Seg
  And Apply startup configuration on all VPP DUTs
  And Initialize IPSec in 3-node circular topology
  And VPP IPsec Create Tunnel Interfaces  ${nodes}  ${dut1_if2_ip4}  ${dut2_if1_ip4}  ${dut1_if2}  ${dut2_if1}  ${n_tunnels}  ${encr_alg}  ${auth_alg}  ${laddr_ip4}  ${raddr_ip4}  ${addr_range}
 Then Find NDR and PDR intervals using optimized search

10.2.42.2. tc01-64B-1c-ethip4ipsec40000tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=${64}  phy_cores=${1}

10.2.42.3. tc02-64B-2c-ethip4ipsec40000tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=${64}  phy_cores=${2}

10.2.42.4. tc03-64B-4c-ethip4ipsec40000tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=${64}  phy_cores=${4}

10.2.42.5. tc04-1518B-1c-ethip4ipsec40000tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=${1518}  phy_cores=${1}

10.2.42.6. tc05-1518B-2c-ethip4ipsec40000tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=${1518}  phy_cores=${2}

10.2.42.7. tc06-1518B-4c-ethip4ipsec40000tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=${1518}  phy_cores=${4}

10.2.42.8. tc10-IMIX-1c-ethip4ipsec40000tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${1}

10.2.42.9. tc11-IMIX-2c-ethip4ipsec40000tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${2}

10.2.42.10. tc12-IMIX-4c-ethip4ipsec40000tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${4}

10.2.43. 10ge2p1x710-ethip4ipsec40000tnlsw-ip4base-int-aes128gcm-ndrpdr suite

RFC2544: Pkt throughput IPv4 IPsec tunnel mode.

[Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes. [Enc] Packet Encapsulations: Eth-IPv4 on TG-DUTn, Eth-IPv4-IPSec on DUT1-DUT2 [Cfg] DUT configuration: DUT1 and DUT2 are configured with multipleIPsec tunnels between them. DUTs get IPv4 traffic from TG, encrypt itand send to another DUT, where packets are decrypted and sent back to TG [Ver] TG verification: TG finds and reports throughput NDR (Non DropRate) with zero packet loss tolerance and throughput PDR (Partial DropRate) with non-zero packet loss tolerance (LT) expressed in percentageof packets transmitted. NDR and PDR are discovered for differentEthernet L2 frame sizes using MLRsearch library.Test packets are generated by TG on links to DUTs. TG traffic profile contains two L3 flow-groups (flow-group per direction, number of flows per flow-group equals to number of IPSec tunnels) with all packets containing Ethernet header, IPv4 header with IP protocol=61 and static payload. MAC addresses are matching MAC addresses of the TG node interfaces. Incrementing of IP.dst (IPv4 destination address) field is applied to both streams. [Ref] Applicable standard specifications: RFC4303 and RFC2544.

# Copyright (c) 2019 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/shared/default.robot
| Resource | resources/libraries/robot/crypto/ipsec.robot
| ...
| Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDR | TNL_40000
| ... | IP4FWD | IPSEC | IPSECSW | IPSECINT | NIC_Intel-X710 | SCALE
| ... | AES_128_GCM | AES
| ...
| Suite Setup | Setup suite single link | performance
| Suite Teardown | Tear down suite | performance
| Test Setup | Setup test
| Test Teardown | Tear down test | performance
| ...
| Test Template | Local Template
| ...
| 
*** Variables ***
| @{plugins_to_enable}= | dpdk_plugin.so | crypto_ia32_plugin.so
| ... | crypto_ipsecmb_plugin.so | crypto_openssl_plugin.so
| ${osi_layer}= | L3
| ${nic_name}= | Intel-X710
| ${overhead}= | ${54}
| ${tg_if1_ip4}= | 192.168.10.2
| ${dut1_if1_ip4}= | 192.168.10.1
| ${dut1_if2_ip4}= | 100.0.0.1
| ${dut2_if1_ip4}= | 200.0.0.2
| ${dut2_if2_ip4}= | 192.168.20.1
| ${tg_if2_ip4}= | 192.168.20.2
| ${raddr_ip4}= | 20.0.0.0
| ${laddr_ip4}= | 10.0.0.0
| ${addr_range}= | ${24}
| ${n_tunnels}= | ${40000}
# Traffic profile:
| ${traffic_profile}= | trex-sl-3n-ethip4-ip4dst${n_tunnels}

10.2.43.1. Local Template

[Cfg] DUT runs IPSec tunneling AES_128_GCM config. Each DUT uses ${phy_cores} physical core(s) for worker threads. [Ver] Measure NDR and PDR values using MLRsearch algorithm.Arguments: - frame_size - Framesize in Bytes in integer or string (IMIX_v4_1). Type: integer, string - phy_cores - Number of physical cores. Type: integer - rxq - Number of RX queues, default value: ${None}. Type: integer


Set Test Variable  \${frame_size}
${encr_alg}=  Crypto Alg AES GCM 128
${auth_alg}=  Set Variable  ${NONE}
${ipsec_proto} =  IPsec Proto ESP
Given Add worker threads and rxqueues to all DUTs  ${phy_cores}  ${rxq}
  And Add PCI devices to all DUTs
  And Set Max Rate And Jumbo And Handle Multi Seg
  And Apply startup configuration on all VPP DUTs
  And Initialize IPSec in 3-node circular topology
  And VPP IPsec Create Tunnel Interfaces  ${nodes}  ${dut1_if2_ip4}  ${dut2_if1_ip4}  ${dut1_if2}  ${dut2_if1}  ${n_tunnels}  ${encr_alg}  ${auth_alg}  ${laddr_ip4}  ${raddr_ip4}  ${addr_range}
 Then Find NDR and PDR intervals using optimized search

10.2.43.2. tc01-64B-1c-ethip4ipsec40000tnlsw-ip4base-int-aes128gcm-ndrpdr


frame_size=${64}  phy_cores=${1}

10.2.43.3. tc02-64B-2c-ethip4ipsec40000tnlsw-ip4base-int-aes128gcm-ndrpdr


frame_size=${64}  phy_cores=${2}

10.2.43.4. tc03-64B-4c-ethip4ipsec40000tnlsw-ip4base-int-aes128gcm-ndrpdr


frame_size=${64}  phy_cores=${4}

10.2.43.5. tc04-1518B-1c-ethip4ipsec40000tnlsw-ip4base-int-aes128gcm-ndrpdr


frame_size=${1518}  phy_cores=${1}

10.2.43.6. tc05-1518B-2c-ethip4ipsec40000tnlsw-ip4base-int-aes128gcm-ndrpdr


frame_size=${1518}  phy_cores=${2}

10.2.43.7. tc06-1518B-4c-ethip4ipsec40000tnlsw-ip4base-int-aes128gcm-ndrpdr


frame_size=${1518}  phy_cores=${4}

10.2.43.8. tc10-IMIX-1c-ethip4ipsec40000tnlsw-ip4base-int-aes128gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${1}

10.2.43.9. tc11-IMIX-2c-ethip4ipsec40000tnlsw-ip4base-int-aes128gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${2}

10.2.43.10. tc12-IMIX-4c-ethip4ipsec40000tnlsw-ip4base-int-aes128gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${4}

10.2.44. 10ge2p1x710-ethip4ipsec40000tnlsw-ip4base-int-aes256gcm-ndrpdr suite

RFC2544: Pkt throughput IPv4 IPsec tunnel mode.

[Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes. [Enc] Packet Encapsulations: Eth-IPv4 on TG-DUTn, Eth-IPv4-IPSec on DUT1-DUT2 [Cfg] DUT configuration: DUT1 and DUT2 are configured with multipleIPsec tunnels between them. DUTs get IPv4 traffic from TG, encrypt itand send to another DUT, where packets are decrypted and sent back to TG [Ver] TG verification: TG finds and reports throughput NDR (Non DropRate) with zero packet loss tolerance and throughput PDR (Partial DropRate) with non-zero packet loss tolerance (LT) expressed in percentageof packets transmitted. NDR and PDR are discovered for differentEthernet L2 frame sizes using MLRsearch library.Test packets are generated by TG on links to DUTs. TG traffic profile contains two L3 flow-groups (flow-group per direction, number of flows per flow-group equals to number of IPSec tunnels) with all packets containing Ethernet header, IPv4 header with IP protocol=61 and static payload. MAC addresses are matching MAC addresses of the TG node interfaces. Incrementing of IP.dst (IPv4 destination address) field is applied to both streams. [Ref] Applicable standard specifications: RFC4303 and RFC2544.

# Copyright (c) 2019 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/shared/default.robot
| Resource | resources/libraries/robot/crypto/ipsec.robot
| ...
| Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDR | TNL_40000
| ... | IP4FWD | IPSEC | IPSECSW | IPSECINT | NIC_Intel-X710 | SCALE
| ... | AES_256_GCM | AES
| ...
| Suite Setup | Setup suite single link | performance
| Suite Teardown | Tear down suite | performance
| Test Setup | Setup test
| Test Teardown | Tear down test | performance
| ...
| Test Template | Local Template
| ...
| 
*** Variables ***
| @{plugins_to_enable}= | dpdk_plugin.so | crypto_ia32_plugin.so
| ... | crypto_ipsecmb_plugin.so | crypto_openssl_plugin.so
| ${osi_layer}= | L3
| ${nic_name}= | Intel-X710
| ${overhead}= | ${54}
| ${tg_if1_ip4}= | 192.168.10.2
| ${dut1_if1_ip4}= | 192.168.10.1
| ${dut1_if2_ip4}= | 100.0.0.1
| ${dut2_if1_ip4}= | 200.0.0.2
| ${dut2_if2_ip4}= | 192.168.20.1
| ${tg_if2_ip4}= | 192.168.20.2
| ${raddr_ip4}= | 20.0.0.0
| ${laddr_ip4}= | 10.0.0.0
| ${addr_range}= | ${24}
| ${n_tunnels}= | ${40000}
# Traffic profile:
| ${traffic_profile}= | trex-sl-3n-ethip4-ip4dst${n_tunnels}

10.2.44.1. Local Template

[Cfg] DUT runs IPSec tunneling AES_256_GCM config. Each DUT uses ${phy_cores} physical core(s) for worker threads. [Ver] Measure NDR and PDR values using MLRsearch algorithm.Arguments: - frame_size - Framesize in Bytes in integer or string (IMIX_v4_1). Type: integer, string - phy_cores - Number of physical cores. Type: integer - rxq - Number of RX queues, default value: ${None}. Type: integer


Set Test Variable  \${frame_size}
${encr_alg}=  Crypto Alg AES GCM 256
${auth_alg}=  Set Variable  ${NONE}
${ipsec_proto} =  IPsec Proto ESP
Given Add worker threads and rxqueues to all DUTs  ${phy_cores}  ${rxq}
  And Add PCI devices to all DUTs
  And Set Max Rate And Jumbo And Handle Multi Seg
  And Apply startup configuration on all VPP DUTs
  And Initialize IPSec in 3-node circular topology
  And VPP IPsec Create Tunnel Interfaces  ${nodes}  ${dut1_if2_ip4}  ${dut2_if1_ip4}  ${dut1_if2}  ${dut2_if1}  ${n_tunnels}  ${encr_alg}  ${auth_alg}  ${laddr_ip4}  ${raddr_ip4}  ${addr_range}
 Then Find NDR and PDR intervals using optimized search

10.2.44.2. tc01-64B-1c-ethip4ipsec40000tnlsw-ip4base-int-aes256gcm-ndrpdr


frame_size=${64}  phy_cores=${1}

10.2.44.3. tc02-64B-2c-ethip4ipsec40000tnlsw-ip4base-int-aes256gcm-ndrpdr


frame_size=${64}  phy_cores=${2}

10.2.44.4. tc03-64B-4c-ethip4ipsec40000tnlsw-ip4base-int-aes256gcm-ndrpdr


frame_size=${64}  phy_cores=${4}

10.2.44.5. tc04-1518B-1c-ethip4ipsec40000tnlsw-ip4base-int-aes256gcm-ndrpdr


frame_size=${1518}  phy_cores=${1}

10.2.44.6. tc05-1518B-2c-ethip4ipsec40000tnlsw-ip4base-int-aes256gcm-ndrpdr


frame_size=${1518}  phy_cores=${2}

10.2.44.7. tc06-1518B-4c-ethip4ipsec40000tnlsw-ip4base-int-aes256gcm-ndrpdr


frame_size=${1518}  phy_cores=${4}

10.2.44.8. tc10-IMIX-1c-ethip4ipsec40000tnlsw-ip4base-int-aes256gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${1}

10.2.44.9. tc11-IMIX-2c-ethip4ipsec40000tnlsw-ip4base-int-aes256gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${2}

10.2.44.10. tc12-IMIX-4c-ethip4ipsec40000tnlsw-ip4base-int-aes256gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${4}

10.2.45. 10ge2p1x710-ethip4ipsec400tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr suite

RFC2544: Pkt throughput IPv4 IPsec tunnel mode.

[Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes. [Enc] Packet Encapsulations: Eth-IPv4 on TG-DUTn, Eth-IPv4-IPSec on DUT1-DUT2 [Cfg] DUT configuration: DUT1 and DUT2 are configured with multipleIPsec tunnels between them. DUTs get IPv4 traffic from TG, encrypt itand send to another DUT, where packets are decrypted and sent back to TG [Ver] TG verification: TG finds and reports throughput NDR (Non DropRate) with zero packet loss tolerance and throughput PDR (Partial DropRate) with non-zero packet loss tolerance (LT) expressed in percentageof packets transmitted. NDR and PDR are discovered for differentEthernet L2 frame sizes using MLRsearch library.Test packets are generated by TG on links to DUTs. TG traffic profile contains two L3 flow-groups (flow-group per direction, number of flows per flow-group equals to number of IPSec tunnels) with all packets containing Ethernet header, IPv4 header with IP protocol=61 and static payload. MAC addresses are matching MAC addresses of the TG node interfaces. Incrementing of IP.dst (IPv4 destination address) field is applied to both streams. [Ref] Applicable standard specifications: RFC4303 and RFC2544.

# Copyright (c) 2019 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/shared/default.robot
| Resource | resources/libraries/robot/crypto/ipsec.robot
| ...
| Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDR | TNL_400
| ... | IP4FWD | IPSEC | IPSECSW | IPSECINT | NIC_Intel-X710 | SCALE
| ... | AES_128_CBC | HMAC_SHA_256 | HMAC | AES
| ...
| Suite Setup | Setup suite single link | performance
| Suite Teardown | Tear down suite | performance
| Test Setup | Setup test
| Test Teardown | Tear down test | performance
| ...
| Test Template | Local Template
| ...
| 
*** Variables ***
| @{plugins_to_enable}= | dpdk_plugin.so | crypto_ia32_plugin.so
| ... | crypto_ipsecmb_plugin.so | crypto_openssl_plugin.so
| ${osi_layer}= | L3
| ${nic_name}= | Intel-X710
| ${overhead}= | ${58}
| ${tg_if1_ip4}= | 192.168.10.2
| ${dut1_if1_ip4}= | 192.168.10.1
| ${dut1_if2_ip4}= | 100.0.0.1
| ${dut2_if1_ip4}= | 200.0.0.2
| ${dut2_if2_ip4}= | 192.168.20.1
| ${tg_if2_ip4}= | 192.168.20.2
| ${raddr_ip4}= | 20.0.0.0
| ${laddr_ip4}= | 10.0.0.0
| ${addr_range}= | ${24}
| ${n_tunnels}= | ${400}
# Traffic profile:
| ${traffic_profile}= | trex-sl-3n-ethip4-ip4dst${n_tunnels}

10.2.45.1. Local Template

[Cfg] DUT runs IPSec tunneling AES_128_CBC / HMAC_SHA_256 config. Each DUT uses ${phy_cores} physical core(s) for worker threads. [Ver] Measure NDR and PDR values using MLRsearch algorithm.Arguments: - frame_size - Framesize in Bytes in integer or string (IMIX_v4_1). Type: integer, string - phy_cores - Number of physical cores. Type: integer - rxq - Number of RX queues, default value: ${None}. Type: integer


Set Test Variable  \${frame_size}
${encr_alg}=  Crypto Alg AES CBC 128
${auth_alg}=  Integ Alg SHA 256 128
Given Add worker threads and rxqueues to all DUTs  ${phy_cores}  ${rxq}
  And Add PCI devices to all DUTs
  And Set Max Rate And Jumbo And Handle Multi Seg
  And Apply startup configuration on all VPP DUTs
 When Initialize IPSec in 3-node circular topology
  And VPP IPsec Create Tunnel Interfaces  ${nodes}  ${dut1_if2_ip4}  ${dut2_if1_ip4}  ${dut1_if2}  ${dut2_if1}  ${n_tunnels}  ${encr_alg}  ${auth_alg}  ${laddr_ip4}  ${raddr_ip4}  ${addr_range}
 Then Find NDR and PDR intervals using optimized search

10.2.45.2. tc01-64B-1c-ethip4ipsec400tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=${64}  phy_cores=${1}

10.2.45.3. tc02-64B-2c-ethip4ipsec400tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=${64}  phy_cores=${2}

10.2.45.4. tc03-64B-4c-ethip4ipsec400tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=${64}  phy_cores=${4}

10.2.45.5. tc04-1518B-1c-ethip4ipsec400tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=${1518}  phy_cores=${1}

10.2.45.6. tc05-1518B-2c-ethip4ipsec400tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=${1518}  phy_cores=${2}

10.2.45.7. tc06-1518B-4c-ethip4ipsec400tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=${1518}  phy_cores=${4}

10.2.45.8. tc10-IMIX-1c-ethip4ipsec400tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${1}

10.2.45.9. tc11-IMIX-2c-ethip4ipsec400tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${2}

10.2.45.10. tc12-IMIX-4c-ethip4ipsec400tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${4}

10.2.46. 10ge2p1x710-ethip4ipsec400tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr suite

RFC2544: Pkt throughput IPv4 IPsec tunnel mode.

[Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes. [Enc] Packet Encapsulations: Eth-IPv4 on TG-DUTn, Eth-IPv4-IPSec on DUT1-DUT2 [Cfg] DUT configuration: DUT1 and DUT2 are configured with multipleIPsec tunnels between them. DUTs get IPv4 traffic from TG, encrypt itand send to another DUT, where packets are decrypted and sent back to TG [Ver] TG verification: TG finds and reports throughput NDR (Non DropRate) with zero packet loss tolerance and throughput PDR (Partial DropRate) with non-zero packet loss tolerance (LT) expressed in percentageof packets transmitted. NDR and PDR are discovered for differentEthernet L2 frame sizes using MLRsearch library.Test packets are generated by TG on links to DUTs. TG traffic profile contains two L3 flow-groups (flow-group per direction, number of flows per flow-group equals to number of IPSec tunnels) with all packets containing Ethernet header, IPv4 header with IP protocol=61 and static payload. MAC addresses are matching MAC addresses of the TG node interfaces. Incrementing of IP.dst (IPv4 destination address) field is applied to both streams. [Ref] Applicable standard specifications: RFC4303 and RFC2544.

# Copyright (c) 2019 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/shared/default.robot
| Resource | resources/libraries/robot/crypto/ipsec.robot
| ...
| Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDR | TNL_400
| ... | IP4FWD | IPSEC | IPSECSW | IPSECINT | NIC_Intel-X710 | SCALE
| ... | AES_128_CBC | HMAC_SHA_512 | HMAC | AES
| ...
| Suite Setup | Setup suite single link | performance
| Suite Teardown | Tear down suite | performance
| Test Setup | Setup test
| Test Teardown | Tear down test | performance
| ...
| Test Template | Local Template
| ...
| 
*** Variables ***
| @{plugins_to_enable}= | dpdk_plugin.so | crypto_ia32_plugin.so
| ... | crypto_ipsecmb_plugin.so | crypto_openssl_plugin.so
| ${osi_layer}= | L3
| ${nic_name}= | Intel-X710
| ${overhead}= | ${58}
| ${tg_if1_ip4}= | 192.168.10.2
| ${dut1_if1_ip4}= | 192.168.10.1
| ${dut1_if2_ip4}= | 100.0.0.1
| ${dut2_if1_ip4}= | 200.0.0.2
| ${dut2_if2_ip4}= | 192.168.20.1
| ${tg_if2_ip4}= | 192.168.20.2
| ${raddr_ip4}= | 20.0.0.0
| ${laddr_ip4}= | 10.0.0.0
| ${addr_range}= | ${24}
| ${n_tunnels}= | ${400}
# Traffic profile:
| ${traffic_profile}= | trex-sl-3n-ethip4-ip4dst${n_tunnels}

10.2.46.1. Local Template

[Cfg] DUT runs IPSec tunneling AES_128_CBC / HMAC_SHA_512 config. Each DUT uses ${phy_cores} physical core(s) for worker threads. [Ver] Measure NDR and PDR values using MLRsearch algorithm.Arguments: - frame_size - Framesize in Bytes in integer or string (IMIX_v4_1). Type: integer, string - phy_cores - Number of physical cores. Type: integer - rxq - Number of RX queues, default value: ${None}. Type: integer


Set Test Variable  \${frame_size}
${encr_alg}=  Crypto Alg AES CBC 128
${auth_alg}=  Integ Alg SHA 512 256
Given Add worker threads and rxqueues to all DUTs  ${phy_cores}  ${rxq}
  And Add PCI devices to all DUTs
  And Set Max Rate And Jumbo And Handle Multi Seg
  And Apply startup configuration on all VPP DUTs
 When Initialize IPSec in 3-node circular topology
  And VPP IPsec Create Tunnel Interfaces  ${nodes}  ${dut1_if2_ip4}  ${dut2_if1_ip4}  ${dut1_if2}  ${dut2_if1}  ${n_tunnels}  ${encr_alg}  ${auth_alg}  ${laddr_ip4}  ${raddr_ip4}  ${addr_range}
 Then Find NDR and PDR intervals using optimized search

10.2.46.2. tc01-64B-1c-ethip4ipsec400tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=${64}  phy_cores=${1}

10.2.46.3. tc02-64B-2c-ethip4ipsec400tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=${64}  phy_cores=${2}

10.2.46.4. tc03-64B-4c-ethip4ipsec400tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=${64}  phy_cores=${4}

10.2.46.5. tc04-1518B-1c-ethip4ipsec400tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=${1518}  phy_cores=${1}

10.2.46.6. tc05-1518B-2c-ethip4ipsec400tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=${1518}  phy_cores=${2}

10.2.46.7. tc06-1518B-4c-ethip4ipsec400tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=${1518}  phy_cores=${4}

10.2.46.8. tc10-IMIX-1c-ethip4ipsec400tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${1}

10.2.46.9. tc11-IMIX-2c-ethip4ipsec400tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${2}

10.2.46.10. tc12-IMIX-4c-ethip4ipsec400tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${4}

10.2.47. 10ge2p1x710-ethip4ipsec400tnlsw-ip4base-int-aes128gcm-ndrpdr suite

RFC2544: Pkt throughput IPv4 IPsec tunnel mode.

[Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes. [Enc] Packet Encapsulations: Eth-IPv4 on TG-DUTn, Eth-IPv4-IPSec on DUT1-DUT2 [Cfg] DUT configuration: DUT1 and DUT2 are configured with multipleIPsec tunnels between them. DUTs get IPv4 traffic from TG, encrypt itand send to another DUT, where packets are decrypted and sent back to TG [Ver] TG verification: TG finds and reports throughput NDR (Non DropRate) with zero packet loss tolerance and throughput PDR (Partial DropRate) with non-zero packet loss tolerance (LT) expressed in percentageof packets transmitted. NDR and PDR are discovered for differentEthernet L2 frame sizes using MLRsearch library.Test packets are generated by TG on links to DUTs. TG traffic profile contains two L3 flow-groups (flow-group per direction, number of flows per flow-group equals to number of IPSec tunnels) with all packets containing Ethernet header, IPv4 header with IP protocol=61 and static payload. MAC addresses are matching MAC addresses of the TG node interfaces. Incrementing of IP.dst (IPv4 destination address) field is applied to both streams. [Ref] Applicable standard specifications: RFC4303 and RFC2544.

# Copyright (c) 2019 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/shared/default.robot
| Resource | resources/libraries/robot/crypto/ipsec.robot
| ...
| Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDR | TNL_400
| ... | IP4FWD | IPSEC | IPSECSW | IPSECINT | NIC_Intel-X710 | SCALE
| ... | AES_128_GCM | AES
| ...
| Suite Setup | Setup suite single link | performance
| Suite Teardown | Tear down suite | performance
| Test Setup | Setup test
| Test Teardown | Tear down test | performance
| ...
| Test Template | Local Template
| ...
| 
*** Variables ***
| @{plugins_to_enable}= | dpdk_plugin.so | crypto_ia32_plugin.so
| ... | crypto_ipsecmb_plugin.so | crypto_openssl_plugin.so
| ${osi_layer}= | L3
| ${nic_name}= | Intel-X710
| ${overhead}= | ${54}
| ${tg_if1_ip4}= | 192.168.10.2
| ${dut1_if1_ip4}= | 192.168.10.1
| ${dut1_if2_ip4}= | 100.0.0.1
| ${dut2_if1_ip4}= | 200.0.0.2
| ${dut2_if2_ip4}= | 192.168.20.1
| ${tg_if2_ip4}= | 192.168.20.2
| ${raddr_ip4}= | 20.0.0.0
| ${laddr_ip4}= | 10.0.0.0
| ${addr_range}= | ${24}
| ${n_tunnels}= | ${400}
# Traffic profile:
| ${traffic_profile}= | trex-sl-3n-ethip4-ip4dst${n_tunnels}

10.2.47.1. Local Template

[Cfg] DUT runs IPSec tunneling AES_128_GCM config. Each DUT uses ${phy_cores} physical core(s) for worker threads. [Ver] Measure NDR and PDR values using MLRsearch algorithm.Arguments: - frame_size - Framesize in Bytes in integer or string (IMIX_v4_1). Type: integer, string - phy_cores - Number of physical cores. Type: integer - rxq - Number of RX queues, default value: ${None}. Type: integer


Set Test Variable  \${frame_size}
${encr_alg}=  Crypto Alg AES GCM 128
${auth_alg}=  Set Variable  ${NONE}
${ipsec_proto} =  IPsec Proto ESP
Given Add worker threads and rxqueues to all DUTs  ${phy_cores}  ${rxq}
  And Add PCI devices to all DUTs
  And Set Max Rate And Jumbo And Handle Multi Seg
  And Apply startup configuration on all VPP DUTs
 When Initialize IPSec in 3-node circular topology
  And VPP IPsec Create Tunnel Interfaces  ${nodes}  ${dut1_if2_ip4}  ${dut2_if1_ip4}  ${dut1_if2}  ${dut2_if1}  ${n_tunnels}  ${encr_alg}  ${auth_alg}  ${laddr_ip4}  ${raddr_ip4}  ${addr_range}
 Then Find NDR and PDR intervals using optimized search

10.2.47.2. tc01-64B-1c-ethip4ipsec400tnlsw-ip4base-int-aes128gcm-ndrpdr


frame_size=${64}  phy_cores=${1}

10.2.47.3. tc02-64B-2c-ethip4ipsec400tnlsw-ip4base-int-aes128gcm-ndrpdr


frame_size=${64}  phy_cores=${2}

10.2.47.4. tc03-64B-4c-ethip4ipsec400tnlsw-ip4base-int-aes128gcm-ndrpdr


frame_size=${64}  phy_cores=${4}

10.2.47.5. tc04-1518B-1c-ethip4ipsec400tnlsw-ip4base-int-aes128gcm-ndrpdr


frame_size=${1518}  phy_cores=${1}

10.2.47.6. tc05-1518B-2c-ethip4ipsec400tnlsw-ip4base-int-aes128gcm-ndrpdr


frame_size=${1518}  phy_cores=${2}

10.2.47.7. tc06-1518B-4c-ethip4ipsec400tnlsw-ip4base-int-aes128gcm-ndrpdr


frame_size=${1518}  phy_cores=${4}

10.2.47.8. tc10-IMIX-1c-ethip4ipsec400tnlsw-ip4base-int-aes128gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${1}

10.2.47.9. tc11-IMIX-2c-ethip4ipsec400tnlsw-ip4base-int-aes128gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${2}

10.2.47.10. tc12-IMIX-4c-ethip4ipsec400tnlsw-ip4base-int-aes128gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${4}

10.2.48. 10ge2p1x710-ethip4ipsec400tnlsw-ip4base-int-aes256gcm-ndrpdr suite

RFC2544: Pkt throughput IPv4 IPsec tunnel mode.

[Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes. [Enc] Packet Encapsulations: Eth-IPv4 on TG-DUTn, Eth-IPv4-IPSec on DUT1-DUT2 [Cfg] DUT configuration: DUT1 and DUT2 are configured with multipleIPsec tunnels between them. DUTs get IPv4 traffic from TG, encrypt itand send to another DUT, where packets are decrypted and sent back to TG [Ver] TG verification: TG finds and reports throughput NDR (Non DropRate) with zero packet loss tolerance and throughput PDR (Partial DropRate) with non-zero packet loss tolerance (LT) expressed in percentageof packets transmitted. NDR and PDR are discovered for differentEthernet L2 frame sizes using MLRsearch library.Test packets are generated by TG on links to DUTs. TG traffic profile contains two L3 flow-groups (flow-group per direction, number of flows per flow-group equals to number of IPSec tunnels) with all packets containing Ethernet header, IPv4 header with IP protocol=61 and static payload. MAC addresses are matching MAC addresses of the TG node interfaces. Incrementing of IP.dst (IPv4 destination address) field is applied to both streams. [Ref] Applicable standard specifications: RFC4303 and RFC2544.

# Copyright (c) 2019 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/shared/default.robot
| Resource | resources/libraries/robot/crypto/ipsec.robot
| ...
| Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDR | TNL_400
| ... | IP4FWD | IPSEC | IPSECSW | IPSECINT | NIC_Intel-X710 | SCALE
| ... | AES_256_GCM | AES
| ...
| Suite Setup | Setup suite single link | performance
| Suite Teardown | Tear down suite | performance
| Test Setup | Setup test
| Test Teardown | Tear down test | performance
| ...
| Test Template | Local Template
| ...
| 
*** Variables ***
| @{plugins_to_enable}= | dpdk_plugin.so | crypto_ia32_plugin.so
| ... | crypto_ipsecmb_plugin.so | crypto_openssl_plugin.so
| ${osi_layer}= | L3
| ${nic_name}= | Intel-X710
| ${overhead}= | ${54}
| ${tg_if1_ip4}= | 192.168.10.2
| ${dut1_if1_ip4}= | 192.168.10.1
| ${dut1_if2_ip4}= | 100.0.0.1
| ${dut2_if1_ip4}= | 200.0.0.2
| ${dut2_if2_ip4}= | 192.168.20.1
| ${tg_if2_ip4}= | 192.168.20.2
| ${raddr_ip4}= | 20.0.0.0
| ${laddr_ip4}= | 10.0.0.0
| ${addr_range}= | ${24}
| ${n_tunnels}= | ${400}
# Traffic profile:
| ${traffic_profile}= | trex-sl-3n-ethip4-ip4dst${n_tunnels}

10.2.48.1. Local Template

[Cfg] DUT runs IPSec tunneling AES_256_GCM config. Each DUT uses ${phy_cores} physical core(s) for worker threads. [Ver] Measure NDR and PDR values using MLRsearch algorithm.Arguments: - frame_size - Framesize in Bytes in integer or string (IMIX_v4_1). Type: integer, string - phy_cores - Number of physical cores. Type: integer - rxq - Number of RX queues, default value: ${None}. Type: integer


Set Test Variable  \${frame_size}
${encr_alg}=  Crypto Alg AES GCM 256
${auth_alg}=  Set Variable  ${NONE}
${ipsec_proto} =  IPsec Proto ESP
Given Add worker threads and rxqueues to all DUTs  ${phy_cores}  ${rxq}
  And Add PCI devices to all DUTs
  And Set Max Rate And Jumbo And Handle Multi Seg
  And Apply startup configuration on all VPP DUTs
 When Initialize IPSec in 3-node circular topology
  And VPP IPsec Create Tunnel Interfaces  ${nodes}  ${dut1_if2_ip4}  ${dut2_if1_ip4}  ${dut1_if2}  ${dut2_if1}  ${n_tunnels}  ${encr_alg}  ${auth_alg}  ${laddr_ip4}  ${raddr_ip4}  ${addr_range}
 Then Find NDR and PDR intervals using optimized search

10.2.48.2. tc01-64B-1c-ethip4ipsec400tnlsw-ip4base-int-aes256gcm-ndrpdr


frame_size=${64}  phy_cores=${1}

10.2.48.3. tc02-64B-2c-ethip4ipsec400tnlsw-ip4base-int-aes256gcm-ndrpdr


frame_size=${64}  phy_cores=${2}

10.2.48.4. tc03-64B-4c-ethip4ipsec400tnlsw-ip4base-int-aes256gcm-ndrpdr


frame_size=${64}  phy_cores=${4}

10.2.48.5. tc04-1518B-1c-ethip4ipsec400tnlsw-ip4base-int-aes256gcm-ndrpdr


frame_size=${1518}  phy_cores=${1}

10.2.48.6. tc05-1518B-2c-ethip4ipsec400tnlsw-ip4base-int-aes256gcm-ndrpdr


frame_size=${1518}  phy_cores=${2}

10.2.48.7. tc06-1518B-4c-ethip4ipsec400tnlsw-ip4base-int-aes256gcm-ndrpdr


frame_size=${1518}  phy_cores=${4}

10.2.48.8. tc10-IMIX-1c-ethip4ipsec400tnlsw-ip4base-int-aes256gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${1}

10.2.48.9. tc11-IMIX-2c-ethip4ipsec400tnlsw-ip4base-int-aes256gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${2}

10.2.48.10. tc12-IMIX-4c-ethip4ipsec400tnlsw-ip4base-int-aes256gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${4}

10.2.49. 10ge2p1x710-ethip4ipsec40tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr suite

RFC2544: Pkt throughput IPv4 IPsec tunnel mode.

[Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes. [Enc] Packet Encapsulations: Eth-IPv4 on TG-DUTn, Eth-IPv4-IPSec on DUT1-DUT2 [Cfg] DUT configuration: DUT1 and DUT2 are configured with multipleIPsec tunnels between them. DUTs get IPv4 traffic from TG, encrypt itand send to another DUT, where packets are decrypted and sent back to TG [Ver] TG verification: TG finds and reports throughput NDR (Non DropRate) with zero packet loss tolerance and throughput PDR (Partial DropRate) with non-zero packet loss tolerance (LT) expressed in percentageof packets transmitted. NDR and PDR are discovered for differentEthernet L2 frame sizes using MLRsearch library.Test packets are generated by TG on links to DUTs. TG traffic profile contains two L3 flow-groups (flow-group per direction, number of flows per flow-group equals to number of IPSec tunnels) with all packets containing Ethernet header, IPv4 header with IP protocol=61 and static payload. MAC addresses are matching MAC addresses of the TG node interfaces. Incrementing of IP.dst (IPv4 destination address) field is applied to both streams. [Ref] Applicable standard specifications: RFC4303 and RFC2544.

# Copyright (c) 2019 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/shared/default.robot
| Resource | resources/libraries/robot/crypto/ipsec.robot
| ...
| Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDR | TNL_40
| ... | IP4FWD | IPSEC | IPSECSW | IPSECINT | NIC_Intel-X710 | SCALE
| ... | AES_128_CBC | HMAC_SHA_256 | HMAC | AES
| ...
| Suite Setup | Setup suite single link | performance
| Suite Teardown | Tear down suite | performance
| Test Setup | Setup test
| Test Teardown | Tear down test | performance
| ...
| Test Template | Local Template
| ...
| 
*** Variables ***
| @{plugins_to_enable}= | dpdk_plugin.so | crypto_ia32_plugin.so
| ... | crypto_ipsecmb_plugin.so | crypto_openssl_plugin.so
| ${osi_layer}= | L3
| ${nic_name}= | Intel-X710
| ${overhead}= | ${58}
| ${tg_if1_ip4}= | 192.168.10.2
| ${dut1_if1_ip4}= | 192.168.10.1
| ${dut1_if2_ip4}= | 100.0.0.1
| ${dut2_if1_ip4}= | 200.0.0.2
| ${dut2_if2_ip4}= | 192.168.20.1
| ${tg_if2_ip4}= | 192.168.20.2
| ${raddr_ip4}= | 20.0.0.0
| ${laddr_ip4}= | 10.0.0.0
| ${addr_range}= | ${24}
| ${n_tunnels}= | ${40}
# Traffic profile:
| ${traffic_profile}= | trex-sl-3n-ethip4-ip4dst${n_tunnels}

10.2.49.1. Local Template

[Cfg] DUT runs IPSec tunneling AES_128_CBC / HMAC_SHA_256 config. Each DUT uses ${phy_cores} physical core(s) for worker threads. [Ver] Measure NDR and PDR values using MLRsearch algorithm.Arguments: - frame_size - Framesize in Bytes in integer or string (IMIX_v4_1). Type: integer, string - phy_cores - Number of physical cores. Type: integer - rxq - Number of RX queues, default value: ${None}. Type: integer


Set Test Variable  \${frame_size}
${encr_alg}=  Crypto Alg AES CBC 128
${auth_alg}=  Integ Alg SHA 256 128
Given Add worker threads and rxqueues to all DUTs  ${phy_cores}  ${rxq}
  And Add PCI devices to all DUTs
  And Set Max Rate And Jumbo And Handle Multi Seg
  And Apply startup configuration on all VPP DUTs
 When Initialize IPSec in 3-node circular topology
  And VPP IPsec Create Tunnel Interfaces  ${nodes}  ${dut1_if2_ip4}  ${dut2_if1_ip4}  ${dut1_if2}  ${dut2_if1}  ${n_tunnels}  ${encr_alg}  ${auth_alg}  ${laddr_ip4}  ${raddr_ip4}  ${addr_range}
 Then Find NDR and PDR intervals using optimized search

10.2.49.2. tc01-64B-1c-ethip4ipsec40tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=${64}  phy_cores=${1}

10.2.49.3. tc02-64B-2c-ethip4ipsec40tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=${64}  phy_cores=${2}

10.2.49.4. tc03-64B-4c-ethip4ipsec40tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=${64}  phy_cores=${4}

10.2.49.5. tc04-1518B-1c-ethip4ipsec40tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=${1518}  phy_cores=${1}

10.2.49.6. tc05-1518B-2c-ethip4ipsec40tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=${1518}  phy_cores=${2}

10.2.49.7. tc06-1518B-4c-ethip4ipsec40tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=${1518}  phy_cores=${4}

10.2.49.8. tc10-IMIX-1c-ethip4ipsec40tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${1}

10.2.49.9. tc11-IMIX-2c-ethip4ipsec40tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${2}

10.2.49.10. tc12-IMIX-4c-ethip4ipsec40tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${4}

10.2.50. 10ge2p1x710-ethip4ipsec40tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr suite

RFC2544: Pkt throughput IPv4 IPsec tunnel mode.

[Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes. [Enc] Packet Encapsulations: Eth-IPv4 on TG-DUTn, Eth-IPv4-IPSec on DUT1-DUT2 [Cfg] DUT configuration: DUT1 and DUT2 are configured with multipleIPsec tunnels between them. DUTs get IPv4 traffic from TG, encrypt itand send to another DUT, where packets are decrypted and sent back to TG [Ver] TG verification: TG finds and reports throughput NDR (Non DropRate) with zero packet loss tolerance and throughput PDR (Partial DropRate) with non-zero packet loss tolerance (LT) expressed in percentageof packets transmitted. NDR and PDR are discovered for differentEthernet L2 frame sizes using MLRsearch library.Test packets are generated by TG on links to DUTs. TG traffic profile contains two L3 flow-groups (flow-group per direction, number of flows per flow-group equals to number of IPSec tunnels) with all packets containing Ethernet header, IPv4 header with IP protocol=61 and static payload. MAC addresses are matching MAC addresses of the TG node interfaces. Incrementing of IP.dst (IPv4 destination address) field is applied to both streams. [Ref] Applicable standard specifications: RFC4303 and RFC2544.

# Copyright (c) 2019 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/shared/default.robot
| Resource | resources/libraries/robot/crypto/ipsec.robot
| ...
| Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDR | TNL_40
| ... | IP4FWD | IPSEC | IPSECSW | IPSECINT | NIC_Intel-X710 | SCALE
| ... | AES_128_CBC | HMAC_SHA_512 | HMAC | AES
| ...
| Suite Setup | Setup suite single link | performance
| Suite Teardown | Tear down suite | performance
| Test Setup | Setup test
| Test Teardown | Tear down test | performance
| ...
| Test Template | Local Template
| ...
| 
*** Variables ***
| @{plugins_to_enable}= | dpdk_plugin.so | crypto_ia32_plugin.so
| ... | crypto_ipsecmb_plugin.so | crypto_openssl_plugin.so
| ${osi_layer}= | L3
| ${nic_name}= | Intel-X710
| ${overhead}= | ${58}
| ${tg_if1_ip4}= | 192.168.10.2
| ${dut1_if1_ip4}= | 192.168.10.1
| ${dut1_if2_ip4}= | 100.0.0.1
| ${dut2_if1_ip4}= | 200.0.0.2
| ${dut2_if2_ip4}= | 192.168.20.1
| ${tg_if2_ip4}= | 192.168.20.2
| ${raddr_ip4}= | 20.0.0.0
| ${laddr_ip4}= | 10.0.0.0
| ${addr_range}= | ${24}
| ${n_tunnels}= | ${40}
# Traffic profile:
| ${traffic_profile}= | trex-sl-3n-ethip4-ip4dst${n_tunnels}

10.2.50.1. Local Template

[Cfg] DUT runs IPSec tunneling AES_128_CBC / HMAC_SHA_512 config. Each DUT uses ${phy_cores} physical core(s) for worker threads. [Ver] Measure NDR and PDR values using MLRsearch algorithm.Arguments: - frame_size - Framesize in Bytes in integer or string (IMIX_v4_1). Type: integer, string - phy_cores - Number of physical cores. Type: integer - rxq - Number of RX queues, default value: ${None}. Type: integer


Set Test Variable  \${frame_size}
${encr_alg}=  Crypto Alg AES CBC 128
${auth_alg}=  Integ Alg SHA 512 256
Given Add worker threads and rxqueues to all DUTs  ${phy_cores}  ${rxq}
  And Add PCI devices to all DUTs
  And Set Max Rate And Jumbo And Handle Multi Seg
  And Apply startup configuration on all VPP DUTs
 When Initialize IPSec in 3-node circular topology
  And VPP IPsec Create Tunnel Interfaces  ${nodes}  ${dut1_if2_ip4}  ${dut2_if1_ip4}  ${dut1_if2}  ${dut2_if1}  ${n_tunnels}  ${encr_alg}  ${auth_alg}  ${laddr_ip4}  ${raddr_ip4}  ${addr_range}
 Then Find NDR and PDR intervals using optimized search

10.2.50.2. tc01-64B-1c-ethip4ipsec40tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=${64}  phy_cores=${1}

10.2.50.3. tc02-64B-2c-ethip4ipsec40tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=${64}  phy_cores=${2}

10.2.50.4. tc03-64B-4c-ethip4ipsec40tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=${64}  phy_cores=${4}

10.2.50.5. tc04-1518B-1c-ethip4ipsec40tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=${1518}  phy_cores=${1}

10.2.50.6. tc05-1518B-2c-ethip4ipsec40tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=${1518}  phy_cores=${2}

10.2.50.7. tc06-1518B-4c-ethip4ipsec40tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=${1518}  phy_cores=${4}

10.2.50.8. tc10-IMIX-1c-ethip4ipsec40tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${1}

10.2.50.9. tc11-IMIX-2c-ethip4ipsec40tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${2}

10.2.50.10. tc12-IMIX-4c-ethip4ipsec40tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${4}

10.2.51. 10ge2p1x710-ethip4ipsec40tnlsw-ip4base-int-aes128gcm-ndrpdr suite

RFC2544: Pkt throughput IPv4 IPsec tunnel mode.

[Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes. [Enc] Packet Encapsulations: Eth-IPv4 on TG-DUTn, Eth-IPv4-IPSec on DUT1-DUT2 [Cfg] DUT configuration: DUT1 and DUT2 are configured with multipleIPsec tunnels between them. DUTs get IPv4 traffic from TG, encrypt itand send to another DUT, where packets are decrypted and sent back to TG [Ver] TG verification: TG finds and reports throughput NDR (Non DropRate) with zero packet loss tolerance and throughput PDR (Partial DropRate) with non-zero packet loss tolerance (LT) expressed in percentageof packets transmitted. NDR and PDR are discovered for differentEthernet L2 frame sizes using MLRsearch library.Test packets are generated by TG on links to DUTs. TG traffic profile contains two L3 flow-groups (flow-group per direction, number of flows per flow-group equals to number of IPSec tunnels) with all packets containing Ethernet header, IPv4 header with IP protocol=61 and static payload. MAC addresses are matching MAC addresses of the TG node interfaces. Incrementing of IP.dst (IPv4 destination address) field is applied to both streams. [Ref] Applicable standard specifications: RFC4303 and RFC2544.

# Copyright (c) 2019 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/shared/default.robot
| Resource | resources/libraries/robot/crypto/ipsec.robot
| ...
| Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDR | TNL_40
| ... | IP4FWD | IPSEC | IPSECSW | IPSECINT | NIC_Intel-X710 | SCALE
| ... | AES_128_GCM | AES
| ...
| Suite Setup | Setup suite single link | performance
| Suite Teardown | Tear down suite | performance
| Test Setup | Setup test
| Test Teardown | Tear down test | performance
| ...
| Test Template | Local Template
| ...
| 
*** Variables ***
| @{plugins_to_enable}= | dpdk_plugin.so | crypto_ia32_plugin.so
| ... | crypto_ipsecmb_plugin.so | crypto_openssl_plugin.so
| ${osi_layer}= | L3
| ${nic_name}= | Intel-X710
| ${overhead}= | ${54}
| ${tg_if1_ip4}= | 192.168.10.2
| ${dut1_if1_ip4}= | 192.168.10.1
| ${dut1_if2_ip4}= | 100.0.0.1
| ${dut2_if1_ip4}= | 200.0.0.2
| ${dut2_if2_ip4}= | 192.168.20.1
| ${tg_if2_ip4}= | 192.168.20.2
| ${raddr_ip4}= | 20.0.0.0
| ${laddr_ip4}= | 10.0.0.0
| ${addr_range}= | ${24}
| ${n_tunnels}= | ${40}
# Traffic profile:
| ${traffic_profile}= | trex-sl-3n-ethip4-ip4dst${n_tunnels}

10.2.51.1. Local Template

[Cfg] DUT runs IPSec tunneling AES_128_GCM config. Each DUT uses ${phy_cores} physical core(s) for worker threads. [Ver] Measure NDR and PDR values using MLRsearch algorithm.Arguments: - frame_size - Framesize in Bytes in integer or string (IMIX_v4_1). Type: integer, string - phy_cores - Number of physical cores. Type: integer - rxq - Number of RX queues, default value: ${None}. Type: integer


Set Test Variable  \${frame_size}
${encr_alg}=  Crypto Alg AES GCM 128
${auth_alg}=  Set Variable  ${NONE}
${ipsec_proto} =  IPsec Proto ESP
Given Add worker threads and rxqueues to all DUTs  ${phy_cores}  ${rxq}
  And Add PCI devices to all DUTs
  And Set Max Rate And Jumbo And Handle Multi Seg
  And Apply startup configuration on all VPP DUTs
 When Initialize IPSec in 3-node circular topology
  And VPP IPsec Create Tunnel Interfaces  ${nodes}  ${dut1_if2_ip4}  ${dut2_if1_ip4}  ${dut1_if2}  ${dut2_if1}  ${n_tunnels}  ${encr_alg}  ${auth_alg}  ${laddr_ip4}  ${raddr_ip4}  ${addr_range}
 Then Find NDR and PDR intervals using optimized search

10.2.51.2. tc01-64B-1c-ethip4ipsec40tnlsw-ip4base-int-aes128gcm-ndrpdr


frame_size=${64}  phy_cores=${1}

10.2.51.3. tc02-64B-2c-ethip4ipsec40tnlsw-ip4base-int-aes128gcm-ndrpdr


frame_size=${64}  phy_cores=${2}

10.2.51.4. tc03-64B-4c-ethip4ipsec40tnlsw-ip4base-int-aes128gcm-ndrpdr


frame_size=${64}  phy_cores=${4}

10.2.51.5. tc04-1518B-1c-ethip4ipsec40tnlsw-ip4base-int-aes128gcm-ndrpdr


frame_size=${1518}  phy_cores=${1}

10.2.51.6. tc05-1518B-2c-ethip4ipsec40tnlsw-ip4base-int-aes128gcm-ndrpdr


frame_size=${1518}  phy_cores=${2}

10.2.51.7. tc06-1518B-4c-ethip4ipsec40tnlsw-ip4base-int-aes128gcm-ndrpdr


frame_size=${1518}  phy_cores=${4}

10.2.51.8. tc10-IMIX-1c-ethip4ipsec40tnlsw-ip4base-int-aes128gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${1}

10.2.51.9. tc11-IMIX-2c-ethip4ipsec40tnlsw-ip4base-int-aes128gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${2}

10.2.51.10. tc12-IMIX-4c-ethip4ipsec40tnlsw-ip4base-int-aes128gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${4}

10.2.52. 10ge2p1x710-ethip4ipsec40tnlsw-ip4base-int-aes256gcm-ndrpdr suite

RFC2544: Pkt throughput IPv4 IPsec tunnel mode.

[Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes. [Enc] Packet Encapsulations: Eth-IPv4 on TG-DUTn, Eth-IPv4-IPSec on DUT1-DUT2 [Cfg] DUT configuration: DUT1 and DUT2 are configured with multipleIPsec tunnels between them. DUTs get IPv4 traffic from TG, encrypt itand send to another DUT, where packets are decrypted and sent back to TG [Ver] TG verification: TG finds and reports throughput NDR (Non DropRate) with zero packet loss tolerance and throughput PDR (Partial DropRate) with non-zero packet loss tolerance (LT) expressed in percentageof packets transmitted. NDR and PDR are discovered for differentEthernet L2 frame sizes using MLRsearch library.Test packets are generated by TG on links to DUTs. TG traffic profile contains two L3 flow-groups (flow-group per direction, number of flows per flow-group equals to number of IPSec tunnels) with all packets containing Ethernet header, IPv4 header with IP protocol=61 and static payload. MAC addresses are matching MAC addresses of the TG node interfaces. Incrementing of IP.dst (IPv4 destination address) field is applied to both streams. [Ref] Applicable standard specifications: RFC4303 and RFC2544.

# Copyright (c) 2019 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/shared/default.robot
| Resource | resources/libraries/robot/crypto/ipsec.robot
| ...
| Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDR | TNL_40
| ... | IP4FWD | IPSEC | IPSECSW | IPSECINT | NIC_Intel-X710 | SCALE
| ... | AES_256_GCM | AES
| ...
| Suite Setup | Setup suite single link | performance
| Suite Teardown | Tear down suite | performance
| Test Setup | Setup test
| Test Teardown | Tear down test | performance
| ...
| Test Template | Local Template
| ...
| 
*** Variables ***
| @{plugins_to_enable}= | dpdk_plugin.so | crypto_ia32_plugin.so
| ... | crypto_ipsecmb_plugin.so | crypto_openssl_plugin.so
| ${osi_layer}= | L3
| ${nic_name}= | Intel-X710
| ${overhead}= | ${54}
| ${tg_if1_ip4}= | 192.168.10.2
| ${dut1_if1_ip4}= | 192.168.10.1
| ${dut1_if2_ip4}= | 100.0.0.1
| ${dut2_if1_ip4}= | 200.0.0.2
| ${dut2_if2_ip4}= | 192.168.20.1
| ${tg_if2_ip4}= | 192.168.20.2
| ${raddr_ip4}= | 20.0.0.0
| ${laddr_ip4}= | 10.0.0.0
| ${addr_range}= | ${24}
| ${n_tunnels}= | ${40}
# Traffic profile:
| ${traffic_profile}= | trex-sl-3n-ethip4-ip4dst${n_tunnels}

10.2.52.1. Local Template

[Cfg] DUT runs IPSec tunneling AES_256_GCM config. Each DUT uses ${phy_cores} physical core(s) for worker threads. [Ver] Measure NDR and PDR values using MLRsearch algorithm.Arguments: - frame_size - Framesize in Bytes in integer or string (IMIX_v4_1). Type: integer, string - phy_cores - Number of physical cores. Type: integer - rxq - Number of RX queues, default value: ${None}. Type: integer


Set Test Variable  \${frame_size}
${encr_alg}=  Crypto Alg AES GCM 256
${auth_alg}=  Set Variable  ${NONE}
${ipsec_proto} =  IPsec Proto ESP
Given Add worker threads and rxqueues to all DUTs  ${phy_cores}  ${rxq}
  And Add PCI devices to all DUTs
  And Set Max Rate And Jumbo And Handle Multi Seg
  And Apply startup configuration on all VPP DUTs
 When Initialize IPSec in 3-node circular topology
  And VPP IPsec Create Tunnel Interfaces  ${nodes}  ${dut1_if2_ip4}  ${dut2_if1_ip4}  ${dut1_if2}  ${dut2_if1}  ${n_tunnels}  ${encr_alg}  ${auth_alg}  ${laddr_ip4}  ${raddr_ip4}  ${addr_range}
 Then Find NDR and PDR intervals using optimized search

10.2.52.2. tc01-64B-1c-ethip4ipsec40tnlsw-ip4base-int-aes256gcm-ndrpdr


frame_size=${64}  phy_cores=${1}

10.2.52.3. tc02-64B-2c-ethip4ipsec40tnlsw-ip4base-int-aes256gcm-ndrpdr


frame_size=${64}  phy_cores=${2}

10.2.52.4. tc03-64B-4c-ethip4ipsec40tnlsw-ip4base-int-aes256gcm-ndrpdr


frame_size=${64}  phy_cores=${4}

10.2.52.5. tc04-1518B-1c-ethip4ipsec40tnlsw-ip4base-int-aes256gcm-ndrpdr


frame_size=${1518}  phy_cores=${1}

10.2.52.6. tc05-1518B-2c-ethip4ipsec40tnlsw-ip4base-int-aes256gcm-ndrpdr


frame_size=${1518}  phy_cores=${2}

10.2.52.7. tc06-1518B-4c-ethip4ipsec40tnlsw-ip4base-int-aes256gcm-ndrpdr


frame_size=${1518}  phy_cores=${4}

10.2.52.8. tc10-IMIX-1c-ethip4ipsec40tnlsw-ip4base-int-aes256gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${1}

10.2.52.9. tc11-IMIX-2c-ethip4ipsec40tnlsw-ip4base-int-aes256gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${2}

10.2.52.10. tc12-IMIX-4c-ethip4ipsec40tnlsw-ip4base-int-aes256gcm-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${4}

10.2.53. 10ge2p1x710-ethip4ipsec4tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr suite

RFC2544: Pkt throughput IPv4 IPsec tunnel mode.

[Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes. [Enc] Packet Encapsulations: Eth-IPv4 on TG-DUTn, Eth-IPv4-IPSec on DUT1-DUT2 [Cfg] DUT configuration: DUT1 and DUT2 are configured with multipleIPsec tunnels between them. DUTs get IPv4 traffic from TG, encrypt itand send to another DUT, where packets are decrypted and sent back to TG [Ver] TG verification: TG finds and reports throughput NDR (Non DropRate) with zero packet loss tolerance and throughput PDR (Partial DropRate) with non-zero packet loss tolerance (LT) expressed in percentageof packets transmitted. NDR and PDR are discovered for differentEthernet L2 frame sizes using MLRsearch library.Test packets are generated by TG on links to DUTs. TG traffic profile contains two L3 flow-groups (flow-group per direction, number of flows per flow-group equals to number of IPSec tunnels) with all packets containing Ethernet header, IPv4 header with IP protocol=61 and static payload. MAC addresses are matching MAC addresses of the TG node interfaces. Incrementing of IP.dst (IPv4 destination address) field is applied to both streams. [Ref] Applicable standard specifications: RFC4303 and RFC2544.

# Copyright (c) 2019 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/shared/default.robot
| Resource | resources/libraries/robot/crypto/ipsec.robot
| ...
| Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDR | TNL_4
| ... | IP4FWD | IPSEC | IPSECSW | IPSECINT | NIC_Intel-X710 | SCALE
| ... | AES_128_CBC | HMAC_SHA_256 | HMAC | AES
| ...
| Suite Setup | Setup suite single link | performance
| Suite Teardown | Tear down suite | performance
| Test Setup | Setup test
| Test Teardown | Tear down test | performance
| ...
| Test Template | Local Template
| ...
| 
*** Variables ***
| @{plugins_to_enable}= | dpdk_plugin.so | crypto_ia32_plugin.so
| ... | crypto_ipsecmb_plugin.so | crypto_openssl_plugin.so
| ${osi_layer}= | L3
| ${nic_name}= | Intel-X710
| ${overhead}= | ${58}
| ${tg_if1_ip4}= | 192.168.10.2
| ${dut1_if1_ip4}= | 192.168.10.1
| ${dut1_if2_ip4}= | 100.0.0.1
| ${dut2_if1_ip4}= | 200.0.0.2
| ${dut2_if2_ip4}= | 192.168.20.1
| ${tg_if2_ip4}= | 192.168.20.2
| ${raddr_ip4}= | 20.0.0.0
| ${laddr_ip4}= | 10.0.0.0
| ${addr_range}= | ${24}
| ${n_tunnels}= | ${4}
# Traffic profile:
| ${traffic_profile}= | trex-sl-3n-ethip4-ip4dst${n_tunnels}

10.2.53.1. Local Template

[Cfg] DUT runs IPSec tunneling AES_128_CBC / HMAC_SHA_256 config. Each DUT uses ${phy_cores} physical core(s) for worker threads. [Ver] Measure NDR and PDR values using MLRsearch algorithm.Arguments: - frame_size - Framesize in Bytes in integer or string (IMIX_v4_1). Type: integer, string - phy_cores - Number of physical cores. Type: integer - rxq - Number of RX queues, default value: ${None}. Type: integer


Set Test Variable  \${frame_size}
${encr_alg}=  Crypto Alg AES CBC 128
${auth_alg}=  Integ Alg SHA 256 128
Given Add worker threads and rxqueues to all DUTs  ${phy_cores}  ${rxq}
  And Add PCI devices to all DUTs
  And Set Max Rate And Jumbo And Handle Multi Seg
  And Apply startup configuration on all VPP DUTs
 When Initialize IPSec in 3-node circular topology
  And VPP IPsec Create Tunnel Interfaces  ${nodes}  ${dut1_if2_ip4}  ${dut2_if1_ip4}  ${dut1_if2}  ${dut2_if1}  ${n_tunnels}  ${encr_alg}  ${auth_alg}  ${laddr_ip4}  ${raddr_ip4}  ${addr_range}
 Then Find NDR and PDR intervals using optimized search

10.2.53.2. tc01-64B-1c-ethip4ipsec4tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=${64}  phy_cores=${1}

10.2.53.3. tc02-64B-2c-ethip4ipsec4tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=${64}  phy_cores=${2}

10.2.53.4. tc03-64B-4c-ethip4ipsec4tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=${64}  phy_cores=${4}

10.2.53.5. tc04-1518B-1c-ethip4ipsec4tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=${1518}  phy_cores=${1}

10.2.53.6. tc05-1518B-2c-ethip4ipsec4tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=${1518}  phy_cores=${2}

10.2.53.7. tc06-1518B-4c-ethip4ipsec4tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=${1518}  phy_cores=${4}

10.2.53.8. tc10-IMIX-1c-ethip4ipsec4tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${1}

10.2.53.9. tc11-IMIX-2c-ethip4ipsec4tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${2}

10.2.53.10. tc12-IMIX-4c-ethip4ipsec4tnlsw-ip4base-int-aes128cbc-hmac256sha-ndrpdr


frame_size=IMIX_v4_1  phy_cores=${4}

10.2.54. 10ge2p1x710-ethip4ipsec4tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr suite

RFC2544: Pkt throughput IPv4 IPsec tunnel mode.

[Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes. [Enc] Packet Encapsulations: Eth-IPv4 on TG-DUTn, Eth-IPv4-IPSec on DUT1-DUT2 [Cfg] DUT configuration: DUT1 and DUT2 are configured with multipleIPsec tunnels between them. DUTs get IPv4 traffic from TG, encrypt itand send to another DUT, where packets are decrypted and sent back to TG [Ver] TG verification: TG finds and reports throughput NDR (Non DropRate) with zero packet loss tolerance and throughput PDR (Partial DropRate) with non-zero packet loss tolerance (LT) expressed in percentageof packets transmitted. NDR and PDR are discovered for differentEthernet L2 frame sizes using MLRsearch library.Test packets are generated by TG on links to DUTs. TG traffic profile contains two L3 flow-groups (flow-group per direction, number of flows per flow-group equals to number of IPSec tunnels) with all packets containing Ethernet header, IPv4 header with IP protocol=61 and static payload. MAC addresses are matching MAC addresses of the TG node interfaces. Incrementing of IP.dst (IPv4 destination address) field is applied to both streams. [Ref] Applicable standard specifications: RFC4303 and RFC2544.

# Copyright (c) 2019 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/shared/default.robot
| Resource | resources/libraries/robot/crypto/ipsec.robot
| ...
| Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDR | TNL_4
| ... | IP4FWD | IPSEC | IPSECSW | IPSECINT | NIC_Intel-X710 | SCALE
| ... | AES_128_CBC | HMAC_SHA_512 | HMAC | AES
| ...
| Suite Setup | Setup suite single link | performance
| Suite Teardown | Tear down suite | performance
| Test Setup | Setup test
| Test Teardown | Tear down test | performance
| ...
| Test Template | Local Template
| ...
| 
*** Variables ***
| @{plugins_to_enable}= | dpdk_plugin.so | crypto_ia32_plugin.so
| ... | crypto_ipsecmb_plugin.so | crypto_openssl_plugin.so
| ${osi_layer}= | L3
| ${nic_name}= | Intel-X710
| ${overhead}= | ${58}
| ${tg_if1_ip4}= | 192.168.10.2
| ${dut1_if1_ip4}= | 192.168.10.1
| ${dut1_if2_ip4}= | 100.0.0.1
| ${dut2_if1_ip4}= | 200.0.0.2
| ${dut2_if2_ip4}= | 192.168.20.1
| ${tg_if2_ip4}= | 192.168.20.2
| ${raddr_ip4}= | 20.0.0.0
| ${laddr_ip4}= | 10.0.0.0
| ${addr_range}= | ${24}
| ${n_tunnels}= | ${4}
# Traffic profile:
| ${traffic_profile}= | trex-sl-3n-ethip4-ip4dst${n_tunnels}

10.2.54.1. Local Template

[Cfg] DUT runs IPSec tunneling AES_128_CBC / HMAC_SHA_512 config. Each DUT uses ${phy_cores} physical core(s) for worker threads. [Ver] Measure NDR and PDR values using MLRsearch algorithm.Arguments: - frame_size - Framesize in Bytes in integer or string (IMIX_v4_1). Type: integer, string - phy_cores - Number of physical cores. Type: integer - rxq - Number of RX queues, default value: ${None}. Type: integer


Set Test Variable  \${frame_size}
${encr_alg}=  Crypto Alg AES CBC 128
${auth_alg}=  Integ Alg SHA 512 256
Given Add worker threads and rxqueues to all DUTs  ${phy_cores}  ${rxq}
  And Add PCI devices to all DUTs
  And Set Max Rate And Jumbo And Handle Multi Seg
  And Apply startup configuration on all VPP DUTs
 When Initialize IPSec in 3-node circular topology
  And VPP IPsec Create Tunnel Interfaces  ${nodes}  ${dut1_if2_ip4}  ${dut2_if1_ip4}  ${dut1_if2}  ${dut2_if1}  ${n_tunnels}  ${encr_alg}  ${auth_alg}  ${laddr_ip4}  ${raddr_ip4}  ${addr_range}
 Then Find NDR and PDR intervals using optimized search

10.2.54.2. tc01-64B-1c-ethip4ipsec4tnlsw-ip4base-int-aes128cbc-hmac512sha-ndrpdr


frame_size=${64}  phy_cores=${1