fd1139faea3d7c3be91b71df7826bbacf7f7cd28
[csit.git] / tests / vpp / perf / srv6 / 10ge2p1x520-ethip6srhip6-ip6base-srv6enc2sids-nodecaps-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 | ...
17 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | MRR
18 | ... | NIC_Intel-X520-DA2 | ETH | IP6FWD | FEATURE | SRv6
19 | ...
20 | Suite Setup | Set up 3-node performance topology with DUT's NIC model
21 | ... | L3 | Intel-X520-DA2
22 | Suite Teardown | Tear down 3-node performance topology
23 | ...
24 | Test Setup | Set up performance test
25 | ...
26 | Test Teardown | Tear down mrr test with SRv6 with encapsulation
27 | ...
28 | Test Template | Local template
29 | ...
30 | Documentation | *Raw results for Segment routing over IPv6 dataplane with\
31 | ... | two SIDs (SRH inserted) without decapsulation test cases*
32 | ...
33 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology\
34 | ... | with single links between nodes.
35 | ... | *[Enc] Packet Encapsulations:* Eth-IPv6-SRH-IPv6 on DUT1-DUT2 and\
36 | ... | DUTn->TG, Eth-IPv6 on TG->DUTn for IPv6 routing over SRv6.
37 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with IPv6\
38 | ... | routing and static route, SR policy and steering policy for one\
39 | ... | direction and one SR behaviour (function) - End - for other direction.\
40 | ... | DUT1 and DUT2 are tested with 2p10GE NIC X520 Niantic by Intel.
41 | ... | *[Ver] TG verification:* In MaxReceivedRate tests TG sends traffic\
42 | ... | at line rate and reports total received/sent packets over trial period.\
43 | ... | Test packets are generated by TG on\
44 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups\
45 | ... | (flow-group per direction, 253 flows per flow-group) with\
46 | ... | all packets containing Ethernet header,IPv6 header with static payload.\
47 | ... | MAC addresses are matching MAC addresses of the TG node interfaces.
48 | ... | *[Ref] Applicable standard specifications:* SRv6 Network Programming -\
49 | ... | draft 3.
50
51 *** Variables ***
52 # X520-DA2 bandwidth limit
53 | ${s_limit}= | ${10000000000}
54 # SIDs
55 | ${dut1_sid1}= | 2002:1::
56 | ${dut1_sid2_1}= | 2003:2::
57 | ${dut1_sid2_2}= | 2003:3::
58 | ${dut1_bsid}= | 2002:1::1
59 | ${dut2_sid1_1}= | 2002:2::
60 | ${dut2_sid1_2}= | 2002:3::
61 | ${dut2_sid2}= | 2003:1::
62 | ${dut2_bsid}= | 2002:2::1
63 | ${sid_prefix}= | ${64}
64 # IP settings
65 | ${tg_if1_ip6_subnet}= | 2001:1::
66 | ${tg_if2_ip6_subnet}= | 2001:2::
67 | ${dst_addr_nr}= | ${1}
68 | ${dut1_if1_ip6}= | 2001:1::1
69 | ${dut1_if2_ip6}= | 2001:3::1
70 | ${dut2_if1_ip6}= | 2001:3::2
71 | ${dut2_if2_ip6}= | 2001:2::1
72 | ${prefix}= | ${64}
73 # outer IPv6 header + SRH with 2 SIDs: 40+40B
74 | ${srv6_overhead_2sids}= | ${80}
75 # Traffic profile:
76 | ${traffic_profile}= | trex-sl-3n-ethip6-ip6src253
77
78 *** Keywords ***
79 | Local template
80 | | [Documentation]
81 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing config with ${phy_cores} phy
82 | | ... | core(s).
83 | | ... | [Ver] Measure MaxReceivedRate for ${framesize}B frames using single\
84 | | ... | trial throughput test.
85 | | ...
86 | | ... | *Arguments:*
87 | | ... | - framesize - Framesize in Bytes in integer or string (IMIX_v4_1).
88 | | ... | Type: integer, string
89 | | ... | - phy_cores - Number of physical cores. Type: integer
90 | | ... | - rxq - Number of RX queues, default value: ${None}. Type: integer
91 | | ...
92 | | [Arguments] | ${phy_cores} | ${framesize} | ${rxq}=${None}
93 | | ...
94 | | Set Test Variable | ${framesize}
95 | | ${get_framesize}= | Get Frame Size | ${framesize}
96 | | ${max_rate}= | Calculate pps | ${s_limit}
97 | | ... | ${get_framesize} + ${srv6_overhead_2sids}
98 | | ...
99 | | Given Add worker threads and rxqueues to all DUTs | ${phy_cores} | ${rxq}
100 | | And Add PCI devices to all DUTs
101 | | And Run Keyword If | ${get_framesize} < ${1522} | Add no multi seg to all DUTs
102 | | And Apply startup configuration on all VPP DUTs
103 | | When Initialize IPv6 forwarding over SRv6 with encapsulation with '2' x SID 'without' decapsulation in 3-node circular topology
104 | | Then Traffic should pass with maximum rate
105 | | ... | ${max_rate}pps | ${framesize} | ${traffic_profile}
106
107 *** Test Cases ***
108 | tc01-78B-1t1c-ethip6srhip6-ip6base-srv6enc2sids-nodecaps-mrr
109 | | [Tags] | 78B | 1C
110 | | phy_cores=${1} | framesize=${78}
111
112 | tc02-1518B-1t1c-ethip6srhip6-ip6base-srv6enc2sids-nodecaps-mrr
113 | | [Tags] | 1518B | 1C
114 | | phy_cores=${1} | framesize=${1518}
115
116 | tc03-9000B-1t1c-ethip6srhip6-ip6base-srv6enc2sids-nodecaps-mrr
117 | | [Tags] | 9000B | 1C
118 | | phy_cores=${1} | framesize=${9000}
119
120 | tc04-IMIX-1t1c-ethip6srhip6-ip6base-srv6enc2sids-nodecaps-mrr
121 | | [Tags] | IMIX | 1C
122 | | phy_cores=${1} | framesize=IMIX_v4_1
123
124 | tc05-78B-2t2c-ethip6srhip6-ip6base-srv6enc2sids-nodecaps-mrr
125 | | [Tags] | 78B | 2C
126 | | phy_cores=${2} | framesize=${78}
127
128 | tc06-1518B-2t2c-ethip6srhip6-ip6base-srv6enc2sids-nodecaps-mrr
129 | | [Tags] | 1518B | 2C
130 | | phy_cores=${2} | framesize=${1518}
131
132 | tc07-9000B-2t2c-ethip6srhip6-ip6base-srv6enc2sids-nodecaps-mrr
133 | | [Tags] | 9000B | 2C
134 | | phy_cores=${2} | framesize=${9000}
135
136 | tc08-IMIX-2t2c-ethip6srhip6-ip6base-srv6enc2sids-nodecaps-mrr
137 | | [Tags] | IMIX | 2C
138 | | phy_cores=${2} | framesize=IMIX_v4_1
139
140 | tc09-78B-4t4c-ethip6srhip6-ip6base-srv6enc2sids-nodecaps-mrr
141 | | [Tags] | 78B | 4C
142 | | phy_cores=${4} | framesize=${78}
143
144 | tc10-1518B-4t4c-ethip6srhip6-ip6base-srv6enc2sids-nodecaps-mrr
145 | | [Tags] | 1518B | 4C
146 | | phy_cores=${4} | framesize=${1518}
147
148 | tc11-9000B-4t4c-ethip6srhip6-ip6base-srv6enc2sids-nodecaps-mrr
149 | | [Tags] | 9000B | 4C
150 | | phy_cores=${4} | framesize=${9000}
151
152 | tc12-IMIX-4t4c-ethip6srhip6-ip6base-srv6enc2sids-nodecaps-mrr
153 | | [Tags] | IMIX | 4C
154 | | phy_cores=${4} | framesize=IMIX_v4_1