Skip to content

Network Diagnostics: What to Check and What to Send to Support

In this article

Before you begin

Network problems show up as low speed, packet loss, high latency, or intermittent connection drops. To narrow down the cause:

  1. Temporarily disable the firewall on both sides or make sure it does not interfere with the tests. See Firewall configuration.
  2. Check the server's resource usage: at 100% CPU load, the server cannot process traffic at full speed.
  3. Check whether you have received a notification about exceeding your prepaid traffic — in this case, the speed is reduced automatically.

Tip

You can check the speed to HOSTKEY networks without ordering a server using Speed Test and Looking Glass.

In all the commands below, replace SERVER_IP with your server's IP address and CLIENT_IP with your external IP address (you can find it with curl -4 ifconfig.me).

Checking reachability with ping

# Linux/macOS
ping -c 50 SERVER_IP

# Windows
ping -n 50 SERVER_IP

Pay attention to the percentage of packet loss and the spread of response times (min/avg/max). No reply does not always mean the server is unreachable: ICMP may be blocked by a firewall, as it is by default on Windows Server, for example.

Route with traceroute and tracert

# Linux (CentOS/Alma/Rocky: sudo dnf install traceroute, CentOS 7: sudo yum install traceroute)
traceroute SERVER_IP

# TCP route to a specific port (if ICMP/UDP is filtered)
sudo traceroute -T -p 443 SERVER_IP

# Windows
tracert SERVER_IP

The route shows which hops the packets pass through and at which segment the latency increases.

Packet loss along the route with mtr

mtr combines ping and traceroute and shows packet loss at each hop. Installation: sudo apt install mtr-tiny, sudo dnf install mtr, or sudo yum install mtr. On Windows, use WinMTR.

Run the test in report mode:

mtr -r -w -c 100 SERVER_IP > mtr_to_server.txt

Attention

The forward and return routes often pass through different hops. Be sure to run the test in both directions: from your computer to the server and from the server to your computer.

On the server:

mtr -r -w -c 100 CLIENT_IP > mtr_to_client.txt

How to read the results

  • Loss only at an intermediate hop, with no loss at the following hops or the destination, is not a problem. Routers rate-limit ICMP replies and answer them with low priority, while transit traffic passes without loss.
  • Loss that starts at a hop and continues to the end of the route, including the destination, indicates a real problem at that segment or after it.
  • Latency that jumps at one hop and stays high afterward indicates link congestion or a long physical distance on that segment.
  • The values in the last line (the server itself) matter most: if it shows 0% loss, the network to the server is working.

Measuring throughput with iperf3

Use iperf3 to measure throughput — other tools give less accurate results. Installation: sudo apt install iperf3, sudo dnf install iperf3, or sudo yum install iperf3.

Public HOSTKEY iperf3 servers in all locations are listed in Network Speed test. Example for Amsterdam:

# the client sends, the server receives
iperf3 -c spd-nlsrv.hostkey.com -p 5201 -P 10 -4

# reverse mode: the server sends, the client receives
iperf3 -c spd-nlsrv.hostkey.com -p 5201 -P 10 -4 -R

To test the link between your computer and your server, run iperf3 in server mode on your server and connect to it from the client:

# on the server (open port 5201/tcp in the firewall)
iperf3 -s

# on the client
iperf3 -c SERVER_IP -P 10 -4
iperf3 -c SERVER_IP -P 10 -4 -R

Run measurements from your server to the nearest HOSTKEY iperf3 server and from your computer to your server — this shows whether the speed is limited on the server side or on the segment to you.

Server-side checks

Network interface errors

ip -s link show

Growing errors, dropped, and overrun counters indicate driver issues, overload, or a hardware fault. On dedicated servers, also check the port speed and duplex:

sudo ethtool eth0          # Speed, Duplex, Link detected
sudo ethtool -S eth0 | grep -iE 'err|drop|crc'

Replace eth0 with your interface name from the ip link output. On virtual servers, ethtool may not show the speed — this is normal.

On Windows, you can view adapter statistics with:

Get-NetAdapterStatistics
Get-NetAdapter | Format-Table Name, Status, LinkSpeed

Firewall

Make sure the firewall on the server does not block the required ports and ICMP. The Invapi control panel has no firewall settings — check the rules in the OS itself. For details, see Firewall configuration.

MTU

An incorrect MTU causes small requests to go through while large ones (loading pages, transferring files, VPN) hang. Check the current value:

ip link show | grep mtu

Check whether a 1500-byte packet passes without fragmentation (1472 bytes of data + 28 bytes of headers):

# Linux
ping -M do -s 1472 -c 4 SERVER_IP

# Windows
ping -f -l 1472 SERVER_IP

If you get Message too long or Packet needs to be fragmented, reduce the size until the packets go through — this way you will find the actual MTU along the path. MTU problems most often occur with VPNs and tunnels.

What to send to technical support

You can contact technical support in two ways: by email from the address specified in your account, or through the Help Center in the Invapi control panel by creating a ticket (how to create a ticket).

If the problem is not resolved, send the following to support from the email address specified in your account:

Server IP address: SERVER_IP
Your external IP address, city, and ISP: CLIENT_IP, ...
Problem description: what exactly is slow, since when,
constantly or intermittently (specify the time and time zone)

Attachments:
1. mtr_to_server.txt — mtr from your computer to the server
2. mtr_to_client.txt — mtr from the server to your computer
3. iperf3 results (normal and with the -R flag), including the commands used
4. Output of ip -s link show from the server
5. Result of the test on speedtest.hostkey.com (screenshot)

Note

For more accurate diagnostics, run several tests at different times, including when the problem occurs.

question_mark
Is there anything I can help you with?
question_mark
AI Assistant ×