Open dbistriceanu opened 3 years ago
My 50 cents : Your Synology only supports SATA-300 so your throughput is lower then your Desktop or Laptop (I think).
SATA-300 is 3Gb/s, which should still allow for more than the hard 1Gb/s cap seen in iperf3. To me, it seems it doesn't actually connect at 2.5Gbe but 1Gbe, which it is able to saturate with iperf3.
I suspect this is a driver issue because for the same adapter on a PC connected to the same switch ethtool
reports
❯ sudo ethtool enp0s20u1
Settings for enp0s20u1:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
2500baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
2500baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Advertised FEC modes: Not reported
Link partner advertised link modes: 100baseT/Full
1000baseT/Half 1000baseT/Full
2500baseT/Full
Link partner advertised pause frame use: Symmetric Receive-only
Link partner advertised auto-negotiation: Yes
Link partner advertised FEC modes: Not reported
Speed: 2500Mb/s
Duplex: Full
Auto-negotiation: on
Port: MII
PHYAD: 32
Transceiver: internal
Supports Wake-on: pumbg
Wake-on: g
Current message level: 0x00007fff (32767)
drv probe link timer ifdown ifup rx_err tx_err tx_queued intr tx_done rx_status pktdata hw wol
Link detected: yes
Notice that the Supported link modes
and Advertised link modes
both list 2500baseT/Full
, and that's also a Link partner advertised link mode
, which I guess would explain why it does work at 2.5Gbe in that case.
While on Synology the driver supports and advertises 2500baseX/Full
, which apparently is not advertised by the switch, and thus the link is not established at 2.5Gbe? Nor is 2500baseX/Full
supported and advertised by the driver included in the latest kernel used on that PC, as it can be seen above. Presumably because according to the ethtool
man page it is not supported by IEEE standards?
The kernel version used by the DS1812+ is older, so Multi-Giga support may be incomplete, but the link speed itself seems to be 2.5gbps. Because 1.07gbps of performance should not be obtainable on a 1000base link.
Can you try increasing the MTU to 9000?
iperf3 seems to take a complete nosedive at 9000 MTU
6: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc pfifo_fast state UP qlen 1000
link/ether 00:24:27:88:0c:51 brd ff:ff:ff:ff:ff:ff
inet 192.168.107.200/24 brd 192.168.107.255 scope global eth2
valid_lft forever preferred_lft forever
inet6 fd66:f97d:36bb:1:224:27ff:fe88:c51/64 scope global dynamic
valid_lft 1694sec preferred_lft 1694sec
inet6 fe80::224:27ff:fe88:c51/64 scope link
valid_lft forever preferred_lft forever
❯ iperf3 -c 192.168.107.200
Connecting to host 192.168.107.200, port 5201
[ 5] local 192.168.107.64 port 56272 connected to 192.168.107.200 port 5201
[ ID] Interval Transfer Bitrate Retr Cwnd
[ 5] 0.00-1.00 sec 5.50 MBytes 46.1 Mbits/sec 0 318 KBytes
[ 5] 1.00-2.00 sec 1.25 MBytes 10.5 Mbits/sec 0 318 KBytes
[ 5] 2.00-3.00 sec 1.25 MBytes 10.5 Mbits/sec 0 318 KBytes
[ 5] 3.00-4.00 sec 2.50 MBytes 21.0 Mbits/sec 0 318 KBytes
[ 5] 4.00-5.00 sec 1.25 MBytes 10.5 Mbits/sec 0 318 KBytes
[ 5] 5.00-6.00 sec 1.25 MBytes 10.5 Mbits/sec 0 318 KBytes
[ 5] 6.00-7.00 sec 2.50 MBytes 21.0 Mbits/sec 0 318 KBytes
[ 5] 7.00-8.00 sec 1.25 MBytes 10.5 Mbits/sec 0 318 KBytes
[ 5] 8.00-9.00 sec 2.50 MBytes 21.0 Mbits/sec 0 318 KBytes
[ 5] 9.00-10.00 sec 1.25 MBytes 10.5 Mbits/sec 0 318 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bitrate Retr
[ 5] 0.00-10.00 sec 20.5 MBytes 17.2 Mbits/sec 0 sender
[ 5] 0.00-10.10 sec 17.5 MBytes 14.5 Mbits/sec receiver
iperf Done.
When connecting directly to the PC without through the switch, and setting both to MTU 9000, will you get the same result?
Similar, yes
~
❯ ip a | grep 'mtu 9000'
3: enp0s20u1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc fq_codel state UP group default qlen 1000
admin@hds1812:~$ ip a | grep 'mtu 9000'
6: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc pfifo_fast state UP qlen 1000
❯ iperf3 -c 192.168.107.200
Connecting to host 192.168.107.200, port 5201
[ 5] local 192.168.107.64 port 38762 connected to 192.168.107.200 port 5201
[ ID] Interval Transfer Bitrate Retr Cwnd
[ 5] 0.00-1.00 sec 2.56 MBytes 21.5 Mbits/sec 14 43.7 KBytes
[ 5] 1.00-2.00 sec 2.21 MBytes 18.5 Mbits/sec 15 35.0 KBytes
[ 5] 2.00-3.00 sec 2.15 MBytes 18.0 Mbits/sec 12 26.2 KBytes
[ 5] 3.00-4.00 sec 2.33 MBytes 19.5 Mbits/sec 15 35.0 KBytes
[ 5] 4.00-5.00 sec 2.15 MBytes 18.0 Mbits/sec 16 35.0 KBytes
[ 5] 5.00-6.00 sec 2.27 MBytes 19.0 Mbits/sec 14 35.0 KBytes
[ 5] 6.00-7.00 sec 2.27 MBytes 19.0 Mbits/sec 11 43.7 KBytes
[ 5] 7.00-8.00 sec 2.15 MBytes 18.0 Mbits/sec 12 43.7 KBytes
[ 5] 8.00-9.00 sec 2.33 MBytes 19.5 Mbits/sec 13 26.2 KBytes
[ 5] 9.00-10.00 sec 1.91 MBytes 16.0 Mbits/sec 12 26.2 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bitrate Retr
[ 5] 0.00-10.00 sec 22.3 MBytes 18.7 Mbits/sec 134 sender
[ 5] 0.00-10.00 sec 22.1 MBytes 18.5 Mbits/sec receiver
iperf Done.
Hmm..., the last question, how about lower values such as 2500~4000?
Direct connection still, same MTU on both ends:
admin@hds1812:~$ ip a | grep 'mtu 4000'
6: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 4000 qdisc pfifo_fast state UP qlen 1000
~
❯ iperf3 -c 192.168.107.200
Connecting to host 192.168.107.200, port 5201
[ 5] local 192.168.107.64 port 38782 connected to 192.168.107.200 port 5201
[ ID] Interval Transfer Bitrate Retr Cwnd
[ 5] 0.00-1.00 sec 77.1 MBytes 647 Mbits/sec 137 42.4 KBytes
[ 5] 1.00-2.00 sec 73.7 MBytes 619 Mbits/sec 132 158 KBytes
[ 5] 2.00-3.00 sec 75.7 MBytes 635 Mbits/sec 146 73.3 KBytes
[ 5] 3.00-4.00 sec 73.1 MBytes 613 Mbits/sec 128 38.6 KBytes
[ 5] 4.00-5.00 sec 72.4 MBytes 607 Mbits/sec 130 81.0 KBytes
[ 5] 5.00-6.00 sec 68.8 MBytes 577 Mbits/sec 142 73.3 KBytes
[ 5] 6.00-7.00 sec 71.3 MBytes 598 Mbits/sec 134 50.1 KBytes
[ 5] 7.00-8.00 sec 74.1 MBytes 622 Mbits/sec 122 42.4 KBytes
[ 5] 8.00-9.00 sec 77.3 MBytes 648 Mbits/sec 131 42.4 KBytes
[ 5] 9.00-10.00 sec 75.8 MBytes 636 Mbits/sec 146 50.1 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bitrate Retr
[ 5] 0.00-10.00 sec 739 MBytes 620 Mbits/sec 1348 sender
[ 5] 0.00-10.00 sec 738 MBytes 619 Mbits/sec receiver
iperf Done.
admin@hds1812:~$ ip a | grep 'mtu 2500'
6: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 2500 qdisc pfifo_fast state UP qlen 1000
~
❯ iperf3 -c 192.168.107.200
Connecting to host 192.168.107.200, port 5201
[ 5] local 192.168.107.64 port 38796 connected to 192.168.107.200 port 5201
[ ID] Interval Transfer Bitrate Retr Cwnd
[ 5] 0.00-1.00 sec 74.8 MBytes 627 Mbits/sec 111 74.1 KBytes
[ 5] 1.00-2.00 sec 72.7 MBytes 610 Mbits/sec 114 172 KBytes
[ 5] 2.00-3.00 sec 79.6 MBytes 668 Mbits/sec 120 108 KBytes
[ 5] 3.00-4.00 sec 73.5 MBytes 617 Mbits/sec 98 45.4 KBytes
[ 5] 4.00-5.00 sec 70.5 MBytes 592 Mbits/sec 129 52.6 KBytes
[ 5] 5.00-6.00 sec 69.8 MBytes 586 Mbits/sec 149 47.8 KBytes
[ 5] 6.00-7.00 sec 76.9 MBytes 645 Mbits/sec 145 52.6 KBytes
[ 5] 7.00-8.00 sec 80.6 MBytes 676 Mbits/sec 166 52.6 KBytes
[ 5] 8.00-9.00 sec 74.8 MBytes 627 Mbits/sec 153 100 KBytes
[ 5] 9.00-10.00 sec 73.0 MBytes 613 Mbits/sec 191 57.4 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bitrate Retr
[ 5] 0.00-10.00 sec 746 MBytes 626 Mbits/sec 1376 sender
[ 5] 0.00-10.00 sec 745 MBytes 625 Mbits/sec receiver
iperf Done.
Having a similar issue with Sabrent NT-S25G and DS718+. Everything looks fine on the surface (auto-negotiation 2.5, link established on both the switch and synology side) but actual transfer speed over SMB is max around 130-135 MB/sec. I get Max 110 MB/sec with the built-in gigabit. So, an improvement of 20 MB/sec only with 2.5Gbe.
Description of the problem
I have an old Synology DiskStation and it seems that it doesn't actually work at 2.5Gbe with a Sabrent NT-S25G USB adapter, even though both it and the switch indicate that was the auto negotiated speed.
I've included below the iperf3 results between my workstation and the same adapter running on Synology first and then on my laptop.
vs
So the same adapter works just fine at 2.5Gbe if I plug it in on my laptop, using the same cable and switch port.
Description of your products
Synology DiskStation 1812+ using the latest available DSM 6.2.4-25556 Update 2 (no support for DSM 7):
Sabrent NT-S25G
Description of your environment
Netgear GS110MX switch Intel X550T
Output of
dmesg
commandOutput of
lsusb
commandOutput of
ifconfig -a
commandOutput of
ethtool
commandOutput of
usb-devices
command