新浪网易百度等各大门户网站的CDN架构设计分析

1、 新浪

新浪采用了ChinaCache做的CDN系统,ChinaCache在全国分布了四十多个 点,同时采用基于动态DNS分配的全球服务器负载均衡技术。

从新浪的站点结构可 以看出:

www.sina.com.cn

Server: UnKnown

Address: 192.168.1.254

Non-authoritative answer:

Name: libra.sina.com.cn

Addresses: 61.135.152.71, 61.135.152.72, 61.135.152.73, 61.135.152.74 61.135.152.75, 61.135.152.76, 61.135.153.181, 61.135.153.182, 61.135.53.183, 61.135.153.184, 61.135.152.65, 61.135.152.66, 61.135.152.67, 61.135.12.68, 61.135.152.69, 61.135.152.70

Aliases: www.sina.com.cn, jupiter.sina.com.cn

在北京地区ChinaCache将www.sina.com.cn的网址解析到libra.sina.com.cn,然后 libra.sina.com.cn做了DNS负载均衡,将libra.sina.com.cn解析到61.135.152.71等16个ip上,这16 个ip分布在北京的多台前台缓存服务器上,使用squid做前台缓存。如果是在其它地区访问www.sina.com.cn可能解析到本地相应的服务器,例如 pavo.sina.com.cn,然后pavo又对应了很多做了squid的ip。这样就实现了在不同地区访问自动转到最近的服务器访问,达到加快访问 速度的效果。

我们再看一个新浪其它频道是指到哪里的:

> news.sina.com.cn

Server: UnKnown

Address: 192.168.1.254

Non-authoritative answer:

Name: libra.sina.com.cn

Addresses: 61.135.152.65, 61.135.152.66, 61.135.152.67, 61.135.152.68 61.135.152.69, 61.135.152.70, 61.135.152.71, 61.135.152.72, 61.135.152.73 61.135.153.178, 61.135.153.179, 61.135.153.180, 61.135.153.181, 61.135.153.182 61.135.153.183, 61.135.153.184

Aliases: news.sina.com.cn, jupiter.sina.com.cn

可以看出,各个频道的前台缓存集群与www.sina.com.cn的 前台缓存集群是相同的。

2、网易

网易似乎没用ChinaCache的服务,下面是nslookup结果:

www.163.com

Server: UnKnown

Address: 192.168.1.254

Non-authoritative answer:

Name: www.163.com

Addresses: 202.106.168.103, 202.106.168.104, 202.106.168.109, 202.106.168.121 202.108.36.153, 202.108.36.155, 202.108.36.156, 202.108.36.167, 202.108.36.172 202.108.36.196

直接在www.163.com 这个域名上做了DNS负载均衡。这样的话就要求服务器必须放的非常靠 近主节点,才能保证各地的用户访问的速度。

但163不同的频道是放在不同的缓存 集群上的,这与sina,sohu有些不同,等于sina,sohu是按照地区划分服务器集群,而网易按照频道划分服务器集群。

> 163.com

Server: UnKnown

Address: 192.168.1.254

Non-authoritative answer:

Name: 163.com

Addresses: 202.108.36.205, 202.108.36.206, 202.108.36.207, 202.108.36.201 202.108.36.202, 202.108.36.203, 202.108.36.204

显然,这和www.163.com不是一个集群,我们再来试一个:

> sports.163.com

Server: UnKnown

Address: 192.168.1.254

Non-authoritative answer:

Name: channel.cache.163.com

Addresses: 202.108.36.136, 202.108.36.208, 202.108.36.209, 202.108.36.210 202.108.36.211, 202.108.36.212, 202.108.36.213

Aliases: sports.163.com

可以看出,和上面的集群也是不同的。

3、搜狐

Sohu与新浪的原理差不多,下面是 nslookup的结果:

www.sohu.com

Server: UnKnown

Address: 192.168.1.254

Non-authoritative answer:

Name: pagegrp1.sohu.com

Addresses: 61.135.132.172, 61.135.132.173, 61.135.132.176, 61.135.133.109 61.135.145.47, 61.135.150.65, 61.135.150.67, 61.135.150.69, 61.135.150.74 61.135.150.75, 61.135.150.113, 61.135.150.145, 61.135.131.73, 61.135.131.91 61.135.131.180, 61.135.131.182, 61.135.131.183, 61.135.132.65, 61.135.

132.80

Aliases: www.sohu.com

只不过libra.sina.com.cn换成了pagegrp1.sohu.com

我们再来看一下sohu的频道:

> news.sohu.com

Server: UnKnown

Address: 192.168.1.254

Non-authoritative answer:

Name: pagegrp1.sohu.com

Addresses: 61.135.145.47, 61.135.150.65, 61.135.150.67, 61.135.150.69 61.135.150.74, 61.135.150.75, 61.135.150.113, 61.135.150.145, 61.135.131.73 61.135.131.91, 61.135.131.180, 61.135.131.182, 61.135.131.183, 61.135.132.65 61.135.132.80, 61.135.132.172, 61.135.132.173, 61.135.132.176, 61.135.133.109

Aliases: news.sohu.com

同新浪相同, 用的是同样的服务器群,这可能是因为他们用的都是ChinaCache的服务吧,不过sohu的名字起的有点土,pagegrp1,没有 libra,pavo好听,这名字听起来有点像法语,比较浪漫。

4、百度

百度的前台服务器就不是很多了:

www.baidu.com

Server: UnKnown

Address: 192.168.1.254

Non-authoritative answer:

Name: www.baidu.com

Addresses: 202.108.250.249, 202.108.249.134

> baidu.com

Server: UnKnown

Address: 192.168.1.254

Non-authoritative answer:

Name: baidu.com

Address: 202.108.250.228

> mp3.baidu.com

Server: UnKnown

Address: 192.168.1.254

Non-authoritative answer:

Name: mp3.baidu.com

Address: 202.108.249.131

只有www.baidu.com做了两台服务器的集群,频道都用了一台服务器做前台

通过前面的分析我们可以得到一个结论:sina和sohu使用了CDN与GSBL与DNS负载均衡技术,每个地区一组前台服务器群,网易,百度使用了 DNS负载均衡技术,每个频道一组前台服务器,一搜使用了DNS负载技术,所有频道共用一组前台服务器集群。

31 thoughts on “新浪网易百度等各大门户网站的CDN架构设计分析

  1. Pingback: router login

  2. Pingback: weight loss in a month

  3. Pingback: forum

  4. Pingback: kompasqq

  5. Pingback: tailgating games

  6. Pingback: แต่งงาน

  7. Pingback: i99casino

  8. Pingback: protractor floor sticker

  9. Pingback: cornhole boards

  10. Pingback: www.meja3651.site

  11. Pingback: Catering Equipment

  12. Pingback: w88

  13. Pingback: جلب الحبيب

  14. Pingback: Furnace Repairs Shorty's Plumbing & Heating

  15. Pingback: porn

  16. Pingback: Ignou reports

  17. Pingback: 바카라

  18. Pingback: kiu

  19. Pingback: 안전놀이터

  20. Pingback: oral testosterone steroids for sale

  21. Pingback: How to lose weight

  22. Pingback: best online pharmacy

  23. Pingback: 출장안마

  24. Pingback: Grayson

  25. Pingback: Marc Menowitz CEO Apartment Corp

  26. Pingback: keluaran sgp hari ini

  27. Pingback: home work

  28. Pingback: danh lo de

  29. Pingback: cheap women wigs

  30. Pingback: Pick and mix sweets

  31. Pingback: evolution brokers review

Comments are closed.