Performance Tests

10ge2p1vic1227-eth-l2bdbasemaclrn-ndrdisc module

tc01-64B-1t1c-eth-l2bdbasemaclrn-ndrdisc

[Cfg] DUT runs L2BD switching config with with1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames using binary search start at 10GElinerate, step 100kpps.


${64}  ${100000}  1  1

tc02-64B-1t1c-eth-l2bdbasemaclrn-pdrdisc

[Cfg] DUT runs L2BD switching config with with1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames using binary search start at 10GElinerate, step 100kpps, LT=0.5%.


${64}  ${100000}  1  1

tc03-1518B-1t1c-eth-l2bdbasemaclrn-ndrdisc

[Cfg] DUT runs L2BD switching config with with1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames using binary search start at 10GElinerate, step 10kpps.


${1518}  ${10000}  1  1

tc04-1518B-1t1c-eth-l2bdbasemaclrn-pdrdisc

[Cfg] DUT runs L2BD switching config with with1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames using binary search start at 10GElinerate, step 10kpps, LT=0.5%.


${1518}  ${10000}  1  1

tc05-9000B-1t1c-eth-l2bdbasemaclrn-ndrdisc

[Cfg] DUT runs L2BD switching config with with1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find NDR for 9000 Byte frames using binary search start at 10GElinerate, step 10kpps.


${9000}  ${10000}  1  1

tc06-9000B-1t1c-eth-l2bdbasemaclrn-pdrdisc

[Cfg] DUT runs L2BD switching config with with1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find PDR for 9000 Byte frames using binary search start at 10GElinerate, step 10kpps, LT=0.5%.


${9000}  ${10000}  1  1

tc07-64B-2t2c-eth-l2bdbasemaclrn-ndrdisc

[Cfg] DUT runs L2BD switching config with with2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames using binary search start at 10GElinerate, step 100kpps.


${64}  ${100000}  2  1

tc08-64B-2t2c-eth-l2bdbasemaclrn-pdrdisc

[Cfg] DUT runs L2BD switching config with with2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames using binary search start at 10GElinerate, step 100kpps, LT=0.5%.


${64}  ${100000}  2  1

tc09-1518B-2t2c-eth-l2bdbasemaclrn-ndrdisc

[Cfg] DUT runs L2BD switching config with with2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames using binary search start at 10GElinerate, step 10kpps.


${1518}  ${10000}  2  1

tc10-1518B-2t2c-eth-l2bdbasemaclrn-pdrdisc

[Cfg] DUT runs L2BD switching config with with2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames using binary search start at 10GElinerate, step 10kpps, LT=0.5%.


${1518}  ${10000}  2  1

tc11-9000B-2t2c-eth-l2bdbasemaclrn-ndrdisc

[Cfg] DUT runs L2BD switching config with with2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find NDR for 9000 Byte frames using binary search start at 10GElinerate, step 10kpps.


${9000}  ${10000}  2  1

tc12-9000B-2t2c-eth-l2bdbasemaclrn-pdrdisc

[Cfg] DUT runs L2BD switching config with with2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find PDR for 9000 Byte frames using binary search start at 10GElinerate, step 10kpps, LT=0.5%.


${9000}  ${10000}  2  1

tc13-64B-4t4c-eth-l2bdbasemaclrn-ndrdisc

[Cfg] DUT runs L2BD switching config with with4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find NDR for 64 Byte frames using binary search start at 10GElinerate, step 100kpps.


${64}  ${100000}  4  2

tc14-64B-4t4c-eth-l2bdbasemaclrn-pdrdisc

[Cfg] DUT runs L2BD switching config with with4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find PDR for 64 Byte frames using binary search start at 10GElinerate, step 100kpps, LT=0.5%.


${64}  ${100000}  4  2

tc15-1518B-4t4c-eth-l2bdbasemaclrn-ndrdisc

[Cfg] DUT runs L2BD switching config with with4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find NDR for 1518 Byte frames using binary search start at 10GElinerate, step 10kpps.


${1518}  ${10000}  4  2

tc16-1518B-4t4c-eth-l2bdbasemaclrn-pdrdisc

[Cfg] DUT runs L2BD switching config with with4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find PDR for 1518 Byte frames using binary search start at 10GElinerate, step 10kpps, LT=0.5%.


${1518}  ${10000}  4  2

tc17-9000B-4t4c-eth-l2bdbasemaclrn-ndrdisc

[Cfg] DUT runs L2BD switching config with with4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find NDR for 9000 Byte frames using binary search start at 10GElinerate, step 10kpps.


${9000}  ${10000}  4  2

tc18-9000B-4t4c-eth-l2bdbasemaclrn-pdrdisc

[Cfg] DUT runs L2BD switching config with with4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find PDR for 9000 Byte frames using binary search start at 10GElinerate, step 10kpps, LT=0.5%.


${9000}  ${10000}  4  2

10ge2p1x520-dot1ad-l2xcbase-ndrchk module

tc01-64B-1t1c-dot1ad-l2xcbase-ndrchk

[Cfg] DUT runs L2XC with 802.1ad config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify ref-NDR for 64 Byte frames using single trial throughput test at 2x 2.9mpps.


${framesize}=  Set Variable  64
${duration}=  Set Variable  10
${rate}=  Set Variable  2.9mpps
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}  ${outer_vlan_id}  ${inner_vlan_id}  ${type_subif}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Traffic should pass with no loss  ${duration}  ${rate}  ${framesize}  3-node-xconnect

tc02-1514B-1t1c-dot1ad-l2xcbase-ndrchk

[Cfg] DUT runs L2XC with 802.1ad config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify ref-NDR for 1514 Byte frames using single trial throughput test at 2x 810635pps.


${framesize}=  Set Variable  1514
${duration}=  Set Variable  10
${rate}=  Set Variable  810635pps
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}  ${outer_vlan_id}  ${inner_vlan_id}  ${type_subif}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Traffic should pass with no loss  ${duration}  ${rate}  ${framesize}  3-node-xconnect

tc03-9000B-1t1c-dot1ad-l2xcbase-ndrchk

[Cfg] DUT runs L2XC with 802.1ad config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify ref-NDR for 9000 Byte frames using single trial throughput test at 2x 138458pps.


${framesize}=  Set Variable  9000
${duration}=  Set Variable  10
${rate}=  Set Variable  138458pps
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}  ${outer_vlan_id}  ${inner_vlan_id}  ${type_subif}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Traffic should pass with no loss  ${duration}  ${rate}  ${framesize}  3-node-xconnect

tc04-64B-2t2c-dot1ad-l2xcbase-ndrchk

[Cfg] DUT runs L2XC with 802.1ad config with 2 thread, 2 phy core, 1 receive queue per NIC port. [Ver] Verify ref-NDR for 64 Byte frames using single trial throughput test at 2x 7.0mpps.


${framesize}=  Set Variable  64
${duration}=  Set Variable  10
${rate}=  Set Variable  7.0mpps
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}  ${outer_vlan_id}  ${inner_vlan_id}  ${type_subif}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Traffic should pass with no loss  ${duration}  ${rate}  ${framesize}  3-node-xconnect

tc05-1514B-2t2c-dot1ad-l2xcbase-ndrchk

[Cfg] DUT runs L2XC with 802.1ad config with 2 thread, 2 phy core, 1 receive queue per NIC port. [Ver] Verify ref-NDR for 1514 Byte frames using single trial throughput test at 2x 810635pps.


${framesize}=  Set Variable  1514
${duration}=  Set Variable  10
${rate}=  Set Variable  810635pps
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}  ${outer_vlan_id}  ${inner_vlan_id}  ${type_subif}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Traffic should pass with no loss  ${duration}  ${rate}  ${framesize}  3-node-xconnect

tc06-9000B-2t2c-dot1ad-l2xcbase-ndrchk

[Cfg] DUT runs L2XC with 802.1ad config with 2 thread, 2 phy core, 1 receive queue per NIC port. [Ver] Verify ref-NDR for 9000 Byte frames using single trial throughput test at 2x 138458pps.


${framesize}=  Set Variable  9000
${duration}=  Set Variable  10
${rate}=  Set Variable  138458pps
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}  ${outer_vlan_id}  ${inner_vlan_id}  ${type_subif}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Traffic should pass with no loss  ${duration}  ${rate}  ${framesize}  3-node-xconnect

tc07-64B-4t4c-dot1ad-l2xcbase-ndrchk

[Cfg] DUT runs L2XC with 802.1ad config with 4 thread, 4 phy core, 2 receive queue per NIC port. [Ver] Verify ref-NDR for 64 Byte frames using single trial throughput test at 2x 8.0mpps.


${framesize}=  Set Variable  64
${duration}=  Set Variable  10
${rate}=  Set Variable  8.0mpps
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}  ${outer_vlan_id}  ${inner_vlan_id}  ${type_subif}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Traffic should pass with no loss  ${duration}  ${rate}  ${framesize}  3-node-xconnect

tc08-1514B-4t4c-dot1ad-l2xcbase-ndrchk

[Cfg] DUT runs L2XC with 802.1ad config with 4 thread, 4 phy core, 2 receive queue per NIC port. [Ver] Verify ref-NDR for 1514 Byte frames using single trial throughput test at 2x 810635pps.


${framesize}=  Set Variable  1514
${duration}=  Set Variable  10
${rate}=  Set Variable  810635pps
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}  ${outer_vlan_id}  ${inner_vlan_id}  ${type_subif}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Traffic should pass with no loss  ${duration}  ${rate}  ${framesize}  3-node-xconnect

tc09-9000B-4t4c-dot1ad-l2xcbase-ndrchk

[Cfg] DUT runs L2XC with 802.1ad config with 4 thread, 4 phy core, 2 receive queue per NIC port. [Ver] Verify ref-NDR for 9000 Byte frames using single trial throughput test at 2x 138458pps.


${framesize}=  Set Variable  9000
${duration}=  Set Variable  10
${rate}=  Set Variable  138458pps
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}  ${outer_vlan_id}  ${inner_vlan_id}  ${type_subif}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Traffic should pass with no loss  ${duration}  ${rate}  ${framesize}  3-node-xconnect

10ge2p1x520-dot1ad-l2xcbase-ndrdisc module

tc01-64B-1t1c-dot1ad-l2xcbase-ndrdisc

[Cfg] DUT runs L2XC forwarding config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames using binary search start at 10GE linerate, step 100kpps.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${100000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 8}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}  ${outer_vlan_id}  ${inner_vlan_id}  ${type_subif}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}

tc02-64B-1t1c-dot1ad-l2xcbase-pdrdisc

[Cfg] DUT runs L2XC forwarding config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames using binary search start at 10GE linerate, step 100kpps, LT=0.5%.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${100000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 8}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}  ${outer_vlan_id}  ${inner_vlan_id}  ${type_subif}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

tc03-1514B-1t1c-dot1ad-l2xcbase-ndrdisc

[Cfg] DUT runs L2XC forwarding config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find NDR for 1514 Byte frames using binary search start at 10GE linerate, step 10kpps.


${framesize}=  Set Variable  ${1514}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 8}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}  ${outer_vlan_id}  ${inner_vlan_id}  ${type_subif}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}

tc04-1514B-1t1c-dot1ad-l2xcbase-pdrdisc

[Cfg] DUT runs L2XC forwarding config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find PDR for 1514 Byte frames using binary search start at 10GE linerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${1514}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 8}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}  ${outer_vlan_id}  ${inner_vlan_id}  ${type_subif}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

tc05-9000B-1t1c-dot1ad-l2xcbase-ndrdisc

[Cfg] DUT runs L2XC forwarding config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find NDR for 9000 Byte frames using binary search start at 10GE linerate, step 5kpps.


${framesize}=  Set Variable  ${9000}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 8}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}  ${outer_vlan_id}  ${inner_vlan_id}  ${type_subif}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}

tc06-9000B-1t1c-dot1ad-l2xcbase-pdrdisc

[Cfg] DUT runs L2XC forwarding config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find PDR for 9000 Byte frames using binary search start at 10GE linerate, step 5kpps, LT=0.5%.


${framesize}=  Set Variable  ${9000}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 8}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}  ${outer_vlan_id}  ${inner_vlan_id}  ${type_subif}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

tc07-64B-2t2c-dot1ad-l2xcbase-ndrdisc

[Cfg] DUT runs L2XC forwarding config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames using binary search start at 10GE linerate, step 100kpps.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${100000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 8}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}  ${outer_vlan_id}  ${inner_vlan_id}  ${type_subif}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}

tc08-64B-2t2c-dot1ad-l2xcbase-pdrdisc

[Cfg] DUT runs L2XC forwarding config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames using binary search start at 10GE linerate, step 100kpps, LT=0.5%.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${100000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 8}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}  ${outer_vlan_id}  ${inner_vlan_id}  ${type_subif}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

tc09-1514B-2t2c-dot1ad-l2xcbase-ndrdisc

[Cfg] DUT runs L2XC forwarding config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find NDR for 1514 Byte frames using binary search start at 10GE linerate, step 10kpps.


${framesize}=  Set Variable  ${1514}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 8}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}  ${outer_vlan_id}  ${inner_vlan_id}  ${type_subif}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}

tc10-1514B-2t2c-dot1ad-l2xcbase-pdrdisc

[Cfg] DUT runs L2XC forwarding config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find PDR for 1514 Byte frames using binary search start at 10GE linerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${1514}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 8}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}  ${outer_vlan_id}  ${inner_vlan_id}  ${type_subif}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

tc11-9000B-2t2c-dot1ad-l2xcbase-ndrdisc

[Cfg] DUT runs L2XC forwarding config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find NDR for 9000 Byte frames using binary search start at 10GE linerate, step 5kpps.


${framesize}=  Set Variable  ${9000}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 8}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}  ${outer_vlan_id}  ${inner_vlan_id}  ${type_subif}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}

tc12-9000B-2t2c-dot1ad-l2xcbase-pdrdisc

[Cfg] DUT runs L2XC forwarding config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find PDR for 9000 Byte frames using binary search start at 10GE linerate, step 5kpps, LT=0.5%.


${framesize}=  Set Variable  ${9000}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 8}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}  ${outer_vlan_id}  ${inner_vlan_id}  ${type_subif}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

tc13-64B-4t4c-dot1ad-l2xcbase-ndrdisc

[Cfg] DUT runs L2XC forwarding config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find NDR for 64 Byte frames using binary search start at 10GE linerate, step 100kpps.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${100000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 8}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}  ${outer_vlan_id}  ${inner_vlan_id}  ${type_subif}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}

tc14-64B-4t4c-dot1ad-l2xcbase-pdrdisc

[Cfg] DUT runs L2XC forwarding config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find PDR for 64 Byte frames using binary search start at 10GE linerate, step 100kpps, LT=0.5%.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${100000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 8}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}  ${outer_vlan_id}  ${inner_vlan_id}  ${type_subif}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

tc15-1514B-4t4c-dot1ad-l2xcbase-ndrdisc

[Cfg] DUT runs L2XC forwarding config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find NDR for 1514 Byte frames using binary search start at 10GE linerate, step 10kpps.


${framesize}=  Set Variable  ${1514}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 8}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}  ${outer_vlan_id}  ${inner_vlan_id}  ${type_subif}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}

tc16-1514B-4t4c-dot1ad-l2xcbase-pdrdisc

[Cfg] DUT runs L2XC forwarding config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find PDR for 1514 Byte frames using binary search start at 10GE linerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${1514}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 8}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}  ${outer_vlan_id}  ${inner_vlan_id}  ${type_subif}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

tc17-9000B-4t4c-dot1ad-l2xcbase-ndrdisc

[Cfg] DUT runs L2XC forwarding config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find NDR for 9000 Byte frames using binary search start at 10GE linerate, step 5kpps.


${framesize}=  Set Variable  ${9000}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 8}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}  ${outer_vlan_id}  ${inner_vlan_id}  ${type_subif}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}

tc18-9000B-4t4c-dot1ad-l2xcbase-pdrdisc

[Cfg] DUT runs L2XC forwarding config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find PDR for 9000 Byte frames using binary search start at 10GE linerate, step 5kpps, LT=0.5%.


${framesize}=  Set Variable  ${9000}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 8}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}  ${outer_vlan_id}  ${inner_vlan_id}  ${type_subif}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

10ge2p1x520-dot1q-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc module

tc01-64B-1t1c-dot1q-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames using binary search start at 10GElinerate, step 10kpps.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + ${vlan_overhead}}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User and VLAN initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

tc02-64B-1t1c-dot1q-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames using binary search start at 10GElinerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + ${vlan_overhead}}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User and VLAN initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

tc03-1518B-1t1c-dot1q-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames using binary search start at 10GElinerate, step 10kpps.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + ${vlan_overhead}}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User and VLAN initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

tc04-1518B-1t1c-dot1q-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames using binary search start at 10GElinerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + ${vlan_overhead}}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User and VLAN initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

tc05-IMIX-1t1c-dot1q-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 framesize using binary search start at10GE linerate, step 10kpps. IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)


${framesize}=  Set Variable  IMIX_v4_1
${avg_framesize}=  Set Variable  ${357.833}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${avg_framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User and VLAN initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

tc06-IMIX-1t1c-dot1q-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 framesize using binary search start at10GE linerate, step 10kpps, LT=0.5%. IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)


${framesize}=  Set Variable  IMIX_v4_1
${avg_framesize}=  Set Variable  ${357.833}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${avg_framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User and VLAN initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

tc07-64B-2t2c-dot1q-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames using binary search start at 10GElinerate, step 10kpps.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + ${vlan_overhead}}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User and VLAN initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

tc08-64B-2t2c-dot1q-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames using binary search start at 10GElinerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + ${vlan_overhead}}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User and VLAN initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

tc09-1518B-2t2c-dot1q-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames using binary search start at 10GElinerate, step 10kpps.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + ${vlan_overhead}}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User and VLAN initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

tc10-1518B-2t2c-dot1q-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames using binary search start at 10GElinerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + ${vlan_overhead}}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User and VLAN initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

tc11-IMIX-2t2c-dot1q-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 framesize using binary search start at10GE linerate, step 10kpps. IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)


${framesize}=  Set Variable  IMIX_v4_1
${avg_framesize}=  Set Variable  ${357.833}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${avg_framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User and VLAN initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

tc12-IMIX-2t2c-dot1q-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 framesize using binary search start at10GE linerate, step 10kpps. IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)


${framesize}=  Set Variable  IMIX_v4_1
${avg_framesize}=  Set Variable  ${357.833}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${avg_framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User and VLAN initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

tc13-64B-4t4c-dot1q-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,2 receive queues per NIC port. [Ver] Find NDR for 64 Byte frames using binary search start at 10GElinerate, step 10kpps.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + ${vlan_overhead}}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User and VLAN initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

tc14-64B-4t4c-dot1q-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,2 receive queues per NIC port. [Ver] Find PDR for 64 Byte frames using binary search start at 10GElinerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + ${vlan_overhead}}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User and VLAN initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

tc15-1518B-4t4c-dot1q-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,2 receive queues per NIC port. [Ver] Find NDR for 1518 Byte frames using binary search start at 10GElinerate, step 10kpps.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + ${vlan_overhead}}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User and VLAN initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

tc16-1518B-4t4c-dot1q-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,2 receive queues per NIC port. [Ver] Find PDR for 1518 Byte frames using binary search start at 10GElinerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + ${vlan_overhead}}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User and VLAN initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

tc17-IMIX-4t4c-dot1q-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,2 receive queues per NIC port. [Ver] Find NDR for IMIX_v4_1 framesize using binary search start at10GE linerate, step 10kpps. IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)


${framesize}=  Set Variable  IMIX_v4_1
${avg_framesize}=  Set Variable  ${357.833}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${avg_framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User and VLAN initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

tc18-IMIX-4t4c-dot1q-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,2 receive queues per NIC port. [Ver] Find PDR for IMIX_v4_1 framesize using binary search start at10GE linerate, step 10kpps, LT=0.5%. IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)


${framesize}=  Set Variable  IMIX_v4_1
${avg_framesize}=  Set Variable  ${357.833}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${avg_framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User and VLAN initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

10ge2p1x520-dot1q-l2xcbase-eth-2vhost-1vm-ndrdisc module

tc01-64B-1t1c-eth-l2xcbase-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core,1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames using binary search start at 10GElinerate, step 10kpps.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + ${vlan_overhead}}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User and VLAN initialized in a 3-node circular topology  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

tc02-64B-1t1c-eth-l2xcbase-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames using binary search start at 10GElinerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + ${vlan_overhead}}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User and VLAN initialized in a 3-node circular topology  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

tc03-1518B-1t1c-eth-l2xcbase-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core,1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames using binary search start at 10GElinerate, step 10kpps.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + ${vlan_overhead}}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User and VLAN initialized in a 3-node circular topology  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

tc04-1518B-1t1c-eth-l2xcbase-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames using binary search start at 10GElinerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + ${vlan_overhead}}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User and VLAN initialized in a 3-node circular topology  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

tc05-IMIX-1t1c-eth-l2xcbase-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 framesize using binary search start at10GE linerate, step 10kpps. IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)


${framesize}=  Set Variable  IMIX_v4_1
${avg_framesize}=  Set Variable  ${357.833}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${avg_framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User and VLAN initialized in a 3-node circular topology  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

tc06-IMIX-1t1c-eth-l2xcbase-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 framesize using binary search start at10GE linerate, step 10kpps, LT=0.5%. IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)


${framesize}=  Set Variable  IMIX_v4_1
${avg_framesize}=  Set Variable  ${357.833}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${avg_framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User and VLAN initialized in a 3-node circular topology  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

tc07-64B-2t2c-eth-l2xcbase-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores,1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames using binary search start at 10GElinerate, step 10kpps.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + ${vlan_overhead}}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User and VLAN initialized in a 3-node circular topology  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

tc08-64B-2t2c-eth-l2xcbase-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames using binary search start at 10GElinerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + ${vlan_overhead}}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User and VLAN initialized in a 3-node circular topology  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

tc09-1518B-2t2c-eth-l2xcbase-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores,1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames using binary search start at 10GElinerate, step 10kpps.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + ${vlan_overhead}}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User and VLAN initialized in a 3-node circular topology  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

tc10-1518B-2t2c-eth-l2xcbase-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames using binary search start at 10GElinerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + ${vlan_overhead}}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User and VLAN initialized in a 3-node circular topology  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

tc11-IMIX-2t2c-eth-l2xcbase-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 framesize using binary search start at10GE linerate, step 10kpps. IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)


${framesize}=  Set Variable  IMIX_v4_1
${avg_framesize}=  Set Variable  ${357.833}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${avg_framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User and VLAN initialized in a 3-node circular topology  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

tc12-IMIX-2t2c-eth-l2xcbase-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 framesize using binary search start at10GE linerate, step 10kpps, LT=0.5%. IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)


${framesize}=  Set Variable  IMIX_v4_1
${avg_framesize}=  Set Variable  ${357.833}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${avg_framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User and VLAN initialized in a 3-node circular topology  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

tc13-64B-4t4c-eth-l2xcbase-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores,2 receive queues per NIC port. [Ver] Find NDR for 64 Byte frames using binary search start at 10GElinerate, step 10kpps.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + ${vlan_overhead}}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User and VLAN initialized in a 3-node circular topology  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

tc14-64B-4t4c-eth-l2xcbase-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores,2 receive queues per NIC port. [Ver] Find PDR for 64 Byte frames using binary search start at 10GElinerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + ${vlan_overhead}}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User and VLAN initialized in a 3-node circular topology  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

tc15-1518B-4t4c-eth-l2xcbase-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores,2 receive queues per NIC port. [Ver] Find NDR for 1518 Byte frames using binary search start at 10GElinerate, step 10kpps.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + ${vlan_overhead}}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User and VLAN initialized in a 3-node circular topology  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

tc16-1518B-4t4c-eth-l2xcbase-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores,2 receive queues per NIC port. [Ver] Find PDR for 1518 Byte frames using binary search start at 10GElinerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + ${vlan_overhead}}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User and VLAN initialized in a 3-node circular topology  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

tc17-IMIX-4t4c-eth-l2xcbase-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores,2 receive queues per NIC port. [Ver] Find NDR for IMIX_v4_1 framesize using binary search start at10GE linerate, step 10kpps. IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)


${framesize}=  Set Variable  IMIX_v4_1
${avg_framesize}=  Set Variable  ${357.833}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${avg_framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User and VLAN initialized in a 3-node circular topology  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

tc18-IMIX-4t4c-eth-l2xcbase-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores,2 receive queues per NIC port. [Ver] Find PDR for IMIX_v4_1 framesize using binary search start at10GE linerate, step 10kpps, LT=0.5%. IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)


${framesize}=  Set Variable  IMIX_v4_1
${avg_framesize}=  Set Variable  ${357.833}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${avg_framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User and VLAN initialized in a 3-node circular topology  ${sock1}  ${sock2}  ${subid}  ${tag_rewrite}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

10ge2p1x520-dot1q-l2xcbase-ndrchk module

tc01-64B-1t1c-dot1q-l2xcbase-ndrchk

[Cfg] DUT runs L2XC config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify ref-NDR for 64 Byte frames using single trial throughput test at 2x 2.9mpps.


${framesize}=  Set Variable  64
${duration}=  Set Variable  10
${rate}=  Set Variable  2.9mpps
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN dot1q subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Traffic should pass with no loss  ${duration}  ${rate}  ${framesize}  3-node-xconnect

tc02-1518B-1t1c-dot1q-l2xcbase-ndrchk

[Cfg] DUT runs L2XC config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify ref-NDR for 1518 Byte frames using single trial throughput test at 2x 720000pps.


${framesize}=  Set Variable  1518
${duration}=  Set Variable  10
${rate}=  Set Variable  720000pps
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN dot1q subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Traffic should pass with no loss  ${duration}  ${rate}  ${framesize}  3-node-xconnect

tc03-9000B-1t1c-dot1q-l2xcbase-ndrchk

[Cfg] DUT runs L2XC config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify ref-NDR for 9000 Byte frames using single trial throughput test at 2x 120000pps.


${framesize}=  Set Variable  9000
${duration}=  Set Variable  10
${rate}=  Set Variable  120000pps
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN dot1q subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Traffic should pass with no loss  ${duration}  ${rate}  ${framesize}  3-node-xconnect

tc04-64B-2t2c-dot1q-l2xcbase-ndrchk

[Cfg] DUT runs L2XC config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Verify ref-NDR for 64 Byte frames using single trial throughput test at 2x 7.0mpps.


${framesize}=  Set Variable  64
${duration}=  Set Variable  10
${rate}=  Set Variable  7.0mpps
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN dot1q subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Traffic should pass with no loss  ${duration}  ${rate}  ${framesize}  3-node-xconnect

tc05-1518B-2t2c-dot1q-l2xcbase-ndrchk

[Cfg] DUT runs L2XC config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Verify ref-NDR for 1518 Byte frames using single trial throughput test at 2x 720000pps.


${framesize}=  Set Variable  1518
${duration}=  Set Variable  10
${rate}=  Set Variable  720000pps
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN dot1q subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Traffic should pass with no loss  ${duration}  ${rate}  ${framesize}  3-node-xconnect

tc06-9000B-2t2c-dot1q-l2xcbase-ndrchk

[Cfg] DUT runs L2XC config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Verify ref-NDR for 9000 Byte frames using single trial throughput test at 2x 120000pps.


${framesize}=  Set Variable  9000
${duration}=  Set Variable  10
${rate}=  Set Variable  120000pps
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN dot1q subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Traffic should pass with no loss  ${duration}  ${rate}  ${framesize}  3-node-xconnect

tc07-64B-4t4c-dot1q-l2xcbase-ndrchk

[Cfg] DUT runs L2XC config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Verify ref-NDR for 64 Byte frames using single trial throughput test at 2x 11.0mpps.


${framesize}=  Set Variable  64
${duration}=  Set Variable  10
${rate}=  Set Variable  11.0mpps
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN dot1q subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Traffic should pass with no loss  ${duration}  ${rate}  ${framesize}  3-node-xconnect

tc08-1518B-4t4c-dot1q-l2xcbase-ndrchk

[Cfg] DUT runs L2XC config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Verify ref-NDR for 1518 Byte frames using single trial throughput test at 2x 720000pps.


${framesize}=  Set Variable  1518
${duration}=  Set Variable  10
${rate}=  Set Variable  720000pps
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN dot1q subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Traffic should pass with no loss  ${duration}  ${rate}  ${framesize}  3-node-xconnect

tc09-9000B-4t4c-dot1q-l2xcbase-ndrchk

[Cfg] DUT runs L2XC config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Verify ref-NDR for 9000 Byte frames using single trial throughput test at 2x 120000pps.


${framesize}=  Set Variable  9000
${duration}=  Set Variable  10
${rate}=  Set Variable  120000pps
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN dot1q subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Traffic should pass with no loss  ${duration}  ${rate}  ${framesize}  3-node-xconnect

10ge2p1x520-dot1q-l2xcbase-ndrdisc module

tc01-64B-1t1c-dot1q-l2xcbase-ndrdisc

[Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames using binary search start at 10GE linerate, step 100kpps.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${100000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 4}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN dot1q subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}

tc02-64B-1t1c-dot1q-l2xcbase-pdrdisc

[Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames using binary search start at 10GE linerate, step 100kpps, LT=0.5%.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${100000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 4}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN dot1q subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

tc03-1518B-1t1c-dot1q-l2xcbase-ndrdisc

[Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE linerate, step 10kpps.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 4}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN dot1q subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}

tc04-1518B-1t1c-dot1q-l2xcbase-pdrdisc

[Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE linerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 4}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN dot1q subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

tc05-9000B-1t1c-dot1q-l2xcbase-ndrdisc

[Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find NDR for 9000 Byte frames using binary search start at 10GE linerate, step 5kpps.


${framesize}=  Set Variable  ${9000}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 4}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN dot1q subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}

tc06-9000B-1t1c-dot1q-l2xcbase-pdrdisc

[Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find PDR for 9000 Byte frames using binary search start at 10GE linerate, step 5kpps, LT=0.5%.


${framesize}=  Set Variable  ${9000}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 4}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN dot1q subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

tc07-64B-2t2c-dot1q-l2xcbase-ndrdisc

[Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames using binary search start at 10GE linerate, step 100kpps.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${100000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 4}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN dot1q subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}

tc08-64B-2t2c-dot1q-l2xcbase-pdrdisc

[Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames using binary search start at 10GE linerate, step 100kpps, LT=0.5%.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${100000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 4}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN dot1q subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

tc09-1518B-2t2c-dot1q-l2xcbase-ndrdisc

[Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE linerate, step 10kpps.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 4}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN dot1q subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}

tc10-1518B-2t2c-dot1q-l2xcbase-pdrdisc

[Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE linerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 4}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN dot1q subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

tc11-9000B-2t2c-dot1q-l2xcbase-ndrdisc

[Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find NDR for 9000 Byte frames using binary search start at 10GE linerate, step 5kpps.


${framesize}=  Set Variable  ${9000}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 4}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN dot1q subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}

tc12-9000B-2t2c-dot1q-l2xcbase-pdrdisc

[Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find PDR for 9000 Byte frames using binary search start at 10GE linerate, step 5kpps, LT=0.5%.


${framesize}=  Set Variable  ${9000}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 4}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN dot1q subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

tc13-64B-4t4c-dot1q-l2xcbase-ndrdisc

[Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find NDR for 64 Byte frames using binary search start at 10GE linerate, step 100kpps.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${100000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 4}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN dot1q subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}

tc14-64B-4t4c-dot1q-l2xcbase-pdrdisc

[Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find PDR for 64 Byte frames using binary search start at 10GE linerate, step 100kpps, LT=0.5%.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${100000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 4}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN dot1q subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

tc15-1518B-4t4c-dot1q-l2xcbase-ndrdisc

[Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE linerate, step 10kpps.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 4}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN dot1q subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}

tc16-1518B-4t4c-dot1q-l2xcbase-pdrdisc

[Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE linerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 4}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN dot1q subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

tc17-9000B-4t4c-dot1q-l2xcbase-ndrdisc

[Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find NDR for 9000 Byte frames using binary search start at 10GE linerate, step 5kpps.


${framesize}=  Set Variable  ${9000}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 4}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN dot1q subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}

tc18-9000B-4t4c-dot1q-l2xcbase-pdrdisc

[Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find PDR for 9000 Byte frames using binary search start at 10GE linerate, step 5kpps, LT=0.5%.


${framesize}=  Set Variable  ${9000}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize + 4}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Apply startup configuration on all VPP DUTs
  And VPP interfaces in path are up in a 3-node circular topology
 When VLAN dot1q subinterfaces initialized on 3-node topology  ${dut1}  ${dut1_if2}  ${dut2}  ${dut2_if1}  ${subid}
  And L2 tag rewrite method setup on interfaces  ${dut1}  ${subif_index_1}  ${dut2}  ${subif_index_2}  ${tag_rewrite}
  And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect  ${dut1}  ${dut1_if1}  ${subif_index_1}  ${dut2}  ${dut2_if2}  ${subif_index_2}
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

10ge2p1x520-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc module

tc01-64B-1t1c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames using binary search start at 10GE linerate, step 10kpps.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

tc02-64B-1t1c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames using binary search start at 10GE linerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

tc03-1518B-1t1c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE linerate, step 10kpps.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

tc04-1518B-1t1c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE linerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

tc05-IMIX-1t1c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame size using binary search start at 10GE linerate, step 5kpps. IMIX_v4_1 = (28x64B;16x570B;4x1518B)


${framesize}=  Set Variable  IMIX_v4_1
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

tc06-IMIX-1t1c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 frame size using binary search start at 10GE linerate, step 5kpps, LT=0.5%. IMIX_v4_1 = (28x64B;16x570B;4x1518B)


${framesize}=  Set Variable  IMIX_v4_1
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

tc07-64B-2t2c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames using binary search start at 10GE linerate, step 10kpps.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

tc08-64B-2t2c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames using binary search start at 10GE linerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

tc09-1518B-2t2c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE linerate, step 10kpps.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

tc10-1518B-2t2c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE linerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

tc11-IMIX-2t2c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame size using binary search start at 10GE linerate, step 5kpps. IMIX_v4_1 = (28x64B;16x570B;4x1518B)


${framesize}=  Set Variable  IMIX_v4_1
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

tc12-IMIX-2t2c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 frame size using binary search start at 10GE linerate, step 5kpps, LT=0.5%. IMIX_v4_1 = (28x64B;16x570B;4x1518B)


${framesize}=  Set Variable  IMIX_v4_1
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

tc13-64B-4t4c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find NDR for 64 Byte frames using binary search start at 10GE linerate, step 10kpps.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

tc14-64B-4t4c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find PDR for 64 Byte frames using binary search start at 10GE linerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

tc15-1518B-4t4c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE linerate, step 10kpps.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

tc16-1518B-4t4c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE linerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

tc17-IMIX-4t4c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find NDR for IMIX_v4_1 frame size using binary search start at 10GE linerate, step 5kpps. IMIX_v4_1 = (28x64B;16x570B;4x1518B)


${framesize}=  Set Variable  IMIX_v4_1
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

tc18-IMIX-4t4c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find PDR for IMIX_v4_1 frame size using binary search start at 10GE linerate, step 5kpps, LT=0.5%. IMIX_v4_1 = (28x64B;16x570B;4x1518B)


${framesize}=  Set Variable  IMIX_v4_1
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 bridge domains with Vhost-User initialized in a 3-node circular topology  ${bd_id1}  ${bd_id2}  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

10ge2p1x520-eth-l2bdbasemaclrn-ndrchk module

tc01-64B-1t1c-eth-l2bdbasemaclrn-ndrchk

[Cfg] DUT runs L2BD config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify ref-NDR for 64 Byte frames using single trial throughput test at 2x 3.2mpps.


${framesize}=  Set Variable  64
${duration}=  Set Variable  10
${rate}=  Set Variable  3.2mpps
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And L2 bridge domain initialized in a 3-node circular topology
 Then Traffic should pass with no loss  ${duration}  ${rate}  ${framesize}  3-node-bridge

tc02-1518B-1t1c-eth-l2bdbasemaclrn-ndrchk

[Cfg] DUT runs L2BD config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify ref-NDR for 1518 Byte frames using single trial throughput test at 2x 812743pps.


${framesize}=  Set Variable  1518
${duration}=  Set Variable  10
${rate}=  Set Variable  812743pps
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And L2 bridge domain initialized in a 3-node circular topology
 Then Traffic should pass with no loss  ${duration}  ${rate}  ${framesize}  3-node-bridge

tc03-9000B-1t1c-eth-l2bdbasemaclrn-ndrchk

[Cfg] DUT runs L2BD config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify ref-NDR for 9000 Byte frames using single trial throughput test at 2x 138580pps.


${framesize}=  Set Variable  9000
${duration}=  Set Variable  10
${rate}=  Set Variable  138580pps
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Apply startup configuration on all VPP DUTs
  And L2 bridge domain initialized in a 3-node circular topology
 Then Traffic should pass with no loss  ${duration}  ${rate}  ${framesize}  3-node-bridge

tc04-64B-2t2c-eth-l2bdbasemaclrn-ndrchk

[Cfg] DUT runs L2BD config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Verify ref-NDR for 64 Byte frames using single trial throughput test at 2x 6.9mpps.


${framesize}=  Set Variable  64
${duration}=  Set Variable  10
${rate}=  Set Variable  6.9mpps
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And L2 bridge domain initialized in a 3-node circular topology
 Then Traffic should pass with no loss  ${duration}  ${rate}  ${framesize}  3-node-bridge

tc05-1518B-2t2c-eth-l2bdbasemaclrn-ndrchk

[Cfg] DUT runs L2BD config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Verify ref-NDR for 1518 Byte frames using single trial throughput test at 2x 812743pps.


${framesize}=  Set Variable  1518
${duration}=  Set Variable  10
${rate}=  Set Variable  812743pps
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And L2 bridge domain initialized in a 3-node circular topology
 Then Traffic should pass with no loss  ${duration}  ${rate}  ${framesize}  3-node-bridge

tc06-9000B-2t2c-eth-l2bdbasemaclrn-ndrchk

[Cfg] DUT runs L2BD config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Verify ref-NDR for 9000 Byte frames using single trial throughput test at 2x 138580pps.


${framesize}=  Set Variable  9000
${duration}=  Set Variable  10
${rate}=  Set Variable  138580pps
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Apply startup configuration on all VPP DUTs
  And L2 bridge domain initialized in a 3-node circular topology
 Then Traffic should pass with no loss  ${duration}  ${rate}  ${framesize}  3-node-bridge

tc07-64B-4t4c-eth-l2bdbasemaclrn-ndrchk

[Cfg] DUT runs L2BD config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Verify ref-NDR for 64 Byte frames using single trial throughput test at 2x 7.4mpps.


${framesize}=  Set Variable  64
${duration}=  Set Variable  10
${rate}=  Set Variable  7.4mpps
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And L2 bridge domain initialized in a 3-node circular topology
 Then Traffic should pass with no loss  ${duration}  ${rate}  ${framesize}  3-node-bridge

tc08-1518B-4t4c-eth-l2bdbasemaclrn-ndrchk

[Cfg] DUT runs L2BD config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Verify ref-NDR for 1518 Byte frames using single trial throughput test at 2x 812743pps.


${framesize}=  Set Variable  1518
${duration}=  Set Variable  10
${rate}=  Set Variable  812743pps
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And L2 bridge domain initialized in a 3-node circular topology
 Then Traffic should pass with no loss  ${duration}  ${rate}  ${framesize}  3-node-bridge

tc09-9000B-4t4c-eth-l2bdbasemaclrn-ndrchk

[Cfg] DUT runs L2BD config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Verify ref-NDR for 9000 Byte frames using single trial throughput test at 2x 138580pps.


${framesize}=  Set Variable  9000
${duration}=  Set Variable  10
${rate}=  Set Variable  138580pps
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Apply startup configuration on all VPP DUTs
  And L2 bridge domain initialized in a 3-node circular topology
 Then Traffic should pass with no loss  ${duration}  ${rate}  ${framesize}  3-node-bridge

10ge2p1x520-eth-l2bdbasemaclrn-ndrdisc module

tc01-64B-1t1c-eth-l2bdbasemaclrn-ndrdisc

[Cfg] DUT runs L2BD switching config with with1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames using binary search start at 10GElinerate, step 100kpps.


${64}  ${100000}  1  1

tc02-64B-1t1c-eth-l2bdbasemaclrn-pdrdisc

[Cfg] DUT runs L2BD switching config with with1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames using binary search start at 10GElinerate, step 100kpps, LT=0.5%.


${64}  ${100000}  1  1

tc03-1518B-1t1c-eth-l2bdbasemaclrn-ndrdisc

[Cfg] DUT runs L2BD switching config with with1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames using binary search start at 10GElinerate, step 10kpps.


${1518}  ${10000}  1  1

tc04-1518B-1t1c-eth-l2bdbasemaclrn-pdrdisc

[Cfg] DUT runs L2BD switching config with with1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames using binary search start at 10GElinerate, step 10kpps, LT=0.5%.


${1518}  ${10000}  1  1

tc05-9000B-1t1c-eth-l2bdbasemaclrn-ndrdisc

[Cfg] DUT runs L2BD switching config with with1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find NDR for 9000 Byte frames using binary search start at 10GElinerate, step 10kpps.


${9000}  ${10000}  1  1

tc06-9000B-1t1c-eth-l2bdbasemaclrn-pdrdisc

[Cfg] DUT runs L2BD switching config with with1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find PDR for 9000 Byte frames using binary search start at 10GElinerate, step 10kpps, LT=0.5%.


${9000}  ${10000}  1  1

tc07-64B-2t2c-eth-l2bdbasemaclrn-ndrdisc

[Cfg] DUT runs L2BD switching config with with2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames using binary search start at 10GElinerate, step 100kpps.


${64}  ${100000}  2  1

tc08-64B-2t2c-eth-l2bdbasemaclrn-pdrdisc

[Cfg] DUT runs L2BD switching config with with2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames using binary search start at 10GElinerate, step 100kpps, LT=0.5%.


${64}  ${100000}  2  1

tc09-1518B-2t2c-eth-l2bdbasemaclrn-ndrdisc

[Cfg] DUT runs L2BD switching config with with2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames using binary search start at 10GElinerate, step 10kpps.


${1518}  ${10000}  2  1

tc10-1518B-2t2c-eth-l2bdbasemaclrn-pdrdisc

[Cfg] DUT runs L2BD switching config with with2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames using binary search start at 10GElinerate, step 10kpps, LT=0.5%.


${1518}  ${10000}  2  1

tc11-9000B-2t2c-eth-l2bdbasemaclrn-ndrdisc

[Cfg] DUT runs L2BD switching config with with2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find NDR for 9000 Byte frames using binary search start at 10GElinerate, step 10kpps.


${9000}  ${10000}  2  1

tc12-9000B-2t2c-eth-l2bdbasemaclrn-pdrdisc

[Cfg] DUT runs L2BD switching config with with2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find PDR for 9000 Byte frames using binary search start at 10GElinerate, step 10kpps, LT=0.5%.


${9000}  ${10000}  2  1

tc13-64B-4t4c-eth-l2bdbasemaclrn-ndrdisc

[Cfg] DUT runs L2BD switching config with with4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find NDR for 64 Byte frames using binary search start at 10GElinerate, step 100kpps.


${64}  ${100000}  4  2

tc14-64B-4t4c-eth-l2bdbasemaclrn-pdrdisc

[Cfg] DUT runs L2BD switching config with with4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find PDR for 64 Byte frames using binary search start at 10GElinerate, step 100kpps, LT=0.5%.


${64}  ${100000}  4  2

tc15-1518B-4t4c-eth-l2bdbasemaclrn-ndrdisc

[Cfg] DUT runs L2BD switching config with with4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find NDR for 1518 Byte frames using binary search start at 10GElinerate, step 10kpps.


${1518}  ${10000}  4  2

tc16-1518B-4t4c-eth-l2bdbasemaclrn-pdrdisc

[Cfg] DUT runs L2BD switching config with with4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find PDR for 1518 Byte frames using binary search start at 10GElinerate, step 10kpps, LT=0.5%.


${1518}  ${10000}  4  2

tc17-9000B-4t4c-eth-l2bdbasemaclrn-ndrdisc

[Cfg] DUT runs L2BD switching config with with4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find NDR for 9000 Byte frames using binary search start at 10GElinerate, step 10kpps.


${9000}  ${10000}  4  2

tc18-9000B-4t4c-eth-l2bdbasemaclrn-pdrdisc

[Cfg] DUT runs L2BD switching config with with4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find PDR for 9000 Byte frames using binary search start at 10GElinerate, step 10kpps, LT=0.5%.


${9000}  ${10000}  4  2

L2 Bridge Domain NDR Binary Search


Set Test Variable  ${framesize}
Set Test Variable  ${min_rate}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Add '${wt}' worker threads and rxqueues '${rxq}' in 3-node single-link topo
Add PCI devices to DUTs from 3-node single link topology
${get_framesize}=  Get Frame Size  ${framesize}
Run Keyword If  ${get_framesize} < ${1522}  Add No Multi Seg to all DUTs
Apply startup configuration on all VPP DUTs
L2 bridge domain initialized in a 3-node circular topology
Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

L2 Bridge Domain PDR Binary Search


Set Test Variable  ${framesize}
Set Test Variable  ${min_rate}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Add '${wt}' worker threads and rxqueues '${rxq}' in 3-node single-link topo
Add PCI devices to DUTs from 3-node single link topology
${get_framesize}=  Get Frame Size  ${framesize}
Run Keyword If  ${get_framesize} < ${1522}  Add No Multi Seg to all DUTs
Apply startup configuration on all VPP DUTs
L2 bridge domain initialized in a 3-node circular topology
Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

10ge2p1x520-eth-l2xcbase-eth-2vhost-1vm-ndrdisc module

tc01-64B-1t1c-eth-l2xcbase-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames using binary search start at 10GE linerate, step 10kpps.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User initialized in a 3-node circular topology  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

tc02-64B-1t1c-eth-l2xcbase-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames using binary search start at 10GE linerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User initialized in a 3-node circular topology  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

tc03-1518B-1t1c-eth-l2xcbase-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE linerate, step 10kpps.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User initialized in a 3-node circular topology  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

tc04-1518B-1t1c-eth-l2xcbase-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE linerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User initialized in a 3-node circular topology  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

tc05-IMIX-1t1c-eth-l2xcbase-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame size using binary search start at 10GE linerate, step 5kpps. IMIX_v4_1 = (28x64B;16x570B;4x1518B)


${framesize}=  Set Variable  IMIX_v4_1
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User initialized in a 3-node circular topology  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

tc06-IMIX-1t1c-eth-l2xcbase-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 frame size using binary search start at 10GE linerate, step 5kpps, LT=0.5%. IMIX_v4_1 = (28x64B;16x570B;4x1518B)


${framesize}=  Set Variable  IMIX_v4_1
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User initialized in a 3-node circular topology  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

tc07-64B-2t2c-eth-l2xcbase-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames using binary search start at 10GE linerate, step 10kpps.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User initialized in a 3-node circular topology  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

tc08-64B-2t2c-eth-l2xcbase-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames using binary search start at 10GE linerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User initialized in a 3-node circular topology  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

tc09-1518B-2t2c-eth-l2xcbase-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE linerate, step 10kpps.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User initialized in a 3-node circular topology  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

tc10-1518B-2t2c-eth-l2xcbase-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE linerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User initialized in a 3-node circular topology  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

tc11-IMIX-2t2c-eth-l2xcbase-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame size using binary search start at 10GE linerate, step 5kpps. IMIX_v4_1 = (28x64B;16x570B;4x1518B)


${framesize}=  Set Variable  IMIX_v4_1
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User initialized in a 3-node circular topology  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

tc12-IMIX-2t2c-eth-l2xcbase-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 frame size using binary search start at 10GE linerate, step 5kpps, LT=0.5%. IMIX_v4_1 = (28x64B;16x570B;4x1518B)


${framesize}=  Set Variable  IMIX_v4_1
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User initialized in a 3-node circular topology  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

tc13-64B-4t4c-eth-l2xcbase-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find NDR for 64 Byte frames using binary search start at 10GE linerate, step 10kpps.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User initialized in a 3-node circular topology  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

tc14-64B-4t4c-eth-l2xcbase-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find PDR for 64 Byte frames using binary search start at 10GE linerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User initialized in a 3-node circular topology  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

tc15-1518B-4t4c-eth-l2xcbase-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE linerate, step 10kpps.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User initialized in a 3-node circular topology  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

tc16-1518B-4t4c-eth-l2xcbase-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE linerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User initialized in a 3-node circular topology  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

tc17-IMIX-4t4c-eth-l2xcbase-eth-2vhost-1vm-ndrdisc

[Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find NDR for IMIX_v4_1 frame size using binary search start at 10GE linerate, step 5kpps. IMIX_v4_1 = (28x64B;16x570B;4x1518B)


${framesize}=  Set Variable  IMIX_v4_1
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User initialized in a 3-node circular topology  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}

tc18-IMIX-4t4c-eth-l2xcbase-eth-2vhost-1vm-pdrdisc

[Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find PDR for IMIX_v4_1 frame size using binary search start at 10GE linerate, step 5kpps, LT=0.5%. IMIX_v4_1 = (28x64B;16x570B;4x1518B)


${framesize}=  Set Variable  IMIX_v4_1
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
${dut1_vm_refs}=  Create Dictionary
${dut2_vm_refs}=  Create Dictionary
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When L2 xconnect with Vhost-User initialized in a 3-node circular topology  ${sock1}  ${sock2}
${vm1}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut1}  ${sock1}  ${sock2}  DUT1_VM1
Set To Dictionary  ${dut1_vm_refs}  DUT1_VM1  ${vm1}
${vm2}=  And Guest VM with dpdk-testpmd connected via vhost-user is setup  ${dut2}  ${sock1}  ${sock2}  DUT2_VM1
Set To Dictionary  ${dut2_vm_refs}  DUT2_VM1  ${vm2}
  And Setup scheduler policy for VPP on all DUTs
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-bridge  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

10ge2p1x520-eth-l2xcbase-ndrchk module

tc01-64B-1t1c-eth-l2xcbase-ndrchk

[Cfg] DUT runs L2XC config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify ref-NDR for 64 Byte frames using single trial throughput test at 2x 3.6mpps.


${framesize}=  Set Variable  64
${duration}=  Set Variable  10
${rate}=  Set Variable  3.6mpps
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And L2 xconnect initialized in a 3-node circular topology
 Then Traffic should pass with no loss  ${duration}  ${rate}  ${framesize}  3-node-xconnect

tc02-1518B-1t1c-eth-l2xcbase-ndrchk

[Cfg] DUT runs L2XC config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify ref-NDR for 1518 Byte frames using single trial throughput test at 2x 812743pps.


${framesize}=  Set Variable  1518
${duration}=  Set Variable  10
${rate}=  Set Variable  812743pps
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And L2 xconnect initialized in a 3-node circular topology
 Then Traffic should pass with no loss  ${duration}  ${rate}  ${framesize}  3-node-xconnect

tc03-9000B-1t1c-eth-l2xcbase-ndrchk

[Cfg] DUT runs L2XC config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify ref-NDR for 9000 Byte frames using single trial throughput test at 2x 138580pps.


${framesize}=  Set Variable  9000
${duration}=  Set Variable  10
${rate}=  Set Variable  138580pps
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Apply startup configuration on all VPP DUTs
  And L2 xconnect initialized in a 3-node circular topology
 Then Traffic should pass with no loss  ${duration}  ${rate}  ${framesize}  3-node-xconnect

tc04-64B-2t2c-eth-l2xcbase-ndrchk

[Cfg] DUT runs L2XC config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Verify ref-NDR for 64 Byte frames using single trial throughput test at 2x 8.3mpps.


${framesize}=  Set Variable  64
${duration}=  Set Variable  10
${rate}=  Set Variable  8.3mpps
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And L2 xconnect initialized in a 3-node circular topology
 Then Traffic should pass with no loss  ${duration}  ${rate}  ${framesize}  3-node-xconnect

tc05-1518B-2t2c-eth-l2xcbase-ndrchk

[Cfg] DUT runs L2XC config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Verify ref-NDR for 1518 Byte frames using single trial throughput test at 2x 812743pps.


${framesize}=  Set Variable  1518
${duration}=  Set Variable  10
${rate}=  Set Variable  812743pps
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And L2 xconnect initialized in a 3-node circular topology
 Then Traffic should pass with no loss  ${duration}  ${rate}  ${framesize}  3-node-xconnect

tc06-9000B-2t2c-eth-l2xcbase-ndrchk

[Cfg] DUT runs L2XC config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Verify ref-NDR for 9000 Byte frames using single trial throughput test at 2x 138580pps.


${framesize}=  Set Variable  9000
${duration}=  Set Variable  10
${rate}=  Set Variable  138580pps
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Apply startup configuration on all VPP DUTs
  And L2 xconnect initialized in a 3-node circular topology
 Then Traffic should pass with no loss  ${duration}  ${rate}  ${framesize}  3-node-xconnect

tc07-64B-4t4c-eth-l2xcbase-ndrchk

[Cfg] DUT runs L2XC config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Verify ref-NDR for 64 Byte frames using single trial throughput test at 2x 9.3mpps.


${framesize}=  Set Variable  64
${duration}=  Set Variable  10
${rate}=  Set Variable  9.3mpps
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And L2 xconnect initialized in a 3-node circular topology
 Then Traffic should pass with no loss  ${duration}  ${rate}  ${framesize}  3-node-xconnect

tc08-1518B-4t4c-eth-l2xcbase-ndrchk

[Cfg] DUT runs L2XC config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Verify ref-NDR for 1518 Byte frames using single trial throughput test at 2x 812743pps.


${framesize}=  Set Variable  1518
${duration}=  Set Variable  10
${rate}=  Set Variable  812743pps
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And L2 xconnect initialized in a 3-node circular topology
 Then Traffic should pass with no loss  ${duration}  ${rate}  ${framesize}  3-node-xconnect

tc09-9000B-4t4c-eth-l2xcbase-ndrchk

[Cfg] DUT runs L2XC config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Verify ref-NDR for 9000 Byte frames using single trial throughput test at 2x 138580pps.


${framesize}=  Set Variable  9000
${duration}=  Set Variable  10
${rate}=  Set Variable  138580pps
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Apply startup configuration on all VPP DUTs
  And L2 xconnect initialized in a 3-node circular topology
 Then Traffic should pass with no loss  ${duration}  ${rate}  ${framesize}  3-node-xconnect

10ge2p1x520-eth-l2xcbase-ndrdisc module

tc01-64B-1t1c-eth-l2xcbase-ndrdisc

[Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames using binary search start at 10GE linerate, step 100kpps.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${100000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And L2 xconnect initialized in a 3-node circular topology
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}

tc02-64B-1t1c-eth-l2xcbase-pdrdisc

[Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames using binary search start at 10GE linerate, step 100kpps, LT=0.5%.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${100000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And L2 xconnect initialized in a 3-node circular topology
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

tc03-1518B-1t1c-eth-l2xcbase-ndrdisc

[Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE linerate, step 10kpps.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And L2 xconnect initialized in a 3-node circular topology
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}

tc04-1518B-1t1c-eth-l2xcbase-pdrdisc

[Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE linerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And L2 xconnect initialized in a 3-node circular topology
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

tc05-9000B-1t1c-eth-l2xcbase-ndrdisc

[Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find NDR for 9000 Byte frames using binary search start at 10GE linerate, step 5kpps.


${framesize}=  Set Variable  ${9000}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Apply startup configuration on all VPP DUTs
  And L2 xconnect initialized in a 3-node circular topology
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}

tc06-9000B-1t1c-eth-l2xcbase-pdrdisc

[Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find PDR for 9000 Byte frames using binary search start at 10GE linerate, step 5kpps, LT=0.5%.


${framesize}=  Set Variable  ${9000}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Apply startup configuration on all VPP DUTs
  And L2 xconnect initialized in a 3-node circular topology
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

tc07-64B-2t2c-eth-l2xcbase-ndrdisc

[Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames using binary search start at 10GE linerate, step 100kpps.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${100000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And L2 xconnect initialized in a 3-node circular topology
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}

tc08-64B-2t2c-eth-l2xcbase-pdrdisc

[Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames using binary search start at 10GE linerate, step 100kpps, LT=0.5%.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${100000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And L2 xconnect initialized in a 3-node circular topology
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

tc09-1518B-2t2c-eth-l2xcbase-ndrdisc

[Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE linerate, step 10kpps.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And L2 xconnect initialized in a 3-node circular topology
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}

tc10-1518B-2t2c-eth-l2xcbase-pdrdisc

[Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE linerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And L2 xconnect initialized in a 3-node circular topology
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

tc11-9000B-2t2c-eth-l2xcbase-ndrdisc

[Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find NDR for 9000 Byte frames using binary search start at 10GE linerate, step 5kpps.


${framesize}=  Set Variable  ${9000}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Apply startup configuration on all VPP DUTs
  And L2 xconnect initialized in a 3-node circular topology
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}

tc12-9000B-2t2c-eth-l2xcbase-pdrdisc

[Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find PDR for 9000 Byte frames using binary search start at 10GE linerate, step 5kpps, LT=0.5%.


${framesize}=  Set Variable  ${9000}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Apply startup configuration on all VPP DUTs
  And L2 xconnect initialized in a 3-node circular topology
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

tc13-64B-4t4c-eth-l2xcbase-ndrdisc

[Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find NDR for 64 Byte frames using binary search start at 10GE linerate, step 100kpps.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${100000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And L2 xconnect initialized in a 3-node circular topology
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}

tc14-64B-4t4c-eth-l2xcbase-pdrdisc

[Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find PDR for 64 Byte frames using binary search start at 10GE linerate, step 100kpps, LT=0.5%.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${100000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And L2 xconnect initialized in a 3-node circular topology
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

tc15-1518B-4t4c-eth-l2xcbase-ndrdisc

[Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE linerate, step 10kpps.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And L2 xconnect initialized in a 3-node circular topology
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}

tc16-1518B-4t4c-eth-l2xcbase-pdrdisc

[Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE linerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And L2 xconnect initialized in a 3-node circular topology
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

tc17-9000B-4t4c-eth-l2xcbase-ndrdisc

[Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find NDR for 9000 Byte frames using binary search start at 10GE linerate, step 5kpps.


${framesize}=  Set Variable  ${9000}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Apply startup configuration on all VPP DUTs
  And L2 xconnect initialized in a 3-node circular topology
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}

tc18-9000B-4t4c-eth-l2xcbase-pdrdisc

[Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, 2 receive queues per NIC port. [Ver] Find PDR for 9000 Byte frames using binary search start at 10GE linerate, step 5kpps, LT=0.5%.


${framesize}=  Set Variable  ${9000}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Apply startup configuration on all VPP DUTs
  And L2 xconnect initialized in a 3-node circular topology
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

tc19-IMIX-1t1c-eth-l2xcbase-ndrdisc

[Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame size using binary search start at 10GE linerate, step 100kpps. IMIX_v4_1 = (28x64B;16x570B;4x1518B)


${framesize}=  Set Variable  IMIX_v4_1
${min_rate}=  Set Variable  ${100000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add all PCI devices to all DUTs
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And L2 xconnect initialized in a 3-node circular topology
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}

tc20-IMIX-1t1c-eth-l2xcbase-pdrdisc

[Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 frame size using binary search start at 10GE linerate, step 100kpps, LT=0.5%. IMIX_v4_1 = (28x64B;16x570B;4x1518B)


${framesize}=  Set Variable  IMIX_v4_1
${min_rate}=  Set Variable  ${100000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add all PCI devices to all DUTs
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
  And L2 xconnect initialized in a 3-node circular topology
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-xconnect  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

10ge2p1x520-ethip4-ip4base-copwhtlistbase-ndrchk module

tc01-64B-1t1c-ethip4-ip4base-copwhtlistbase-ndrchk

[Cfg] DUT runs IPv4 routing and whitelist filters config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify ref-NDR for 64 Byte frames using single trial throughput test at 2x 3.5mpps.


${framesize}=  Set Variable  64
${duration}=  Set Variable  10
${rate}=  Set Variable  3.5mpps
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When IPv4 forwarding initialized in a 3-node circular topology
  And Add fib table  ${dut1}  10.10.10.0  24  1  local
  And Add fib table  ${dut2}  20.20.20.0  24  1  local
  And COP Add whitelist Entry  ${dut1}  ${dut1_if1}  ip4  1
  And COP Add whitelist Entry  ${dut2}  ${dut2_if2}  ip4  1
  And COP interface enable or disable  ${dut1}  ${dut1_if1}  enable
  And COP interface enable or disable  ${dut2}  ${dut2_if2}  enable
 Then Traffic should pass with no loss  ${duration}  ${rate}  ${framesize}  3-node-IPv4

tc02-1518B-1t1c-ethip4-ip4base-copwhtlistbase-ndrchk

[Cfg] DUT runs IPv4 routing and whitelist filters config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify ref-NDR for 1518 Byte frames using single trial throughput test at 2x 812743pps.


${framesize}=  Set Variable  1518
${duration}=  Set Variable  10
${rate}=  Set Variable  812743pps
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When IPv4 forwarding initialized in a 3-node circular topology
  And Add fib table  ${dut1}  10.10.10.0  24  1  local
  And Add fib table  ${dut2}  20.20.20.0  24  1  local
  And COP Add whitelist Entry  ${dut1}  ${dut1_if1}  ip4  1
  And COP Add whitelist Entry  ${dut2}  ${dut2_if2}  ip4  1
  And COP interface enable or disable  ${dut1}  ${dut1_if1}  enable
  And COP interface enable or disable  ${dut2}  ${dut2_if2}  enable
 Then Traffic should pass with no loss  ${duration}  ${rate}  ${framesize}  3-node-IPv4

tc03-9000B-1t1c-ethip4-ip4base-copwhtlistbase-ndrchk

[Cfg] DUT runs IPv4 routing and whitelist filters config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify ref-NDR for 9000 Byte frames using single trial throughput test at 2x 138580pps.


${framesize}=  Set Variable  9000
${duration}=  Set Variable  10
${rate}=  Set Variable  138580pps
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Apply startup configuration on all VPP DUTs
 When IPv4 forwarding initialized in a 3-node circular topology
  And Add fib table  ${dut1}  10.10.10.0  24  1  local
  And Add fib table  ${dut2}  20.20.20.0  24  1  local
  And COP Add whitelist Entry  ${dut1}  ${dut1_if1}  ip4  1
  And COP Add whitelist Entry  ${dut2}  ${dut2_if2}  ip4  1
  And COP interface enable or disable  ${dut1}  ${dut1_if1}  enable
  And COP interface enable or disable  ${dut2}  ${dut2_if2}  enable
 Then Traffic should pass with no loss  ${duration}  ${rate}  ${framesize}  3-node-IPv4

tc04-64B-2t2c-ethip4-ip4base-copwhtlistbase-ndrchk

[Cfg] DUT runs IPv4 routing and whitelist filters config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Verify ref-NDR for 64 Byte frames using single trial throughput test at 2x 6.6mpps.


${framesize}=  Set Variable  64
${duration}=  Set Variable  10
${rate}=  Set Variable  6.6mpps
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When IPv4 forwarding initialized in a 3-node circular topology
  And Add fib table  ${dut1}  10.10.10.0  24  1  local
  And Add fib table  ${dut2}  20.20.20.0  24  1  local
  And COP Add whitelist Entry  ${dut1}  ${dut1_if1}  ip4  1
  And COP Add whitelist Entry  ${dut2}  ${dut2_if2}  ip4  1
  And COP interface enable or disable  ${dut1}  ${dut1_if1}  enable
  And COP interface enable or disable  ${dut2}  ${dut2_if2}  enable
 Then Traffic should pass with no loss  ${duration}  ${rate}  ${framesize}  3-node-IPv4

tc05-1518B-2t2c-ethip4-ip4base-copwhtlistbase-ndrchk

[Cfg] DUT runs IPv4 routing and whitelist filters config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Verify ref-NDR for 1518 Byte frames using single trial throughput test at 2x 812743pps.


${framesize}=  Set Variable  1518
${duration}=  Set Variable  10
${rate}=  Set Variable  812743pps
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When IPv4 forwarding initialized in a 3-node circular topology
  And Add fib table  ${dut1}  10.10.10.0  24  1  local
  And Add fib table  ${dut2}  20.20.20.0  24  1  local
  And COP Add whitelist Entry  ${dut1}  ${dut1_if1}  ip4  1
  And COP Add whitelist Entry  ${dut2}  ${dut2_if2}  ip4  1
  And COP interface enable or disable  ${dut1}  ${dut1_if1}  enable
  And COP interface enable or disable  ${dut2}  ${dut2_if2}  enable
 Then Traffic should pass with no loss  ${duration}  ${rate}  ${framesize}  3-node-IPv4

tc06-9000B-2t2c-ethip4-ip4base-copwhtlistbase-ndrchk

[Cfg] DUT runs IPv4 routing and whitelist filters config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Verify ref-NDR for 9000 Byte frames using single trial throughput test at 2x 138580pps.


${framesize}=  Set Variable  9000
${duration}=  Set Variable  10
${rate}=  Set Variable  138580pps
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Apply startup configuration on all VPP DUTs
 When IPv4 forwarding initialized in a 3-node circular topology
  And Add fib table  ${dut1}  10.10.10.0  24  1  local
  And Add fib table  ${dut2}  20.20.20.0  24  1  local
  And COP Add whitelist Entry  ${dut1}  ${dut1_if1}  ip4  1
  And COP Add whitelist Entry  ${dut2}  ${dut2_if2}  ip4  1
  And COP interface enable or disable  ${dut1}  ${dut1_if1}  enable
  And COP interface enable or disable  ${dut2}  ${dut2_if2}  enable
 Then Traffic should pass with no loss  ${duration}  ${rate}  ${framesize}  3-node-IPv4

tc07-64B-4t4c-ethip4-ip4base-copwhtlistbase-ndrchk

[Cfg] DUT runs IPv4 routing and whitelist filters config with 4 thread, 4 phy core, 2 receive queue per NIC port. [Ver] Verify ref-NDR for 64 Byte frames using single trial throughput test at 2x 10.0mpps.


${framesize}=  Set Variable  64
${duration}=  Set Variable  10
${rate}=  Set Variable  10.0mpps
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When IPv4 forwarding initialized in a 3-node circular topology
  And Add fib table  ${dut1}  10.10.10.0  24  1  local
  And Add fib table  ${dut2}  20.20.20.0  24  1  local
  And COP Add whitelist Entry  ${dut1}  ${dut1_if1}  ip4  1
  And COP Add whitelist Entry  ${dut2}  ${dut2_if2}  ip4  1
  And COP interface enable or disable  ${dut1}  ${dut1_if1}  enable
  And COP interface enable or disable  ${dut2}  ${dut2_if2}  enable
 Then Traffic should pass with no loss  ${duration}  ${rate}  ${framesize}  3-node-IPv4

tc08-1518B-4t4c-ethip4-ip4base-copwhtlistbase-ndrchk

[Cfg] DUT runs IPv4 routing and whitelist filters config with 4 thread, 4 phy core, 2 receive queue per NIC port. [Ver] Verify ref-NDR for 1518 Byte frames using single trial throughput test at 2x 812743pps.


${framesize}=  Set Variable  1518
${duration}=  Set Variable  10
${rate}=  Set Variable  812743pps
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When IPv4 forwarding initialized in a 3-node circular topology
  And Add fib table  ${dut1}  10.10.10.0  24  1  local
  And Add fib table  ${dut2}  20.20.20.0  24  1  local
  And COP Add whitelist Entry  ${dut1}  ${dut1_if1}  ip4  1
  And COP Add whitelist Entry  ${dut2}  ${dut2_if2}  ip4  1
  And COP interface enable or disable  ${dut1}  ${dut1_if1}  enable
  And COP interface enable or disable  ${dut2}  ${dut2_if2}  enable
 Then Traffic should pass with no loss  ${duration}  ${rate}  ${framesize}  3-node-IPv4

tc09-9000B-4t4c-ethip4-ip4base-copwhtlistbase-ndrchk

[Cfg] DUT runs IPv4 routing and whitelist filters config with 4 thread, 4 phy core, 2 receive queue per NIC port. [Ver] Verify ref-NDR for 9000 Byte frames using single trial throughput test at 2x 138580pps.


${framesize}=  Set Variable  9000
${duration}=  Set Variable  10
${rate}=  Set Variable  138580pps
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Apply startup configuration on all VPP DUTs
 When IPv4 forwarding initialized in a 3-node circular topology
  And Add fib table  ${dut1}  10.10.10.0  24  1  local
  And Add fib table  ${dut2}  20.20.20.0  24  1  local
  And COP Add whitelist Entry  ${dut1}  ${dut1_if1}  ip4  1
  And COP Add whitelist Entry  ${dut2}  ${dut2_if2}  ip4  1
  And COP interface enable or disable  ${dut1}  ${dut1_if1}  enable
  And COP interface enable or disable  ${dut2}  ${dut2_if2}  enable
 Then Traffic should pass with no loss  ${duration}  ${rate}  ${framesize}  3-node-IPv4

10ge2p1x520-ethip4-ip4base-copwhtlistbase-ndrdisc module

tc01-64B-1t1c-ethip4-ip4base-copwhtlistbase-ndrdisc

[Cfg] DUT runs IPv4 routing and whitelist filters config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames using binary search start at 10GE linerate, step 100kpps.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${100000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When IPv4 forwarding initialized in a 3-node circular topology
  And Add fib table  ${dut1}  10.10.10.0  24  1  local
  And Add fib table  ${dut2}  20.20.20.0  24  1  local
  And COP Add whitelist Entry  ${dut1}  ${dut1_if1}  ip4  1
  And COP Add whitelist Entry  ${dut2}  ${dut2_if2}  ip4  1
  And COP interface enable or disable  ${dut1}  ${dut1_if1}  enable
  And COP interface enable or disable  ${dut2}  ${dut2_if2}  enable
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-IPv4  ${min_rate}  ${max_rate}  ${threshold}

tc02-64B-1t1c-ethip4-ip4base-copwhtlistbase-pdrdisc

[Cfg] DUT runs IPv4 routing and whitelist filters config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames using binary search start at 10GE linerate, step 100kpps, LT=0.5%.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${100000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When IPv4 forwarding initialized in a 3-node circular topology
  And Add fib table  ${dut1}  10.10.10.0  24  1  local
  And Add fib table  ${dut2}  20.20.20.0  24  1  local
  And COP Add whitelist Entry  ${dut1}  ${dut1_if1}  ip4  1
  And COP Add whitelist Entry  ${dut2}  ${dut2_if2}  ip4  1
  And COP interface enable or disable  ${dut1}  ${dut1_if1}  enable
  And COP interface enable or disable  ${dut2}  ${dut2_if2}  enable
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-IPv4  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

tc03-1518B-1t1c-ethip4-ip4base-copwhtlistbase-ndrdisc

[Cfg] DUT runs IPv4 routing and whitelist filters config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE linerate, step 10kpps.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When IPv4 forwarding initialized in a 3-node circular topology
  And Add fib table  ${dut1}  10.10.10.0  24  1  local
  And Add fib table  ${dut2}  20.20.20.0  24  1  local
  And COP Add whitelist Entry  ${dut1}  ${dut1_if1}  ip4  1
  And COP Add whitelist Entry  ${dut2}  ${dut2_if2}  ip4  1
  And COP interface enable or disable  ${dut1}  ${dut1_if1}  enable
  And COP interface enable or disable  ${dut2}  ${dut2_if2}  enable
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-IPv4  ${min_rate}  ${max_rate}  ${threshold}

tc04-1518B-1t1c-ethip4-ip4base-copwhtlistbase-pdrdisc

[Cfg] DUT runs IPv4 routing and whitelist filters config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE linerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When IPv4 forwarding initialized in a 3-node circular topology
  And Add fib table  ${dut1}  10.10.10.0  24  1  local
  And Add fib table  ${dut2}  20.20.20.0  24  1  local
  And COP Add whitelist Entry  ${dut1}  ${dut1_if1}  ip4  1
  And COP Add whitelist Entry  ${dut2}  ${dut2_if2}  ip4  1
  And COP interface enable or disable  ${dut1}  ${dut1_if1}  enable
  And COP interface enable or disable  ${dut2}  ${dut2_if2}  enable
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-IPv4  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

tc05-9000B-1t1c-ethip4-ip4base-copwhtlistbase-ndrdisc

[Cfg] DUT runs IPv4 routing and whitelist filters config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find NDR for 9000 Byte frames using binary search start at 10GE linerate, step 5kpps.


${framesize}=  Set Variable  ${9000}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Apply startup configuration on all VPP DUTs
 When IPv4 forwarding initialized in a 3-node circular topology
  And Add fib table  ${dut1}  10.10.10.0  24  1  local
  And Add fib table  ${dut2}  20.20.20.0  24  1  local
  And COP Add whitelist Entry  ${dut1}  ${dut1_if1}  ip4  1
  And COP Add whitelist Entry  ${dut2}  ${dut2_if2}  ip4  1
  And COP interface enable or disable  ${dut1}  ${dut1_if1}  enable
  And COP interface enable or disable  ${dut2}  ${dut2_if2}  enable
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-IPv4  ${min_rate}  ${max_rate}  ${threshold}

tc06-9000B-1t1c-ethip4-ip4base-copwhtlistbase-pdrdisc

[Cfg] DUT runs IPv4 routing and whitelist filters config with 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find PDR for 9000 Byte frames using binary search start at 10GE linerate, step 5kpps, LT=0.5%.


${framesize}=  Set Variable  ${9000}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Apply startup configuration on all VPP DUTs
 When IPv4 forwarding initialized in a 3-node circular topology
  And Add fib table  ${dut1}  10.10.10.0  24  1  local
  And Add fib table  ${dut2}  20.20.20.0  24  1  local
  And COP Add whitelist Entry  ${dut1}  ${dut1_if1}  ip4  1
  And COP Add whitelist Entry  ${dut2}  ${dut2_if2}  ip4  1
  And COP interface enable or disable  ${dut1}  ${dut1_if1}  enable
  And COP interface enable or disable  ${dut2}  ${dut2_if2}  enable
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-IPv4  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

tc07-64B-2t2c-ethip4-ip4base-copwhtlistbase-ndrdisc

[Cfg] DUT runs IPv4 routing and whitelist filters config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames using binary search start at 10GE linerate, step 100kpps.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${100000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When IPv4 forwarding initialized in a 3-node circular topology
  And Add fib table  ${dut1}  10.10.10.0  24  1  local
  And Add fib table  ${dut2}  20.20.20.0  24  1  local
  And COP Add whitelist Entry  ${dut1}  ${dut1_if1}  ip4  1
  And COP Add whitelist Entry  ${dut2}  ${dut2_if2}  ip4  1
  And COP interface enable or disable  ${dut1}  ${dut1_if1}  enable
  And COP interface enable or disable  ${dut2}  ${dut2_if2}  enable
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-IPv4  ${min_rate}  ${max_rate}  ${threshold}

tc08-64B-2t2c-ethip4-ip4base-copwhtlistbase-pdrdisc

[Cfg] DUT runs IPv4 routing and whitelist filters config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames using binary search start at 10GE linerate, step 100kpps, LT=0.5%.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${100000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When IPv4 forwarding initialized in a 3-node circular topology
  And Add fib table  ${dut1}  10.10.10.0  24  1  local
  And Add fib table  ${dut2}  20.20.20.0  24  1  local
  And COP Add whitelist Entry  ${dut1}  ${dut1_if1}  ip4  1
  And COP Add whitelist Entry  ${dut2}  ${dut2_if2}  ip4  1
  And COP interface enable or disable  ${dut1}  ${dut1_if1}  enable
  And COP interface enable or disable  ${dut2}  ${dut2_if2}  enable
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-IPv4  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

tc09-1518B-2t2c-ethip4-ip4base-copwhtlistbase-ndrdisc

[Cfg] DUT runs IPv4 routing and whitelist filters config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE linerate, step 10kpps.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When IPv4 forwarding initialized in a 3-node circular topology
  And Add fib table  ${dut1}  10.10.10.0  24  1  local
  And Add fib table  ${dut2}  20.20.20.0  24  1  local
  And COP Add whitelist Entry  ${dut1}  ${dut1_if1}  ip4  1
  And COP Add whitelist Entry  ${dut2}  ${dut2_if2}  ip4  1
  And COP interface enable or disable  ${dut1}  ${dut1_if1}  enable
  And COP interface enable or disable  ${dut2}  ${dut2_if2}  enable
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-IPv4  ${min_rate}  ${max_rate}  ${threshold}

tc10-1518B-2t2c-ethip4-ip4base-copwhtlistbase-pdrdisc

[Cfg] DUT runs IPv4 routing and whitelist filters config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE linerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When IPv4 forwarding initialized in a 3-node circular topology
  And Add fib table  ${dut1}  10.10.10.0  24  1  local
  And Add fib table  ${dut2}  20.20.20.0  24  1  local
  And COP Add whitelist Entry  ${dut1}  ${dut1_if1}  ip4  1
  And COP Add whitelist Entry  ${dut2}  ${dut2_if2}  ip4  1
  And COP interface enable or disable  ${dut1}  ${dut1_if1}  enable
  And COP interface enable or disable  ${dut2}  ${dut2_if2}  enable
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-IPv4  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

tc11-9000B-2t2c-ethip4-ip4base-copwhtlistbase-ndrdisc

[Cfg] DUT runs IPv4 routing and whitelist filters config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find NDR for 9000 Byte frames using binary search start at 10GE linerate, step 5kpps.


${framesize}=  Set Variable  ${9000}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Apply startup configuration on all VPP DUTs
 When IPv4 forwarding initialized in a 3-node circular topology
  And Add fib table  ${dut1}  10.10.10.0  24  1  local
  And Add fib table  ${dut2}  20.20.20.0  24  1  local
  And COP Add whitelist Entry  ${dut1}  ${dut1_if1}  ip4  1
  And COP Add whitelist Entry  ${dut2}  ${dut2_if2}  ip4  1
  And COP interface enable or disable  ${dut1}  ${dut1_if1}  enable
  And COP interface enable or disable  ${dut2}  ${dut2_if2}  enable
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-IPv4  ${min_rate}  ${max_rate}  ${threshold}

tc12-9000B-2t2c-ethip4-ip4base-copwhtlistbase-pdrdisc

[Cfg] DUT runs IPv4 routing and whitelist filters config with 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find PDR for 9000 Byte frames using binary search start at 10GE linerate, step 5kpps, LT=0.5%.


${framesize}=  Set Variable  ${9000}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Apply startup configuration on all VPP DUTs
 When IPv4 forwarding initialized in a 3-node circular topology
  And Add fib table  ${dut1}  10.10.10.0  24  1  local
  And Add fib table  ${dut2}  20.20.20.0  24  1  local
  And COP Add whitelist Entry  ${dut1}  ${dut1_if1}  ip4  1
  And COP Add whitelist Entry  ${dut2}  ${dut2_if2}  ip4  1
  And COP interface enable or disable  ${dut1}  ${dut1_if1}  enable
  And COP interface enable or disable  ${dut2}  ${dut2_if2}  enable
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-IPv4  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

tc13-64B-4t4c-ethip4-ip4base-copwhtlistbase-ndrdisc

[Cfg] DUT runs IPv4 routing and whitelist filters config with 4 threads, 4 phy cores, 2 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames using binary search start at 10GE linerate, step 100kpps.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${100000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When IPv4 forwarding initialized in a 3-node circular topology
  And Add fib table  ${dut1}  10.10.10.0  24  1  local
  And Add fib table  ${dut2}  20.20.20.0  24  1  local
  And COP Add whitelist Entry  ${dut1}  ${dut1_if1}  ip4  1
  And COP Add whitelist Entry  ${dut2}  ${dut2_if2}  ip4  1
  And COP interface enable or disable  ${dut1}  ${dut1_if1}  enable
  And COP interface enable or disable  ${dut2}  ${dut2_if2}  enable
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-IPv4  ${min_rate}  ${max_rate}  ${threshold}

tc14-64B-4t4c-ethip4-ip4base-copwhtlistbase-pdrdisc

[Cfg] DUT runs IPv4 routing and whitelist filters config with 4 threads, 4 phy cores, 2 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames using binary search start at 10GE linerate, step 100kpps, LT=0.5%.


${framesize}=  Set Variable  ${64}
${min_rate}=  Set Variable  ${100000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When IPv4 forwarding initialized in a 3-node circular topology
  And Add fib table  ${dut1}  10.10.10.0  24  1  local
  And Add fib table  ${dut2}  20.20.20.0  24  1  local
  And COP Add whitelist Entry  ${dut1}  ${dut1_if1}  ip4  1
  And COP Add whitelist Entry  ${dut2}  ${dut2_if2}  ip4  1
  And COP interface enable or disable  ${dut1}  ${dut1_if1}  enable
  And COP interface enable or disable  ${dut2}  ${dut2_if2}  enable
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-IPv4  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

tc15-1518B-4t4c-ethip4-ip4base-copwhtlistbase-ndrdisc

[Cfg] DUT runs IPv4 routing and whitelist filters config with 4 threads, 4 phy cores, 2 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE linerate, step 10kpps.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When IPv4 forwarding initialized in a 3-node circular topology
  And Add fib table  ${dut1}  10.10.10.0  24  1  local
  And Add fib table  ${dut2}  20.20.20.0  24  1  local
  And COP Add whitelist Entry  ${dut1}  ${dut1_if1}  ip4  1
  And COP Add whitelist Entry  ${dut2}  ${dut2_if2}  ip4  1
  And COP interface enable or disable  ${dut1}  ${dut1_if1}  enable
  And COP interface enable or disable  ${dut2}  ${dut2_if2}  enable
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-IPv4  ${min_rate}  ${max_rate}  ${threshold}

tc16-1518B-4t4c-ethip4-ip4base-copwhtlistbase-pdrdisc

[Cfg] DUT runs IPv4 routing and whitelist filters config with 4 threads, 4 phy cores, 2 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE linerate, step 10kpps, LT=0.5%.


${framesize}=  Set Variable  ${1518}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Add No Multi Seg to all DUTs
  And Apply startup configuration on all VPP DUTs
 When IPv4 forwarding initialized in a 3-node circular topology
  And Add fib table  ${dut1}  10.10.10.0  24  1  local
  And Add fib table  ${dut2}  20.20.20.0  24  1  local
  And COP Add whitelist Entry  ${dut1}  ${dut1_if1}  ip4  1
  And COP Add whitelist Entry  ${dut2}  ${dut2_if2}  ip4  1
  And COP interface enable or disable  ${dut1}  ${dut1_if1}  enable
  And COP interface enable or disable  ${dut2}  ${dut2_if2}  enable
 Then Find PDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-IPv4  ${min_rate}  ${max_rate}  ${threshold}  ${glob_loss_acceptance}  ${glob_loss_acceptance_type}

tc17-9000B-4t4c-ethip4-ip4base-copwhtlistbase-ndrdisc

[Cfg] DUT runs IPv4 routing and whitelist filters config with 4 threads, 4 phy cores, 2 receive queue per NIC port. [Ver] Find NDR for 9000 Byte frames using binary search start at 10GE linerate, step 5kpps.


${framesize}=  Set Variable  ${9000}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${binary_min}=  Set Variable  ${min_rate}
${binary_max}=  Set Variable  ${max_rate}
${threshold}=  Set Variable  ${min_rate}
Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
  And Add PCI devices to DUTs from 3-node single link topology
  And Apply startup configuration on all VPP DUTs
 When IPv4 forwarding initialized in a 3-node circular topology
  And Add fib table  ${dut1}  10.10.10.0  24  1  local
  And Add fib table  ${dut2}  20.20.20.0  24  1  local
  And COP Add whitelist Entry  ${dut1}  ${dut1_if1}  ip4  1
  And COP Add whitelist Entry  ${dut2}  ${dut2_if2}  ip4  1
  And COP interface enable or disable  ${dut1}  ${dut1_if1}  enable
  And COP interface enable or disable  ${dut2}  ${dut2_if2}  enable
 Then Find NDR using binary search and pps  ${framesize}  ${binary_min}  ${binary_max}  3-node-IPv4  ${min_rate}  ${max_rate}  ${threshold}

tc18-9000B-4t4c-ethip4-ip4base-copwhtlistbase-pdrdisc

[Cfg] DUT runs IPv4 routing and whitelist filters config with 4 threads, 4 phy cores, 2 receive queue per NIC port. [Ver] Find PDR for 9000 Byte frames using binary search start at 10GE linerate, step 5kpps, LT=0.5%.


${framesize}=  Set Variable  ${9000}
${min_rate}=  Set Variable  ${10000}
${max_rate}=  Calculate pps  ${s_limit}  ${framesize}
${