< TEST_PROGS=test-tcp.sh TEST_GEN_PROGS="" run_tests make: Entering directory '/srv/vmksft/testing/wt-6/tools/testing/selftests' make[1]: Entering directory '/srv/vmksft/testing/wt-6/tools/testing/selftests/net/ovpn' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/srv/vmksft/testing/wt-6/tools/testing/selftests/net/ovpn' make[1]: Entering directory '/srv/vmksft/testing/wt-6/tools/testing/selftests/net/ovpn' TAP version 13 1..1 # overriding timeout to 240 # selftests: net/ovpn: test-tcp.sh # Creating interface tun0 with mode 1 # Creating interface tun1 with mode 0 # Creating interface tun2 with mode 0 # Creating interface tun3 with mode 0 # Creating interface tun4 with mode 0 # Creating interface tun5 with mode 0 # Creating interface tun6 with mode 0 # connected # Connection received! # Sent 1002 bytes over TCP socket # connected # Connection received! # Sent 1002 bytes over TCP socket # connected # Connection received! # Sent 1002 bytes over TCP socket # connected # Connection received! # Sent 1002 bytes over TCP socket # connected # Connection received! # Sent 1002 bytes over TCP socket # connected # Connection received! # >>>> Received 1002 bytes over TCP socket, header: 1000 # >>>> Received 1002 bytes over TCP socket, header: 1000 # >>>> Received 1002 bytes over TCP socket, header: 1000 # >>>> Received 1002 bytes over TCP socket, header: 1000 # >>>> Received 1002 bytes over TCP socket, header: 1000 # >>>> Received 1002 bytes over TCP socket, header: 1000 # Sent 1002 bytes over TCP socket # PING 5.5.5.2 (5.5.5.2) 56(84) bytes of data. # # --- 5.5.5.2 ping statistics --- # 500 packets transmitted, 500 received, 0% packet loss, time 362ms # rtt min/avg/max/mdev = 0.468/0.653/9.423/0.985 ms, ipg/ewma 0.724/0.494 ms # PING 5.5.5.2 (5.5.5.2) 3000(3028) bytes of data. # # --- 5.5.5.2 ping statistics --- # 501 packets transmitted, 500 received, 0.199601% packet loss, time 1857ms # rtt min/avg/max/mdev = 1.631/3.789/19.381/4.495 ms, pipe 2, ipg/ewma 3.714/14.568 ms # PING 5.5.5.3 (5.5.5.3) 56(84) bytes of data. # # --- 5.5.5.3 ping statistics --- # 500 packets transmitted, 500 received, 0% packet loss, time 352ms # rtt min/avg/max/mdev = 0.476/0.646/6.376/0.734 ms, ipg/ewma 0.705/0.926 ms # PING 5.5.5.3 (5.5.5.3) 3000(3028) bytes of data. # # --- 5.5.5.3 ping statistics --- # 500 packets transmitted, 500 received, 0% packet loss, time 1195ms # rtt min/avg/max/mdev = 1.642/2.224/9.417/1.504 ms, ipg/ewma 2.394/1.998 ms # PING 5.5.5.4 (5.5.5.4) 56(84) bytes of data. # # --- 5.5.5.4 ping statistics --- # 500 packets transmitted, 500 received, 0% packet loss, time 353ms # rtt min/avg/max/mdev = 0.470/0.640/6.574/0.729 ms, ipg/ewma 0.707/0.515 ms # PING 5.5.5.4 (5.5.5.4) 3000(3028) bytes of data. # # --- 5.5.5.4 ping statistics --- # 500 packets transmitted, 500 received, 0% packet loss, time 1211ms # rtt min/avg/max/mdev = 1.653/2.250/9.536/1.496 ms, ipg/ewma 2.426/2.138 ms # PING 5.5.5.5 (5.5.5.5) 56(84) bytes of data. # # --- 5.5.5.5 ping statistics --- # 500 packets transmitted, 500 received, 0% packet loss, time 354ms # rtt min/avg/max/mdev = 0.476/0.621/5.836/0.710 ms, ipg/ewma 0.709/0.498 ms # PING 5.5.5.5 (5.5.5.5) 3000(3028) bytes of data. # # --- 5.5.5.5 ping statistics --- # 500 packets transmitted, 500 received, 0% packet loss, time 1183ms # rtt min/avg/max/mdev = 1.641/2.191/8.960/1.391 ms, ipg/ewma 2.370/2.174 ms # PING 5.5.5.6 (5.5.5.6) 56(84) bytes of data. # # --- 5.5.5.6 ping statistics --- # 500 packets transmitted, 500 received, 0% packet loss, time 348ms # rtt min/avg/max/mdev = 0.473/0.629/6.357/0.767 ms, ipg/ewma 0.697/0.548 ms # PING 5.5.5.6 (5.5.5.6) 3000(3028) bytes of data. # # --- 5.5.5.6 ping statistics --- # 501 packets transmitted, 500 received, 0.199601% packet loss, time 2808ms # rtt min/avg/max/mdev = 1.636/6.027/19.686/6.151 ms, pipe 2, ipg/ewma 5.615/15.166 ms # PING 5.5.5.7 (5.5.5.7) 56(84) bytes of data. # # --- 5.5.5.7 ping statistics --- # 500 packets transmitted, 500 received, 0% packet loss, time 345ms # rtt min/avg/max/mdev = 0.470/0.642/15.664/1.043 ms, pipe 2, ipg/ewma 0.691/0.484 ms # PING 5.5.5.7 (5.5.5.7) 3000(3028) bytes of data. # # --- 5.5.5.7 ping statistics --- # 500 packets transmitted, 500 received, 0% packet loss, time 1176ms # rtt min/avg/max/mdev = 1.628/2.175/9.120/1.393 ms, ipg/ewma 2.355/2.031 ms # PING 11.11.11.11 (11.11.11.11) 56(84) bytes of data. # # --- 11.11.11.11 ping statistics --- # 500 packets transmitted, 500 received, 0% packet loss, time 341ms # rtt min/avg/max/mdev = 0.473/0.608/5.226/0.680 ms, ipg/ewma 0.682/0.909 ms # ----------------------------------------------------------- # Server listening on 5201 (test #1) # ----------------------------------------------------------- # Connecting to host 5.5.5.1, port 5201 # Accepted connection from 5.5.5.2, port 52834 # [ 7] local 5.5.5.2 port 52840 connected to 5.5.5.1 port 5201 # [ 7] local 5.5.5.1 port 5201 connected to 5.5.5.2 port 52840 # [ ID] Interval Transfer Bitrate # [ 7] 0.00-1.00 sec 3.38 MBytes 28.3 Mbits/sec # [ ID] Interval Transfer Bitrate Retr Cwnd # [ 7] 0.00-1.00 sec 3.50 MBytes 29.4 Mbits/sec 0 89.2 KBytes # [ 7] 1.00-2.00 sec 3.62 MBytes 30.4 Mbits/sec # [ 7] 1.00-2.00 sec 3.62 MBytes 30.4 Mbits/sec 0 89.2 KBytes # [ 7] 2.00-3.00 sec 3.62 MBytes 30.4 Mbits/sec # [ 7] 3.00-3.06 sec 256 KBytes 33.7 Mbits/sec # - - - - - - - - - - - - - - - - - - - - - - - - - # [ ID] Interval Transfer Bitrate # [ 7] 0.00-3.06 sec 10.9 MBytes 29.8 Mbits/sec receiver # [ 7] 2.00-3.03 sec 3.50 MBytes 28.6 Mbits/sec 6 89.2 KBytes # - - - - - - - - - - - - - - - - - - - - - - - - - # [ ID] Interval Transfer Bitrate Retr # [ 7] 0.00-3.03 sec 10.8 MBytes 29.8 Mbits/sec 6 sender # [ 7] 0.00-3.06 sec 10.9 MBytes 29.8 Mbits/sec receiver # # iperf Done. # Adding secondary key and then swap: # Querying all peers: # List of peers connected to: tun0 # * Peer 4 # TX peer ID 13 # VPN IPv4: 5.5.5.5 # Keepalive interval: 60 sec # Keepalive timeout: 120 sec # VPN RX bytes: 1576000 # VPN TX bytes: 1576000 # VPN RX packets: 2000 # VPN TX packets: 2000 # LINK RX bytes: 1624144 # LINK TX bytes: 1624000 # LINK RX packets: 2002 # LINK TX packets: 2000 # * Peer 3 # TX peer ID 12 # VPN IPv4: 5.5.5.4 # Keepalive interval: 60 sec # Keepalive timeout: 120 sec # VPN RX bytes: 1576000 # VPN TX bytes: 1576000 # VPN RX packets: 2000 # VPN TX packets: 2000 # LINK RX bytes: 1624216 # LINK TX bytes: 1624000 # LINK RX packets: 2003 # LINK TX packets: 2000 # * Peer 5 # TX peer ID 14 # VPN IPv4: 5.5.5.6 # Keepalive interval: 60 sec # Keepalive timeout: 120 sec # VPN RX bytes: 1579068 # VPN TX bytes: 1579068 # VPN RX packets: 2003 # VPN TX packets: 2003 # LINK RX bytes: 1627284 # LINK TX bytes: 1627140 # LINK RX packets: 2005 # LINK TX packets: 2003 # * Peer 1 # TX peer ID 10 # VPN IPv4: 5.5.5.2 # Keepalive interval: 60 sec # Keepalive timeout: 120 sec # VPN RX bytes: 13478542 # VPN TX bytes: 1649803 # VPN RX packets: 11061 # VPN TX packets: 3048 # LINK RX bytes: 13744150 # LINK TX bytes: 1722955 # LINK RX packets: 11063 # LINK TX packets: 3048 # * Peer 6 # TX peer ID 15 # VPN IPv4: 5.5.5.7 # Keepalive interval: 60 sec # Keepalive timeout: 120 sec # VPN RX bytes: 1576000 # VPN TX bytes: 1576000 # VPN RX packets: 2000 # VPN TX packets: 2000 # LINK RX bytes: 1624144 # LINK TX bytes: 1624000 # LINK RX packets: 2002 # LINK TX packets: 2000 # * Peer 2 # TX peer ID 11 # VPN IPv4: 5.5.5.3 # Keepalive interval: 60 sec # Keepalive timeout: 120 sec # VPN RX bytes: 1576000 # VPN TX bytes: 1576000 # VPN RX packets: 2000 # VPN TX packets: 2000 # LINK RX bytes: 1624144 # LINK TX bytes: 1624000 # LINK RX packets: 2002 # LINK TX packets: 2000 # List of peers connected to: tun1 # * Peer 10 # TX peer ID 1 # Keepalive interval: 60 sec # Keepalive timeout: 120 sec # VPN RX bytes: 1649803 # VPN TX bytes: 13478686 # VPN RX packets: 3048 # VPN TX packets: 11064 # LINK RX bytes: 1722955 # LINK TX bytes: 13744150 # LINK RX packets: 3048 # LINK TX packets: 11063 # Querying peer 1: # * Peer 1 # TX peer ID 10 # VPN IPv4: 5.5.5.2 # Keepalive interval: 60 sec # Keepalive timeout: 120 sec # VPN RX bytes: 13478542 # VPN TX bytes: 1649803 # VPN RX packets: 11061 # VPN TX packets: 3048 # LINK RX bytes: 13744150 # LINK TX bytes: 1722955 # LINK RX packets: 11063 # LINK TX packets: 3048 # Querying non-existent peer 20: # kernel error: ovpn: cannot find peer with id 20 # netlink reports error (-12): Object not found # failed to send netlink message: No such file or directory (-2) # Cannot execute command: No such file or directory (-2) # Deleting peer 1: # Querying keys: # * Peer 11 # - Slot: primary # - Key ID: 1 # - Cipher: aes-gcm # * Peer 11 # - Slot: secondary # - Key ID: 0 # - Cipher: aes-gcm # * Peer 12 # - Slot: primary # - Key ID: 1 # - Cipher: aes-gcm # * Peer 12 # - Slot: secondary # - Key ID: 0 # - Cipher: aes-gcm # * Peer 13 # - Slot: primary # - Key ID: 1 # - Cipher: aes-gcm # * Peer 13 # - Slot: secondary # - Key ID: 0 # - Cipher: aes-gcm # * Peer 14 # - Slot: primary # - Key ID: 1 # - Cipher: aes-gcm # * Peer 14 # - Slot: secondary # - Key ID: 0 # - Cipher: aes-gcm # * Peer 15 # - Slot: primary # - Key ID: 1 # - Cipher: aes-gcm # * Peer 15 # - Slot: secondary # - Key ID: 0 # - Cipher: aes-gcm # Deleting peer while sending traffic: # PING 5.5.5.1 (5.5.5.1) 56(84) bytes of data. # Deleting keys: # Setting timeout to 3s MP: # # --- 5.5.5.1 ping statistics --- # 3082 packets transmitted, 2912 received, 5.5159% packet loss, time 3998ms # rtt min/avg/max/mdev = 0.436/0.621/8.961/0.822 ms, ipg/ewma 1.297/0.583 ms # Setting timeout to 3s P2P: # ./common.sh: line 150: kill: (9017) - No such process # Checking notifications for peer 0... OK # ./common.sh: line 150: kill: (9019) - No such process # Checking notifications for peer 1... OK # ./common.sh: line 150: kill: (9021) - No such process # Checking notifications for peer 2... OK # ./common.sh: line 150: kill: (9023) - No such process # Checking notifications for peer 3... 1,9d0 # < { # < "name": "peer-del-ntf", # < "msg": { # < "peer": { # < "del-reason": "expired", # < "id": 12 # < } # < } # < } # ./common.sh: line 150: kill: (9025) - No such process # Checking notifications for peer 4... 1,9d0 # < { # < "name": "peer-del-ntf", # < "msg": { # < "peer": { # < "del-reason": "expired", # < "id": 13 # < } # < } # < } # ./common.sh: line 150: kill: (9027) - No such process # Checking notifications for peer 5... 1,9d0 # < { # < "name": "peer-del-ntf", # < "msg": { # < "peer": { # < "del-reason": "expired", # < "id": 14 # < } # < } # < } # ./common.sh: line 150: kill: (9029) - No such process # Checking notifications for peer 6... 1,9d0 # < { # < "name": "peer-del-ntf", # < "msg": { # < "peer": { # < "del-reason": "expired", # < "id": 15 # < } # < } # < } # Deleting interface tun1 ifindex 4 # Deleting interface tun2 ifindex 4 # Deleting interface tun3 ifindex 4 # Deleting interface tun4 ifindex 4 # Deleting interface tun5 ifindex 4 # Deleting interface tun6 ifindex 4 ok 1 selftests: net/ovpn: test-tcp.sh make[1]: Leaving directory '/srv/vmksft/testing/wt-6/tools/testing/selftests/net/ovpn' make: Leaving directory '/srv/vmksft/testing/wt-6/tools/testing/selftests' xx__-> echo $? 0 xx__-> echo scan > /sys/kernel/debug/kmemleak xx__->