Skip to content

Instantly share code, notes, and snippets.

@pekeq
Last active August 16, 2017 09:12
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pekeq/c570fc638fa7234ba10a to your computer and use it in GitHub Desktop.
Save pekeq/c570fc638fa7234ba10a to your computer and use it in GitHub Desktop.
Azure CDNのエンドポイントにIPv6でアクセスできない場合がある件

Azure CDNのエンドポイントにIPv6でアクセスできない場合がある件

症状まとめ

  • Azure CDNのエンドポイントにIPv6でアクセスすると、レスポンスが返ってこない場合がある
  • どのIPv6アドレスからアクセスもNGというわけではなく、OKなところとNGなところがある
  • ping6は通るのでネットワーク的な到達性はある
  • HTTP GETした場合、接続まではできて、リクエスト送信しても反応がない
  • 個別のAzure CDN契約がアクセスできないというわけではなさそうで、Azure CDNを利用しているtenki.jpや、Office Onlineのファイルも取れない

アクセスできないコンテンツ例

上記は私のAzureサブスクリプションで作ったものですが、それ以外でも以下のコンテンツにもアクセスできません。

ISP別

接続できている

  • IIJ
  • MoperaU
  • Qit (アルテリアネットワークス)
  • ConoHa VPS (GMO)

接続できない

  • OCN
  • さくらインターネット(VPS)

ping/traceroute

対象URL

さくらインターネット石狩データセンター

  • 2401:2500:102:1202:133:242:138:180
  • Google等には到達性あり
$ wget -d http://az630987.vo.msecnd.net/test.html
DEBUG output created by Wget 1.13.4 on linux-gnu.

URI encoding = `UTF-8'
--2014-06-27 12:23:27--  http://az630987.vo.msecnd.net/test.html
Resolving az630987.vo.msecnd.net (az630987.vo.msecnd.net)... 2606:2800:10c:249:f81:1c8d:1178:1364, 192.229.145.200
Caching az630987.vo.msecnd.net => 2606:2800:10c:249:f81:1c8d:1178:1364 192.229.145.200
Connecting to az630987.vo.msecnd.net (az630987.vo.msecnd.net)|2606:2800:10c:249:f81:1c8d:1178:1364|:80... connected.
Created socket 3.
Releasing 0x0000000000750490 (new refcount 1).

---request begin---
GET /test.html HTTP/1.1
User-Agent: Wget/1.13.4 (linux-gnu)
Accept: */*
Host: az630987.vo.msecnd.net
Connection: Keep-Alive

---request end---
HTTP request sent, awaiting response... Read error (Connection timed out) in headers.
Closed fd 3
Retrying.

--2014-06-27 12:41:37--  (try: 2)  http://az630987.vo.msecnd.net/test.html
Found az630987.vo.msecnd.net in host_name_addresses_map (0x22fa490)
Connecting to az630987.vo.msecnd.net (az630987.vo.msecnd.net)|2606:2800:10c:249:f81:1c8d:1178:1364|:80... connected.
Created socket 3.
Releasing 0x00000000022fa490 (new refcount 1).

---request begin---
GET /test.html HTTP/1.1
User-Agent: Wget/1.13.4 (linux-gnu)
Accept: */*
Host: az630987.vo.msecnd.net
Connection: Keep-Alive

---request end---
HTTP request sent, awaiting response... ^C
$ ping6 -c 5 az630987.vo.msecnd.net
PING az630987.vo.msecnd.net(2606:2800:10c:249:f81:1c8d:1178:1364) 56 data bytes
64 bytes from 2606:2800:10c:249:f81:1c8d:1178:1364: icmp_seq=1 ttl=55 time=29.4 ms
64 bytes from 2606:2800:10c:249:f81:1c8d:1178:1364: icmp_seq=2 ttl=55 time=27.2 ms
64 bytes from 2606:2800:10c:249:f81:1c8d:1178:1364: icmp_seq=3 ttl=55 time=29.3 ms
64 bytes from 2606:2800:10c:249:f81:1c8d:1178:1364: icmp_seq=4 ttl=55 time=27.8 ms
64 bytes from 2606:2800:10c:249:f81:1c8d:1178:1364: icmp_seq=5 ttl=55 time=27.2 ms

--- az630987.vo.msecnd.net ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 10152ms
rtt min/avg/max/mdev = 27.297/28.250/29.481/0.990 ms
$ traceroute6 az630987.vo.msecnd.net
traceroute to cs1.wpc.v0cdn.net (2606:2800:10c:249:f81:1c8d:1178:1364) from 2401
:2500:102:1202:133:242:138:180, 30 hops max, 24 byte packets
 1  2401:2500:102:1202::1 (2401:2500:102:1202::1)  0.584 ms  0.323 ms  0.249 ms
 2  iskrt101b-rt109e.bb.sakura.ad.jp (2001:e47:c000:17::1)  6.565 ms  0.345 ms  0.315 ms
 3  iskrt1s-rt101b-1.bb.sakura.ad.jp (2001:e47:c000:3::1)  0.41 ms  0.588 ms  0.438 ms
 4  iskrt2-rt1s.bb.sakura.ad.jp (2001:e47:c000:15::1)  0.454 ms  0.615 ms  0.4 ms
 5  tkwrt3-krt2.bb.sakura.ad.jp (2001:e47:0:b::1)  19.612 ms  19.609 ms  19.543 ms
 6  2001:218:2000:5000::209 (2001:218:2000:5000::209)  19.775 ms  19.674 ms  19.704 ms
 7  ae-6.a20.osakjp01.jp.ra.gin.ntt.net (2001:218:2000:2000::92)  24.03 ms  26.775 ms  24.622 ms
 8  ae-10.r22.osakjp02.jp.bb.gin.ntt.net (2001:218:0:6000::e9)  27.069 ms  27.091 ms  27.221 ms
 9  xe-1-1-11.r22.osakjp02.jp.ce.gin.ntt.net (2001:218:3000:5000::5a)  27.128 ms  27.209 ms  27.148 ms
10  * * *
11  * * *
11  * * *
12  * * *
13  * * *
14  * * *
15  * * *

OCN

  • フレッツ光ネクスト PPPoE
  • Google等には到達性あり
C:\Users\hideo-m>ping -6 -n 5 az630987.vo.msecnd.net

cs1.wpc.v0cdn.net [2606:2800:10c:249:f81:1c8d:1178:1364]に ping を送信しています
 32 バイトのデータ:
2606:2800:10c:249:f81:1c8d:1178:1364 からの応答: 時間 =13ms
2606:2800:10c:249:f81:1c8d:1178:1364 からの応答: 時間 =14ms
2606:2800:10c:249:f81:1c8d:1178:1364 からの応答: 時間 =12ms
2606:2800:10c:249:f81:1c8d:1178:1364 からの応答: 時間 =15ms
2606:2800:10c:249:f81:1c8d:1178:1364 からの応答: 時間 =13ms

2606:2800:10c:249:f81:1c8d:1178:1364 の ping 統計:
    パケット数: 送信 = 5、受信 = 5、損失 = 0 (0% の損失)、
ラウンド トリップの概算時間 (ミリ秒):
    最小 = 12ms、最大 = 15ms、平均 = 13ms
C:\Users\hideo-m>tracert -6 az630987.vo.msecnd.net

cs1.wpc.v0cdn.net [2606:2800:10c:249:f81:1c8d:1178:1364] へのルートをトレースしています
経由するホップ数は最大 30 です:

  1    <1 ms    <1 ms    <1 ms  2400:4010:100:5801::1
  2     4 ms     3 ms     3 ms  2001:380:50:1ff::3
  3     2 ms     2 ms     6 ms  2001:380:50:181::1
  4     7 ms     5 ms     4 ms  2001:380:50:100::1
  5     3 ms     3 ms     4 ms  2001:380:8270:4::1
  6     3 ms     3 ms     5 ms  2001:380:8150:f::19
  7     3 ms     3 ms     3 ms  2001:380:0:2e05::2
  8    11 ms    15 ms    42 ms  ae-6.a21.osakjp01.jp.ra.gin.ntt.net [2001:218:2000:2000::96]
  9    16 ms    17 ms    15 ms  ae-11.r22.osakjp02.jp.bb.gin.ntt.net [2001:218:0:6000::f1]
 10    11 ms    16 ms    11 ms  xe-1-1-11.r22.osakjp02.jp.ce.gin.ntt.net [2001:218:3000:5000::5a]
 11    13 ms    12 ms    12 ms  2606:2800:10c:249:f81:1c8d:1178:1364

トレースを完了しました。

qit

  • 240b:10:2a60:600:a9fb:2955:66b5:6a90
  • フレッツ光ネクストマンションタイプIPoE
$ wget -d http://az630987.vo.msecnd.net/test.html
DEBUG output created by Wget 1.13.4 on linux-gnu.

URI encoding = `UTF-8'
--2014-06-27 12:24:24--  http://az630987.vo.msecnd.net/test.html
Resolving az630987.vo.msecnd.net (az630987.vo.msecnd.net)... 2606:2800:10c:249:f81:1c8d:1178:1364, 192.229.145.200
Caching az630987.vo.msecnd.net => 2606:2800:10c:249:f81:1c8d:1178:1364 192.229.145.200
Connecting to az630987.vo.msecnd.net (az630987.vo.msecnd.net)|2606:2800:10c:249:f81:1c8d:1178:1364|:80... connected.
Created socket 3.
Releasing 0x0000000000cdf3c0 (new refcount 1).

---request begin---
GET /test.html HTTP/1.1
User-Agent: Wget/1.13.4 (linux-gnu)
Accept: */*
Host: az630987.vo.msecnd.net
Connection: Keep-Alive

---request end---
HTTP request sent, awaiting response...
---response begin---
HTTP/1.1 200 OK
Accept-Ranges: bytes
Content-MD5: pJvOLYcCCVRG61kFkqLipw==
Content-Type: text/html
Date: Fri, 27 Jun 2014 03:24:25 GMT
Etag: 0x8D15E36B7524794
Last-Modified: Wed, 25 Jun 2014 02:45:53 GMT
Server: ECAcc (nrt/1A87)
X-Cache: HIT
x-ms-blob-type: BlockBlob
x-ms-lease-status: unlocked
x-ms-request-id: 48c4fe0b-f1b9-4a4a-aab3-c11bd2fb157d
x-ms-version: 2009-09-19
Content-Length: 38

---response end---
200 OK
Registered socket 3 for persistent reuse.
Length: 38 [text/html]
Saving to: `test.html'

100%[======================================>] 38          --.-K/s   in 0s

2014-06-27 12:24:25 (2.29 MB/s) - `test.html' saved [38/38]
$ ping6 -c 5 az630987.vo.msecnd.net
PING az630987.vo.msecnd.net(2606:2800:10c:249:f81:1c8d:1178:1364) 56 data bytes
64 bytes from 2606:2800:10c:249:f81:1c8d:1178:1364: icmp_seq=1 ttl=56 time=2.22 ms
64 bytes from 2606:2800:10c:249:f81:1c8d:1178:1364: icmp_seq=2 ttl=56 time=2.69 ms
64 bytes from 2606:2800:10c:249:f81:1c8d:1178:1364: icmp_seq=3 ttl=56 time=2.52 ms
64 bytes from 2606:2800:10c:249:f81:1c8d:1178:1364: icmp_seq=4 ttl=56 time=2.49 ms
64 bytes from 2606:2800:10c:249:f81:1c8d:1178:1364: icmp_seq=5 ttl=56 time=2.37 ms

--- az630987.vo.msecnd.net ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4006ms
rtt min/avg/max/mdev = 2.226/2.461/2.690/0.158 ms
$ traceroute6 az630987.vo.msecnd.net
traceroute to cs1.wpc.v0cdn.net (2606:2800:10c:249:f81:1c8d:1178:1364) from 240b:10:2a60:600:a9fb:2955:66b5:6a90, 30 hops max, 24 byte packets
 1  240b:10:2a60:600::fffe (240b:10:2a60:600::fffe)  1.292 ms  1.467 ms  1.837 ms
 2  * * *
 3  * * *
 4  2404:9200:225:1::1 (2404:9200:225:1::1)  2.274 ms  2.352 ms  2.344 ms
 5  6otejbb205.int-gw.kddi.ne.jp (2001:268:fb02:13e::1)  2.391 ms  10.282 ms  2.536 ms
 6  6ix-ote206.int-gw.kddi.ne.jp (2001:268:fb02:9c::2)  2.281 ms  2.428 ms  2.303 ms
 7  2001:de8:8::1:26:1 (2001:de8:8::1:26:1)  2.541 ms  2.526 ms  2.698 ms
 8  2001:cb0:102:1:15::2 (2001:cb0:102:1:15::2)  2.578 ms  3.272 ms  2.263 ms
 9  2001:cb0:105:1:13::2 (2001:cb0:105:1:13::2)  2.77 ms  2.817 ms  3.029 ms
10  2001:cb0:105:2:12::2 (2001:cb0:105:2:12::2)  2.776 ms  2.778 ms  2.859 ms
11  2606:2800:10c:249:f81:1c8d:1178:1364 (2606:2800:10c:249:f81:1c8d:1178:1364)  3.038 ms  2.804 ms  2.835 ms

CocoHa VPS

# wget -d http://az630987.vo.msecnd.net/test.html
DEBUG output created by Wget 1.12 on linux-gnu.

--2014-06-27 13:11:32--  http://az630987.vo.msecnd.net/test.html
Resolving az630987.vo.msecnd.net... 2606:2800:10c:249:f81:1c8d:1178:1364, 192.229.145.200
Caching az630987.vo.msecnd.net => 2606:2800:10c:249:f81:1c8d:1178:1364 192.229.145.200
Connecting to az630987.vo.msecnd.net|2606:2800:10c:249:f81:1c8d:1178:1364|:80... connected.
Created socket 3.
Releasing 0x00000000020ef730 (new refcount 1).

---request begin---
GET /test.html HTTP/1.0
User-Agent: Wget/1.12 (linux-gnu)
Accept: */*
Host: az630987.vo.msecnd.net
Connection: Keep-Alive

---request end---
HTTP request sent, awaiting response...
---response begin---
HTTP/1.0 200 OK
Accept-Ranges: bytes
Content-MD5: pJvOLYcCCVRG61kFkqLipw==
Content-Type: text/html
Date: Fri, 27 Jun 2014 04:11:32 GMT
Etag: 0x8D15E36B7524794
Last-Modified: Wed, 25 Jun 2014 02:45:53 GMT
Server: ECAcc (nrt/1A87)
X-Cache: HIT
x-ms-blob-type: BlockBlob
x-ms-lease-status: unlocked
x-ms-request-id: 48c4fe0b-f1b9-4a4a-aab3-c11bd2fb157d
x-ms-version: 2009-09-19
Content-Length: 38
Connection: keep-alive

---response end---
200 OK
Registered socket 3 for persistent reuse.
Length: 38 [text/html]
Saving to: “test.html”

100%[======================================>] 38          --.-K/s   in 0s

2014-06-27 13:11:32 (6.65 MB/s) - “test.html” saved [38/38]
# ping6 -c 5 az630987.vo.msecnd.net
PING az630987.vo.msecnd.net(2606:2800:10c:249:f81:1c8d:1178:1364) 56 data bytes
64 bytes from 2606:2800:10c:249:f81:1c8d:1178:1364: icmp_seq=1 ttl=51 time=77.6 ms
64 bytes from 2606:2800:10c:249:f81:1c8d:1178:1364: icmp_seq=2 ttl=51 time=77.4 ms
64 bytes from 2606:2800:10c:249:f81:1c8d:1178:1364: icmp_seq=3 ttl=51 time=77.5 ms
64 bytes from 2606:2800:10c:249:f81:1c8d:1178:1364: icmp_seq=4 ttl=51 time=77.4 ms
64 bytes from 2606:2800:10c:249:f81:1c8d:1178:1364: icmp_seq=5 ttl=51 time=77.4 ms

--- az630987.vo.msecnd.net ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4084ms
rtt min/avg/max/mdev = 77.441/77.522/77.685/0.316 ms
# traceroute6 az630987.vo.msecnd.net
traceroute to az630987.vo.msecnd.net (2606:2800:10c:249:f81:1c8d:1178:1364), 30 hops max, 80 byte packets
 1  2400:8500:1301:813::1 (2400:8500:1301:813::1)  1.437 ms  1.267 ms  1.220 ms
 2  2400:8500:1300:1007::1 (2400:8500:1300:1007::1)  1.638 ms  1.691 ms  1.546 ms
 3  2400:8500:1300:1016::1 (2400:8500:1300:1016::1)  1.122 ms  1.165 ms  1.209 ms
 4  2400:8500:1300:1018::1 (2400:8500:1300:1018::1)  2.264 ms  2.113 ms  1.726 ms
 5  2400:8500:1000:1002::1 (2400:8500:1000:1002::1)  1.026 ms  1.025 ms  1.033 ms
 6  2001:218:2000:5000::205 (2001:218:2000:5000::205)  2.053 ms  1.841 ms  1.813 ms
 7  ae-12.r24.tokyjp05.jp.bb.gin.ntt.net (2001:218:0:2000::1f9)  1.474 ms ae-13.r25.tokyjp05.jp.bb.gin.ntt.net (2001:218:0:2000::1fd)  1.468 ms  1.446 ms
 8  ae-2.r00.tokyjp03.jp.bb.gin.ntt.net (2001:218:0:2000::21a)  3.081 ms  2.727 ms  2.716 ms
 9  xe-0-1-0-19.r00.tokyjp03.jp.ce.gin.ntt.net (2001:218:2000:5000::7a)  77.709 ms 2001:218:2000:5000::332 (2001:218:2000:5000::332)  79.728 ms xe-0-1-0-18.r00.tokyjp03.jp.ce.gin.ntt.net (2001:218:2000:5000::76)  79.036 ms
10  2606:2800:10c:249:f81:1c8d:1178:1364 (2606:2800:10c:249:f81:1c8d:1178:1364)  77.726 ms  77.743 ms  77.710 ms
# tracepath6 az630987.vo.msecnd.net
 1?: [LOCALHOST]                      pmtu 1500
 1:  2400:8500:1301:813::1                      0.866ms
 1:  2400:8500:1301:813::1                      0.596ms
 2:  2400:8500:1300:1007::1                     1.231ms
 3:  2400:8500:1300:1016::1                     1.097ms
 4:  2400:8500:1300:1018::1                     1.745ms
 5:  2400:8500:1000:1002::1                     1.109ms
 6:  2001:218:2000:5000::205                    1.923ms
 7:  ae-12.r24.tokyjp05.jp.bb.gin.ntt.net       1.474ms
 8:  ae-3.r00.tokyjp03.jp.bb.gin.ntt.net        2.622ms asymm 10
 9:  2001:218:2000:5000::336                   79.026ms asymm 13
10:  no reply
11:  no reply
12:  no reply
13:  no reply
14:  no reply
15:  no reply
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment