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