[26-06-02 09:13:28] START access_openvpn_perf scenario: cases/access_openvpn_perf.sh header : custom scenario topology: sw1(center) 192.55.0.1; | OpenVPN tcp/1194 + udp/1195; vpn1 10.95.0.0/24; | ping RTT and iperf3 TCP/UDP samples topology: # Topology: topology: # - Diagram: topology: # sw1(center) 192.55.0.1 topology: # ^ topology: # | OpenVPN tcp/1194 + udp/1195 topology: # vpn1 10.95.0.0/24 topology: # | ping RTT and iperf3 TCP/UDP samples topology: # - Docker mgmt network: 172.251.0.0/24 topology: # sw1=172.251.0.241, vpn1 joins the same mgmt network. topology: # - OpenLAN service network "example": 192.55.0.0/24 topology: # sw1 gateway=192.55.0.1. topology: # - OpenVPN overlay on sw1: topology: # tcp/1194 and udp/1195, subnet 10.95.0.0/24. topology: # Validation: topology: # - vpn1 reaches sw1 service IP through OpenVPN. topology: # - RTT sample shows 0% loss and summary line. topology: # - Bandwidth sample is collected with iperf3 for both TCP and UDP. [26-06-02 09:13:28][ASSERT#0001][cmd] at cases/access_openvpn_perf.sh:36 fn=setup_net cmd="docker network create tests-net-openvpn-perf --driver=bridge --subnet=172.251.0.0/24 --gateway=172.251.0.1" 589a14069df7145d0d6d579bf55c0763e0a955bd05d36bd99a5cea80b5eb04bc [26-06-02 09:13:28][ASSERT#0001][OK] cost=0.062s Started switch pause container: tests-sw-openvpn-perf.sw1-pause Started switch frr container: tests-sw-openvpn-perf.sw1-frr Started switch ipsec container: tests-sw-openvpn-perf.sw1-ipsec Started switch container: tests-sw-openvpn-perf.sw1 [26-06-02 09:13:29][ASSERT#0002][expect] at cases/access_openvpn_perf.sh:42 fn=setup_sw1 retry=30 cmd="docker logs -f tests-sw-openvpn-perf.sw1" expect="Http.Start" 2026/06/02 09:13:30 INFO|root|Wait: ... 2026/06/02 09:13:30 INFO|root|UdpServer.Listen: udp://0.0.0.0:10002 2026/06/02 09:13:30 INFO|root|TcpServer.Listen: tcp://0.0.0.0:10002 2026/06/02 09:13:30 INFO|root|Http.Start 0.0.0.0:10000 [26-06-02 09:13:30][ASSERT#0002][OK] cost=1.031s [26-06-02 09:13:30][ASSERT#0003][cmd] at cases/access_openvpn_perf.sh:43 fn=setup_sw1 cmd="docker exec tests-sw-openvpn-perf.sw1 openlan crypt update --algorithm aes-128 --secret ea64d5b0c96c" [26-06-02 09:13:30][ASSERT#0003][OK] cost=0.071s [26-06-02 09:13:30][ASSERT#0004][cmd] at cases/access_openvpn_perf.sh:44 fn=setup_sw1 cmd="docker exec tests-sw-openvpn-perf.sw1 openlan network --name example add --address 192.55.0.1/24" [26-06-02 09:13:30][ASSERT#0004][OK] cost=0.249s [26-06-02 09:13:30][ASSERT#0005][cmd] at cases/access_openvpn_perf.sh:45 fn=setup_sw1 cmd="docker exec tests-sw-openvpn-perf.sw1 openlan user add --name vpn1@example --password 123456" # total 1 username password role lease vpn1@example 123456 guest 2027-06-02T09 [26-06-02 09:13:31][ASSERT#0005][OK] cost=0.069s [26-06-02 09:13:31][ASSERT#0006][cmd] at cases/access_openvpn_perf.sh:51 fn=setup_openvpn cmd="docker exec tests-sw-openvpn-perf.sw1 openlan network --name example openvpn add --listen :1194 --protocol tcp --subnet 10.95.0.0/24 --dns 8.8.8.8" [26-06-02 09:13:31][ASSERT#0006][OK] cost=0.123s [26-06-02 09:13:31][ASSERT#0007][cmd] at cases/access_openvpn_perf.sh:53 fn=setup_openvpn cmd="docker cp tests-sw-openvpn-perf.sw1:/var/openlan/openvpn/example/tcp1194client.ovpn /opt/openlan/tests-sw-openvpn-perf.vpn1/ovpn/client.ovpn" [26-06-02 09:13:31][ASSERT#0007][OK] cost=0.022s Started OpenVPN client container: tests-sw-openvpn-perf.vpn1 [26-06-02 09:13:31][ASSERT#0008][expect] at cases/access_openvpn_perf.sh:60 fn=setup_openvpn retry=40 cmd="docker logs -f tests-sw-openvpn-perf.vpn1" expect="Initialization Sequence Completed" 2026-06-02 09:13:31 net_addr_v4_add: 10.95.0.2/24 dev tun0 2026-06-02 09:13:31 net_route_v4_add: 10.95.0.0/24 via 10.95.0.1 dev [NULL] table 0 metric 300 2026-06-02 09:13:31 net_route_v4_add: 192.55.0.0/24 via 10.95.0.1 dev [NULL] table 0 metric 300 2026-06-02 09:13:31 Initialization Sequence Completed [26-06-02 09:13:32][ASSERT#0008][OK] cost=1.034s [26-06-02 09:13:32][ASSERT#0009][match] at cases/access_openvpn_perf.sh:64 fn=test_openvpn_latency retry=20 cmd="docker exec tests-sw-openvpn-perf.vpn1 ping -c 3 192.55.0.1" expect="bytes from" PING 192.55.0.1 (192.55.0.1) 56(84) bytes of data. 64 bytes from 192.55.0.1: icmp_seq=1 ttl=64 time=0.543 ms 64 bytes from 192.55.0.1: icmp_seq=2 ttl=64 time=0.826 ms 64 bytes from 192.55.0.1: icmp_seq=3 ttl=64 time=0.591 ms --- 192.55.0.1 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2063ms [26-06-02 09:13:34][ASSERT#0009][OK] cost=2.154s [26-06-02 09:13:34][ASSERT#0010][match] at cases/access_openvpn_perf.sh:65 fn=test_openvpn_latency retry=30 cmd="docker exec tests-sw-openvpn-perf.vpn1 ping -q -c 20 -i 0.05 -s 1200 192.55.0.1" expect="0% packet loss" PING 192.55.0.1 (192.55.0.1) 1200(1228) bytes of data. --- 192.55.0.1 ping statistics --- 20 packets transmitted, 20 received, 0% packet loss, time 982ms rtt min/avg/max/mdev = 0.418/0.768/1.199/0.150 ms [26-06-02 09:13:35][ASSERT#0010][OK] cost=1.061s [26-06-02 09:13:35][ASSERT#0011][match] at cases/access_openvpn_perf.sh:66 fn=test_openvpn_latency retry=5 cmd="docker exec tests-sw-openvpn-perf.vpn1 ping -q -c 20 -i 0.05 -s 1200 192.55.0.1" expect="rtt min/avg/max" --- 192.55.0.1 ping statistics --- 20 packets transmitted, 20 received, 0% packet loss, time 981ms rtt min/avg/max/mdev = 0.357/2.100/28.674/6.097 ms [26-06-02 09:13:36][ASSERT#0011][OK] cost=1.067s [26-06-02 09:13:36][ASSERT#0012][cmd] at cases/access_openvpn_perf.sh:78 fn=test_openvpn_bandwidth cmd="docker exec tests-sw-openvpn-perf.sw1 iperf3 -s -D -p 5203" [26-06-02 09:13:36][ASSERT#0012][OK] cost=0.064s [26-06-02 09:13:36][ASSERT#0013][match] at cases/access_openvpn_perf.sh:79 fn=test_openvpn_bandwidth retry=20 cmd="docker exec tests-sw-openvpn-perf.vpn1 iperf3 -c 192.55.0.1 -p 5203 -t 5" expect="receiver" - - - - - - - - - - - - - - - - - - - - - - - - - [ ID] Interval Transfer Bitrate Retr [ 5] 0.00-5.00 sec 714 MBytes 1.20 Gbits/sec 231 sender [ 5] 0.00-5.04 sec 706 MBytes 1.17 Gbits/sec receiver iperf Done. [26-06-02 09:13:42][ASSERT#0013][OK] cost=5.510s [26-06-02 09:13:42][ASSERT#0014][cmd] at cases/access_openvpn_perf.sh:80 fn=test_openvpn_bandwidth cmd="docker exec tests-sw-openvpn-perf.sw1 pkill -f iperf3" [26-06-02 09:13:42][ASSERT#0014][OK] cost=0.054s [26-06-02 09:13:42][ASSERT#0015][cmd] at cases/access_openvpn_perf.sh:84 fn=test_reload_persistence cmd="docker exec tests-sw-openvpn-perf.sw1 openlan reload --save" Save configuraion ... success # reloading pid:43 .... PID 43 CMD: /usr/bin/openlan-switch -conf:dir /etc/openlan/switch -log:level 20 # max wait 60s... # during 1s, new pid:513 ... PID 513 CMD: /usr/bin/openlan-switch -conf:dir /etc/openlan/switch -log:level 20 [26-06-02 09:13:43][ASSERT#0015][OK] cost=1.076s [26-06-02 09:13:43][ASSERT#0016][match] at cases/access_openvpn_perf.sh:85 fn=test_reload_persistence retry=20 cmd="docker exec tests-sw-openvpn-perf.vpn1 ping -c 3 192.55.0.1" expect="bytes from" PING 192.55.0.1 (192.55.0.1) 56(84) bytes of data. 64 bytes from 192.55.0.1: icmp_seq=1 ttl=64 time=0.273 ms 64 bytes from 192.55.0.1: icmp_seq=2 ttl=64 time=0.719 ms 64 bytes from 192.55.0.1: icmp_seq=3 ttl=64 time=0.905 ms --- 192.55.0.1 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2041ms [26-06-02 09:13:45][ASSERT#0016][OK] cost=2.126s [26-06-02 09:13:45][ASSERT#0017][cmd] at cases/access_openvpn_perf.sh:95 fn=test_openvpn_protocol_perf cmd="docker exec tests-sw-openvpn-perf.sw1 openlan network --name example openvpn remove" [26-06-02 09:13:45][ASSERT#0017][OK] cost=0.140s [26-06-02 09:13:46][ASSERT#0018][cmd] at cases/access_openvpn_perf.sh:51 fn=setup_openvpn cmd="docker exec tests-sw-openvpn-perf.sw1 openlan network --name example openvpn add --listen :1195 --protocol udp --subnet 10.95.0.0/24 --dns 8.8.8.8" [26-06-02 09:13:46][ASSERT#0018][OK] cost=0.119s [26-06-02 09:13:46][ASSERT#0019][cmd] at cases/access_openvpn_perf.sh:53 fn=setup_openvpn cmd="docker cp tests-sw-openvpn-perf.sw1:/var/openlan/openvpn/example/udp1195client.ovpn /opt/openlan/tests-sw-openvpn-perf.vpn1/ovpn/client.ovpn" [26-06-02 09:13:46][ASSERT#0019][OK] cost=0.023s Started OpenVPN client container: tests-sw-openvpn-perf.vpn1 [26-06-02 09:13:46][ASSERT#0020][expect] at cases/access_openvpn_perf.sh:60 fn=setup_openvpn retry=40 cmd="docker logs -f tests-sw-openvpn-perf.vpn1" expect="Initialization Sequence Completed" 2026-06-02 09:13:46 net_addr_v4_add: 10.95.0.2/24 dev tun0 2026-06-02 09:13:46 net_route_v4_add: 10.95.0.0/24 via 10.95.0.1 dev [NULL] table 0 metric 300 2026-06-02 09:13:46 net_route_v4_add: 192.55.0.0/24 via 10.95.0.1 dev [NULL] table 0 metric 300 2026-06-02 09:13:46 Initialization Sequence Completed [26-06-02 09:13:47][ASSERT#0020][OK] cost=1.029s [26-06-02 09:13:47][ASSERT#0021][match] at cases/access_openvpn_perf.sh:64 fn=test_openvpn_latency retry=20 cmd="docker exec tests-sw-openvpn-perf.vpn1 ping -c 3 192.55.0.1" expect="bytes from" PING 192.55.0.1 (192.55.0.1) 56(84) bytes of data. 64 bytes from 192.55.0.1: icmp_seq=1 ttl=64 time=0.565 ms 64 bytes from 192.55.0.1: icmp_seq=2 ttl=64 time=0.715 ms 64 bytes from 192.55.0.1: icmp_seq=3 ttl=64 time=0.890 ms --- 192.55.0.1 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2075ms [26-06-02 09:13:49][ASSERT#0021][OK] cost=2.161s [26-06-02 09:13:49][ASSERT#0022][match] at cases/access_openvpn_perf.sh:65 fn=test_openvpn_latency retry=30 cmd="docker exec tests-sw-openvpn-perf.vpn1 ping -q -c 20 -i 0.05 -s 1200 192.55.0.1" expect="0% packet loss" PING 192.55.0.1 (192.55.0.1) 1200(1228) bytes of data. --- 192.55.0.1 ping statistics --- 20 packets transmitted, 20 received, 0% packet loss, time 973ms rtt min/avg/max/mdev = 0.205/0.726/1.124/0.209 ms [26-06-02 09:13:50][ASSERT#0022][OK] cost=1.066s [26-06-02 09:13:50][ASSERT#0023][match] at cases/access_openvpn_perf.sh:66 fn=test_openvpn_latency retry=5 cmd="docker exec tests-sw-openvpn-perf.vpn1 ping -q -c 20 -i 0.05 -s 1200 192.55.0.1" expect="rtt min/avg/max" --- 192.55.0.1 ping statistics --- 20 packets transmitted, 20 received, 0% packet loss, time 976ms rtt min/avg/max/mdev = 0.193/0.767/1.202/0.197 ms [26-06-02 09:13:51][ASSERT#0023][OK] cost=1.064s [26-06-02 09:13:51][ASSERT#0024][cmd] at cases/access_openvpn_perf.sh:78 fn=test_openvpn_bandwidth cmd="docker exec tests-sw-openvpn-perf.sw1 iperf3 -s -D -p 5203" [26-06-02 09:13:51][ASSERT#0024][OK] cost=0.060s [26-06-02 09:13:51][ASSERT#0025][match] at cases/access_openvpn_perf.sh:79 fn=test_openvpn_bandwidth retry=20 cmd="docker exec tests-sw-openvpn-perf.vpn1 iperf3 -c 192.55.0.1 -p 5203 -t 5" expect="receiver" - - - - - - - - - - - - - - - - - - - - - - - - - [ ID] Interval Transfer Bitrate Retr [ 5] 0.00-5.00 sec 801 MBytes 1.34 Gbits/sec 32 sender [ 5] 0.00-5.04 sec 794 MBytes 1.32 Gbits/sec receiver iperf Done. [26-06-02 09:13:57][ASSERT#0025][OK] cost=5.262s [26-06-02 09:13:57][ASSERT#0026][cmd] at cases/access_openvpn_perf.sh:80 fn=test_openvpn_bandwidth cmd="docker exec tests-sw-openvpn-perf.sw1 pkill -f iperf3" [26-06-02 09:13:57][ASSERT#0026][OK] cost=0.057s [26-06-02 09:13:57][ASSERT#0027][cmd] at cases/access_openvpn_perf.sh:84 fn=test_reload_persistence cmd="docker exec tests-sw-openvpn-perf.sw1 openlan reload --save" Save configuraion ... success # reloading pid:513 .... PID 513 CMD: /usr/bin/openlan-switch -conf:dir /etc/openlan/switch -log:level 20 # max wait 60s... # during 1s, new pid:772 ... PID 772 CMD: /usr/bin/openlan-switch -conf:dir /etc/openlan/switch -log:level 20 [26-06-02 09:13:58][ASSERT#0027][OK] cost=1.076s [26-06-02 09:13:58][ASSERT#0028][match] at cases/access_openvpn_perf.sh:85 fn=test_reload_persistence retry=20 cmd="docker exec tests-sw-openvpn-perf.vpn1 ping -c 3 192.55.0.1" expect="bytes from" PING 192.55.0.1 (192.55.0.1) 56(84) bytes of data. 64 bytes from 192.55.0.1: icmp_seq=1 ttl=64 time=0.520 ms 64 bytes from 192.55.0.1: icmp_seq=2 ttl=64 time=0.838 ms 64 bytes from 192.55.0.1: icmp_seq=3 ttl=64 time=0.871 ms --- 192.55.0.1 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2010ms [26-06-02 09:14:00][ASSERT#0028][OK] cost=2.100s [26-06-02 09:14:00][ASSERT#0029][cmd] at cases/access_openvpn_perf.sh:95 fn=test_openvpn_protocol_perf cmd="docker exec tests-sw-openvpn-perf.sw1 openlan network --name example openvpn remove" [26-06-02 09:14:00][ASSERT#0029][OK] cost=0.132s [26-06-02 09:14:01] END access_openvpn_perf status=PASS cost=32.637s