Xor-Hash

These scenarios cover some aspects related to link-aggregation (combining multiple network connections simultaneously to increase throughput, provide redundancy, or both). In OSDx, this can be achieved through bonding interfaces.

../../../../_images/topology1.svg

Test Xor-Hash

Description

A bonding interface is configured in DUT0 using the xor-hash mode. This mode can be used to achieve load-balancing based on the configured hash policy.

Scenario

Example 1

Step 1: Set the following configuration in DUT0 :

set interfaces bonding bond0 address 192.168.100.10/24
set interfaces bonding bond0 hash-policy layer3+4
set interfaces bonding bond0 miimon 100
set interfaces bonding bond0 mode xor-hash
set interfaces ethernet eth0p0 bond-group bond0
set interfaces ethernet eth1 bond-group bond0
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 2: Set the following configuration in DUT1 :

set interfaces bridge br0 address 192.168.100.20/24
set interfaces bridge br0 stp version rstp
set interfaces ethernet eth0 bridge-group bridge br0
set interfaces ethernet eth1 bridge-group bridge br0
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 3: Run the command interfaces bonding show on DUT0 and check whether the output matches the following regular expressions:

bond0\s+192.168.100\.10\/24\s+up\s+up
Show output
---------------------------------------------------------------
Name          IP Address          Admin  Oper  Vrf  Description
---------------------------------------------------------------
bond0  192.168.100.10/24          up     up
fe80::2a0:26ff:fe18:c9/64

Step 4: Run the command interfaces bonding bond0 show ports on DUT0 and check whether the output contains the following tokens:

Bonding Mode: load balancing (xor)
Show output
Ethernet Channel Bonding Driver: v6.12.49

Bonding Mode: load balancing (xor)
Transmit Hash Policy: layer3+4 (1)
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0
Peer Notification Delay (ms): 0

Slave Interface: eth0p0
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 00:a0:26:18:00:c9
Slave queue ID: 0

Slave Interface: eth1
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 00:a0:26:18:00:ca
Slave queue ID: 0

Step 5: Ping the IP address 192.168.100.20 from DUT0:

admin@DUT0$ ping 192.168.100.20 count 1 size 56 timeout 1
Show output
PING 192.168.100.20 (192.168.100.20) 56(84) bytes of data.
64 bytes from 192.168.100.20: icmp_seq=1 ttl=64 time=0.643 ms

--- 192.168.100.20 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.643/0.643/0.643/0.000 ms

Step 6: Run the command interfaces ethernet clear on DUT0.

Step 7: Initiate a bandwidth test from DUT0 to DUT1

admin@DUT1$ monitor test performance server port 5001
admin@DUT0$ monitor test performance client 192.168.100.20 duration 5 port 5001 parallel 10
Expect the following output on DUT0:
Connecting to host 192.168.100.20, port 5001
[  5] local 192.168.100.10 port 54632 connected to 192.168.100.20 port 5001
[  7] local 192.168.100.10 port 54644 connected to 192.168.100.20 port 5001
[  9] local 192.168.100.10 port 54648 connected to 192.168.100.20 port 5001
[ 11] local 192.168.100.10 port 54662 connected to 192.168.100.20 port 5001
[ 13] local 192.168.100.10 port 54676 connected to 192.168.100.20 port 5001
[ 15] local 192.168.100.10 port 54682 connected to 192.168.100.20 port 5001
[ 17] local 192.168.100.10 port 54692 connected to 192.168.100.20 port 5001
[ 19] local 192.168.100.10 port 54704 connected to 192.168.100.20 port 5001
[ 21] local 192.168.100.10 port 54706 connected to 192.168.100.20 port 5001
[ 23] local 192.168.100.10 port 54716 connected to 192.168.100.20 port 5001
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  7.49 MBytes  62.8 Mbits/sec   15   90.5 KBytes
[  7]   0.00-1.00   sec  5.52 MBytes  46.3 Mbits/sec   34   36.8 KBytes
[  9]   0.00-1.00   sec  5.85 MBytes  49.1 Mbits/sec   22   45.2 KBytes
[ 11]   0.00-1.00   sec  18.1 MBytes   152 Mbits/sec   25    163 KBytes
[ 13]   0.00-1.00   sec  5.94 MBytes  49.9 Mbits/sec   23   45.2 KBytes
[ 15]   0.00-1.00   sec  33.1 MBytes   278 Mbits/sec    8    222 KBytes
[ 17]   0.00-1.00   sec  5.58 MBytes  46.8 Mbits/sec   12   31.1 KBytes
[ 19]   0.00-1.00   sec  7.23 MBytes  60.7 Mbits/sec   14   62.2 KBytes
[ 21]   0.00-1.00   sec  18.4 MBytes   154 Mbits/sec   12    137 KBytes
[ 23]   0.00-1.00   sec  11.1 MBytes  93.1 Mbits/sec   12   69.3 KBytes
[SUM]   0.00-1.00   sec   118 MBytes   992 Mbits/sec  177
- - - - - - - - - - - - - - - - - - - - - - - - -
[  5]   1.00-2.00   sec  5.72 MBytes  47.9 Mbits/sec   25   41.0 KBytes
[  7]   1.00-2.00   sec  6.40 MBytes  53.7 Mbits/sec    7   49.5 KBytes
[  9]   1.00-2.00   sec  4.47 MBytes  37.5 Mbits/sec   28   33.9 KBytes
[ 11]   1.00-2.00   sec  16.6 MBytes   139 Mbits/sec   10    151 KBytes
[ 13]   1.00-2.00   sec  6.90 MBytes  57.9 Mbits/sec   15   53.7 KBytes
[ 15]   1.00-2.00   sec  28.5 MBytes   239 Mbits/sec    3    222 KBytes
[ 17]   1.00-2.00   sec  6.77 MBytes  56.8 Mbits/sec    7   63.6 KBytes
[ 19]   1.00-2.00   sec  5.59 MBytes  46.9 Mbits/sec   17   55.1 KBytes
[ 21]   1.00-2.00   sec  22.4 MBytes   188 Mbits/sec    1    228 KBytes
[ 23]   1.00-2.00   sec  9.57 MBytes  80.3 Mbits/sec   11   76.4 KBytes
[SUM]   1.00-2.00   sec   113 MBytes   948 Mbits/sec  124
- - - - - - - - - - - - - - - - - - - - - - - - -
[  5]   2.00-3.00   sec  6.77 MBytes  56.8 Mbits/sec   17   59.4 KBytes
[  7]   2.00-3.00   sec  5.22 MBytes  43.8 Mbits/sec   25   35.4 KBytes
[  9]   2.00-3.00   sec  6.77 MBytes  56.8 Mbits/sec   10   70.7 KBytes
[ 11]   2.00-3.00   sec  19.9 MBytes   167 Mbits/sec    9    188 KBytes
[ 13]   2.00-3.00   sec  8.58 MBytes  72.0 Mbits/sec    7   52.3 KBytes
[ 15]   2.00-3.00   sec  26.8 MBytes   225 Mbits/sec   20    239 KBytes
[ 17]   2.00-3.00   sec  5.78 MBytes  48.5 Mbits/sec   33   26.9 KBytes
[ 19]   2.00-3.00   sec  6.03 MBytes  50.6 Mbits/sec   13   53.7 KBytes
[ 21]   2.00-3.00   sec  17.4 MBytes   146 Mbits/sec   21    150 KBytes
[ 23]   2.00-3.00   sec  8.26 MBytes  69.3 Mbits/sec   14   46.7 KBytes
[SUM]   2.00-3.00   sec   112 MBytes   936 Mbits/sec  169
- - - - - - - - - - - - - - - - - - - - - - - - -
[  5]   3.00-4.00   sec  7.27 MBytes  61.0 Mbits/sec   21   31.1 KBytes
[  7]   3.00-4.00   sec  7.77 MBytes  65.2 Mbits/sec    9   42.4 KBytes
[  9]   3.00-4.00   sec  7.21 MBytes  60.5 Mbits/sec   12   50.9 KBytes
[ 11]   3.00-4.00   sec  19.0 MBytes   160 Mbits/sec   27    115 KBytes
[ 13]   3.00-4.00   sec  6.71 MBytes  56.3 Mbits/sec   13   76.4 KBytes
[ 15]   3.00-4.00   sec  21.5 MBytes   180 Mbits/sec    8    188 KBytes
[ 17]   3.00-4.00   sec  5.41 MBytes  45.3 Mbits/sec   12   69.3 KBytes
[ 19]   3.00-4.00   sec  5.84 MBytes  49.0 Mbits/sec   23   55.1 KBytes
[ 21]   3.00-4.00   sec  24.0 MBytes   201 Mbits/sec    0    245 KBytes
[ 23]   3.00-4.00   sec  8.14 MBytes  68.3 Mbits/sec   16   63.6 KBytes
[SUM]   3.00-4.00   sec   113 MBytes   947 Mbits/sec  141
- - - - - - - - - - - - - - - - - - - - - - - - -
[  5]   4.00-5.00   sec  7.64 MBytes  64.1 Mbits/sec   17   63.6 KBytes
[  7]   4.00-5.00   sec  6.40 MBytes  53.7 Mbits/sec   33   48.1 KBytes
[  9]   4.00-5.00   sec  4.72 MBytes  39.6 Mbits/sec   19   52.3 KBytes
[ 11]   4.00-5.00   sec  17.1 MBytes   143 Mbits/sec    7    171 KBytes
[ 13]   4.00-5.00   sec  6.46 MBytes  54.2 Mbits/sec   35   38.2 KBytes
[ 15]   4.00-5.00   sec  21.1 MBytes   177 Mbits/sec   11    156 KBytes
[ 17]   4.00-5.00   sec  6.90 MBytes  57.8 Mbits/sec   30   43.8 KBytes
[ 19]   4.00-5.00   sec  7.52 MBytes  63.0 Mbits/sec   43   49.5 KBytes
[ 21]   4.00-5.00   sec  25.7 MBytes   215 Mbits/sec   11    177 KBytes
[ 23]   4.00-5.00   sec  8.26 MBytes  69.3 Mbits/sec   20   69.3 KBytes
[SUM]   4.00-5.00   sec   112 MBytes   937 Mbits/sec  226
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-5.00   sec  34.9 MBytes  58.5 Mbits/sec   95             sender
[  5]   0.00-5.01   sec  34.6 MBytes  57.9 Mbits/sec                  receiver
[  7]   0.00-5.00   sec  31.3 MBytes  52.5 Mbits/sec  108             sender
[  7]   0.00-5.01   sec  31.0 MBytes  51.9 Mbits/sec                  receiver
[  9]   0.00-5.00   sec  29.0 MBytes  48.7 Mbits/sec   91             sender
[  9]   0.00-5.01   sec  28.5 MBytes  47.8 Mbits/sec                  receiver
[ 11]   0.00-5.00   sec  90.7 MBytes   152 Mbits/sec   78             sender
[ 11]   0.00-5.01   sec  89.6 MBytes   150 Mbits/sec                  receiver
[ 13]   0.00-5.00   sec  34.6 MBytes  58.0 Mbits/sec   93             sender
[ 13]   0.00-5.01   sec  34.1 MBytes  57.1 Mbits/sec                  receiver
[ 15]   0.00-5.00   sec   131 MBytes   220 Mbits/sec   50             sender
[ 15]   0.00-5.01   sec   129 MBytes   217 Mbits/sec                  receiver
[ 17]   0.00-5.00   sec  30.4 MBytes  51.1 Mbits/sec   94             sender
[ 17]   0.00-5.01   sec  30.0 MBytes  50.3 Mbits/sec                  receiver
[ 19]   0.00-5.00   sec  32.2 MBytes  54.0 Mbits/sec  110             sender
[ 19]   0.00-5.01   sec  31.8 MBytes  53.3 Mbits/sec                  receiver
[ 21]   0.00-5.00   sec   108 MBytes   181 Mbits/sec   45             sender
[ 21]   0.00-5.01   sec   107 MBytes   179 Mbits/sec                  receiver
[ 23]   0.00-5.00   sec  45.3 MBytes  76.1 Mbits/sec   73             sender
[ 23]   0.00-5.01   sec  44.6 MBytes  74.7 Mbits/sec                  receiver
[SUM]   0.00-5.00   sec   567 MBytes   952 Mbits/sec  837             sender
[SUM]   0.00-5.01   sec   560 MBytes   939 Mbits/sec                  receiver

iperf Done.

Step 8: Run the command interfaces ethernet show counters on DUT0 and check whether the output matches the following regular expressions:

eth1 \s+up\s+\d{2,}\s+\d+\s+\d+\s+\d{2,}
eth0p0 \s+up\s+\d{2,}\s+\d+\s+\d+\s+\d{2,}
Show output
-------------------------------------------------------------------------------
Name   Oper  Rx Packets  Rx Bytes  Rx Errors  Tx Packets  Tx Bytes   Tx Errors
-------------------------------------------------------------------------------
eth0p0  up         65688   4365265          0      170864  258653763          0
eth0p1  down           0         0          0           0          0          0
eth0p2  down           0         0          0           0          0          0
eth0p3  down           0         0          0           0          0          0
eth0p4  down           0         0          0           0          0          0
eth0p5  down           0         0          0           0          0          0
eth0p6  down           0         0          0           0          0          0
eth0p7  down           0         0          0           0          0          0
eth1  up         75079   4976756          0      236469  357976582          0
eth2  down           0         0          0           0          0          0

Example 2

Step 1: Set the following configuration in DUT0 :

set interfaces bonding bond0 address 192.168.100.10/24
set interfaces bonding bond0 hash-policy layer3+4
set interfaces bonding bond0 miimon 100
set interfaces bonding bond0 mode xor-hash
set interfaces ethernet eth0p0 bond-group bond0
set interfaces ethernet eth0p4 bond-group bond0
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 2: Set the following configuration in DUT1 :

set interfaces bridge br0 address 192.168.100.20/24
set interfaces bridge br0 stp version rstp
set interfaces ethernet eth1 bridge-group bridge br0
set interfaces ethernet eth2 bridge-group bridge br0
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 3: Run the command interfaces bonding show on DUT0 and check whether the output matches the following regular expressions:

bond0\s+192.168.100\.10\/24\s+up\s+up
Show output
---------------------------------------------------------------
Name          IP Address          Admin  Oper  Vrf  Description
---------------------------------------------------------------
bond0  192.168.100.10/24          up     up
fe80::2a0:26ff:fe18:c9/64

Step 4: Run the command interfaces bonding bond0 show ports on DUT0 and check whether the output contains the following tokens:

Bonding Mode: load balancing (xor)
Show output
Ethernet Channel Bonding Driver: v6.12.49

Bonding Mode: load balancing (xor)
Transmit Hash Policy: layer3+4 (1)
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0
Peer Notification Delay (ms): 0

Slave Interface: eth0p0
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 00:a0:26:18:00:c9
Slave queue ID: 0

Slave Interface: eth0p4
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 02:a0:26:18:00:cc
Slave queue ID: 0

Step 5: Ping the IP address 192.168.100.20 from DUT0:

admin@DUT0$ ping 192.168.100.20 count 1 size 56 timeout 1
Show output
PING 192.168.100.20 (192.168.100.20) 56(84) bytes of data.
64 bytes from 192.168.100.20: icmp_seq=1 ttl=64 time=352 ms

--- 192.168.100.20 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 351.750/351.750/351.750/0.000 ms

Step 6: Run the command interfaces ethernet clear on DUT0.

Step 7: Initiate a bandwidth test from DUT0 to DUT1

admin@DUT1$ monitor test performance server port 5001
admin@DUT0$ monitor test performance client 192.168.100.20 duration 5 port 5001 parallel 10
Expect the following output on DUT0:
Connecting to host 192.168.100.20, port 5001
[  5] local 192.168.100.10 port 41304 connected to 192.168.100.20 port 5001
[  7] local 192.168.100.10 port 41308 connected to 192.168.100.20 port 5001
[  9] local 192.168.100.10 port 41314 connected to 192.168.100.20 port 5001
[ 11] local 192.168.100.10 port 41324 connected to 192.168.100.20 port 5001
[ 13] local 192.168.100.10 port 41326 connected to 192.168.100.20 port 5001
[ 15] local 192.168.100.10 port 41338 connected to 192.168.100.20 port 5001
[ 17] local 192.168.100.10 port 41340 connected to 192.168.100.20 port 5001
[ 19] local 192.168.100.10 port 41344 connected to 192.168.100.20 port 5001
[ 21] local 192.168.100.10 port 41346 connected to 192.168.100.20 port 5001
[ 23] local 192.168.100.10 port 41348 connected to 192.168.100.20 port 5001
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  11.3 MBytes  95.0 Mbits/sec   38   50.9 KBytes
[  7]   0.00-1.00   sec  10.1 MBytes  84.7 Mbits/sec   30   45.2 KBytes
[  9]   0.00-1.00   sec  11.9 MBytes  99.8 Mbits/sec   21   79.2 KBytes
[ 11]   0.00-1.00   sec  13.5 MBytes   113 Mbits/sec   24   36.8 KBytes
[ 13]   0.00-1.00   sec  14.2 MBytes   119 Mbits/sec   31   66.5 KBytes
[ 15]   0.00-1.00   sec  10.7 MBytes  89.7 Mbits/sec   28   43.8 KBytes
[ 17]   0.00-1.00   sec  9.06 MBytes  76.0 Mbits/sec   16   46.7 KBytes
[ 19]   0.00-1.00   sec  11.2 MBytes  93.6 Mbits/sec   13   74.9 KBytes
[ 21]   0.00-1.00   sec  14.8 MBytes   124 Mbits/sec   11   65.0 KBytes
[ 23]   0.00-1.00   sec  9.91 MBytes  83.1 Mbits/sec   29   38.2 KBytes
[SUM]   0.00-1.00   sec   117 MBytes   979 Mbits/sec  241
- - - - - - - - - - - - - - - - - - - - - - - - -
[  5]   1.00-2.00   sec  10.8 MBytes  90.2 Mbits/sec   19   56.6 KBytes
[  7]   1.00-2.00   sec  11.5 MBytes  96.4 Mbits/sec   18   31.1 KBytes
[  9]   1.00-2.00   sec  10.7 MBytes  89.7 Mbits/sec   17   46.7 KBytes
[ 11]   1.00-2.00   sec  8.95 MBytes  75.1 Mbits/sec   18   21.2 KBytes
[ 13]   1.00-2.00   sec  9.63 MBytes  80.8 Mbits/sec   25   24.0 KBytes
[ 15]   1.00-2.00   sec  8.82 MBytes  74.0 Mbits/sec   25   17.0 KBytes
[ 17]   1.00-2.00   sec  10.6 MBytes  88.6 Mbits/sec   17   35.4 KBytes
[ 19]   1.00-2.00   sec  13.0 MBytes   109 Mbits/sec   13   87.7 KBytes
[ 21]   1.00-2.00   sec  18.8 MBytes   157 Mbits/sec    8    102 KBytes
[ 23]   1.00-2.00   sec  9.20 MBytes  77.2 Mbits/sec   16   73.5 KBytes
[SUM]   1.00-2.00   sec   112 MBytes   939 Mbits/sec  176
- - - - - - - - - - - - - - - - - - - - - - - - -
[  5]   2.00-3.00   sec  7.77 MBytes  65.2 Mbits/sec   30   31.1 KBytes
[  7]   2.00-3.00   sec  11.5 MBytes  96.4 Mbits/sec    8   58.0 KBytes
[  9]   2.00-3.00   sec  11.7 MBytes  98.5 Mbits/sec   15   63.6 KBytes
[ 11]   2.00-3.00   sec  7.33 MBytes  61.5 Mbits/sec   16   33.9 KBytes
[ 13]   2.00-3.00   sec  10.4 MBytes  87.1 Mbits/sec   22   55.1 KBytes
[ 15]   2.00-3.00   sec  14.4 MBytes   120 Mbits/sec   18   52.3 KBytes
[ 17]   2.00-3.00   sec  12.4 MBytes   104 Mbits/sec   24   59.4 KBytes
[ 19]   2.00-3.00   sec  8.95 MBytes  75.1 Mbits/sec   39   39.6 KBytes
[ 21]   2.00-3.00   sec  14.7 MBytes   124 Mbits/sec   20   59.4 KBytes
[ 23]   2.00-3.00   sec  13.5 MBytes   113 Mbits/sec   27   43.8 KBytes
[SUM]   2.00-3.00   sec   113 MBytes   945 Mbits/sec  219
- - - - - - - - - - - - - - - - - - - - - - - - -
[  5]   3.00-4.00   sec  10.7 MBytes  89.7 Mbits/sec   22   76.4 KBytes
[  7]   3.00-4.00   sec  9.45 MBytes  79.2 Mbits/sec   44   39.6 KBytes
[  9]   3.00-4.00   sec  12.7 MBytes   107 Mbits/sec   37   43.8 KBytes
[ 11]   3.00-4.00   sec  11.2 MBytes  93.8 Mbits/sec   16   49.5 KBytes
[ 13]   3.00-4.00   sec  13.9 MBytes   116 Mbits/sec   10   96.2 KBytes
[ 15]   3.00-4.00   sec  9.51 MBytes  79.8 Mbits/sec   35   31.1 KBytes
[ 17]   3.00-4.00   sec  8.89 MBytes  74.5 Mbits/sec   33   50.9 KBytes
[ 19]   3.00-4.00   sec  10.9 MBytes  91.7 Mbits/sec   24   58.0 KBytes
[ 21]   3.00-4.00   sec  13.7 MBytes   115 Mbits/sec   17   72.1 KBytes
[ 23]   3.00-4.00   sec  10.7 MBytes  89.7 Mbits/sec   18   76.4 KBytes
[SUM]   3.00-4.00   sec   112 MBytes   936 Mbits/sec  256
- - - - - - - - - - - - - - - - - - - - - - - - -
[  5]   4.00-5.00   sec  20.3 MBytes   170 Mbits/sec    8    103 KBytes
[  7]   4.00-5.00   sec  7.39 MBytes  62.0 Mbits/sec   28   35.4 KBytes
[  9]   4.00-5.00   sec  13.2 MBytes   111 Mbits/sec   38   50.9 KBytes
[ 11]   4.00-5.00   sec  8.20 MBytes  68.8 Mbits/sec   25   38.2 KBytes
[ 13]   4.00-5.00   sec  11.3 MBytes  94.9 Mbits/sec   20   66.5 KBytes
[ 15]   4.00-5.00   sec  11.4 MBytes  95.9 Mbits/sec   30   55.1 KBytes
[ 17]   4.00-5.00   sec  9.32 MBytes  78.2 Mbits/sec   34   43.8 KBytes
[ 19]   4.00-5.00   sec  8.95 MBytes  75.0 Mbits/sec   37   42.4 KBytes
[ 21]   4.00-5.00   sec  14.7 MBytes   123 Mbits/sec   19   65.0 KBytes
[ 23]   4.00-5.00   sec  7.46 MBytes  62.5 Mbits/sec   36   29.7 KBytes
[SUM]   4.00-5.00   sec   112 MBytes   941 Mbits/sec  275
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-5.00   sec  60.8 MBytes   102 Mbits/sec  117             sender
[  5]   0.00-5.01   sec  60.2 MBytes   101 Mbits/sec                  receiver
[  7]   0.00-5.00   sec  49.9 MBytes  83.8 Mbits/sec  128             sender
[  7]   0.00-5.01   sec  49.5 MBytes  83.0 Mbits/sec                  receiver
[  9]   0.00-5.00   sec  60.2 MBytes   101 Mbits/sec  128             sender
[  9]   0.00-5.01   sec  59.9 MBytes   100 Mbits/sec                  receiver
[ 11]   0.00-5.00   sec  49.1 MBytes  82.4 Mbits/sec   99             sender
[ 11]   0.00-5.01   sec  48.7 MBytes  81.6 Mbits/sec                  receiver
[ 13]   0.00-5.00   sec  59.4 MBytes  99.7 Mbits/sec  108             sender
[ 13]   0.00-5.01   sec  59.0 MBytes  99.0 Mbits/sec                  receiver
[ 15]   0.00-5.00   sec  54.8 MBytes  92.0 Mbits/sec  136             sender
[ 15]   0.00-5.01   sec  54.2 MBytes  90.8 Mbits/sec                  receiver
[ 17]   0.00-5.00   sec  50.3 MBytes  84.3 Mbits/sec  124             sender
[ 17]   0.00-5.01   sec  49.7 MBytes  83.3 Mbits/sec                  receiver
[ 19]   0.00-5.00   sec  53.0 MBytes  89.0 Mbits/sec  126             sender
[ 19]   0.00-5.01   sec  52.5 MBytes  87.9 Mbits/sec                  receiver
[ 21]   0.00-5.00   sec  76.7 MBytes   129 Mbits/sec   75             sender
[ 21]   0.00-5.01   sec  76.1 MBytes   128 Mbits/sec                  receiver
[ 23]   0.00-5.00   sec  50.7 MBytes  85.1 Mbits/sec  126             sender
[ 23]   0.00-5.01   sec  50.3 MBytes  84.3 Mbits/sec                  receiver
[SUM]   0.00-5.00   sec   565 MBytes   948 Mbits/sec  1167             sender
[SUM]   0.00-5.01   sec   560 MBytes   939 Mbits/sec                  receiver

iperf Done.

Step 8: Run the command interfaces ethernet show counters on DUT0 and check whether the output matches the following regular expressions:

eth0p0 \s+up\s+\d{2,}\s+\d+\s+\d+\s+\d{2,}
eth0p4 \s+up\s+\d{2,}\s+\d+\s+\d+\s+\d{2,}
Show output
-------------------------------------------------------------------------------
Name   Oper  Rx Packets  Rx Bytes  Rx Errors  Tx Packets  Tx Bytes   Tx Errors
-------------------------------------------------------------------------------
eth0p0  up         87573   5820299          0      226085  342263304          0
eth0p1  down           0         0          0           0          0          0
eth0p2  down           0         0          0           0          0          0
eth0p3  down           0         0          0           0          0          0
eth0p4  up         73928   4909633          0      181118  274172129          0
eth0p5  down           0         0          0           0          0          0
eth0p6  down           0         0          0           0          0          0
eth0p7  down           0         0          0           0          0          0
eth1  down           0         0          0           0          0          0
eth2  down           0         0          0           0          0          0