Archive for November, 2011
网站大提速:CloudFlare 免费 CDN 缓存加速服务
在好友 bisn 的分享下,试了下 cloudflare.com 的免费 CDN 加速技术,貌似自然醒博客访问速度真的变快了。很简单,注册之后,共4步骤,它会自动分析你的 DNS 及线路节点,最后只要修改你的 DNS 为 它的 dns 就 OK。这里就不赘述了。cloudflare 主要缓存 css,js,jpg等静态文件,具体文件后缀列表见文末。
下面是设置前后,ping 及 tracert 测试:
Microsoft Windows XP [版本 5.1.2600]
(C) 版权所有 1985-2001 Microsoft Corp.
C:\Documents and Settings\Administrator>ping www.dreamfreeblog.com
Pinging dreamfreeblog.com [67.228.229.187] with 32 bytes of data:
Reply from 67.228.229.187: bytes=32 time=436ms TTL=40
Reply from 67.228.229.187: bytes=32 time=431ms TTL=40
Reply from 67.228.229.187: bytes=32 time=433ms TTL=40
Reply from 67.228.229.187: bytes=32 time=442ms TTL=40
Ping statistics for 67.228.229.187:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 431ms, Maximum = 442ms, Average = 435ms
C:\Documents and Settings\Administrator>ping www.dreamfreeblog.com
Pinging dreamfreeblog.com [67.228.229.187] with 32 bytes of data:
Reply from 67.228.229.187: bytes=32 time=414ms TTL=40
Reply from 67.228.229.187: bytes=32 time=435ms TTL=40
Reply from 67.228.229.187: bytes=32 time=433ms TTL=40
Reply from 67.228.229.187: bytes=32 time=420ms TTL=40
Ping statistics for 67.228.229.187:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 414ms, Maximum = 435ms, Average = 425ms
C:\Documents and Settings\Administrator>ping www.dreamfreeblog.com
Pinging dreamfreeblog.com [67.228.229.187] with 32 bytes of data:
Reply from 67.228.229.187: bytes=32 time=431ms TTL=40
Reply from 67.228.229.187: bytes=32 time=430ms TTL=40
Reply from 67.228.229.187: bytes=32 time=422ms TTL=40
Reply from 67.228.229.187: bytes=32 time=433ms TTL=40
Ping statistics for 67.228.229.187:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 422ms, Maximum = 433ms, Average = 429ms
C:\Documents and Settings\Administrator>tracert www.dreamfreeblog.com
Tracing route to dreamfreeblog.com [67.228.229.187]
over a maximum of 30 hops:
1 1 ms <1 ms <1 ms 219.228.116.254
2 <1 ms <1 ms <1 ms 10.19.59.253
3 <1 ms <1 ms <1 ms 10.3.2.41
4 <1 ms <1 ms <1 ms 10.3.0.10
5 1 ms 1 ms 1 ms 10.3.0.50
6 1 ms 1 ms 1 ms 202.120.201.198
7 1 ms 1 ms 1 ms 202.112.6.89
8 2 ms * 1 ms sh0.cernet.net [202.112.53.89]
9 7 ms 10 ms 7 ms 202.112.36.253
10 29 ms 46 ms 30 ms bj-11-p11-1.cernet.net [202.112.46.5]
11 29 ms * 29 ms 202.112.61.158
12 29 ms 29 ms * 202.112.61.122
13 234 ms 304 ms 228 ms so-0-0-2-0.gw4.hkg3.asianetcom.net [202.147.17.1
3]
14 258 ms 246 ms 242 ms ge-2-0-0-0.cr4.hkg3.asianetcom.net [203.192.134.
69]
15 * 229 ms 225 ms te0-2-2-0.wr1.hkg0.asianetcom.net [61.14.157.141
]
16 276 ms 282 ms 284 ms te0-2-0-0.wr1.osa0.asianetcom.net [61.14.157.70]
17 399 ms 394 ms * gi6-0-0.gw1.sjc1.asianetcom.net [61.14.157.98]
18 413 ms 415 ms 415 ms te1-7.bbr01.eq01.sjc01.networklayer.com [206.223
.116.176]
19 415 ms 410 ms 401 ms ae0.bbr02.wb01.sea02.networklayer.com [173.192.1
8.146]
20 416 ms 422 ms 428 ms ae1.dar01.sr01.sea01.networklayer.com [173.192.1
8.143]
21 418 ms 414 ms * po1.fcr01.sr01.sea01.networklayer.com [67.228.11
8.134]
22 428 ms 429 ms 414 ms 67.228.229.187-static.reverse.softlayer.com [67.
228.229.187]
Trace complete.
C:\Documents and Settings\Administrator>ping www.dreamfreeblog.com
Pinging dreamfreeblog.com [67.228.229.187] with 32 bytes of data:
Request timed out.
Reply from 67.228.229.187: bytes=32 time=427ms TTL=40
Reply from 67.228.229.187: bytes=32 time=436ms TTL=40
Reply from 67.228.229.187: bytes=32 time=426ms TTL=40
Ping statistics for 67.228.229.187:
Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),
Approximate round trip times in milli-seconds:
Minimum = 426ms, Maximum = 436ms, Average = 429ms
C:\Documents and Settings\Administrator>ping www.dreamfreeblog.com
Pinging dreamfreeblog.com [67.228.229.187] with 32 bytes of data:
Reply from 67.228.229.187: bytes=32 time=427ms TTL=40
Reply from 67.228.229.187: bytes=32 time=411ms TTL=40
Reply from 67.228.229.187: bytes=32 time=432ms TTL=40
Reply from 67.228.229.187: bytes=32 time=433ms TTL=40
Ping statistics for 67.228.229.187:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 411ms, Maximum = 433ms, Average = 425ms
cloudflare cdn 加速之后,3次 ping 平均响应时间只要 200 左右了
C:\Documents and Settings\Administrator>ping www.dreamfreeblog.com
Pinging dreamfreeblog.com [173.245.61.114] with 32 bytes of data:
Reply from 173.245.61.114: bytes=32 time=223ms TTL=48
Reply from 173.245.61.114: bytes=32 time=218ms TTL=48
Reply from 173.245.61.114: bytes=32 time=244ms TTL=48
Reply from 173.245.61.114: bytes=32 time=228ms TTL=48
Ping statistics for 173.245.61.114:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 218ms, Maximum = 244ms, Average = 228ms
C:\Documents and Settings\Administrator>ping www.dreamfreeblog.com
Pinging dreamfreeblog.com [199.27.135.40] with 32 bytes of data:
Reply from 199.27.135.40: bytes=32 time=179ms TTL=47
Reply from 199.27.135.40: bytes=32 time=178ms TTL=47
Reply from 199.27.135.40: bytes=32 time=183ms TTL=47
Reply from 199.27.135.40: bytes=32 time=177ms TTL=47
Ping statistics for 199.27.135.40:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 177ms, Maximum = 183ms, Average = 179ms
C:\Documents and Settings\Administrator>ping www.dreamfreeblog.com
Pinging dreamfreeblog.com [199.27.135.40] with 32 bytes of data:
Reply from 199.27.135.40: bytes=32 time=196ms TTL=47
Reply from 199.27.135.40: bytes=32 time=215ms TTL=47
Reply from 199.27.135.40: bytes=32 time=198ms TTL=47
Reply from 199.27.135.40: bytes=32 time=187ms TTL=47
Ping statistics for 199.27.135.40:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 187ms, Maximum = 215ms, Average = 199ms
tracert 之后可以看到,到 hkg4.asianetcom.net 之后,直接 cloudflare 了
C:\Documents and Settings\Administrator>tracert www.dreamfreeblog.com
Tracing route to dreamfreeblog.com [199.27.135.40]
over a maximum of 30 hops:
1 1 ms 1 ms <1 ms 219.228.116.254
2 <1 ms <1 ms <1 ms 10.19.59.253
3 <1 ms <1 ms <1 ms 10.3.2.41
4 <1 ms <1 ms <1 ms 10.3.0.10
5 <1 ms <1 ms <1 ms 10.3.0.50
6 3 ms 1 ms 1 ms 202.120.201.198
7 2 ms 1 ms 1 ms 202.112.6.89
8 15 ms 1 ms 1 ms 202.112.53.137
9 7 ms 7 ms 10 ms 202.112.36.37
10 24 ms 24 ms 24 ms 202.112.62.57
11 29 ms 29 ms 29 ms 202.112.61.158
12 29 ms 29 ms 29 ms 202.112.61.14
13 159 ms 158 ms 157 ms so-0-0-2-0.gw4.hkg3.asianetcom.net [202.147.17.1
3]
14 * 152 ms 155 ms gi3-0-0.cr3.hkg3.asianetcom.net [203.192.134.65]
15 168 ms 170 ms 174 ms te2-2.gw1.hkg4.asianetcom.net [202.147.16.202]
16 164 ms 163 ms 177 ms CDF-0002.gw1.hkg4.asianetcom.net [202.147.17.182
]
17 178 ms 173 ms 172 ms cf-199-27-135-40.cloudflare.com [199.27.135.40]
Trace complete.
cloudflare 主要缓存下列静态文件:
css
js
jpg
jpeg
gif
ico
png
bmp
pict
csv
doc
pdf
pls
ppt
tif
tiff
eps
swf
midi
mid
ttf
eot
woff
svg
svgz
webp
