fix(IPsec): fix policy tests
[csit.git] / tests / vpp / perf / srv6 / 10ge2p1x710-ethip6ip6-ip6base-srv6enc1sid-ndrpdr.robot
1 # Copyright (c) 2021 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/shared/default.robot
16 |
17 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDR
18 | ... | NIC_Intel-X710 | ETH | IP6FWD | FEATURE | SRv6 | SRv6_1SID
19 | ... | DRV_VFIO_PCI
20 | ... | RXQ_SIZE_0 | TXQ_SIZE_0
21 | ... | ethip6ip6-ip6base-srv6enc1sid
22 |
23 | Suite Setup | Setup suite topology interfaces | performance
24 | Suite Teardown | Tear down suite | performance
25 | Test Setup | Setup test | performance
26 | Test Teardown | Tear down test | performance | srv6
27 |
28 | Test Template | Local Template
29 |
30 | Documentation | **Packet throughput Segment routing over IPv6 dataplane with \
31 | ... | one SID (SRH not inserted) test cases**
32 | ... |
33 | ... | - **[Top] Network Topologies:** TG-DUT1-DUT2-TG 3-node circular \
34 | ... | topology with single links between nodes.
35 | ... |
36 | ... | - **[Enc] Packet Encapsulations:** Eth-IPv6-IPv6 on DUT1-DUT2, \
37 | ... | Eth-IPv6 on TG-DUTn for IPv6 routing over SRv6.
38 | ... |
39 | ... | - **[Cfg] DUT configuration:** DUT1 and DUT2 are configured with IPv6 \
40 | ... | routing and static route, SR policy and steering policy for one \
41 | ... | direction and one SR behaviour (function) - End.DX6 - for other \
42 | ... | direction. DUT1 and DUT2 are tested with ${nic_name}.
43 | ... |
44 | ... | - **[Ver] TG verification:** TG finds and reports throughput NDR (Non \
45 | ... | Drop Rate) with zero packet loss tolerance and throughput PDR \
46 | ... | (Partial Drop Rate) with non-zero packet loss tolerance (LT) \
47 | ... | expressed in percentage of packets transmitted. NDR and PDR are \
48 | ... | discovered for different Ethernet L2 frame sizes using MLRsearch \
49 | ... | library.
50 | ... | Test packets are generated by TG on \
51 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups \
52 | ... | (flow-group per direction, 253 flows per flow-group) with \
53 | ... | all packets containing Ethernet header,IPv6 header with static \
54 | ... | payload. \
55 | ... | MAC addresses are matching MAC addresses of the TG node interfaces.
56 | ... |
57 | ... | - **[Ref] Applicable standard specifications:** SRv6 Network \
58 | ... | Programming - draft 3.
59
60 *** Variables ***
61 | @{plugins_to_enable}= | dpdk_plugin.so | perfmon_plugin.so
62 | ${crypto_type}= | ${None}
63 | ${nic_name}= | Intel-X710
64 | ${nic_driver}= | vfio-pci
65 | ${nic_rxq_size}= | 0
66 | ${nic_txq_size}= | 0
67 | ${nic_pfs}= | 2
68 | ${nic_vfs}= | 0
69 | ${osi_layer}= | L3
70 | ${overhead}= | ${40}
71 # SIDs
72 | ${dut1_sid1}= | 2002:1::
73 | ${dut1_sid2}= | 2003:2::
74 | ${dut1_bsid}= | 2002:1::1
75 | ${dut2_sid1}= | 2002:2::
76 | ${dut2_sid2}= | 2003:1::
77 | ${dut2_bsid}= | 2002:2::1
78 | ${sid_prefix}= | ${64}
79 # IP settings
80 | ${tg_if1_ip6_subnet}= | 2001:1::
81 | ${tg_if2_ip6_subnet}= | 2001:2::
82 | ${dst_addr_nr}= | ${1}
83 | ${dut1_if1_ip6}= | 2001:1::1
84 | ${dut1_if2_ip6}= | 2001:3::1
85 | ${dut2_if1_ip6}= | 2001:3::2
86 | ${dut2_if2_ip6}= | 2001:2::1
87 | ${prefix}= | ${64}
88 # Traffic profile:
89 | ${traffic_profile}= | trex-stl-3n-ethip6-ip6src253
90
91 *** Keywords ***
92 | Local Template
93 | | [Documentation]
94 | | ... | - **[Cfg]** DUT1 and DUT2 are configured with IPv6 routing \
95 | | ... | and static route, SR policy and steering policy for one direction \
96 | | ... | and one SR behaviour (function) - End - for other direction. \
97 | | ... | Each DUT uses ${phy_cores} physical core(s) for worker threads.
98 | | ... | - **[Ver]** Measure NDR and PDR values using MLRsearch algorithm.
99 | |
100 | | ... | *Arguments:*
101 | | ... | - frame_size - Framesize in Bytes in integer or string (IMIX_v4_1).
102 | | ... | Type: integer, string
103 | | ... | - phy_cores - Number of physical cores. Type: integer
104 | | ... | - rxq - Number of RX queues, default value: ${None}. Type: integer
105 | |
106 | | [Arguments] | ${frame_size} | ${phy_cores} | ${rxq}=${None}
107 | |
108 | | Set Test Variable | \${frame_size}
109 | |
110 | | Given Set Max Rate And Jumbo
111 | | And Add worker threads to all DUTs | ${phy_cores} | ${rxq}
112 | | And Pre-initialize layer driver | ${nic_driver}
113 | | And Apply startup configuration on all VPP DUTs
114 | | When Initialize layer driver | ${nic_driver}
115 | | And Initialize layer interface
116 | | And Initialize SRv6 encapsulation with '1' x SID 'with' decapsulation
117 | | Then Find NDR and PDR intervals using optimized search
118
119 *** Test Cases ***
120 | 78B-1c-ethip6ip6-ip6base-srv6enc1sid-ndrpdr
121 | | [Tags] | 78B | 1C
122 | | frame_size=${78} | phy_cores=${1}
123
124 | 78B-2c-ethip6ip6-ip6base-srv6enc1sid-ndrpdr
125 | | [Tags] | 78B | 2C
126 | | frame_size=${78} | phy_cores=${2}
127
128 | 78B-4c-ethip6ip6-ip6base-srv6enc1sid-ndrpdr
129 | | [Tags] | 78B | 4C
130 | | frame_size=${78} | phy_cores=${4}
131
132 | 1518B-1c-ethip6ip6-ip6base-srv6enc1sid-ndrpdr
133 | | [Tags] | 1518B | 1C
134 | | frame_size=${1518} | phy_cores=${1}
135
136 | 1518B-2c-ethip6ip6-ip6base-srv6enc1sid-ndrpdr
137 | | [Tags] | 1518B | 2C
138 | | frame_size=${1518} | phy_cores=${2}
139
140 | 1518B-4c-ethip6ip6-ip6base-srv6enc1sid-ndrpdr
141 | | [Tags] | 1518B | 4C
142 | | frame_size=${1518} | phy_cores=${4}
143
144 | 9000B-1c-ethip6ip6-ip6base-srv6enc1sid-ndrpdr
145 | | [Tags] | 9000B | 1C
146 | | frame_size=${9000} | phy_cores=${1}
147
148 | 9000B-2c-ethip6ip6-ip6base-srv6enc1sid-ndrpdr
149 | | [Tags] | 9000B | 2C
150 | | frame_size=${9000} | phy_cores=${2}
151
152 | 9000B-4c-ethip6ip6-ip6base-srv6enc1sid-ndrpdr
153 | | [Tags] | 9000B | 4C
154 | | frame_size=${9000} | phy_cores=${4}
155
156 | IMIX-1c-ethip6ip6-ip6base-srv6enc1sid-ndrpdr
157 | | [Tags] | IMIX | 1C
158 | | frame_size=IMIX_v4_1 | phy_cores=${1}
159
160 | IMIX-2c-ethip6ip6-ip6base-srv6enc1sid-ndrpdr
161 | | [Tags] | IMIX | 2C
162 | | frame_size=IMIX_v4_1 | phy_cores=${2}
163
164 | IMIX-4c-ethip6ip6-ip6base-srv6enc1sid-ndrpdr
165 | | [Tags] | IMIX | 4C
166 | | frame_size=IMIX_v4_1 | phy_cores=${4}