[Help] SMB loses connection and hangs other SMB host

SMB, NFS, FTP, web file manager and Rsync server.
User avatar
hmhcho
Posts: 10
Joined: 14 Nov 2026, 05:47
Canada

Re: [Help] SMB loses connection and hangs other SMB host

Post by hmhcho »

I tried copying the file by running scp from the TNAS, and it worked! Then I tried it running scp from a Mac, and it failed -- same symptom: transfer slowed to a crawl, then hung. So I repeated the scp from the TNAS again, and it failed.

I tried running wget from the TNAS to copy the file from a local web server. It worked once, then failed after that.

It seems that if I wait a sufficient time, the copy works. But subsequent attempts fail, until a certain amount of idle time passes.

I also tried copying a bigger file (2GB) internally (TNAS to TNAS) multiple times. That worked every time.

So, the copy is capable of working; it does not appear to be a disk-related problem. And the problem is not related to SMB. Could it be network-related?
User avatar
hmhcho
Posts: 10
Joined: 14 Nov 2026, 05:47
Canada

Re: [Help] SMB loses connection and hangs other SMB host

Post by hmhcho »

The problem seems to be with the networking.

LordRuler-0@sazed:~# iperf3 -c sadie
Connecting to host sadie, port 5201
[ 5] local 192.168.1.107 port 48972 connected to 192.168.1.173 port 5201
[ ID] Interval Transfer Bitrate Retr Cwnd
[ 5] 0.00-1.00 sec 318 KBytes 2.61 Mbits/sec 37 1.41 KBytes
[ 5] 1.00-2.00 sec 0.00 Bytes 0.00 bits/sec 2 2.83 KBytes
[ 5] 2.00-3.00 sec 60.8 KBytes 498 Kbits/sec 20 1.41 KBytes
[ 5] 3.00-4.00 sec 60.8 KBytes 498 Kbits/sec 17 1.41 KBytes
[ 5] 4.00-5.00 sec 122 KBytes 997 Kbits/sec 19 1.41 KBytes
[ 5] 5.00-6.00 sec 60.8 KBytes 498 Kbits/sec 18 2.83 KBytes
[ 5] 6.00-7.00 sec 0.00 Bytes 0.00 bits/sec 7 1.41 KBytes
[ 5] 7.00-8.00 sec 60.8 KBytes 498 Kbits/sec 22 2.83 KBytes
[ 5] 8.00-9.00 sec 0.00 Bytes 0.00 bits/sec 7 2.83 KBytes
[ 5] 9.00-10.00 sec 60.8 KBytes 499 Kbits/sec 7 1.41 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bitrate Retr
[ 5] 0.00-10.00 sec 744 KBytes 609 Kbits/sec 156 sender
[ 5] 0.00-10.00 sec 512 KBytes 419 Kbits/sec receiver

iperf Done.
LordRuler-0@sazed:~# iperf3 -c sadie -R
Connecting to host sadie, port 5201
Reverse mode, remote host sadie is sending
[ 5] local 192.168.1.107 port 45114 connected to 192.168.1.173 port 5201
[ ID] Interval Transfer Bitrate
[ 5] 0.00-1.00 sec 112 MBytes 940 Mbits/sec
[ 5] 1.00-2.00 sec 21.7 MBytes 182 Mbits/sec
[ 5] 2.00-3.00 sec 8.48 MBytes 71.1 Mbits/sec
[ 5] 3.00-4.00 sec 2.46 MBytes 20.6 Mbits/sec
[ 5] 4.00-5.00 sec 2.49 MBytes 20.9 Mbits/sec
[ 5] 5.00-6.00 sec 1.74 MBytes 14.6 Mbits/sec
[ 5] 6.00-7.00 sec 1.33 MBytes 11.2 Mbits/sec
[ 5] 7.00-8.00 sec 2.34 MBytes 19.6 Mbits/sec
[ 5] 8.00-9.00 sec 1.84 MBytes 15.5 Mbits/sec
[ 5] 9.00-10.00 sec 706 KBytes 5.78 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bitrate Retr
[ 5] 0.00-10.00 sec 155 MBytes 130 Mbits/sec 1085 sender
[ 5] 0.00-10.00 sec 155 MBytes 130 Mbits/sec receiver

iperf Done.

eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.107 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::6ebf:b5ff:fe04:1e53 prefixlen 64 scopeid 0x20<link>
ether 6c:bf:b5:04:1e:53 txqueuelen 1000 (Ethernet)
RX packets 8206170 bytes 8690674583 (8.6 GB)
RX errors 0 dropped 62787 overruns 0 frame 0
TX packets 2028648 bytes 690605979 (690.6 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

This is over 1Gbps ethernet connection. Lots of dropped packets!
User avatar
hmhcho
Posts: 10
Joined: 14 Nov 2026, 05:47
Canada

Re: [Help] SMB loses connection and hangs other SMB host

Post by hmhcho »

I replaced the ethernet cable.

LordRuler-0@sazed:~# iperf3 -c sadie
Connecting to host sadie, port 5201
[ 5] local 192.168.1.107 port 55382 connected to 192.168.1.173 port 5201
[ ID] Interval Transfer Bitrate Retr Cwnd
[ 5] 0.00-1.00 sec 75.0 MBytes 629 Mbits/sec 56 97.6 KBytes
[ 5] 1.00-2.00 sec 71.6 MBytes 601 Mbits/sec 63 69.3 KBytes
[ 5] 2.00-3.00 sec 68.6 MBytes 575 Mbits/sec 56 26.9 KBytes
[ 5] 3.00-4.00 sec 65.7 MBytes 551 Mbits/sec 67 32.5 KBytes
[ 5] 4.00-5.00 sec 68.2 MBytes 572 Mbits/sec 65 18.4 KBytes
[ 5] 5.00-6.00 sec 69.5 MBytes 583 Mbits/sec 67 33.9 KBytes
[ 5] 6.00-7.00 sec 70.8 MBytes 594 Mbits/sec 57 21.2 KBytes
[ 5] 7.00-8.00 sec 69.2 MBytes 580 Mbits/sec 66 31.1 KBytes
[ 5] 8.00-9.00 sec 67.0 MBytes 562 Mbits/sec 68 18.4 KBytes
[ 5] 9.00-10.00 sec 75.3 MBytes 632 Mbits/sec 55 42.4 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bitrate Retr
[ 5] 0.00-10.00 sec 701 MBytes 588 Mbits/sec 620 sender
[ 5] 0.00-10.00 sec 700 MBytes 587 Mbits/sec receiver

iperf Done.
LordRuler-0@sazed:~# iperf3 -c sadie -R
Connecting to host sadie, port 5201
Reverse mode, remote host sadie is sending
[ 5] local 192.168.1.107 port 60012 connected to 192.168.1.173 port 5201
[ ID] Interval Transfer Bitrate
[ 5] 0.00-1.00 sec 112 MBytes 940 Mbits/sec
[ 5] 1.00-2.00 sec 112 MBytes 941 Mbits/sec
[ 5] 2.00-3.00 sec 112 MBytes 941 Mbits/sec
[ 5] 3.00-4.00 sec 112 MBytes 941 Mbits/sec
[ 5] 4.00-5.00 sec 112 MBytes 942 Mbits/sec
[ 5] 5.00-6.00 sec 112 MBytes 941 Mbits/sec
[ 5] 6.00-7.00 sec 112 MBytes 941 Mbits/sec
[ 5] 7.00-8.00 sec 112 MBytes 942 Mbits/sec
[ 5] 8.00-9.00 sec 112 MBytes 941 Mbits/sec
[ 5] 9.00-10.00 sec 112 MBytes 941 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bitrate Retr
[ 5] 0.00-10.00 sec 1.10 GBytes 943 Mbits/sec 52 sender
[ 5] 0.00-10.00 sec 1.10 GBytes 941 Mbits/sec receiver

iperf Done.

Copy works. Things seem to be back to normal. :)
User avatar
hmhcho
Posts: 10
Joined: 14 Nov 2026, 05:47
Canada

Re: [Help] SMB loses connection and hangs other SMB host

Post by hmhcho »

Even after swapping out the cable, I am seeing dropped packets:

eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.107 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::6ebf:b5ff:fe04:1e53 prefixlen 64 scopeid 0x20<link>
ether 6c:bf:b5:04:1e:53 txqueuelen 1000 (Ethernet)
RX packets 835846 bytes 1218446406 (1.2 GB)
RX errors 0 dropped 744 overruns 0 frame 0
TX packets 125551 bytes 31472182 (31.4 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

Doing a large folder copy to the TNAS causes problems: the SMB connection still hangs. Once it gets into that condition, rebooting the TNAS is the only way to recover.
User avatar
hmhcho
Posts: 10
Joined: 14 Nov 2026, 05:47
Canada

Re: [Help] SMB loses connection and hangs other SMB host

Post by hmhcho »

I switched to the other ethernet port on the TNAS. Redid iperf3 tests.

LordRuler-0@sazed:~# ip -s -s link show eth0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
link/ether 6c:bf:b5:04:1e:52 brd ff:ff:ff:ff:ff:ff
RX: bytes packets errors dropped missed mcast
2264151619 1535112 0 674 0 7480
RX errors: length crc frame fifo overrun
0 0 0 0 0
TX: bytes packets errors dropped carrier collsns
38210637 157503 0 5 0 0
TX errors: aborted fifo window heartbt transns
0 0 0 0 4

No rx or tx errors. Physical link if good.

But, folder copy still hangs.
Post Reply

Return to “File Services”