zerotier.is
AdLuoboyunAn account comes with 1 GB of trial traffic for 24 hours, used with Clash / MihomoPays by Alipay, WeChat, cryptoGet the trialLuoboyun: 1 GB on registrationFor 24 hours, Alipay / WeChat / cryptoGet the trialAd
  1. Home
  2. Blog
  3. Network

Network Written

Why so slow: you are relayed

RELAY in peers means slow. Recognise symmetric NAT, set up the router, decide about UDP 9993, and three ways out of a company firewall.

A lighthouse shows the way, but from far off the signal goes a long way round
A lighthouse shows the way, but from far off the signal goes a long way round Patrick Feller, CC BY 2.0

With a ping of two or three hundred milliseconds and copying at a few hundred KB, look for a relay first.

On both sides
zerotier-cli peers

DIRECT on the other device's line is direct. RELAY means the official roots pass the data on, from wherever they stand.

Relayed, your data flies to a distant root server and back; two hundred milliseconds is just the start. Most home networks can connect directly if someone changes one or two settings.

Both networks decide

NAT on each sideHardEasyPublic IP
HardVery unlikelyPossibleYes
EasyPossibleYesYes
Public IPYesYesYes

From the documentation. Hard means symmetric NAT, easy means cone types. One public IP is enough.

Are you the hard kind

Look at surfaceAddresses
zerotier-cli info -j

If surfaceAddresses grows with every device you ping, the port keeps changing: symmetric.

What you can do

  1. Turn on UPnP or NAT-PMP in the router.
  2. Do not stack two routers; bridge the modem.
  3. Turn on IPv6 at both ends.
  4. Do not restrict outgoing UDP.
  5. Turn on options called Full Cone or persistent NAT.

A company network you cannot change

  1. Forward one portto one device
  2. Make it the gatewayothers go through it
  3. No UDP at allyour own TCP relay
Three ways out

The TCP relay is described here.

Write down both sides

MineTheirs
Kind of line
Number of routersModem and router?
Public IPv4
IPv6
UPnP on
surfaceAddresses

IPv6 on both is the easiest way: hardly any punching, only the firewall has to let UDP in.

Bridge mode

If the modem dials, addresses are translated twice. In bridge mode the router dials and it is once. Ask the provider for it and the PPPoE account; photograph the old settings. With a public IPv4 forward UDP 9993 to that device and anyone can reach it.

Push it

Both sides at once, a minute
ping the-other-address
zerotier-cli peers

Three hundred that suddenly become thirty: direct.

A proxy on the router

It sends all UDP abroad, ZeroTier's too. Set ZeroTier, port 9993 or the device to direct; on a computer in TUN mode the process zerotier-one. With fake-ip add *.zerotier.com to its filter.

Why phones mostly relay

Mobile networks are symmetric and behind the provider. Improve the other side: public address or IPv6. The phone's APN should say IPv4/IPv6.

Good enough

UseLatency
Remote desktopUnder 100
Files, web pages300 is bearable
GamesUnder 80
BackupOnly bandwidth counts
Direct at times, relayed at others?

Mappings expire and are made again. The router's timeout should not be under 60 seconds.

Relayed inside one LAN?

See whether the Wi-Fi isolates clients.

Direct but slow?

Home upload is small; then see one core of the processor.

TUNNELED?

No UDP at all, falling back to TCP; common in offices.

Another port?

local.conf can change it, mainly to avoid a clash.

Up next

Pages nearby

Marks: ZeroTier high latency, ZeroTier relay, ZeroTier slow