hack のためのネタ帳, etc,,,

状況

Ubuntu 20.04 LTS も出たことだし do-release-upgrade でもするかなーと思ったのだが、
その前に、最速ミラーでも調べておくかと、思い立ったのが発端。

前は確か apt-spy とかいうコマンドがあったはずなのだが、いつの間にか行方知れずになってた。
ということで、現状で一番かんたんな調べ方としては、
「ソフトウェアの更新」こと update-manager から「設定と Livepatch」こと software-properties-gtk を開いて
「Ubuntu のソフトウェア」タブにある「ダウンロード元」から「その他」を選ぶと、
「ダウンロードサーバーを選択してください」ダイアログの中に「最適なサーバーを探す」というボタンがあるのでこれを使うのが良さげ。
GUI から起動すると、winner しかわからないのでコンソールから software-properties-gtk を起動するのがお勧め。
上位数件のミラーと、速度差が分かる。

とりあえず実行してみたところ、おおよそ2分強後に返ってきた結果が以下。
mirror: it-mirrors.evowise.com - time: 0.12860870361328125
mirror: ny-mirrors.evowise.com - time: 0.14256072044372559
mirror: ro-mirrors.evowise.com - time: 0.1563427448272705
mirror: ftp.ntou.edu.tw - time: 0.411191463470459
mirror: mirrors.aliyun.com - time: 1.0870885848999023
mirror: ftp.aso.ee - time: 1.75846529006958
and the winner is: it-mirrors.evowise.com
え!?ですよ。思わず変な声が出てしまった。

目を疑いますよね。
まず、ベスト 6 に .jp が一つたりともないことに驚くわけですが、
上位を占める evowize.com という見慣れない爆速ミラーの存在とその速度に驚いて更に目を疑うという。
7 位以下との差は歴然であり、倍率にして 10 倍以上とまさに桁違いの速さ。この差は格違いどころではなく最早世代が違う。
Ether で言えば 10Base が 100Base に、100Base が GbE に、GbE が 10GbE になったのと同じくらい、
CPU で言えば Pentium M 1.1GHz が Core i7-920 に、Core i7-920 が Ryzen 9 3800X になったのと同じくらいの飛躍なので、
多分、世代的にしておおよそ 10 年分くらいの違いがある。

前に、apt の sources.list に mirror: method を書いとけば mirror の list から適当に選んでくれるという話を 辺りで拾ってるんだけど、これは割と使えない子で、mirror list の中からランダムに選ばれるので、
mirror list の中に遅いやつが混じってると、apt update が平気で長時間止まったりする。
んで jp の公式 mirror は総じてそこそこ速いんだけど、なかに 1, 2 個だめな個が混ざってるので、 mirror: はちょっと難有りな状態だった。

そんな中、実は、公式のミラーよりも IIJ の非公式ミラーのが断然に速かったりするので、
長らくそっちを愛用していたんだけど、これは乗り換えざるを得ないでしょ。

ネットワーク距離等

イタリア(it)だったり、ニューヨーク(ny)だったり、ロマニア(ro)ってどう考えてもネットワーク的に近いと思えないんだが。
何回か変えてみると他にもイギリス(uk)、エストニア(es)、ロサンゼルス(la)等も上位に出てくる。
nslookup してみると
$ nslookup ny-mirrors.evowise.com
Server:		127.0.0.1
Address:	127.0.0.1#53

Non-authoritative answer:
Name:	ny-mirrors.evowise.com
Address: 104.22.4.179
Name:	ny-mirrors.evowise.com
Address: 104.22.5.179
Name:	ny-mirrors.evowise.com
Address: 2606:4700:10::6816:4b3
Name:	ny-mirrors.evowise.com
Address: 2606:4700:10::6816:5b3
$ nslookup it-mirrors.evowise.com
Server:		127.0.0.1
Address:	127.0.0.1#53

Non-authoritative answer:
Name:	it-mirrors.evowise.com
Address: 104.22.5.179
Name:	it-mirrors.evowise.com
Address: 104.22.4.179
Name:	it-mirrors.evowise.com
Address: 2606:4700:10::6816:4b3
Name:	it-mirrors.evowise.com
Address: 2606:4700:10::6816:5b3
$ nslookup es-mirrors.evowise.com
Server:		127.0.0.1
Address:	127.0.0.1#53

Non-authoritative answer:
Name:	es-mirrors.evowise.com
Address: 104.22.5.179
Name:	es-mirrors.evowise.com
Address: 104.22.4.179
Name:	es-mirrors.evowise.com
Address: 2606:4700:10::6816:5b3
Name:	es-mirrors.evowise.com
Address: 2606:4700:10::6816:4b3
みたいな結果が返ってくるので、こいつらみんな同じっぽい。
多分 CDN なんだろう。

traceroute や tracepath だと
$ tracepath -n es-mirrors.evowise.com
 1?: [LOCALHOST]                        0.008ms pmtu 1500
 1:  2400:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx               0.627ms 
 1:  2400:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx               0.530ms 
 2:  no reply
 3:  no reply
 4:  no reply
 5:  no reply
 6:  2001:380:c410:4::1                                   15.147ms 
 7:  2001:380:c400:19::1                                  19.555ms 
 8:  2001:380:c300:5::1                                   26.279ms 
 9:  2001:380:c300:7::2                                   25.826ms 
10:  2001:218:2000:5000::931                              23.157ms 
11:  2001:218:0:2000::156                                 20.884ms asymm 10 
12:  no reply
13:  no reply
14:  no reply
15:  no reply
16:  no reply
17:  no reply
18:  no reply
19:  no reply
20:  no reply
21:  no reply
22:  no reply
23:  no reply
24:  no reply
25:  no reply
26:  no reply
27:  no reply
28:  no reply
29:  no reply
30:  no reply
     Too many hops: pmtu 1500
     Resume: pmtu 1500 
みたいな感じで OCN からだと 12 hop 目以降が追えなかった。
ttl を変えて ping してみると
$ ping es-mirrors.evowise.com -c 1 -t 11
PING es-mirrors.evowise.com(2606:4700:10::6816:5b3 (2606:4700:10::6816:5b3)) 56 data bytes
From ae-3.r03.osakjp02.jp.bb.gin.ntt.net (2001:218:0:2000::156) icmp_seq=1 Time exceeded: Hop limit

--- es-mirrors.evowise.com ping statistics ---
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms
$ ping es-mirrors.evowise.com -c 1 -t 12
PING es-mirrors.evowise.com(2606:4700:10::6816:5b3 (2606:4700:10::6816:5b3)) 56 data bytes
From 2001:218:2000:5000::4a (2001:218:2000:5000::4a) icmp_seq=1 Time exceeded: Hop limit

--- es-mirrors.evowise.com ping statistics ---
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms
$ ping es-mirrors.evowise.com -c 1 -t 12
PING es-mirrors.evowise.com(2606:4700:10::6816:4b3 (2606:4700:10::6816:4b3)) 56 data bytes
64 bytes from 2606:4700:10::6816:4b3 (2606:4700:10::6816:4b3): icmp_seq=1 ttl=53 time=20.0 ms

--- es-mirrors.evowise.com ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 20.048/20.048/20.048/0.000 ms
$ ping es-mirrors.evowise.com -c 1 -t 13
PING es-mirrors.evowise.com(2606:4700:10::6816:5b3 (2606:4700:10::6816:5b3)) 56 data bytes
64 bytes from 2606:4700:10::6816:5b3 (2606:4700:10::6816:5b3): icmp_seq=1 ttl=53 time=20.2 ms

--- es-mirrors.evowise.com ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 20.254/20.254/20.254/0.000 ms
となったのだがこれって 4b3 が 12、5b3 が 13 hop で良いのだろうか?
なぜ tracepath は * になるのか?

パフォーマンス

に加えて jp.archive.ubuntu.com, es-mirrors.evowise.com, ftp.iij.ad.jp を入れた
http://ftp.jaist.ac.jp/pub/Linux/ubuntu/
http://ftp.tsukuba.wide.ad.jp/Linux/ubuntu/
http://www.ftp.ne.jp/Linux/packages/ubuntu/archive/
http://ftp.riken.jp/Linux/ubuntu/
http://ubuntutym.u-toyama.ac.jp/ubuntu/
http://ubuntu-ashisuto.ubuntulinux.jp/ubuntu/
http://linux.yz.yamagata-u.ac.jp/ubuntu/
http://archive.ubuntu.com/ubuntu/
http://jp.archive.ubuntu.com/ubuntu/
http://es-mirrors.evowise.com/ubuntu/
http://ftp.iij.ad.jp/pub/linux/ubuntu/archive/
で比較してみた。

IPv4

IPv6

siteIPv4IPv6
ftp.jaist.ac.jp15.3MB/s6.55MB/s
ftp.tsukuba.wide.ad.jp26.5MB/s22.2MB/s
www.ftp.ne.jp961KB/sNA
ftp.riken.jp19.5MB/sNA
ubuntutym.u-toyama.ac.jp28.2MB/sNA
ubuntu-ashisuto.ubuntulinux.jp24.0MB/sNA
linux.yz.yamagata-u.ac.jp12.1MB/s12.2MB/s
archive.ubuntu.com4.95MB/s7.02MB/s
jp.archive.ubuntu.com30.3MB/sNA
es-mirrors.evowise.com47.5MB/s57.8MB/s
ftp.iij.ad.jp23.0MB/s13.2MB/s

software-properties-gtk による計測結果程の差は出てないが、それでもやっぱり速いことに変わりはなかった。

2020-04-27: 追記
時間帯と経路にもよるようなので、続き も参照

evowize って何だ?

evowize.com」でググってみたところ
どうもこれらしい。 曰く「EvoWise is a digital advertising leader.」ということで、本業は広告業だろうか?

Linux Mint のリポジトリでも CDN として使われてるようだ。

あと launchpad に以下のプロジェクトがあった。 ipv4 + ipv6 10Gbps mirror ですって。
10Gbps 伊達じゃなく速い。凄い!

コメントをかく


「http://」を含む投稿は禁止されています。

利用規約をご確認のうえご記入下さい

Wiki内検索

フリーエリア

管理人/副管理人のみ編集できます