CSIT-687: Directory structure reorganization
[csit.git] / tests / vpp / perf / ip6_tunnels / 10ge2p1x520-ethip6lispip6-ip6base-pdrchk.robot
1 # Copyright (c) 2017 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/overlay/lisp_static_adjacency.robot
17 | Variables | resources/test_data/lisp/performance/lisp_static_adjacency.py
18 | ...
19 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | PDRCHK
20 | ... | NIC_Intel-X520-DA2 | IP6FWD | ENCAP | LISP | IP6UNRLAY | IP6OVRLAY
21 | ...
22 | Suite Setup | Set up 3-node performance topology with DUT's NIC model
23 | ... | L3 | Intel-X520-DA2
24 | Suite Teardown | Tear down 3-node performance topology
25 | ...
26 | Test Setup | Set up performance test
27 | Test Teardown | Tear down performance pdrchk test
28 | ...
29 | Documentation | *Reference PDR throughput Lisp tunnel verify test cases*
30 | ...
31 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology\
32 | ... | with single links between nodes.
33 | ... | *[Enc] Packet Encapsulations:* Eth-IPv6-LISP-IPv6 on DUT1-DUT2,\
34 | ... | Eth-IPv6-ICMPv6 on TG-DUTn for IPv6 routing over LISPoIPv6 tunnel.
35 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with IPv6\
36 | ... | routing and static routes. LISPoIPv6 tunnel is configured\
37 | ... | between DUT1 and DUT2. DUT1 and DUT2 tested with 2p10GE NIC X520\
38 | ... | Niantic by Intel.
39 | ... | *[Ver] TG verification:* In short performance tests, TG verifies\
40 | ... | DUTs' throughput at ref-PDR (reference Non Drop Rate) with zero packet\
41 | ... | loss tolerance. Ref-PDR value is periodically updated acording to\
42 | ... | formula: ref-PDR = 0.9x PDR, where PDR is found in RFC2544 long\
43 | ... | performance tests for the same DUT confiiguration. Test packets are\
44 | ... | generated by TG on links to DUTs. TG traffic profile contains two L3\
45 | ... | flow-groups (flow-group per direction, 253 flows per flow-group) with\
46 | ... | all packets containing Ethernet header, IPv6 header with\
47 | ... | IP protocol=61 and generated payload.
48 | ... | *[Ref] Applicable standard specifications:* RFC2544.
49
50 *** Variables ***
51 # Traffic profile:
52 | ${traffic_profile} | trex-sl-3n-ethip6-ip6src253
53
54 *** Keywords ***
55 | Check PDR for Lisp IPv6 over IPv6 forwarding
56 | | [Documentation]
57 | | ... | [Cfg] DUT runs LISP tunnel config with ${wt} thread, ${wt} phy core,\
58 | | ... | ${rxq} receive queue per NIC port.
59 | | ... | [Ver] Verify ref-NDR for ${framesize} Byte frames using single trial\
60 | | ... | throughput test at 2x ${rate}.
61 | | ...
62 | | [Arguments] | ${framesize} | ${rate} | ${wt} | ${rxq}
63 | | ...
64 | | # Test Variables required for test and test teardown
65 | | Set Test Variable | ${framesize}
66 | | Set Test Variable | ${rate}
67 | | ${get_framesize}= | Get Frame Size | ${framesize}
68 | | ...
69 | | Given Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
70 | | And Add PCI devices to DUTs in 3-node single link topology
71 | | And Run Keyword If | ${get_framesize} < ${1522}
72 | | ... | Add no multi seg to all DUTs
73 | | And Apply startup configuration on all VPP DUTs
74 | | When Initialize LISP IPv6 forwarding in 3-node circular topology
75 | | ... | ${dut1_to_dut2_ip6} | ${dut1_to_tg_ip6} | ${dut2_to_dut1_ip6}
76 | | ... | ${dut2_to_tg_ip6} | ${prefix6}
77 | | And Configure LISP topology in 3-node circular topology
78 | | ... | ${dut1} | ${dut1_if2} | ${NONE}
79 | | ... | ${dut2} | ${dut2_if1} | ${NONE}
80 | | ... | ${duts_locator_set} | ${dut1_ip6_eid} | ${dut2_ip6_eid}
81 | | ... | ${dut1_ip6_static_adjacency} | ${dut2_ip6_static_adjacency}
82 | | Then Traffic should pass with partial loss | ${perf_trial_duration}
83 | | ... | ${rate} | ${framesize} | ${traffic_profile}
84 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
85
86 *** Test Cases ***
87 | tc01-78B-1t1c-ethip6lispip6-ip6base-pdrchk
88 | | [Documentation]
89 | | ... | [Cfg] DUT runs LISP tunnel config with 1 thread, 1 phy core,\
90 | | ... | 1 receive queue per NIC port.
91 | | ... | [Ver] Verify ref-NDR for 78 Byte frames using single trial\
92 | | ... | throughput test at 2x ${rate}.
93 | | ...
94 | | [Tags] | 78B | 1T1C | STHREAD
95 | | ...
96 | | [Template] | Check PDR for Lisp IPv6 over IPv6 forwarding
97 | | framesize=${78} | rate=1.56mpps | wt=1 | rxq=1
98
99 | tc02-1460B-1t1c-ethip6lispip6-ip6base-pdrchk
100 | | [Documentation]
101 | | ... | [Cfg] DUT runs LISP tunnel config with 1 thread, 1 phy core,\
102 | | ... | 1 receive queue per NIC port.
103 | | ... | [Ver] Verify ref-NDR for 1460 Byte frames using single trial\
104 | | ... | throughput test at 2x ${rate}.
105 | | ...
106 | | [Tags] | 1460B | 1T1C | STHREAD
107 | | ...
108 | | [Template] | Check PDR for Lisp IPv6 over IPv6 forwarding
109 | | framesize=${1460} | rate=370000pps | wt=1 | rxq=1
110
111 | tc03-9000B-1t1c-ethip6lispip6-ip6base-pdrchk
112 | | [Documentation]
113 | | ... | [Cfg] DUT runs LISP tunnel config with 1 thread, 1 phy core,\
114 | | ... | 1 receive queue per NIC port.
115 | | ... | [Ver] Verify ref-NDR for 9000 Byte frames using single trial\
116 | | ... | throughput test at 2x ${rate}.
117 | | ...
118 | | [Tags] | 9000B | 1T1C | STHREAD
119 | | ...
120 | | [Template] | Check PDR for Lisp IPv6 over IPv6 forwarding
121 | | framesize=${9000} | rate=60000pps | wt=1 | rxq=1
122
123 | tc04-78B-2t2c-ethip6lispip6-ip6base-pdrchk
124 | | [Documentation]
125 | | ... | [Cfg] DUT runs LISP tunnel config with 2 thread, 2 phy core,\
126 | | ... | 1 receive queue per NIC port.
127 | | ... | [Ver] Verify ref-NDR for 78 Byte frames using single trial\
128 | | ... | throughput test at 2x ${rate}.
129 | | ...
130 | | [Tags] | 78B | 2T2C | MTHREAD
131 | | ...
132 | | [Template] | Check PDR for Lisp IPv6 over IPv6 forwarding
133 | | framesize=${78} | rate=3.2mpps | wt=2 | rxq=1
134
135 | tc05-1460B-2t2c-ethip6lispip6-ip6base-pdrchk
136 | | [Documentation]
137 | | ... | [Cfg] DUT runs LISP tunnel config with 2 threads, 2 phy cores,\
138 | | ... | 1 receive queue per NIC port.
139 | | ... | [Ver] Verify ref-NDR for 1460 Byte frames using single trial\
140 | | ... | throughput test at 2x ${rate}.
141 | | ...
142 | | [Tags] | 1460B | 2T2C | MTHREAD
143 | | ...
144 | | [Template] | Check PDR for Lisp IPv6 over IPv6 forwarding
145 | | framesize=${1460} | rate=370000pps | wt=2 | rxq=1
146
147 | tc06-9000B-2t2c-ethip6lispip6-ip6base-pdrchk
148 | | [Documentation]
149 | | ... | [Cfg] DUT runs LISP tunnel config with 2 threads, 2 phy cores,\
150 | | ... | 1 receive queue per NIC port.
151 | | ... | [Ver] Verify ref-NDR for 9000 Byte frames using single trial\
152 | | ... | throughput test at 2x ${rate}.
153 | | ...
154 | | [Tags] | 9000B | 2T2C | MTHREAD
155 | | ...
156 | | [Template] | Check PDR for Lisp IPv6 over IPv6 forwarding
157 | | framesize=${9000} | rate=60000pps | wt=2 | rxq=1
158
159 | tc07-78B-4t4c-ethip6lispip6-ip6base-pdrchk
160 | | [Documentation]
161 | | ... | [Cfg] DUT runs LISP tunnel config with 4 threads, 4 phy cores,\
162 | | ... | 2 receive queues per NIC port.
163 | | ... | [Ver] Verify ref-NDR for 78 Byte frames using single trial\
164 | | ... | throughput test at 2x ${rate}.
165 | | ...
166 | | [Tags] | 78B | 4T4C | MTHREAD
167 | | ...
168 | | [Template] | Check PDR for Lisp IPv6 over IPv6 forwarding
169 | | framesize=${78} | rate=3.2mpps | wt=4 | rxq=2
170
171 | tc08-1460B-4t4c-ethip6lispip6-ip6base-pdrchk
172 | | [Documentation]
173 | | ... | [Cfg] DUT runs LISP tunnel config with 4 threads, 4 phy cores,\
174 | | ... | 2 receive queues per NIC port.
175 | | ... | [Ver] Verify ref-NDR for 1460 Byte frames using single trial\
176 | | ... | throughput test at 2x ${rate}.
177 | | ...
178 | | [Tags] | 1460B | 4T4C | MTHREAD
179 | | ...
180 | | [Template] | Check PDR for Lisp IPv6 over IPv6 forwarding
181 | | framesize=${1460} | rate=370000pps | wt=4 | rxq=2
182
183 | tc09-9000B-4t4c-ethip6lispip6-ip6base-pdrchk
184 | | [Documentation]
185 | | ... | [Cfg] DUT runs LISP tunnel config with 4 threads, 4 phy cores,\
186 | | ... | 2 receive queues per NIC port.
187 | | ... | [Ver] Verify ref-NDR for 9000 Byte frames using single trial\
188 | | ... | throughput test at 2x ${rate}.
189 | | ...
190 | | [Tags] | 9000B | 4T4C | MTHREAD
191 | | ...
192 | | [Template] | Check PDR for Lisp IPv6 over IPv6 forwarding
193 | | framesize=${9000} | rate=60000pps | wt=4 | rxq=2