我有一个 OpenVPN 服务器,该服务器在子网中有两个客户端。当我从客户端 1 ssh 到客户端 2 时,输入时以及字母出现在终端时会出现较长的延迟。从 OpenVPN 服务器 SSH 到客户端 2,没有延迟。使用 SSH 来回 OpenVPN 服务器和客户端 2 之间存在延迟。所有三个节点都运行 Debian,服务器配置为 UDP。我该如何开始排除故障?
进行了 ping 测试,结果如下:
- 通过隧道从客户端 1 ping 到客户端 2
20 packets transmitted, 14 received, 30% packet loss, time 19169ms
rtt min/avg/max/mdev = 70.827/72.071/78.295/1.815 ms
- 通过隧道从客户端 2 ping 到客户端 1
60 packets transmitted, 55 received, 8% packet loss, time 59383ms
rtt min/avg/max/mdev = 70.730/176.441/5773.739/761.702 ms, pipe 6
- 从 OpenVPN 服务器 ping 到客户端 2:此处平均延迟从 35 毫秒到 1741 毫秒不等。以下结果来自第二次 ping 试验。
20 packets transmitted, 20 received, 0% packet loss, time 19251ms
rtt min/avg/max/mdev = 26.454/1741.058/5625.208/1952.415 ms, pipe 6
- 从客户端 2 ping 到 OpenVPN 服务器
20 packets transmitted, 20 received, 0% packet loss, time 19251ms
rtt min/avg/max/mdev = 26.454/1741.058/5625.208/1952.415 ms, pipe 6
- 从客户端 1 ping 到 OpenVPN 服务器
Try 1: Significant packet loss
38 packets transmitted, 27 received, 28% packet loss, time 37260ms
rtt min/avg/max/mdev = 44.601/516.754/6025.636/1480.910 ms, pipe 6
Try 2: Not much packet loss
20 packets transmitted, 20 received, 0% packet loss, time 19022ms
rtt min/avg/max/mdev = 44.712/98.499/1077.521/224.708 ms, pipe 2
- 从 OpenVPN 服务器 ping 客户端 1
Try 1:
20 packets transmitted, 20 received, 0% packet loss, time 19027ms
rtt min/avg/max/mdev = 44.703/44.979/45.196/0.192 ms
Try 2:
20 packets transmitted, 20 received, 0% packet loss, time 19028ms
rtt min/avg/max/mdev = 44.759/76.936/678.993/138.122 ms```