arxivの近く

# TL;DR
- arXivのPDFファイルダウンロード速度をリージョンごとに計測してみました。
- 北バージニアがもっとも速く、無料枠ならサウスカロライナが速いです。

# 計測スクリプト

```bash
for zone in northamerica-northeast2-a northamerica-northeast1-a us-east4-c us-east1-b us-central1-c us-west1-b
do
  gcloud compute instances create $zone-vm --zone=$zone --scopes=compute-rw,storage-rw --metadata startup-script='#!/bin/bash
NAME=$(curl metadata.google.internal/computeMetadata/v1/instance/name -H "Metadata-Flavor: Google")
ZONE=$(curl metadata.google.internal/computeMetadata/v1/instance/zone -H "Metadata-Flavor: Google" | cut -d/ -f4)
apt update
apt -y install wget traceroute
wget -U NoSuchBrowser/1.0 https://arxiv.org/pdf/2203.100{00..99}.pdf -o $ZONE.log
traceroute arxiv.org >> $ZONE.log
traceroute search.arxiv.org >> $ZONE.log
gsutil cp $ZONE.log gs://reckix.appspot.com/
gcloud compute instances delete $NAME --zone=$ZONE --quiet'
done
```



# トロント [242マイル](https://www.google.com/search?q=cornell+university+toronto+distance) 2.31 MB/s

https://storage.googleapis.com/reckix.appspot.com/northamerica-northeast2-a.log

```bash
traceroute to arxiv.org (128.84.21.199), 30 hops max, 60 byte packets
 1  108.170.233.113 (108.170.233.113)  16.688 ms  16.423 ms  17.123 ms
 3  199.109.107.117 (199.109.107.117)  21.945 ms  22.136 ms  21.977 ms
 4  syr-9208-nyc111-9204.cdn.nysernet.net (199.109.107.93)  25.395 ms  26.313 ms  25.980 ms
 5  cornell-syr-9208.cdn.nysernet.net (199.109.109.26)  28.065 ms  27.750 ms  27.808 ms
 6  core2-mx-xe-0-3-2.net.cornell.edu (132.236.222.57)  47.668 ms  31.136 ms core1-mx-xe-0-3-2.net.cornell.edu (128.253.222.57)  27.239 ms
 7  sf1-ex-xe-2-3-0.net.cornell.edu (132.236.222.110)  33.822 ms sf1-ex-xe-2-0-0.net.cornell.edu (128.253.222.110)  32.894 ms sf2-ex-xe-2-3-0.net.cornell.edu (132.236.222.114)  31.192 ms
traceroute to search.arxiv.org (128.253.51.12), 30 hops max, 60 byte packets
 1  108.170.233.113 (108.170.233.113)  16.702 ms  16.718 ms  16.874 ms
 3  199.109.107.117 (199.109.107.117)  21.402 ms  21.461 ms  21.361 ms
 4  syr-9208-nyc111-9204.cdn.nysernet.net (199.109.107.93)  35.082 ms  35.086 ms  35.149 ms
 5  cornell-syr-9208.cdn.nysernet.net (199.109.109.26)  28.026 ms  28.009 ms  27.958 ms
 6  core1-mx-xe-0-3-2.net.cornell.edu (128.253.222.57)  28.042 ms  26.856 ms core2-mx-xe-0-3-2.net.cornell.edu (132.236.222.57)  27.386 ms
 7  rhodes1-ex-xe-2-3-0.net.cornell.edu (132.236.222.162)  27.219 ms  26.767 ms rhodes1-ex-xe-2-0-0.net.cornell.edu (128.253.222.162)  27.476 ms
```

# 北バージニア [283マイル](https://www.google.com/search?q=Loudoun%20County+cornell+university+distance) 4.09 MB/s

https://storage.googleapis.com/reckix.appspot.com/us-east4-c.log

```bash
traceroute to arxiv.org (128.84.21.199), 30 hops max, 60 byte packets
 1  199.109.102.9 (199.109.102.9)  1.485 ms  1.492 ms  1.570 ms
 2  phil-9204-ash-9204.cdn.nysernet.net (199.109.107.181)  7.652 ms  7.489 ms  7.308 ms
 3  nyc-9208-phil-9204.cdn.nysernet.net (199.109.107.185)  7.194 ms  7.450 ms  8.444 ms
 4  nyc32-55a1-nyc32-9208.cdn.nysernet.net (199.109.107.202)  7.932 ms  7.121 ms  7.979 ms
 5  syr-55a1-nyc32-55a1.cdn.nysernet.net (199.109.107.205)  14.694 ms  14.021 ms  14.773 ms
 6  syr-9208-syr-55a1.cdn.nysernet.net (199.109.107.197)  14.324 ms  13.977 ms  14.455 ms
 7  cornell-syr-9208.cdn.nysernet.net (199.109.109.26)  16.419 ms  15.630 ms  15.956 ms
 8  core2-mx-xe-0-3-2.net.cornell.edu (132.236.222.57)  15.504 ms  15.311 ms  16.130 ms
 9  sf2-ex-xe-2-0-0.net.cornell.edu (128.253.222.114)  15.267 ms sf1-ex-xe-2-3-0.net.cornell.edu (132.236.222.110)  15.268 ms  15.273 ms
traceroute to search.arxiv.org (128.253.51.12), 30 hops max, 60 byte packets
 1  199.109.102.9 (199.109.102.9)  1.044 ms  1.008 ms  0.978 ms
 2  phil-9204-ash-9204.cdn.nysernet.net (199.109.107.181)  6.916 ms  6.813 ms  6.949 ms
 3  nyc-9208-phil-9204.cdn.nysernet.net (199.109.107.185)  6.411 ms  6.781 ms  6.458 ms
 4  nyc32-55a1-nyc32-9208.cdn.nysernet.net (199.109.107.202)  7.070 ms  7.142 ms  7.257 ms
 5  syr-55a1-nyc32-55a1.cdn.nysernet.net (199.109.107.205)  15.107 ms  13.914 ms  14.913 ms
 6  syr-9208-syr-55a1.cdn.nysernet.net (199.109.107.197)  14.108 ms  14.199 ms  14.436 ms
 7  cornell-syr-9208.cdn.nysernet.net (199.109.109.26)  16.012 ms  15.709 ms  16.455 ms
 8  core2-mx-xe-0-3-2.net.cornell.edu (132.236.222.57)  15.647 ms core1-mx-xe-0-3-2.net.cornell.edu (128.253.222.57)  16.522 ms  15.979 ms
 9  rhodes1-ex-xe-2-3-0.net.cornell.edu (132.236.222.162)  15.810 ms  16.144 ms  16.135 ms
```

他のzoneも見てみました
us-east4-a 3.83 MB/s
us-east4-b 4.01 MB/s


https://storage.googleapis.com/reckix.appspot.com/us-east4-a.log

https://storage.googleapis.com/reckix.appspot.com/us-east4-b.log

# モントリオール [300マイル](https://www.google.com/search?q=cornell+university+Montr%C3%A9al+distance) 3.06 MB/s

https://storage.googleapis.com/reckix.appspot.com/northamerica-northeast1-a.log

```bash
traceroute to arxiv.org (128.84.21.199), 30 hops max, 60 byte packets
 1  108.170.233.113 (108.170.233.113)  9.880 ms  9.791 ms  9.839 ms
 3  199.109.107.117 (199.109.107.117)  14.657 ms  14.758 ms  14.617 ms
 4  syr-9208-nyc111-9204.cdn.nysernet.net (199.109.107.93)  18.837 ms  19.497 ms  19.534 ms
 5  cornell-syr-9208.cdn.nysernet.net (199.109.109.26)  21.055 ms  20.312 ms  20.418 ms
 6  core1-mx-xe-0-3-2.net.cornell.edu (128.253.222.57)  21.218 ms  20.494 ms core2-mx-xe-0-3-2.net.cornell.edu (132.236.222.57)  20.331 ms
 7  sf1-ex-xe-2-0-0.net.cornell.edu (128.253.222.110)  19.811 ms sf2-ex-xe-2-3-0.net.cornell.edu (132.236.222.114)  20.159 ms sf1-ex-xe-2-0-0.net.cornell.edu (128.253.222.110)  19.682 ms
traceroute to search.arxiv.org (128.253.51.12), 30 hops max, 60 byte packets
 1  108.170.233.113 (108.170.233.113)  9.355 ms  19.505 ms  9.034 ms
 3  199.109.107.117 (199.109.107.117)  13.770 ms  13.779 ms  14.107 ms
 4  syr-9208-nyc111-9204.cdn.nysernet.net (199.109.107.93)  18.675 ms  18.342 ms  18.095 ms
 5  cornell-syr-9208.cdn.nysernet.net (199.109.109.26)  20.314 ms  20.297 ms  19.961 ms
 6  core2-mx-xe-0-3-2.net.cornell.edu (132.236.222.57)  20.506 ms  19.963 ms  19.661 ms
 7  rhodes1-ex-xe-2-0-0.net.cornell.edu (128.253.222.162)  20.157 ms  20.512 ms  20.041 ms
```

# コロンバス [382マイル](https://www.google.com/search?q=cornell+university+Columbus%20Ohio+distance) 2.22MB/s

https://storage.googleapis.com/reckix.appspot.com/us-east5-b.log

```bash
traceroute to arxiv.org (128.84.21.199), 30 hops max, 60 byte packets
 1  * * *
 2  199.109.102.9 (199.109.102.9)  17.671 ms  18.075 ms  17.650 ms
 3  phil-9204-ash-9204.cdn.nysernet.net (199.109.107.181)  18.915 ms  18.563 ms  18.899 ms
 4  nyc-9208-phil-9204.cdn.nysernet.net (199.109.107.185)  18.883 ms  18.485 ms  18.755 ms
 5  nyc32-55a1-nyc32-9208.cdn.nysernet.net (199.109.107.202)  18.824 ms  18.938 ms  18.808 ms
 6  syr-55a1-nyc32-55a1.cdn.nysernet.net (199.109.107.205)  26.772 ms  25.681 ms  25.657 ms
 7  syr-9208-syr-55a1.cdn.nysernet.net (199.109.107.197)  27.957 ms  27.390 ms  25.448 ms
 8  cornell-syr-9208.cdn.nysernet.net (199.109.109.26)  26.616 ms  26.820 ms  26.825 ms
 9  core1-mx-xe-0-3-2.net.cornell.edu (128.253.222.57)  27.991 ms  27.982 ms core2-mx-xe-0-3-2.net.cornell.edu (132.236.222.57)  28.066 ms
10  sf1-ex-xe-2-3-0.net.cornell.edu (132.236.222.110)  28.811 ms sf2-ex-xe-2-3-0.net.cornell.edu (132.236.222.114)  26.941 ms sf2-ex-xe-2-0-0.net.cornell.edu (128.253.222.114)  26.987 ms
traceroute to search.arxiv.org (128.253.51.12), 30 hops max, 60 byte packets
 1  * * *
 2  199.109.102.9 (199.109.102.9)  18.889 ms  18.866 ms  18.256 ms
 3  phil-9204-ash-9204.cdn.nysernet.net (199.109.107.181)  18.373 ms  18.286 ms  18.222 ms
 4  nyc-9208-phil-9204.cdn.nysernet.net (199.109.107.185)  18.270 ms  18.457 ms  18.820 ms
 5  nyc32-55a1-nyc32-9208.cdn.nysernet.net (199.109.107.202)  19.518 ms  19.001 ms  19.126 ms
 6  syr-55a1-nyc32-55a1.cdn.nysernet.net (199.109.107.205)  26.437 ms  25.880 ms  25.860 ms
 7  syr-9208-syr-55a1.cdn.nysernet.net (199.109.107.197)  25.333 ms  25.325 ms  25.643 ms
 8  cornell-syr-9208.cdn.nysernet.net (199.109.109.26)  27.342 ms  26.879 ms  27.258 ms
 9  core1-mx-xe-0-3-2.net.cornell.edu (128.253.222.57)  27.855 ms core2-mx-xe-0-3-2.net.cornell.edu (132.236.222.57)  27.554 ms core1-mx-xe-0-3-2.net.cornell.edu (128.253.222.57)  27.028 ms
10  rhodes1-ex-xe-2-3-0.net.cornell.edu (132.236.222.162)  27.116 ms  26.971 ms rhodes1-ex-xe-2-0-0.net.cornell.edu (128.253.222.162)  27.445 ms
```

# サウスカロライナ 無料枠[^1] [815マイル](https://www.google.com/search?q=berkeley+county+cornell+university+distance) 2.38 MB/s

https://storage.googleapis.com/reckix.appspot.com/us-east1-b.log

```bash
traceroute to arxiv.org (128.84.21.199), 30 hops max, 60 byte packets
 2  199.109.102.9 (199.109.102.9)  12.737 ms  12.710 ms  12.704 ms
 3  phil-9204-ash-9204.cdn.nysernet.net (199.109.107.181)  18.880 ms  18.729 ms  17.919 ms
 4  nyc-9208-phil-9204.cdn.nysernet.net (199.109.107.185)  18.275 ms  17.946 ms  17.790 ms
 5  nyc32-55a1-nyc32-9208.cdn.nysernet.net (199.109.107.202)  18.332 ms  18.265 ms  18.810 ms
 6  syr-55a1-nyc32-55a1.cdn.nysernet.net (199.109.107.205)  25.841 ms  25.132 ms  25.801 ms
 7  syr-9208-syr-55a1.cdn.nysernet.net (199.109.107.197)  25.097 ms  24.875 ms  24.854 ms
 8  cornell-syr-9208.cdn.nysernet.net (199.109.109.26)  26.810 ms  26.897 ms  26.724 ms
 9  core2-mx-xe-0-3-2.net.cornell.edu (132.236.222.57)  26.567 ms  26.564 ms core1-mx-xe-0-3-2.net.cornell.edu (128.253.222.57)  26.888 ms
10  sf1-ex-xe-2-3-0.net.cornell.edu (132.236.222.110)  29.296 ms sf2-ex-xe-2-0-0.net.cornell.edu (128.253.222.114)  28.473 ms sf1-ex-xe-2-3-0.net.cornell.edu (132.236.222.110)  30.677 ms
traceroute to search.arxiv.org (128.253.51.12), 30 hops max, 60 byte packets
 1  199.109.102.9 (199.109.102.9)  27.522 ms  27.496 ms  27.483 ms
 2  phil-9204-ash-9204.cdn.nysernet.net (199.109.107.181)  18.162 ms  18.221 ms  17.919 ms
 3  nyc-9208-phil-9204.cdn.nysernet.net (199.109.107.185)  17.913 ms  18.002 ms  17.891 ms
 4  nyc32-55a1-nyc32-9208.cdn.nysernet.net (199.109.107.202)  17.880 ms  18.349 ms  17.850 ms
 5  syr-55a1-nyc32-55a1.cdn.nysernet.net (199.109.107.205)  25.817 ms  24.922 ms  25.269 ms
 6  syr-9208-syr-55a1.cdn.nysernet.net (199.109.107.197)  24.895 ms  24.842 ms  24.649 ms
 7  cornell-syr-9208.cdn.nysernet.net (199.109.109.26)  26.477 ms  26.058 ms  26.274 ms
 8  core1-mx-xe-0-3-2.net.cornell.edu (128.253.222.57)  26.670 ms  26.446 ms core2-mx-xe-0-3-2.net.cornell.edu (132.236.222.57)  26.589 ms
 9  rhodes1-ex-xe-2-3-0.net.cornell.edu (132.236.222.162)  27.004 ms rhodes1-ex-xe-2-0-0.net.cornell.edu (128.253.222.162)  39.072 ms rhodes1-ex-xe-2-3-0.net.cornell.edu (132.236.222.162)  26.228 ms
```

# アイオワ 無料枠[^1] [1092マイル](https://www.google.com/search?q=Council%20Bluffs+cornell+university+distance) ???KB/s
https://storage.googleapis.com/reckix.appspot.com/us-central1-a.log
https://storage.googleapis.com/reckix.appspot.com/us-central1-b.log
https://storage.googleapis.com/reckix.appspot.com/us-central1-c.log

# オレゴン 無料枠[^1] [2651マイル](https://www.google.com/search?q=The%20Dalles+cornell+university+distance) 926 KB/s

https://storage.googleapis.com/reckix.appspot.com/us-west1-b.log

```bash
traceroute to arxiv.org (128.84.21.199), 30 hops max, 60 byte packets
 1  199.109.102.9 (199.109.102.9)  57.794 ms  57.767 ms  57.735 ms
 2  phil-9204-ash-9204.cdn.nysernet.net (199.109.107.181)  60.862 ms  60.834 ms  61.169 ms
 3  nyc-9208-phil-9204.cdn.nysernet.net (199.109.107.185)  60.867 ms  61.215 ms  61.202 ms
 4  nyc32-55a1-nyc32-9208.cdn.nysernet.net (199.109.107.202)  61.699 ms  61.387 ms  61.666 ms
 5  syr-55a1-nyc32-55a1.cdn.nysernet.net (199.109.107.205)  68.535 ms  68.438 ms  68.434 ms
 6  syr-9208-syr-55a1.cdn.nysernet.net (199.109.107.197)  68.811 ms  67.579 ms  68.269 ms
 7  cornell-syr-9208.cdn.nysernet.net (199.109.109.26)  69.049 ms  69.037 ms  68.881 ms
 8  core2-mx-xe-0-3-2.net.cornell.edu (132.236.222.57)  108.894 ms  108.847 ms core1-mx-xe-0-3-2.net.cornell.edu (128.253.222.57)  69.625 ms
 9  sf2-ex-xe-2-0-0.net.cornell.edu (128.253.222.114)  69.488 ms  69.598 ms sf1-ex-xe-2-0-0.net.cornell.edu (128.253.222.110)  69.309 ms
traceroute to search.arxiv.org (128.253.51.12), 30 hops max, 60 byte packets
 2  199.109.102.9 (199.109.102.9)  57.407 ms  57.416 ms  57.407 ms
 3  phil-9204-ash-9204.cdn.nysernet.net (199.109.107.181)  60.474 ms  60.464 ms  60.260 ms
 4  nyc-9208-phil-9204.cdn.nysernet.net (199.109.107.185)  60.873 ms  60.418 ms  60.293 ms
 5  nyc32-55a1-nyc32-9208.cdn.nysernet.net (199.109.107.202)  60.838 ms  61.365 ms  60.954 ms
 6  syr-55a1-nyc32-55a1.cdn.nysernet.net (199.109.107.205)  68.620 ms  67.960 ms  67.955 ms
 7  syr-9208-syr-55a1.cdn.nysernet.net (199.109.107.197)  68.371 ms  72.935 ms  72.889 ms
 8  cornell-syr-9208.cdn.nysernet.net (199.109.109.26)  69.074 ms  69.038 ms  69.041 ms
 9  core2-mx-xe-0-3-2.net.cornell.edu (132.236.222.57)  69.697 ms core1-mx-xe-0-3-2.net.cornell.edu (128.253.222.57)  74.632 ms  74.503 ms
10  rhodes1-ex-xe-2-0-0.net.cornell.edu (128.253.222.162)  69.745 ms rhodes1-ex-xe-2-3-0.net.cornell.edu (132.236.222.162)  70.044 ms  69.309 ms
```

# 台湾 [12412km](https://www.google.com/search?q=%E5%8F%B0%E6%B9%BE+cornell+university+distance) 343KB/s asia-east1-a

```bash
--2022-04-24 08:52:24--  https://arxiv.org/pdf/2203.10099.pdf
Reusing existing connection to arxiv.org:443.
HTTP request sent, awaiting response... 200 OK
Length: 1495782 (1.4M) [application/pdf]
Saving to: ‘2203.10099.pdf’

2203.10099.pdf                                               100%[===========================================================================================================================================>]   1.43M   357KB/s    in 4.1s

2022-04-24 08:52:29 (354 KB/s) - ‘2203.10099.pdf’ saved [1495782/1495782]

FINISHED --2022-04-24 08:52:29--
Total wall clock time: 15m 28s
Downloaded: 100 files, 293M in 14m 37s (343 KB/s)
```

# 自宅 [10579km](https://www.google.com/search?q=japan+cornell+university+distance) 320KB/s

```bash
--2022-04-24 17:51:22--  https://arxiv.org/pdf/2203.10099.pdf
arxiv.org:443 への接続を再利用します。
HTTP による接続要求を送信しました、応答を待っています... 200 OK
長さ: 1495782 (1.4M) [application/pdf]
‘2203.10099.pdf’ に保存中

2203.10099.pdf                                       100%[=====================================================================================================================>]   1.43M   338KB/s    in 4.3s    

2022-04-24 17:51:27 (336 KB/s) - ‘2203.10099.pdf’ へ保存完了 [1495782/1495782]

終了しました --2022-04-24 17:51:27--
経過時間: 16m 36s
ダウンロード完了: 100 ファイル、293M バイトを 15m 40s で取得 (320 KB/s)
```

# 参考
https://www.google.com/about/datacenters/locations/


[^1]: https://cloud.google.com/free/docs/gcp-free-tier/?hl=ja#compute