ZGT multiport
Feature availability
Available in: Resilio 4.0 and newer
Available for: Agents on all operating systems.
ZGT multiport allows to increase transfer speeds by using multiple UTP3 connections for a single tunnel.
To enable ZGT multiport:
-
In the Agent Profile, add the following custom parameters:
net.utp3.multiport:truenet.utp3.max_send_threads:<number-of-threads>-
net.utp3.max_socket_threads:<number-of-threads>Important
- Applicable values for
<number-of-threads>are2,3, or4. - It is not recommended to set more threads than the number of CPU cores on the weakest host.
- The number of send and receive threads must be equal.
- Applicable values for
-
net.tcp.so_sndbuf:<buffer-size> net.tcp.so_rcvbuf:<buffer-size>net.udp.so_sndbuf:<buffer-size>-
net.udp.so_rcvbuf:<buffer-size>Note
Set
<buffer-size>to1048576(1MB), or2097152(2MB) if network bandwidth diagnostic test reports too many packets lost. -
net.utp3.speed_per_worker:<packets-per-second>Note
<packets-per-second>is a number of thousands of packets per second per socket. This value should match the maximum throughput you observed. Default is200which is around 1.8 Gbit. When you enable multiport, try80.
-
(Optional) Add the
net.utp3.multiport.portscustom parameter to define ports used for multiport connections. For example,net.utp3.multiport.ports:3850, 3860, 3870Tip: Ports list delimiter
When declaring a list of ports, you can also use
;character as the delimiter.Important
By default, multiport uses ports
3839,3840,3841, etc. If you declare ports explicitly, you cannot include the bind port in the list.
Info
- Agent restart is not required after adding the custom parameters. The new settings are applied automatically.
- Agents can establish cross-connections (for example, local
3839can connect to remote3840, local3840can connect to remote3842, etc.).