沖縄から最速のUbuntuミラーサーバー

ubuntuのミラーサーバーを計測する

はじめに

私は沖縄に住んでいるのですが、自宅鯖から実行するaptがあまりに遅いので、有名な国内ミラーサーバーとのpingを計測しました。

検証方法

pingコマンドを4回実行し結果を比較します

富山大学

ping -c 4 ubuntutym.u-toyama.ac.jp
PING ubuntutym3.u-toyama.ac.jp (160.26.2.187) 56(84) bytes of data.
64 bytes from ubuntutym3.u-toyama.ac.jp (160.26.2.187): icmp_seq=1 ttl=55 time=44.7 ms
64 bytes from ubuntutym3.u-toyama.ac.jp (160.26.2.187): icmp_seq=2 ttl=55 time=36.2 ms
64 bytes from ubuntutym3.u-toyama.ac.jp (160.26.2.187): icmp_seq=3 ttl=55 time=50.6 ms
64 bytes from ubuntutym3.u-toyama.ac.jp (160.26.2.187): icmp_seq=4 ttl=55 time=41.1 ms

--- ubuntutym3.u-toyama.ac.jp ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3005ms
rtt min/avg/max/mdev = 36.289/43.213/50.672/5.250 ms

山形大学

ping -c 4 linux.yz.yamagata-u.ac.jp
PING linux.yz.yamagata-u.ac.jp(2001:df0:25e:e100::3 (2001:df0:25e:e100::3)) 56 data bytes
64 bytes from 2001:df0:25e:e100::3 (2001:df0:25e:e100::3): icmp_seq=1 ttl=50 time=44.8 ms
64 bytes from 2001:df0:25e:e100::3 (2001:df0:25e:e100::3): icmp_seq=2 ttl=50 time=44.1 ms
64 bytes from 2001:df0:25e:e100::3 (2001:df0:25e:e100::3): icmp_seq=3 ttl=50 time=43.7 ms
64 bytes from 2001:df0:25e:e100::3 (2001:df0:25e:e100::3): icmp_seq=4 ttl=50 time=42.9 ms

--- linux.yz.yamagata-u.ac.jp ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3001ms
rtt min/avg/max/mdev = 42.975/43.932/44.825/0.703 ms

北陸先端科学技術大学院大学

ping -c 4 ftp.jaist.ac.jp
PING ftp.jaist.ac.jp(ftp.jaist.ac.jp (2001:df0:2ed:feed::feed)) 56 data bytes
64 bytes from ftp.jaist.ac.jp (2001:df0:2ed:feed::feed): icmp_seq=1 ttl=49 time=43.7 ms
64 bytes from ftp.jaist.ac.jp (2001:df0:2ed:feed::feed): icmp_seq=2 ttl=49 time=41.2 ms
64 bytes from ftp.jaist.ac.jp (2001:df0:2ed:feed::feed): icmp_seq=3 ttl=49 time=41.0 ms
64 bytes from ftp.jaist.ac.jp (2001:df0:2ed:feed::feed): icmp_seq=4 ttl=49 time=40.7 ms

--- ftp.jaist.ac.jp ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3000ms
rtt min/avg/max/mdev = 40.716/41.684/43.769/1.242 ms

筑波大学

ping -c 4 ftp.tsukuba.wide.ad.jp
PING ftp.tsukuba.wide.ad.jp(2001:200:0:7c06::9393 (2001:200:0:7c06::9393)) 56 data bytes
64 bytes from 2001:200:0:7c06::9393 (2001:200:0:7c06::9393): icmp_seq=1 ttl=50 time=45.0 ms
64 bytes from 2001:200:0:7c06::9393 (2001:200:0:7c06::9393): icmp_seq=2 ttl=50 time=41.8 ms
64 bytes from 2001:200:0:7c06::9393 (2001:200:0:7c06::9393): icmp_seq=3 ttl=50 time=42.0 ms
64 bytes from 2001:200:0:7c06::9393 (2001:200:0:7c06::9393): icmp_seq=4 ttl=50 time=41.1 ms

--- ftp.tsukuba.wide.ad.jp ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3004ms
rtt min/avg/max/mdev = 41.135/42.540/45.059/1.518 ms

奈良先端科学技術大学院大学

ping -c 4 ftp.naist.jp
PING ftp.naist.jp(2001:2f8:100d:1041::21 (2001:2f8:100d:1041::21)) 56 data bytes
64 bytes from 2001:2f8:100d:1041::21 (2001:2f8:100d:1041::21): icmp_seq=1 ttl=51 time=38.3 ms
64 bytes from 2001:2f8:100d:1041::21 (2001:2f8:100d:1041::21): icmp_seq=2 ttl=51 time=35.6 ms
64 bytes from 2001:2f8:100d:1041::21 (2001:2f8:100d:1041::21): icmp_seq=3 ttl=51 time=36.4 ms
64 bytes from 2001:2f8:100d:1041::21 (2001:2f8:100d:1041::21): icmp_seq=4 ttl=51 time=36.3 ms

--- ftp.naist.jp ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3002ms
rtt min/avg/max/mdev = 35.604/36.676/38.314/0.999 ms

株式会社インターネットイニシアティブ

ping -c 4 ftp.iij.ad.jp
PING ftp.iij.ad.jp(2001:240:bb8f:f::10 (2001:240:bb8f:f::10)) 56 data bytes
64 bytes from 2001:240:bb8f:f::10 (2001:240:bb8f:f::10): icmp_seq=1 ttl=49 time=41.5 ms
64 bytes from 2001:240:bb8f:f::10 (2001:240:bb8f:f::10): icmp_seq=2 ttl=49 time=39.1 ms
64 bytes from 2001:240:bb8f:f::10 (2001:240:bb8f:f::10): icmp_seq=3 ttl=49 time=38.5 ms
64 bytes from 2001:240:bb8f:f::10 (2001:240:bb8f:f::10): icmp_seq=4 ttl=49 time=38.3 ms

--- ftp.iij.ad.jp ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3005ms
rtt min/avg/max/mdev = 38.302/39.394/41.557/1.312 ms

理化学研究所

ping -c 4 ftp.riken.jp
PING ftp.riken.jp (134.160.38.1) 56(84) bytes of data.
64 bytes from riksun.riken.go.jp (134.160.38.1): icmp_seq=1 ttl=49 time=86.7 ms
64 bytes from riksun.riken.go.jp (134.160.38.1): icmp_seq=2 ttl=49 time=84.0 ms
64 bytes from riksun.riken.go.jp (134.160.38.1): icmp_seq=3 ttl=49 time=84.5 ms
64 bytes from riksun.riken.go.jp (134.160.38.1): icmp_seq=4 ttl=49 time=65.9 ms

--- ftp.riken.jp ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3004ms
rtt min/avg/max/mdev = 65.942/80.328/86.741/8.368 ms

リポジトリの変更

以下コマンドを実行することでaptのリポジトリをNAISTに変更できます。

sudo perl -p -i.bak -e 's%(deb(?:-src|)\s+)https?://(?!archive\.canonical\.com|security\.ubuntu\.com)[^\s]+%$1http://ftp.naist.jp/pub/Linux/ubuntu/%' /etc/apt/sources.list 
sudo apt update

結果

奈良先端科学技術大学院大学(NAIST)が一番pingの値が小さいという事になりました。 よろしければ参考にしてください。 なお、この情報は2021/12時点の情報ですので今後変わる可能性があります。ご注意ください。

参考

【Ubuntu】コマンド一発で「アーカイブミラー」を切り替えるには?【アプデ高速化】 | LFI

Tags