Failed to connect to github.com port 443: Operation timed out

Background

I git clone the swift repo some days ago. Recently I run the utils/update-checkout --clone-with-ssh or utils/update-checkout --clone as the How to Set Up an Edit-Build-Test-Debug Loop, I got this error with GIT_TRACE enabled:

* connect to 13.229.188.59 port 443 failed: Operation timed out
* Failed to connect to github.com port 443: Operation timed out

PS: My location is Beijing in china.

Diagnostic

As the steps in github-debug website, the testing result as the following:

Ping

$ ping -c 10 github.com
PING github.com (13.229.188.59): 56 data bytes
64 bytes from 13.229.188.59: icmp_seq=0 ttl=39 time=121.775 ms
64 bytes from 13.229.188.59: icmp_seq=1 ttl=39 time=127.119 ms
64 bytes from 13.229.188.59: icmp_seq=2 ttl=39 time=123.367 ms
64 bytes from 13.229.188.59: icmp_seq=3 ttl=39 time=128.420 ms
64 bytes from 13.229.188.59: icmp_seq=4 ttl=39 time=119.313 ms
64 bytes from 13.229.188.59: icmp_seq=5 ttl=39 time=122.350 ms
64 bytes from 13.229.188.59: icmp_seq=6 ttl=39 time=129.153 ms
64 bytes from 13.229.188.59: icmp_seq=7 ttl=39 time=121.254 ms
64 bytes from 13.229.188.59: icmp_seq=8 ttl=39 time=120.721 ms
64 bytes from 13.229.188.59: icmp_seq=9 ttl=39 time=128.808 ms

--- github.com ping statistics ---
10 packets transmitted, 10 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 119.313/124.228/129.153/3.560 ms

traceroute

$ traceroute github.com
traceroute to github.com (13.229.188.59), 64 hops max, 52 byte packets
 1  192.168.0.1 (192.168.0.1)  1.931 ms  7.068 ms  1.922 ms
 2  domynet (192.168.10.1)  3.054 ms  2.562 ms  3.610 ms
 3  223.20.128.1 (223.20.128.1)  5.126 ms  5.415 ms  4.717 ms
 4  218.241.252.157 (218.241.252.157)  6.093 ms  4.979 ms  6.096 ms
 5  218.241.252.145 (218.241.252.145)  6.104 ms  8.344 ms  8.309 ms
 6  202.99.1.125 (202.99.1.125)  6.991 ms
    202.99.1.133 (202.99.1.133)  8.825 ms
    202.99.1.121 (202.99.1.121)  5.499 ms
 7  61.51.37.193 (61.51.37.193)  48.684 ms
    61.149.212.221 (61.149.212.221)  6.082 ms
    61.51.37.189 (61.51.37.189)  6.099 ms
 8  202.96.13.229 (202.96.13.229)  5.286 ms
    202.96.13.77 (202.96.13.77)  5.043 ms
    202.96.13.117 (202.96.13.117)  5.710 ms
 9  124.65.194.13 (124.65.194.13)  9.846 ms
    61.49.214.17 (61.49.214.17)  5.471 ms
    61.149.203.117 (61.149.203.117)  6.071 ms
10  219.158.6.166 (219.158.6.166)  27.867 ms
    219.158.16.86 (219.158.16.86)  27.707 ms
    219.158.8.242 (219.158.8.242)  37.084 ms
11  219.158.113.102 (219.158.113.102)  31.499 ms  36.964 ms
    219.158.113.114 (219.158.113.114)  31.854 ms
12  219.158.113.137 (219.158.113.137)  27.992 ms  31.938 ms  29.651 ms
13  xe-0-10-0-3-5.r03.tokyjp05.jp.bb.gin.ntt.net (129.250.8.213)  57.621 ms  64.130 ms  61.155 ms
14  ae-4.r31.tokyjp05.jp.bb.gin.ntt.net (129.250.3.57)  67.230 ms  57.907 ms  57.086 ms
15  ae-4.r23.sngpsi07.sg.bb.gin.ntt.net (129.250.2.242)  137.497 ms  137.821 ms  136.099 ms
16  ae-9.r22.sngpsi07.sg.bb.gin.ntt.net (129.250.2.66)  122.549 ms  122.323 ms  127.185 ms
17  * * *
18  * ae-1.r00.sngpsi07.sg.bb.gin.ntt.net (129.250.4.134)  139.176 ms
    ae-1.r01.sngpsi07.sg.bb.gin.ntt.net (129.250.4.94)  131.069 ms
19  ae-0.amazon.sngpsi07.sg.bb.gin.ntt.net (116.51.17.26)  136.899 ms *  129.758 ms
20  * * *
21  * * *
22  * * *
23  * * *
24  * * *
25  * * *
26  * * *
27  * * *
28  * * *
29  * * *
30  * * *
31  * * *
32  * * *
33  * * *
34  * * *
35  * * *
36  * * *
37  * * *
38  * * *
39  * * *
40  * * *
41  * * *
42  * * *
43  * * *
44  * * *
45  * * *
46  * * *
47  * * *
48  * * *
49  * * *
50  * * *
51  * * *
52  * * *
53  * * *
54  * * *
55  * * *
56  * * *
57  * * *
58  * * *
59  * * *
60  * * *
61  * * *
62  * * *
63  * * *
64  * * *

Connection data

2507998 bytes downloaded from github.com at 0.32 Mbps
2507998 bytes downloaded from cloud.githubusercontent.com at 4.73 Mbps
2507998 bytes downloaded from github.githubassets.com at 8.28 Mbps
2507998 bytes downloaded from sea.github-debug.com at 0.08 Mbps
2507998 bytes downloaded from iad.github-debug.com at 1.31 Mbps
2507998 bytes downloaded from fra.github-debug.com at 3.75 Mbps
2507998 bytes downloaded from ap-northeast-1.github-debug.com at 6.38 Mbps
2507998 bytes downloaded from ap-northeast-2.github-debug.com at 2.71 Mbps
2507998 bytes downloaded from ap-southeast-1.github-debug.com at 6.07 Mbps
2507998 bytes downloaded from ap-southeast-2.github-debug.com at 0.09 Mbps
2507998 bytes downloaded from ap-south-1.github-debug.com at 3.36 Mbps
2507998 bytes downloaded from sa-east-1.github-debug.com at 3.87 Mbps
2507998 bytes downloaded from github-cloud.s3.amazonaws.com at 1.70 Mbps

                
111.205.14.7

                
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.3 Safari/605.1.15

                
31de1059177e92953768fea4b6aa155c

                
1B06:3D71:0A58:9372:60B7BE83

                

traceroute to 111.205.14.7 (111.205.14.7), 30 hops max, 60 byte packets
 1  4c24c959758b7581388decae3136f06e  0.130 ms
 2  0ccdc3628761b60f9ba76261f7091079  22.383 ms
 3  100.65.24.240 (100.65.24.240)  2.429 ms
 4  100.66.11.200 (100.66.11.200)  20.385 ms
 5  100.66.6.115 (100.66.6.115)  57.929 ms
 6  100.66.6.199 (100.66.6.199)  317.351 ms
 7  100.65.10.129 (100.65.10.129)  0.542 ms
 8  100.65.9.129 (100.65.9.129)  0.686 ms
 9  150.222.108.173 (150.222.108.173)  1.479 ms
10  150.222.108.180 (150.222.108.180)  2.889 ms
11  ae-25.r01.sngpsi07.sg.bb.gin.ntt.net (116.51.18.165)  2.050 ms
12  ae-25.r01.sngpsi07.sg.bb.gin.ntt.net (116.51.18.165)  2.124 ms
13  ae-1.r25.osakjp02.jp.bb.gin.ntt.net (129.250.2.67)  66.131 ms
14  ae-1.r25.osakjp02.jp.bb.gin.ntt.net (129.250.2.67)  65.811 ms
15  ae-2.r03.osakjp02.jp.bb.gin.ntt.net (129.250.7.33)  66.533 ms
16  xe-0.cnc-g.osakjp02.jp.bb.gin.ntt.net (129.250.8.26)  228.537 ms
17  219.158.3.181 (219.158.3.181)  223.734 ms
18  219.158.5.153 (219.158.5.153)  124.832 ms
19  61.49.214.10 (61.49.214.10)  115.583 ms
20  RSM-SW-GJJ-B-VLAN9.bta.net.cn (202.106.193.38)  123.277 ms
21  61.149.212.202 (61.149.212.202)  122.486 ms
22  218.241.244.6 (218.241.244.6)  124.872 ms
23  *
24  *
25  *
26  *
27  *
28  *
29  *
30  *

                  
PING 111.205.14.7 (111.205.14.7) 56(84) bytes of data.

--- 111.205.14.7 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2039ms


                  
Start: 2021-06-02T10:36:19-0700
HOST: e62f4983f010a6b94396e43c5f1736ed                                       Loss%   Snt   Last   Avg  Best  Wrst StDev
  1.|-- f705f004637a9510b0ef16220e2e620f                                        0.0%    10    0.1   0.1   0.1   0.2   0.0
  2.|-- 7d6c2fc033eed575398bfecc7eda53a1                                        0.0%    10    0.7  33.2   0.7 129.2  46.5
  3.|-- ???                                                                    100.0    10    0.0   0.0   0.0   0.0   0.0
  4.|-- ???                                                                    100.0    10    0.0   0.0   0.0   0.0   0.0
  5.|-- ???                                                                    100.0    10    0.0   0.0   0.0   0.0   0.0
  6.|-- ???                                                                    100.0    10    0.0   0.0   0.0   0.0   0.0
  7.|-- ???                                                                    100.0    10    0.0   0.0   0.0   0.0   0.0
  8.|-- 100.65.8.225                                                            0.0%    10    0.3   0.6   0.3   1.9   0.5
  9.|-- 150.222.108.151                                                         0.0%    10    2.0   1.9   1.1   5.0   1.1
 10.|-- 150.222.108.164                                                         0.0%    10    2.2   2.1   1.5   4.0   0.8
 11.|-- 52.93.10.207                                                            0.0%    10    1.4   2.4   1.4  10.1   2.7
 12.|-- ae-25.r01.sngpsi07.sg.bb.gin.ntt.net (116.51.18.165)                    0.0%    10    1.7   2.6   1.7  10.0   2.6
 13.|-- ae-2.r22.sngpsi07.sg.bb.gin.ntt.net (129.250.2.148)                     0.0%    10    1.5   2.3   1.5   3.8   0.7
 14.|-- ae-1.r25.osakjp02.jp.bb.gin.ntt.net (129.250.2.67)                      0.0%    10   67.0  67.4  65.9  70.6   1.3
 15.|-- ae-2.r03.osakjp02.jp.bb.gin.ntt.net (129.250.7.33)                      0.0%    10   66.3  66.4  66.3  66.9   0.2
 16.|-- 219.158.32.33                                                           0.0%    10  221.9 218.4 214.4 221.9   2.6
 17.|-- 219.158.3.181                                                           0.0%    10  227.5 220.4 216.3 227.5   3.5
 18.|-- 219.158.5.153                                                           0.0%    10  121.5 121.5 117.9 124.5   2.5
 19.|-- 61.49.214.10                                                            0.0%    10  117.5 115.8 115.4 117.5   0.6
 20.|-- RSM-SW-GJJ-B-VLAN9.bta.net.cn (202.106.193.38)                          0.0%    10  117.1 116.4 116.1 117.1   0.4
 21.|-- 61.149.212.202                                                         30.0%    10  122.5 123.6 122.4 129.9   2.8
 22.|-- 218.241.244.18                                                          0.0%    10  126.3 126.8 126.2 131.1   1.5
 23.|-- ???                                                                    100.0    10    0.0   0.0   0.0   0.0   0.0

                  
Host 7.14.205.111.in-addr.arpa. not found: 3(NXDOMAIN)