Choosing the best route按线路分流経路ごとの振り分け
Why起因きっかけOur ISP's international routes are sometimes poor: traffic to Europe can take a long detour.运营商的国际线路时好时坏,去欧洲的流量经常要绕一大圈才到。プロバイダの国際回線は品質にムラがあり、欧州向けの通信はかなり遠回りすることがあります。
What I did做法やったことMy router in Japan keeps a WireGuard tunnel to a VPS in Japan, which acts as the hub. Based on traceroute, the hub sends each destination to the exit with the best route: Europe over RETN; Singapore, the US and Hong Kong over GSL. Japanese sites go straight out from home. My family's home in China uses the same design, with Hong Kong as the hub.日本住处的路由器通过 WireGuard 连到一台日本 VPS,由它做中转枢纽:根据 traceroute 的结果,把每个目的地交给线路最好的出口——欧洲走 RETN,新加坡、美国、香港走 GSL。访问日本本地的网站,则直接从家里出去。国内的家用的也是这套方案,只是枢纽换成了香港。日本の自宅ルーターは WireGuard で日本の VPS につながり、その VPS がハブになります。traceroute の結果をもとに、宛先ごとに最も経路の良い出口へ振り分けます。欧州は RETN、シンガポール・米国・香港は GSL です。国内サイトは自宅からそのまま出します。中国の実家も同じ構成で、ハブだけを香港に置いています。
Result结果結果When the ISP's route is bad, the connection gets much faster, and local traffic takes no extra hop.碰上运营商线路差的时候,速度能好上一大截;本地流量也不用白白多绕一跳。プロバイダの経路が悪いときほど、速度が大きく改善しました。国内向けの通信も、余計な遠回りをしません。
Lesson收获学びMeasure the path before choosing the server, and route by need instead of sending everything through one tunnel.先量路,再挑服务器;按需分流,别把所有流量一股脑塞进一条隧道。まず経路を測ってからサーバーを選ぶ。すべてをひとつのトンネルに押し込まず、必要な分だけ振り分ける。