yggdrasil-network / yggdrasil-go

An experiment in scalable routing as an encrypted IPv6 overlay network

Home Page:https://yggdrasil-network.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Performance decrease in 0.5+

turretkeeper opened this issue · comments

We are observing markedly slower data transfer speeds with the new Yggdrasil version.

To compare:

0.5.2:

Connecting to host 201:989b:21:b81c:78a7:c5b4:1131:c1c8, port 5201
[  5] local 200:c563:9b02:b9f9:5b62:c0e3:f931:16de port 57688 connected to 201:989b:21:b81c:78a7:c5b4:1131:c1c8 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  2.33 MBytes  19.5 Mbits/sec    1    162 KBytes       
[  5]   1.00-2.00   sec  0.00 Bytes  0.00 bits/sec    0    162 KBytes       
[  5]   2.00-3.00   sec  0.00 Bytes  0.00 bits/sec    0    162 KBytes       
[  5]   3.00-4.00   sec  0.00 Bytes  0.00 bits/sec    0    162 KBytes       
[  5]   4.00-5.00   sec  0.00 Bytes  0.00 bits/sec    0    162 KBytes       
[  5]   5.00-6.00   sec  0.00 Bytes  0.00 bits/sec    0    162 KBytes       
[  5]   6.00-7.00   sec  0.00 Bytes  0.00 bits/sec    0    703 KBytes       
[  5]   7.00-8.00   sec  1.25 MBytes  10.5 Mbits/sec    0   1.37 MBytes       
[  5]   8.00-9.00   sec  0.00 Bytes  0.00 bits/sec    0   1.37 MBytes       
[  5]   9.00-10.00  sec  0.00 Bytes  0.00 bits/sec    0   1.56 MBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec  3.58 MBytes  3.01 Mbits/sec    1             sender
[  5]   0.00-11.26  sec  1.00 MBytes   745 Kbits/sec                  receiver

0.4.7:

Connecting to host 203:fc4b:9d2a:25fc:ea9:72f8:3254:8d55, port 5201
[  5] local 204:9dc:d0b3:4207:c252:f99d:62a2:7e5d port 34546 connected to 203:fc4b:9d2a:25fc:ea9:72f8:3254:8d55 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  2.78 MBytes  23.3 Mbits/sec    2   1.26 MBytes       
[  5]   1.00-2.00   sec  1.06 MBytes  8.90 Mbits/sec    0   1.31 MBytes       
[  5]   2.00-3.00   sec  1.16 MBytes  9.75 Mbits/sec    0   1.36 MBytes       
[  5]   3.00-4.00   sec  0.00 Bytes  0.00 bits/sec    8   1.06 MBytes       
[  5]   4.00-5.00   sec  2.50 MBytes  21.0 Mbits/sec    1   1.06 MBytes       
[  5]   5.00-6.00   sec  1.25 MBytes  10.5 Mbits/sec    0   1.26 MBytes       
[  5]   6.00-7.00   sec  0.00 Bytes  0.00 bits/sec    3    931 KBytes       
[  5]   7.00-8.00   sec  3.75 MBytes  31.5 Mbits/sec    0   1.06 MBytes       
[  5]   8.00-9.00   sec  1.24 MBytes  10.4 Mbits/sec    0   1.11 MBytes       
[  5]   9.00-10.00  sec  1.25 MBytes  10.5 Mbits/sec    0   1.11 MBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec  15.0 MBytes  12.6 Mbits/sec   14             sender
[  5]   0.00-10.59  sec  13.1 MBytes  10.4 Mbits/sec                  receiver

The tests were run using iperf3 over two laptops directly peering with each other over a WiFi connection.

commented

How are they peered? (As in config/type of peering)

Which iperf flags?

Default iperf flags; peering was just running yggdrasil on two laptops connected over an ad hoc WLAN connection, auto-peered

Tried reproducing on Yggdrasil 0.5.5 over an Ethernet connection - no marked decrease observed. Closing.