65ef2547f5ca80410e11351acd26184b9b170a92
[csit.git] / tests / trex / perf / ip4 / 1n1l-10ge2p1x710-ethip4tcp-ip4base-h1024-p63-s64512-cps-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
19 | ... | IP4FWD | IP4BASE | N2N | TCP | TCP_CPS | TG_DRV_IGB_UIO | SCALE
20 | ... | HOSTS_1024
21 | ... | ethip4tcp-ip4base-h1024-p63-s64512-cps-tg
22 |
23 | Suite Setup | Setup suite topology interfaces with no DUT | performance_tg_nic
24 | Suite Teardown | Tear down suite | performance
25 | Test Teardown | Tear down test raw | performance
26 |
27 | Test Template | Local Template
28 |
29 | Documentation | *CPS on empty TCP transactions with L1 cross connect*
30 |
31 | ... | *[Top] Network Topologies:* TG-TG 1-node circular topology\
32 | ... | with single links between nodes.
33 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4 for L1 cross connect patch.
34 | ... | *[Ver] TG verification:* TG finds and reports throughput NDR (Non Drop\
35 | ... | Rate) with zero packet loss tolerance and throughput PDR (Partial Drop\
36 | ... | Rate) with non-zero packet loss tolerance (LT) expressed in percentage\
37 | ... | of packets transmitted. NDR and PDR are discovered for different\
38 | ... | Ethernet L2 frame sizes using MLRsearch library.\
39 | ... | Test packets are generated by TG on links to TG.\
40 | ... | TG traffic profile contain L7 flows (${cps} bi-directional TCP flows)\
41 | ... | with all packets containing Ethernet header, IPv4 header with TCP\
42 | ... | header and static payload.\
43 | ... | MAC addresses are matching MAC addresses of the TG node interfaces.
44 | ... | *[Ref] Applicable standard specifications:* RFC2544.
45
46 *** Variables ***
47 | ${nic_name}= | Intel-X710
48 | ${nic_pfs}= | 2
49 | ${osi_layer}= | L7
50 | ${overhead}= | ${0}
51 # Scale settings
52 | ${n_hosts}= | ${1024}
53 | ${n_ports}= | ${63}
54 | ${transaction_scale}= | ${${n_hosts} * ${n_ports}}
55 | ${packets_per_transaction_and_direction}= | ${4}
56 | ${packets_per_transaction_aggregated}= | ${7}
57 # Traffic profile
58 | ${traffic_profile}= | trex-astf-ethip4tcp-${n_hosts}h
59 | ${transaction_type}= | tcp_cps
60 | ${disable_latency}= | ${True}
61
62 *** Keywords ***
63 | Local Template
64 | | [Documentation]
65 | | ... | [Cfg] TG runs L1 cross connect config.
66 | | ... | [Ver] Measure NDR and PDR values using MLRsearch algorithm.\
67 | |
68 | | ... | *Arguments:*
69 | | ... | - frame_size - Framesize in Bytes in integer or string (IMIX_v4_1).
70 | | ... | Type: integer, string
71 | |
72 | | [Arguments] | ${frame_size}
73 | |
74 | | Set Test Variable | \${frame_size}
75 | |
76 | | Given Set Max Rate And Jumbo
77 | | Then Find NDR and PDR intervals using optimized search
78
79 *** Test Cases ***
80 | 64B--ethip4tcp-ip4base-h1024-p63-s64512-cps-tg-ndrpdr
81 | | [Tags] | 64B
82 | | frame_size=${64}