Steve mushero china netcloud sz arch event 20120805.1

545 views

Published on

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
545
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
9
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Steve mushero china netcloud sz arch event 20120805.1

  1. 1. 感谢您参加本次Ar h u c S mmi全球架构师峰会! t大会官方网站与资料下载地址:www. c um m i . om ar hs tc
  2. 2. Running the World’s Internet ServersDealing with ChineseNetwork AnatomyAbout ArchitectureBy Steve Mushero 1 Server Management  Cloud computing  Consulting Copyright © 2012 ChinaNetCloud
  3. 3. Overview  Talk about Chinese Internet Structure  Chinese Internet Problems & Issues  Strategies & Solutions  Advice 2ChinaNetCloud Running the World’s Internet Servers www.ChinaNetCloud.com
  4. 4. About Steve  Founder, CEO & CTO of ChinaNetCloud  Before that, CTO of Tudou ( 土豆网 )  Seven years in China  From Silicon Valley, Seattle, New York  20+ years experience as CTO  Experience in dev & ops 3ChinaNetCloud Running the World’s Internet Servers www.ChinaNetCloud.com
  5. 5. About ChinaNetCloud Founded in Shanghai in 2008 by Silicon Valley Technology Guys Vision: Run All the Worlds Internet Servers We manage servers & systems for Chinese Internet & Game Companies Thousands of Servers - Hundreds of Customers Weve seen every type & size system 4ChinaNetCloud Running the World’s Internet Servers www.ChinaNetCloud.com
  6. 6. China Overview  China is Worlds largest Internet  But Infrastructure has unique characteristics  Difficult for world-class performance / user experiences  Especially modern apps: – Mobile apps, ads, & e-commerce  End-user speed linked to success & profits 5ChinaNetCloud Running the World’s Internet Servers www.ChinaNetCloud.com
  7. 7. China Internet Basics Worlds largest – 500M users Very advanced / fast – 1-2-3 Mbps at home – 5-10-20 Mbps at work – 1-10-50 Gbps at IDC But slow – Congestion – Regionality 6 6 Running the World’s Internet Servers www.ChinaNetCloud.com
  8. 8. Monopoly ISPs China Telecom – South 21• China NetCom – North 10• China Mobile - GPRS• China UniCom – iPhone• CERNET - Students• Several more like Railcom• Unicom bought Netcom• Mobile bought Railcom• Telecom bought Unicom CDMA 7 7 Running the World’s Internet Servers www.ChinaNetCloud.com
  9. 9. Internet Challenges  Poor interconnections  Overloaded links  Heavy-bandwidth uses  Within Region  Between Regions  Internationally 8ChinaNetCloud Running the World’s Internet Servers www.ChinaNetCloud.com
  10. 10. Internet ISP Basics Each ISP is REGIONAL Actually one per province And one per large city And Mobile is separateSo not one company Ex: Telecom is 31 companies They dont cooperate well 9 9 Running the World’s Internet Servers www.ChinaNetCloud.com
  11. 11. Bottlenecks Within & Between Regions Heavy traffic – P2P sharing – Video (Tudou, etc.) – Games, Music, etc. Mobile speed limited – They have to buy bandwidth Can use Mobile IDC, but . . . – Terrible service 10 10 Running the World’s Internet Servers www.ChinaNetCloud.com
  12. 12. Bottlenecks ISPs dont care as no effect on revenue – Challenges of limited competition Even worse as they use proxies, back channels Especially in smaller provinces And CERNET for students • Proxies in closets 11 11 Running the World’s Internet Servers www.ChinaNetCloud.com
  13. 13. Internet Challenges - Routing  BGP not common – Requires cooperation – Back to 1990s methods  Multi-line common – Multi-IP per server – Routing nightmare  BGP increasingly used – Especially for mobile – Expensive, only high-end 12ChinaNetCloud Running the World’s Internet Servers www.ChinaNetCloud.com
  14. 14. International Links Only a few links, bottlenecks Great Firewall of Fun Often unstable / highly variable – Good one day – Then bad for an hour, day, week Cannot depend on them HK best, Japan next, beyond . . . 13 13 Running the World’s Internet Servers www.ChinaNetCloud.com
  15. 15. Internet Challenges - Students  Universities have separate network  CERNET  Hard to get to (expensive)  Often use async routing to save money  But useful for brands, games, etc. – Use BGP / CDN 14ChinaNetCloud Running the World’s Internet Servers www.ChinaNetCloud.com
  16. 16. Internet Challenges - Mobile  Three carriers – Separate from land lines  Traditionally used Mobile IDC – Poor service  But also 50%+ on Wifi – Makes good routing & IDC hard  Moving to 3-line BGP 15ChinaNetCloud Running the World’s Internet Servers www.ChinaNetCloud.com
  17. 17. Industry Specific Issues  E-Commerce – Response time – Reliability  Advertising – Performance  Gaming – Response time – Multi-user zoning – Big Downloads 16ChinaNetCloud Running the World’s Internet Servers www.ChinaNetCloud.com
  18. 18. BGP  Increasingly important  2, 3, 8 line – Very, very few 8 line  Usually best, BUT . . .  Expensive  Not always good – Poor links to other ISP – Strict bandwidth limits  Not always real – NAT, other methods 17ChinaNetCloud Running the World’s Internet Servers www.ChinaNetCloud.com
  19. 19. IDC Data Centers  Increasingly important – Mobile and $$ driving  Highly variable bandwidth – Understand bandwidth – When 100M is NOT !  Expansion a big problem  Service a big problem  Get what you pay for 18ChinaNetCloud Running the World’s Internet Servers www.ChinaNetCloud.com
  20. 20. Strategies Overview  Good Location  Good Bandwidth  Good Design  CDN  Monitor  Advanced options 19ChinaNetCloud Running the World’s Internet Servers www.ChinaNetCloud.com
  21. 21. Locations  Single vs. Multi-location  Multi-location very difficult – Very rare in China – Games or HA failover  Best to choose 1 good location – Grow and use 2nd for HA  CHOOSE WELL 20ChinaNetCloud Running the World’s Internet Servers www.ChinaNetCloud.com
  22. 22. Locations  Best you can afford  Ask about service  Ask about expansion  Think about mobile  Avoid 3rd tier cities rd  Avoid 3 tier IDCs  Avoid 2nd tier if you have $$  Think about clouds . . . 21ChinaNetCloud Running the World’s Internet Servers www.ChinaNetCloud.com
  23. 23. Choosing IDCs  Get the best you can afford  Be careful, hard to change later  Connectivity First – Including DDoS, ARP, Net  Service Second, important – 24x7 Access – Remote Hands  ChinaNetCenter, 21ViaNet, SRT 22ChinaNetCloud Running the World’s Internet Servers www.ChinaNetCloud.com
  24. 24. Connectivity & Bandwidth  Get the best you can afford  Think about users location  Single vs. 2 vs. 3 vs. 8 line  Direct vs. BGP  For mobile, remember Wifi  Buy the Best & CDN the Rest 23ChinaNetCloud Running the World’s Internet Servers www.ChinaNetCloud.com
  25. 25. Performance  Think small & fast  Images, HTML, CSS, JS  Follow all best practices – YSlow, etc. – Test & Analyze  Use AJAX if possible  Other push, XMPP, node.js  CDN as much as you can 24ChinaNetCloud Running the World’s Internet Servers www.ChinaNetCloud.com
  26. 26. AJAX & Caching  A secret to perceived speed  Use statics as much as you can – Long statics & rename  Use semi-statics – Cache 1, 5, 60 minutes  Carefully consider other objects 25ChinaNetCloud Running the World’s Internet Servers www.ChinaNetCloud.com
  27. 27. Push & Async  Latest trend to perceived speed  XMPP – Via OpenFire – Messages, stats, updates  Node.js  Careful how you scale – 250,000 per server ?  Careful of bad connections – Re-connect, lazy connect 26ChinaNetCloud Running the World’s Internet Servers www.ChinaNetCloud.com
  28. 28. Best practices via YSlow  Study Yahoo, Google & others  Run YSlow & other tools  Also GT Metrix 27ChinaNetCloud Running the World’s Internet Servers www.ChinaNetCloud.com
  29. 29. Leveraging CDNs  Another secret to perceived speed  Also reduces expensive IDC bandwidth  Careful of version, expiration, names  WSA, too – Whole Site Acceleration  ChinaNetCenter, FastWeb, ChinaCache  Clouds have CDN, too – AliYun, Amazon  Use a CDN, Always ! 28ChinaNetCloud Running the World’s Internet Servers www.ChinaNetCloud.com
  30. 30. Monitoring  Several good monitoring services  From backbone or end user – All around China – Check each ISP – Check each CDN  But Expensive !  Network Bench, Gomez, Jiankongbao 29ChinaNetCloud Running the World’s Internet Servers www.ChinaNetCloud.com
  31. 31. Using Clouds  Very flexible  Understand limits – 100 Questions / Issues  Good International - AWS  Still limited in PRC – But Improving – Good Bandwidth, CDN – Aliyun working hard to be AWS – A few smaller – 21ViaNet Shanghai 30ChinaNetCloud Running the World’s Internet Servers www.ChinaNetCloud.com
  32. 32. Cross-Border International  Same but Different  Consider cross-region – PRC only – Foreign only (where?) – Both • Separate – Any Sync ? • Integrated – Rackspace HK  Use cloud – Amazon 31ChinaNetCloud Running the World’s Internet Servers www.ChinaNetCloud.com
  33. 33. Summary  Chinese Internet Big  But difficult  Choose location & IDC carefully  Design your app well  Use CDN  Monitor  Be fast . . . users be happy . . . 32ChinaNetCloud Running the World’s Internet Servers www.ChinaNetCloud.com
  34. 34. Questions 33ChinaNetCloud Running the World’s Internet Servers www.ChinaNetCloud.com
  35. 35. 杭州站·2012年 10月 25日 ~27日大会官网:www.c n a g h uc m q o h n z o .o

×