How to Train Your (Web) Dragon



Similar documents
How To Understand The Power Of A Content Delivery Network (Cdn)

Getting Started with AWS. Static Website Hosting

Measuring the Web: Part I - - Content Delivery Networks. Prof. Anja Feldmann, Ph.D. Dr. Ramin Khalili Georgios Smaragdakis, PhD

Getting Started with AWS. Hosting a Static Website

Accelerating Wordpress for Pagerank and Profit

The Value of Content Distribution Networks Mike Axelrod, Google Google Public

Cache All The Things

The Opportunity for White-labeled IPTV & OTT TV for MNOs, MSOs and ISPs. Date: 19 January 2014

Web Caching and CDNs. Aditya Akella

HOW IS WEB APPLICATION DEVELOPMENT AND DELIVERY CHANGING?

Distributed Systems. 25. Content Delivery Networks (CDN) 2014 Paul Krzyzanowski. Rutgers University. Fall 2014

Request Routing, Load-Balancing and Fault- Tolerance Solution - MediaDNS

Distributed Systems. 23. Content Delivery Networks (CDN) Paul Krzyzanowski. Rutgers University. Fall 2015

CloudOYE CDN USER MANUAL

Measuring CDN Performance. Hooman Beheshti, VP Technology

idatafax Troubleshooting

CONTENT DELIVERY WHITE PAPER proinity GmbH 1

GLOBAL SERVER LOAD BALANCING WITH SERVERIRON

Getting Started with AWS. Hosting a Static Website

Web Performance. Sergey Chernyshev. March '09 New York Web Standards Meetup. New York, NY. March 19 th, 2009

Chapter 7 Troubleshooting

Gomez Web Performance Management OPTIMIZE YOUR WEB APPLICATION AVAILABILITY, PERFORMANCE AND EXPERIENCE FROM BROWSER TO DATA CENTER

AKAMAI WHITE PAPER. Delivering Dynamic Web Content in Cloud Computing Applications: HTTP resource download performance modelling

DEPLOYMENT GUIDE Version 1.0. Deploying the BIG-IP Edge Gateway for Layered Security and Acceleration Services

WompMobile Technical FAQ

Dynamic Content Acceleration: Lightning-Fast Web Apps with Amazon CloudFront and Amazon Route 53

BUSINESS IMPACT OF POOR WEB PERFORMANCE

THE MASTER LIST OF DNS TERMINOLOGY. v 2.0

CDN and Traffic-structure

HTG XROADS NETWORKS. Network Appliance How To Guide: EdgeDNS. How To Guide

Internet Load Balancing Guide. Peplink Balance Series. Peplink Balance. Internet Load Balancing Solution Guide

THE MASTER LIST OF DNS TERMINOLOGY. First Edition

DOSarrest External MULTI-SENSOR ARRAY FOR ANALYSIS OF YOUR CDN'S PERFORMANCE IMMEDIATE DETECTION AND REPORTING OF OUTAGES AND / OR ISSUES

How To Connect To Bloomerg.Com With A Network Card From A Powerline To A Powerpoint Terminal On A Microsoft Powerbook (Powerline) On A Blackberry Or Ipnet (Powerbook) On An Ipnet Box On

Mobile Application Performance Report

Testing & Assuring Mobile End User Experience Before Production. Neotys

Pacnet MPLS-Based IP VPN Keeping pace with your growth

Connect Intelligence. Performance intelligence for your application delivery chain. BT Connect Networks that think

Content Distribu-on Networks (CDNs)

Chapter 6 Virtual Private Networking Using SSL Connections

Distributed Systems 19. Content Delivery Networks (CDN) Paul Krzyzanowski

Azure Media Service Cloud Video Delivery KILROY HUGHES MICROSOFT AZURE MEDIA

Global Server Load Balancing

Pacnet Premium Dedicated Internet Access Dedicated Internet Access for Web-Centric Enterprises

The Anatomy of Web Censorship in Pakistan

Troubleshooting BlackBerry Enterprise Service 10 version Instructor Manual

The old Internet. Software in the Network: Outline. Traditional Design. 1) Basic Caching. The Arrival of Software (in the network)

Creating "Origin Pull" on Akamai (1)

How the Netflix ISP Speed Index Documents Netflix Congestion Problems

DATA COMMUNICATOIN NETWORKING

Implementing Reverse Proxy Using Squid. Prepared By Visolve Squid Team

From Internet Data Centers to Data Centers in the Cloud

Smart Tips. Enabling WAN Load Balancing. Key Features. Network Diagram. Overview. Featured Products. WAN Failover. Enabling WAN Load Balancing Page 1

How To Guide Edge Network Appliance How To Guide:

Chapter 10 Troubleshooting

Distributed Systems. 24. Content Delivery Networks (CDN) 2013 Paul Krzyzanowski. Rutgers University. Fall 2013

Microsoft Dynamics CRM 2015 with NetScaler for Global Server Load Balancing

Chapter 2 Connecting the FVX538 to the Internet

User Manual. Page 2 of 38

HTTP. Internet Engineering. Fall Bahador Bakhshi CE & IT Department, Amirkabir University of Technology

Savvius Insight Initial Configuration

TCP/IP Networking An Example

FortiBalancer: Global Server Load Balancing WHITE PAPER

Carrier Grade NAT. Requirements and Challenges in the Real World. Amir Tabdili Cypress Consulting

SSL-VPN 200 Getting Started Guide

White Paper. McAfee Multi-Link. Always-on connectivity with significant savings

WAN Traffic Management with PowerLink Pro100

Q: What is the difference between the other load testing tools which enables the wan emulation, location based load testing and Gomez load testing?

Performance Report for: Report generated: Friday, April 24, 2015, 7:29 AM (via API)

Analysing the impact of CDN based service delivery on traffic engineering

Configuring Citrix NetScaler for IBM WebSphere Application Services

Multi-Homing Gateway. User s Manual

Quick Guide of DDNS Settings

Chapter 15: Advanced Networks

Coyote Point Systems White Paper

Source-Connect Network Configuration Last updated May 2009

Pass Through Proxy. How-to. Overview:..1 Why PTP?...1

The secret life of a DNS query. Igor Sviridov <sia@nest.org>

Combining Global Load Balancing and Geo-location with Emissary TM

Break Internet Bandwidth Limits Higher Speed. Extreme Reliability. Reduced Cost.

Glossary of Technical Terms Related to IPv6

Multi-Homing Security Gateway

Web Application Hosting Cloud Architecture

Service: Cloud Web Filtering and Malware Protection Aruba Instant Integration + Certified for Interop on Campus and RAP

Akamai CDN, IPv6 and DNS security. Christian Kaufmann Akamai Technologies DENOG 5 14 th November 2013

DNS, CDNs Weds March Lecture 13. What is the relationship between a domain name (e.g., youtube.com) and an IP address?

Barracuda Load Balancer Online Demo Guide

Intelligent Content Delivery Network (CDN) The New Generation of High-Quality Network

FACT SHEET INTERNATIONAL DATA SERVICES GLOBAL IP VPN

The Internet and Network Technologies

Trends in Global Capacity Availability and Trading. Bruce Girdlestone VP Network Trading Band-X

Cisco Videoscape Distribution Suite Service Broker

Web Analytics in China

Deliuery Networks. A Practical Guide to Content. Gilbert Held. Second Edition. CRC Press. Taylor & Francis Group

Transcription:

How to Train Your (Web) Dragon Optimize your China website in 45 minutes Steven Ryder [CDN Engineering. North America] www.chinacache.com

Observe, Identify, Focus, Design, Optimize. FLY

Dragon 1.0 Dragon 2.0

Web Dragon x3.0 Different Internet Service Providers China Network = Mainland China Hong Kong & Taiwan are treated separately Different Languages: Taiwan = Traditional Chinese Hong Kong = Cantonese Mainland China = Simplified Chinese Different Fixed & Mobile Networks.HK.TW.CN One Country. Three TLDs.

English Folklore Chinese Folklore 2012, Jan 23 -> Feb 9, 2013 Boundary dragons

China Internet Folklore In the beginning China Telecom (CT) created the Internet (for Mainland Chinese) ISPs Networks Today 200+ Branded ISPs / Resellers 16 Infrastructure providers 2x Main carriers: = 95% of both Fixed & Mobile Services And then China Telecom (CT) fixed line divided into: -China Telecom (CT) (Southern provinces) -China Netcom (CNC) (Northern provinces) China Mobile formed separately by China Telecom China Unicom (CU) formed by MIIT -to compete with China Mobile China Netcom and China Unicom merged -becoming China Unicom (CU) Today Three significant carriers all competing with each other over territory nationally. - China Telecom (CT) - China Unicom (CU) - China Mobile China Telecom (CT): Coverage = 63.66% of China Government owned Handles the middle and south of Mainland China Continues to expand into CU territory China Unicom (CU): Coverage = 31.66% of China Government owned Handles northern Mainland China Continuing to expand into more of CT territory Smaller / Regional ISPs China Mobile China s main mobile carrier with the 3 rd largest IP network. Introduced 2G to China, and leading China s mobile industry growth Tietong / China Railway Network Built with the railways expansion all over China Strong backbone with focus on national fibre infrastructure CERNet: / China Education & Research Network Focused around education industry (University & Research Organizations) within China Not directly connected to the Public Internet. CERNet->Public Web is limited. Connects all major universities of China together. Different from other carriers of China, & entirely separate from CT and CU

Local Broadband Intl. Landing Points Overall Average Still common < 1.0 Mbps ~512 Kbps International Data Gateways into China Beijing Shanghai Qingdao Guangzhou Major cities and province (Averages) - Shanghai: 4.82Mbps - Beijing: 3.46Mbps - Anhui: 3.11Mbps - Hubei: 2.98Mbps - Hainai: 2.84Mbps - Zhejiang: 2.69Mbps - Guangdong: 2.69Mbps

Mapping Geography

Volcanic Geography 1,500 active volcanos globally 90% located in the Ring of Fire

Cabling Geography Taiwan 2006 undersea quake: Dec 26 Damage: only 2 cables! People impacted: millions Affected: International connectivity Impacted Countries: CHINA, Japan and SEA Affected ISPs: China Telecom, China Unicom PCCW, NTT, KT, etc..

National History Museum Backbone Case Study http://www.nhm.ac.uk/visit-us/index.html London (ONLY) Hosted. No CDN. No Geo-Hosting. CNAME tarantula.nhm.ac.uk = 157.140.2.10 Service requires 48 Successful Requests - 1x sub-domain (www.) only - 1x Index.html home page - 4x HTML includes - 3x Javascripts includes - 8x CSS includes - 32x Images

Registry (DNS, IPv4/v6, Whois) Authorities CNNIC (China Network Information Center) Provide to Carriers & Companies in large address blocks Carrier assigns IP blocks at province level internally Carrier manages routing policies APNIC (Asia Pacific Network Information Center) Same as CNNIC for the Asia Region

ICP (Internet Content Provider) License Purpose: Permit China based websites to operate within China Issued by MIIT (Ministry of Industry & Information Technology) Required for all locally hosted sites / those using local acceleration (eg: CDN) Joint Ventures are often formed to facilitate an ICP with a local Chinese partner ICP comes in 2x types: Informational (relatively easy to obtain) Operational (Requires Chinese partner / Local Registration / etc..) Obtaining an ICP for your website inside China Identify domains (registration is done by zone, not sub-domain) Talk to a Local China Expert (eg: ChinaCache) & confirm your ICP requirements Submit your application with the assistance of an in country licensed provider Confirm your ICP # from the official Gov.cn site: http://www.miibeian.gov.cn/publish/query/indexfirst.action Publish ICP # in footer of all service pages

GFW (Great Firewall of China) Covers all external (globally facing) major Internet gateways/routers Recently also introduced at the province level (internal traffic) Local Data Centre may not allow (or take down) content without ICP # (limit potential liability) Notification of content issues provided to China based hosting provider (only). Site owner not directly informed Blocking rules have fluctuating behavior Filtering known to be more strict during significant dates Typical user experience: TCP Reset or Network Timeout Content to avoid to prevent being blocked Regular suspects Sensitive characters Linking / including content to/from blocked sites: YouTube videos Facebook Like Buttons

Web Service Site Types Informational Interactive Services E-Commerce Media Gaming Maps Mobile Services Generally more dynamic Accurate GSLB location important for customization Every Service. Every Domain. All Existing Assumptions. Measure again within China.

Measurement, Reliability, and Network Status Tools Network performance measurement platform tools: China Backbone, Last Mile, & Instant Testing Backbone vs Last Mile Data Usage: Server reliability vs ISP View. Backbone unrealistically fast. Compuware / Gomez: (www.compuware.com) Last Mile Batch Test provider (same Last Mile @same time URL comparison capability) NetworkBench (www.networkbench.com/en/) More Local Agents / More choices / Rich Reporting & Analysis. CCINDEX (developed by ChinaCache): 3 rd most popular measurement platform in China Keynote: China Backbone Browser Analysis Tools HTTPWatch, Fiddler, YSlow, etc.. / Object waterfall charting DNS Lookup Tools: DIG, NSLOOKUP IP Query Tools: PING / TRACEROUTE (Mac), TRACERT/PATHPING (Win), TRACEPATH/MTR (Unix) Expanded Manual Testing Browser (unexpected versions), Eg: 26% = Qihoo 360 Client, IE6 = 22%). New clients (eg: IPTV) Mobile (phone, tablet, and smartphone devices)

CCIndex.cn App: Mobile - Network Awareness Platform Realtime China Local Testing: any URL. Cost: FREE! Realtime bandwidth testing from anywhere (check your device connectivity) Realtime ISP Network Statistics Free Mobile App: iphone & Android - install directly from http://ccindex.cn/ via the links at the bottom of the page

CCIndex.cn Site: Desktop Analysis and Testing Tools URL: http://ccindex.cn Realtime China Insights: any URL. Useful for bandwidth sampling Cost: FREE!

17ce.com - Get Ping TraceRoute DNS CDN Realtime Single Object China Local Testing: any URL. Cost: FREE! Chelsea Football Club (example: http://www.chelseafc.com

Shared Network Performance Reporting Statistical data on the network of China s connection speed Provides connection insights broadband speed by province interconnect between carriers Example Data Providers (alphabetically ordered) Akamai Global Reports (www.akamai.com/stateoftheinternet/ ) Cedexis (www.cedexis.com) ChinaCache CCINDEX (www.ccindex.cn) Industry Performance Indexes Show market leaders with their page load time, and related metrics

Minimise Network Use Accept-Encoding Gzip, deflate (Compression) Connection Keep-Alive (TCP port reuse) Expires Wed, 10 Oct 2012 11:15 (HTTP/1.0 Caching) Cache-Control Max-Age=604800 (HTTP/1.1 Caching) W3C Logs Resolve Errors (Focus: 400/403/404/500) Cookie Free Domain Reduce SEND data (Simplify caching) (i1) Img Sub-domain Increase TCP Ports (Speed Page Load) ETag Remove for static files. (Use Last-Modified)

GSLB Inaccurate GeoData (Location) Impact IP Block Allocation Carriers allocate IP blocks first by provinces, and then by cities GSLB systems works based on static geographic databases (accuracy is thus very important) Local DNS Most provinces have their own LDNS servers Some provinces set geo-blocking to protect their DNS servers Some provinces set DNS forwarders only Common Problems / Mis-configured Client configuration Foreign Company inside China using VPN and foreign DNS to resolve local service domains China User using Google DNS (8.8.8.8) or OpenDNS Where one or more GSLB services are used and do not have EDNS enabled Client has DNS for incorrect carrier (eg: CT user has CU LDNS IP configured) Fixed LDNS in Client config used when travelling DNS Forwarder causes wrong-location to be used

National Coverage Matters Hundreds of millions of users. Everywhere has remote connection congestion.

How to Improve GeoData Accuracy and Efficiency? Get accurate IP block allocation database in time Providers such as IP2Location.com do not have province level accuracy Leverage a local GSLB provider who specializes in accurate records Focus on client IP not LDNS IP: Use EDNS enabled provider Determine LDNS users are using to lookup your service domains Compare LDNS IP to Province and ISP Troubleshoot response problems with tools like http://help.chinacache.com

Site Domain DNS & China Timezones Have China specific service domains AND include domains Don't share IPs between your China and Non-China domains Use a www (or alternative) sub-domain Use a CNAME supportable DNS home/landing page (eg: "www ) Only CNAME records work with CDNs / GSLBs Have separate dynamic and static content domains Move Login pages off the "www" domain to eg: login/accounts.<domain> Peak Analysis! Expect TWO large peak traffic periods for popular content Local China Time: 09:30 (01:30 GMT) & 21:00 (13:00 GMT)

In Country vs Global Delivery Europe / US vs China Hosted European origins: Low availability & High latency into China In country hosting benefits Avoid external shared gateway congestion Avoid natural disasters related failed routes Origin Server Connectivity (Direct Peering Questions to Ask) What networks is your origin hosted in? What direct (BGP) routes exist from that DC to other ISPs? Regularly review traceroutes to your server from major China locations (eg: Beijing & Shanghai) CDN Edge Network Provider Benefits Eliminate need to build-up and manage BGP network connectivity & Geo-location Data Centers Leverage Dynamic acceleration for non-cachable content, and combine with static caching benefits

Video & Streaming Media Live streaming: - China delivery will require an overseas ingest point (unless locally replicated first) - Redundant international connections are necessary - Bitrate(MBR): 450Kbps for everyone 800Kbps for all broadband 1.5Mbps to have available for special users VOD: - Hot content benefits from pre-loading into the Edge - In country storage is recommended for large content sets - Content sync is rarely free, so consider in country ingestion strategy and costs - Bitrate(MBR): **same as for streaming***

International CDN +China Multi-Vendor Architecture GSLB systems support any DNS endpoint for traffic Different CNAMEs based on country, city/province, and ISP Load balancing by request %, time of day based rules, all to a single destination, or 100% direct to origin

Final Recommendations #1 Improve DNS LDNS Caching by increasing DNS TTLs Increase to 600 or higher (using your own readiness time to govern lower/upper limits) Extend HTTP Keep-Alive timeout settings to 10-15 seconds to cover page load completion Apache v.2.5 has default of only 5 seconds. #2 Initially assume your China connectivity problems are NOT caused by the Great Firewall Countless content delivery, bandwidth, route, packet loss, and other issues are usually the cause Always start with PING, TRACE, and NSLOOKUP from within China (each and every time) #3 Don t skip obtaining an ICP license. Start to think about this now, as it takes time to obtain.

谢 谢 Thank you