Subject: [bmwg] Yet Another RFC2544 Test implementation

From: Vladimir Vassilev <[email-masked]>
Date: Sat, 29 May 2021 13:16:57 +0200

Hi,

We have completed the RFC2544 test implementation for devices that 
support the YANG/NETCONF interface specified in 
draft-vassilev-bmwg-network-interconnect-tester

Here is the code 
https://raw.githubusercontent.com/vlvassilev/litenc/master/tntapi/example/ietf-network-interconnect-tester/rfc2544.py

Here is an example of the report generated for 1Gb Ethernet interface 
for 64 byte frames (DUT = 1m fiber loopback connection):

|root@spark:~/litenc/tntapi/example/ietf-network-interconnect-tester# 
python ./rfc2544.py --config=../topology-localhost.xml 
--dst-node=tester0 --dst-node-interface=eth1 --src-node=tester0 
--src-node-interface=eth0 --dst-mac-address="70:B3:D5:EC:20:01" 
--src-mac-address="70:B3:D5:EC:20:00" --dst-ipv4-address="192.0.2.2" 
--src-ipv4-udp-port=49184 --src-ipv4-address="192.0.2.1" --frame-size=64 
--trial-time=120 --speed=1000000000 | grep "^#" #===Throughput=== #1 
1488095.238095 pps, 20 octets interframe gap, 100.00% ... 178571428 / 
178571428 #Result: 1488095.238095 pps #===Latency=== #Measurement style 
- bit forwarding #1 896 ns (min=864 ns, max=896 ns) ... 178571428 / 
178571428 #2 896 ns (min=864 ns, max=896 ns) ... 178571428 / 178571428 
#3 904 ns (min=872 ns, max=904 ns) ... 178571428 / 178571428 #4 904 ns 
(min=872 ns, max=904 ns) ... 178571428 / 178571428 #5 904 ns (min=872 
ns, max=904 ns) ... 178571428 / 178571428 #6 904 ns (min=872 ns, max=904 
ns) ... 178571428 / 178571428 #7 904 ns (min=872 ns, max=904 ns) ... 
178571428 / 178571428 #8 904 ns (min=872 ns, max=904 ns) ... 178571428 / 
178571428 #9 896 ns (min=864 ns, max=896 ns) ... 178571428 / 178571428 
#10 904 ns (min=872 ns, max=904 ns) ... 178571428 / 178571428 #11 896 ns 
(min=864 ns, max=896 ns) ... 178571428 / 178571428 #12 896 ns (min=864 
ns, max=896 ns) ... 178571428 / 178571428 #13 896 ns (min=864 ns, 
max=896 ns) ... 178571428 / 178571428 #14 904 ns (min=872 ns, max=904 
ns) ... 178571428 / 178571428 #15 904 ns (min=872 ns, max=904 ns) ... 
178571428 / 178571428 #16 904 ns (min=872 ns, max=904 ns) ... 178571428 
/ 178571428 #17 904 ns (min=872 ns, max=904 ns) ... 178571428 / 
178571428 #18 896 ns (min=864 ns, max=896 ns) ... 178571428 / 178571428 
#19 896 ns (min=864 ns, max=896 ns) ... 178571428 / 178571428 #20 904 ns 
(min=872 ns, max=904 ns) ... 178571428 / 178571428 #Result: 900.800000 
nanoseconds #===Frame loss rate=== #1 100% rate, 0% loss, (100.000000% 
rate actual), 1488095.238095 pps (1488095.238095 pps actual), 20 octets 
interframe gap ... 178571428 / 178571428 #2 90% rate, 0% loss, 
(89.361702% rate actual), 1339285.714286 pps (1329787.234043 pps 
actual), 30 octets interframe gap ... 159574468 / 159574468 #===Back to 
back frames=== #1 2 back-to-back frames ... 120 / 120 #2 4 back-to-back 
frames ... 240 / 240 #3 8 back-to-back frames ... 480 / 480 #4 16 
back-to-back frames ... 960 / 960 #5 32 back-to-back frames ... 1920 / 
1920 #6 64 back-to-back frames ... 3840 / 3840 #7 128 back-to-back 
frames ... 7680 / 7680 #8 256 back-to-back frames ... 15360 / 15360 #9 
512 back-to-back frames ... 30720 / 30720 #10 1024 back-to-back frames 
... 61440 / 61440 #11 2048 back-to-back frames ... 122880 / 122880 #12 
4096 back-to-back frames ... 245760 / 245760 #13 8192 back-to-back 
frames ... 491520 / 491520 #14 16384 back-to-back frames ... 983040 / 
983040 #15 32768 back-to-back frames ... 1966080 / 1966080 #16 65536 
back-to-back frames ... 3932160 / 3932160 #17 131072 back-to-back frames 
... 7864320 / 7864320 #18 262144 back-to-back frames ... 15728641 / 
15728641 #19 524288 back-to-back frames ... 31457282 / 31457282 #20 
1048576 back-to-back frames ... 62914565 / 62914565 #21 1488095 
back-to-back frames ... 89285707 / 89285707 #The back to back search is 
limited to bursts below 1 second. #Result: >= 1488095 
root@spark:~/litenc/tntapi/example/ietf-network-interconnect-tester# 
/Vladimir |

---

From: Vladimir Vassilev <[email-masked]>
Date: Sat, 29 May 2021 13:21:56 +0200

On 29/05/2021 13.16, Vladimir Vassilev wrote:
> ||
> ||