Fix ommissions from recent Changes
[csit.git] / tests / vpp / perf / crypto / 40ge2p1xl710-ethip4ipsectptlispgpe-ip4base-cbc-sha1-mrr.robot
1 # Copyright (c) 2018 Cisco and/or its affiliates.
2 # Licensed under the Apache License, Version 2.0 (the "License");
3 # you may not use this file except in compliance with the License.
4 # You may obtain a copy of the License at:
5 #
6 #     http://www.apache.org/licenses/LICENSE-2.0
7 #
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 # See the License for the specific language governing permissions and
12 # limitations under the License.
13
14 *** Settings ***
15 | Resource | resources/libraries/robot/performance/performance_setup.robot
16 | Resource | resources/libraries/robot/crypto/ipsec.robot
17 | Resource | resources/libraries/robot/overlay/lispgpe.robot
18 | ...
19 | Variables | resources/test_data/lisp/performance/lisp_static_adjacency.py
20 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | MRR | IP4FWD
21 | ... | LISPGPE | IPSEC | IPSECHW | IPSECTRAN | ENCAP | IP4UNRLAY | IP4OVRLAY
22 | ... | NIC_Intel-XL710
23 | ...
24 | Suite Setup | Set up IPSec performance test suite | L3 | Intel-XL710
25 | ... | HW_cryptodev
26 | ...
27 | Suite Teardown | Tear down 3-node performance topology
28 | ...
29 | Test Setup | Set up performance test
30 | ...
31 | Test Teardown | Tear down performance mrr test
32 | ...
33 | Test Template | Local Template
34 | ...
35 | Documentation | *IPv4 IPsec transport mode performance test suite.*
36 | ...
37 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology\
38 | ... | with single links between nodes.
39 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4 on TG-DUTn,\
40 | ... | Eth-IPv4-IPSec-LISPGPE-IPv4 on DUT1-DUT2
41 | ... | *[Cfg] DUT configuration:* Each DUT is configured with LISP and IPsec\
42 | ... | in each direction. IPsec is in transport mode. DUTs get IPv4 traffic\
43 | ... | from TG, encrypt it and send to another DUT, where packets are\
44 | ... | decrypted and sent back to TG.
45 | ... | *[Ver] TG verification:* In MaxReceivedRate test TG sends traffic
46 | ... | at line rate and reports total received/sent packets over trial period.
47 | ... | Test packets are generated by TG on\
48 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups\
49 | ... | (flow-group per direction, number of flows per flow-group equals to\
50 | ... | number of IPSec tunnels) with all packets\
51 | ... | containing Ethernet header, IPv4 header with IP protocol=61 and\
52 | ... | static payload. MAC addresses are matching MAC addresses of the TG\
53 | ... | node interfaces. Incrementing of IP.dst (IPv4 destination address)\
54 | ... | field is applied to both streams.
55 | ... | *[Ref] Applicable standard specifications:* RFC6830, RFC4303 and\
56 | ... | RFC2544.
57
58 *** Variables ***
59 # XL710-DA2 bandwidth limit ~49Gbps/2=24.5Gbps
60 | ${s_24.5G}= | ${24500000000}
61 # XL710-DA2 Mpps limit 37.5Mpps/2=18.75Mpps
62 | ${s_18.75Mpps}= | ${18750000}
63 | ${dut2_spi}= | ${1000}
64 | ${dut1_spi}= | ${1001}
65 | ${ESP_PROTO}= | ${50}
66 | ${overhead}= | ${54}
67 # Traffic profile:
68 | ${traffic_profile}= | trex-sl-3n-ethip4-ip4src253
69
70 *** Keywords ***
71 | Local Template
72 | | [Documentation]
73 | | ... | [Cfg] Each DUT is configured with LISP and IPsec in each direction.\
74 | | ... | IPsec is in transport mode.
75 | | ... | Each DUT uses ${phy_cores} physical core(s) for worker threads.
76 | | ... | [Ver] Measure MaxReceivedRate for ${framesize}B frames using single\
77 | | ... | trial throughput test.
78 | | ...
79 | | ... | *Arguments:*
80 | | ... | - framesize - Framesize in Bytes in integer or string (IMIX_v4_1).
81 | | ... | Type: integer, string
82 | | ... | - phy_cores - Number of physical cores. Type: integer
83 | | ... | - rxq - Number of RX queues, default value: ${None}. Type: integer
84 | | ...
85 | | [Arguments] | ${framesize} | ${phy_cores} | ${rxq}=${None}
86 | | ...
87 | | ${encr_alg} = | Crypto Alg AES CBC 128
88 | | ${auth_alg} = | Integ Alg SHA1 96
89 | | ...
90 | | Given Add worker threads and rxqueues to all DUTs | ${phy_cores} | ${rxq}
91 | | And Add PCI devices to all DUTs
92 | | ${max_rate} | ${jumbo} = | Get Max Rate And Jumbo And Handle Multi Seg
93 | | ... | ${s_24.5G} | ${framesize} | overhead=${overhead}
94 | | ... | pps_limit=${s_18.75Mpps}
95 | | And Add cryptodev to all DUTs | ${phy_cores}
96 | | And Add DPDK dev default RXD to all DUTs | 2048
97 | | And Add DPDK dev default TXD to all DUTs | 2048
98 | | And Apply startup configuration on all VPP DUTs
99 | | When Generate keys for IPSec | ${encr_alg} | ${auth_alg}
100 | | When Initialize LISP GPE IPv4 over IPsec in 3-node circular topology
101 | | ... | ${encr_alg} | ${auth_alg}
102 | | Then Traffic should pass with maximum rate
103 | | ... | ${max_rate}pps | ${framesize} | ${traffic_profile}
104
105 *** Test Cases ***
106 | tc01-64B-1c-ethip4ipsectptlispgpe-ip4base-cbc-sha1-mrr
107 | | [Tags] | 64B | 1C
108 | | framesize=${64} | phy_cores=${1}
109
110 | tc02-64B-2c-ethip4ipsectptlispgpe-ip4base-cbc-sha1-mrr
111 | | [Tags] | 64B | 2C
112 | | framesize=${64} | phy_cores=${2}
113
114 | tc03-64B-4c-ethip4ipsectptlispgpe-ip4base-cbc-sha1-mrr
115 | | [Tags] | 64B | 4C
116 | | framesize=${64} | phy_cores=${4}
117
118 | tc04-1518B-1c-ethip4ipsectptlispgpe-ip4base-cbc-sha1-mrr
119 | | [Tags] | 1518B | 1C
120 | | framesize=${1518} | phy_cores=${1}
121
122 | tc05-1518B-2c-ethip4ipsectptlispgpe-ip4base-cbc-sha1-mrr
123 | | [Tags] | 1518B | 2C
124 | | framesize=${1518} | phy_cores=${2}
125
126 | tc06-1518B-4c-ethip4ipsectptlispgpe-ip4base-cbc-sha1-mrr
127 | | [Tags] | 1518B | 4C
128 | | framesize=${1518} | phy_cores=${4}
129
130 | tc07-9000B-1c-ethip4ipsectptlispgpe-ip4base-cbc-sha1-mrr
131 | | [Tags] | 9000B | 1C
132 | | framesize=${9000} | phy_cores=${1}
133
134 | tc08-9000B-2c-ethip4ipsectptlispgpe-ip4base-cbc-sha1-mrr
135 | | [Tags] | 9000B | 2C
136 | | framesize=${9000} | phy_cores=${2}
137
138 | tc09-9000B-4c-ethip4ipsectptlispgpe-ip4base-cbc-sha1-mrr
139 | | [Tags] | 9000B | 4C
140 | | framesize=${9000} | phy_cores=${4}
141
142 | tc10-IMIX-1c-ethip4ipsectptlispgpe-ip4base-cbc-sha1-mrr
143 | | [Tags] | IMIX | 1C
144 | | framesize=IMIX_v4_1 | phy_cores=${1}
145
146 | tc11-IMIX-2c-ethip4ipsectptlispgpe-ip4base-cbc-sha1-mrr
147 | | [Tags] | IMIX | 2C
148 | | framesize=IMIX_v4_1 | phy_cores=${2}
149
150 | tc12-IMIX-4c-ethip4ipsectptlispgpe-ip4base-cbc-sha1-mrr
151 | | [Tags] | IMIX | 4C
152 | | framesize=IMIX_v4_1 | phy_cores=${4}