Japan VPS Evening Latency and Packet Loss: A Step-by-Step Troubleshooting Guide
One-line takeaway: When a Japan VPS slows down only in the evening, first work out whether the host or the network path is at fault. If mtr from two or more locations shows loss that starts at one hop and continues to the final hop, it is a routing problem; otherwise look at the host first.
Preparation
Commands below target Debian/Ubuntu, with CentOS/Rocky differences noted. Capture a baseline during off-peak hours so you have something to compare against in the evening.
- OS: Debian 11/12, Ubuntu 20.04/22.04, or CentOS 7 / Rocky 8/9.
- Access: SSH with root or sudo.
- Tools:
mtr,iperf3,iproute2(ss),sysstat. - A reference point: your local machine, ideally plus a second network on another carrier.
# Debian / Ubuntu
sudo apt update
sudo apt install -y mtr-tiny iperf3 sysstat
# CentOS / Rocky
sudo yum install -y epel-release
sudo yum install -y mtr iperf3 sysstat
Step 1: Rule out the host itself
In practice, a CPU-bound, swapping or connection-saturated host is often mistaken for a bad route, because evening is also when your own traffic peaks.
uptime
mpstat -P ALL 1 5
vmstat 1 5
ss -s
ip -s link show eth0
netstat -s | grep -iE "retrans|drop|overflow"
Sustained load above core count, non-zero si/so in vmstat, or growing dropped counters on the interface all point to the host, not the line.
Step 2: Run a forward mtr baseline
mtr -rwzbc 200 -i 0.5 YOUR_VPS_IP
Save one run off-peak and one in the evening. Do not fixate on loss at a single middle hop: many routers rate-limit ICMP. Only loss that begins at a hop and persists to the last hop is real.
Step 3: Run the reverse mtr
Forward and return paths often differ, and evening trouble is usually on the return path. Run mtr from the VPS to your public IP:
mtr -rwzbc 200 -i 0.5 YOUR_LOCAL_PUBLIC_IP
mtr -rwzbc 200 -T -P 443 TARGET_IP # TCP mode if ICMP is filtered
If the forward path is clean but the return path degrades after a backbone node, the return route is congested at peak. Per twbyte's route descriptions, CN2 is optimized return with low latency, Premium CN2 is a premium return path that stays steadier at peak, China-optimized targets mainland access, and International BGP suits overseas users. Choose by where your visitors are.
Step 4: Check bandwidth and TCP behavior
sar -n DEV 1 10
# on the VPS
iperf3 -s
# locally
iperf3 -c YOUR_VPS_IP -t 30 -P 4
iperf3 -c YOUR_VPS_IP -t 30 -R
Open port 5201 only for the test and close it afterwards. Low throughput with high Retr means loss on the path. If loss is mild but throughput is poor, BBR may help TCP:
echo "net.core.default_qdisc=fq" | sudo tee -a /etc/sysctl.d/99-bbr.conf
echo "net.ipv4.tcp_congestion_control=bbr" | sudo tee -a /etc/sysctl.d/99-bbr.conf
sudo sysctl --system
BBR does not change ICMP latency and cannot fix a congested route.
Step 5: Collect evidence before contacting support
Prepare forward and reverse mtr reports (off-peak and peak, timestamped), your local IP and carrier, the VPS IP and route type, and the time window. Troubleshooting and anything needing backend work is handled by human support via the on-site chat or Telegram (08:00-24:00 Taipei/Beijing time).
How to confirm it worked
- Re-run both mtr tests at the same evening hour; final-hop loss should be near zero and StDev lower.
- Check
sysctl net.ipv4.tcp_congestion_controlshowsbbrif you enabled it, then repeat iperf3. - Watch two or three evenings, not one.
How to roll back
sudo rm /etc/sysctl.d/99-bbr.conf
sudo sysctl -w net.ipv4.tcp_congestion_control=cubic
sudo sysctl -w net.core.default_qdisc=pfifo_fast
sudo sysctl --system
Use the qdisc value you noted before the change if it was not pfifo_fast. Stop iperf3 and close port 5201. Reinstalling the system wipes data, so back up first.
When this applies, and when it does not
| Good fit | Not recommended |
|---|---|
| Slowness only at evening peak, normal otherwise | Constant loss or total outage; contact support directly |
| You want to separate host problems from route problems first | Judging by ICMP loss on one middle hop |
| You can test from a second network | Concluding from a single short ping |
| Mostly TCP traffic that can tolerate BBR | Changing kernel parameters in production without notes or rollback |
Run these tests only against your own servers and networks, and comply with applicable local and mainland China laws and regulations.