When using my NAS as a T2E converter over a high latency network, why does macOS sometimes fail to access files with SMB?

In this scenario, NAS A is a T2E converter to help a macOS device access the Internet. The macOS device is attempting to transfer files from NAS B via the SMB protocol. Moving files over a high latency network (ping > 50ms), may result in complications depending on the operating system version.
- macOS 10.12.x: Encounters error -36.
- macOS 10.13.x: Repeatedly disconnects and reconnects to the T2E converter.
Any of the following solutions should resolve the issue.
Upgrade macOS
For macOS 10.12/10.13, upgrading to macOS 10.14 may resolve the issue.
- Upgrade macOS
For more information, please visit the Apple website: https://www.apple.com/macos/how-to-upgrade - Unmount any folders shared via SMB.
- Remount the shared folders.
For more information, please visit the QNAP website.
Change the max read size
- Open the macOS Terminal,
- Enter the following command.
sudo sysctl net.smb.fs.maxread=524288
Note
This setting will reset after restarting the device. - Unmount any folders shared via SMB.
- Remount the shared folders.
For more information, please visit the QNAP website.
Configure QTS
- Log in to the NAS that stores the files.
- Go to Control Panel > Network & File Services > Win/Mac/NFS > Microsoft Networking > Advanced Options > Highest SMB version.
- Select SMB2.
- Click Apply.
- Log in to the macOS device.
- Unmount folders shared via SMB.
- Remount the shared folders.
For more information, please visit the QNAP website.