3acc63deb31e3fabb0435f8ab07d39fe5d38cbed
[csit.git] / tests / trex / perf / l2 / 1n1l-10ge2p1x710-eth-l2bdscale1mmaclrn-tg-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 | 2_NODE_SINGLE_LINK_TOPO | 3_NODE_SINGLE_LINK_TOPO
18 | ... | PERFTEST | HW_ENV | NDRPDR | NIC_Intel-X710 | TREX | ETH | L2BDMACLRN
19 | ... | N2N | SCALE | L2BDSCALE | FIB_1M | TG_DRV_IGB_UIO
20 | ... | eth-l2bdscale1mmaclrn-tg
21 |
22 | Suite Setup | Setup suite topology interfaces with no DUT | performance_tg_nic
23 | Suite Teardown | Tear down suite | performance
24 | Test Setup | Start Test Export
25 | Test Teardown | Tear down test raw | performance
26 |
27 | Test Template | Local Template
28 |
29 | Documentation | **RFC2544: Pkt throughput for cross connected NICs with \
30 | ... | IPv4 traffic profile.**
31 | ... |
32 | ... | - **[Top] Network Topologies:** TG-TG 1-node circular topology \
33 | ... | with single link between.
34 | ... |
35 | ... | - **[Enc] Packet Encapsulations:** Eth-IPv4 for L1 cross connect patch.
36 | ... |
37 | ... | - **[Ver] TG verification:** TG finds and reports throughput NDR (Non \
38 | ... | Drop Rate) with zero packet loss tolerance and throughput PDR \
39 | ... | (Partial Drop Rate) with non-zero packet loss tolerance (LT) \
40 | ... | expressed in percentage of packets transmitted. NDR and PDR are \
41 | ... | discovered for different Ethernet L2 frame sizes using MLRsearch \
42 | ... | library.
43 | ... | Test packets are generated by TG on links to TG. \
44 | ... | TG traffic profile contains two L3 flow-groups (flow-group per \
45 | ... | direction, 500k flows per flow-group) with all packets containing \
46 | ... | Ethernet header, IPv4 header with IP protocol=61 and static payload. \
47 | ... | MAC addresses ranges are incremented as follows:
48 | ... | port01_src ca:fe:00:00:00:00 - port01_src ca:fe:00:07:a1:1f,
49 | ... | port01_dst fa:ce:00:00:00:00 - port01_dst fa:ce:00:07:a1:1f,
50 | ... | port02_src fa:ce:00:00:00:00 - port02_src fa:ce:00:07:a1:1f,
51 | ... | port02_dst ca:fe:00:00:00:00 - port02_dst ca:fe:00:07:a1:1f
52 | ... |
53 | ... | - **[Ref] Applicable standard specifications:** RFC2544.
54
55 *** Variables ***
56 | ${nic_name}= | Intel-X710
57 | ${nic_pfs}= | 2
58 | ${osi_layer}= | L2
59 | ${overhead}= | ${0}
60 # Traffic profile:
61 | ${traffic_profile}= | trex-stl-2n-ethip4-macsrc500kdst500k
62
63 *** Keywords ***
64 | Local Template
65 | | [Documentation]
66 | | ... | - **[Cfg]** TG runs L1 cross connect config.
67 | | ... | - **[Ver]** Measure NDR and PDR values using MLRsearch algorithm.
68 | |
69 | | ... | *Arguments:*
70 | | ... | - frame_size - Framesize in Bytes in integer or string (IMIX_v4_1).
71 | | ... | Type: integer, string
72 | |
73 | | [Arguments] | ${frame_size}
74 | |
75 | | Set Test Variable | \${frame_size}
76 | |
77 | | Given Set Max Rate And Jumbo
78 | | Then Find NDR and PDR intervals using optimized search
79
80 *** Test Cases ***
81 | 64B--eth-l2bdscale1mmaclrn-tg-ndrpdr
82 | | [Tags] | 64B
83 | | frame_size=${64}
84
85 | 1518B--eth-l2bdscale1mmaclrn-tg-ndrpdr
86 | | [Tags] | 1518B
87 | | frame_size=${1518}
88
89 | 9000B--eth-l2bdscale1mmaclrn-tg-ndrpdr
90 | | [Tags] | 9000B
91 | | frame_size=${9000}
92
93 | IMIX--eth-l2bdscale1mmaclrn-tg-ndrpdr
94 | | [Tags] | IMIX
95 | | frame_size=IMIX_v4_1