A Layman's Guide to Global Server Load Balancing



Similar documents
Scaling with Zeus Global Load Balancer

Load balancing Microsoft IAG

Global Server Load Balancing

Zeus Extensible Traffic Manager in Virtualized Hosting Environments.

Global Server Load Balancing

Global Load Balancing with Brocade Virtual Traffic Manager

GLOBAL SERVER LOAD BALANCING WITH SERVERIRON

FortiBalancer: Global Server Load Balancing WHITE PAPER

THE MASTER LIST OF DNS TERMINOLOGY. v 2.0

THE MASTER LIST OF DNS TERMINOLOGY. First Edition

Managing SIP traffic with Zeus Traffic Manager

Web Application Hosting Cloud Architecture

Deploying Microsoft SharePoint Services with Stingray Traffic Manager DEPLOYMENT GUIDE

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

Superior Disaster Recovery with Radware s Global Server Load Balancing (GSLB) Solution

Solutions Guide. Deploying Citrix NetScaler with Microsoft Exchange 2013 for GSLB. citrix.com

Solutions Guide. Deploying Citrix NetScaler for Global Server Load Balancing of Microsoft Lync citrix.com

Global Server Load Balancing (GSLB) Concepts

Reduce your downtime to the minimum with a multi-data centre concept

Citrix NetScaler Global Server Load Balancing Primer:

Microsoft Dynamics CRM 2015 with NetScaler for Global Server Load Balancing

Configuring Citrix NetScaler for IBM WebSphere Application Services

Application and service delivery with the Elfiq idns module

DNS ROUND ROBIN HIGH-AVAILABILITY LOAD SHARING

LinkProof DNS Quick Start Guide

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

Copyright

Combining Global Load Balancing and Geo-location with Emissary TM

Building High Performance, High-Availability Clusters

How to set up the Integrated DNS Server for Inbound Load Balancing

Advanced Networking Technologies

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

How To Manage Dns On An Elfiq Link Load Balancer (Link Balancer) On A Pcode (Networking) On Ipad Or Ipad (Netware) On Your Ipad On A Ipad At A Pc Or Ipa

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

Introduction to ServerIron ADX Application Switching and Load Balancing. Module 7: Global Server Load Balancing (GSLB) Revision 0310

Active Directory Monitoring With PATROL

NET0183 Networks and Communications

HUAWEI OceanStor Load Balancing Technical White Paper. Issue 01. Date HUAWEI TECHNOLOGIES CO., LTD.

ExamPDF. Higher Quality,Better service!

Web Caching and CDNs. Aditya Akella

White Paper. ThinRDP Load Balancing

Domain Name System :49:44 UTC Citrix Systems, Inc. All rights reserved. Terms of Use Trademarks Privacy Statement

Multi-Link - Firewall Always-on connectivity with significant savings

Deployment Guide. Deploying F5 BIG-IP Global Traffic Manager on VMware vcloud Hybrid Service

Lecture 2 CS An example of a middleware service: DNS Domain Name System

Connection Broker The Leader in Managing Hosted Desktop Infrastructures and Virtual Desktop Infrastructures (HDI and VDI) DNS Setup Guide

ProxySG TechBrief Enabling Transparent Authentication

Remote Desktop Services Overview. Prerequisites. Additional References

How To Plan A Desktop Workspace Infrastructure

Solution Brief. Load Balancing to Provide Scalable, Reliable, Secure Access Solutions

- Domain Name System -

Configuration Guide. How to Configure SSL VPN Features in DSR Series. Overview

Implementing, Managing, and Maintaining a Microsoft Windows Server 2003 Network Infrastructure: Network Services (5 days)

Disaster Recovery White Paper

High Availability for Citrix XenApp

Advanced Computer Networks. Layer-7-Switching and Loadbalancing

Fundamentals of Windows Server 2008 Network and Applications Infrastructure

TRUFFLE Broadband Bonding Network Appliance. A Frequently Asked Question on. Link Bonding vs. Load Balancing

ECE 4321 Computer Networks. Network Programming

Alteon Global Server Load Balancing

OVERVIEW OF THE DNS AND GLOSSARY OF TERMS

DATA COMMUNICATOIN NETWORKING

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

Demand Routing in Network Layer for Load Balancing in Content Delivery Networks

TRUFFLE Broadband Bonding Network Appliance BBNA6401. A Frequently Asked Question on. Link Bonding vs. Load Balancing

How To Prepare For The Second Data Center On Payware Connect For A Second Time

How To Guide Edge Network Appliance How To Guide:

Configuration Notes 0215

FAQ: BroadLink Multi-homing Load Balancers

Stretched Active- Active Application Centric Infrastructure (ACI) Fabric

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

Traffic Controller Service. UltraDNS Whitepaper

Chapter 10: Scalability

High Availability HTTP/S. R.P. (Adi) Aditya Senior Network Architect

CONFIGURING THE SOUNDSTATION VTX 1000 AS A DOWNLOAD SERVER

Microsoft Office Communications Server 2007 R2

Application Delivery Networking

CheckPoint Software Technologies LTD. How to Configure Firewall-1 With Connect Control

Simple Solution for a Location Service. Naming vs. Locating Entities. Forwarding Pointers (2) Forwarding Pointers (1)

CS 348: Computer Networks. - DNS; 22 nd Oct Instructor: Sridhar Iyer IIT Bombay

Building a Highly Available and Scalable Web Farm

Zeus Traffic Manager VA Performance on vsphere 4

How Comcast Built An Open Source Content Delivery Network National Engineering & Technical Operations

KEMP LoadMaster. Enabling Hybrid Cloud Solutions in Microsoft Azure

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

User Manual. Onsight Management Suite Version 5.1. Another Innovation by Librestream

CS514: Intermediate Course in Computer Systems

NetSpective Global Proxy Configuration Guide

WHITE PAPER. Enhancing Application Delivery and Load Balancing on Amazon Web Services with Brocade Virtual Traffic Manager

WAN Traffic Management with PowerLink Pro100

Deployment Topologies

BEST PRACTICES FOR IMPROVING EXTERNAL DNS RESILIENCY AND PERFORMANCE

Transcription:

A Layman's Guide to Global Server Load Balancing Zeus Technology Limited (UK) Sales: +44 (0)1223 568555 Zeus Technology, Inc. (U.S.) Phone: (650) 965-4627 The Jeffreys Building Main: +44 (0)1223 525000 1955 Landings Drive Fax: 1-888-ZEUS-INC Cowley Road Fax: +44 (0)1223 525100 Mountain View Email: info@zeus.com Cambridge CB4 0WS Email: info@zeus.com CA 94043 Web: www.zeus.com United Kingdom Web: www.zeus.com United States of America

Contents A Layman s guide to Global Server Load Balancing... 3 About Zeus Technology... 3 The Telephone System... 4 Suez Technology... 4 Location-aware Phone Book... 5 The load in the call centers... 5 The Internet... 6 Global Server Load Balancing... 6 Multiple Datacenters... 6 Round-Robin DNS... 7 DNS-based Global Server Load Balancing... 7 How does ZXTM GLB work?... 8 DNS in more detail... 9 NS records and CNAMEs... 9 NS Records... 9 CNAMEs... 9 Why are NS records and CNAMEs important?... 10 DNS Caching... 10 Cache Timeout... 10 Cache Location... 10 Conclusion... 11 ZXTM Global Load Balancer... 11 2 A LAYMAN'S GUIDE TO GLOBAL SERVER LOAD BALANCING

A Layman s guide to Global Server Load Balancing Services on the internet web sites, photo albums, e-commerce stores are all run from sets of computers located in datacenters across the world. It s often very important that these services are always available and that they run as quickly as possible. However, if a datacenter fails, the service will not be available, and if the datacenter is too far away from the end user - in another continent for example - the service will appear to run very slowly. Global Server Load Balancing is a technique used to deal with these two problems. This document describes how Global Server Load Balancing works, from a simple, non-technical perspective. If you re interested in finding out more read on About Zeus Technology Zeus Technology has been developing software products to help organizations host and grow their internet services for over 10 years. Zeus Web Server (ZWS) is one of the fastest, most reliable and secure web servers available today. Zeus Extensible Traffic Manager (ZXTM) is a sophisticated load balancer that allows organizations to grow and manage their services within a datacenter. ZXTM Global Load Balancer (ZXTM GLB) lets organizations run their services from multiple, redundant datacenter sites, connecting each user to the best performing, closest site. You can find out more from www.zeus.com. A LAYMAN'S GUIDE TO GLOBAL SERVER LOAD BALANCING 3

The Telephone System We ll begin our learning process with an analogy the Phone Book. The Phone Book is used to look up names in order to find the corresponding telephone number 1. We ll assume that there s one Global Phone Book that you can access from anywhere. Every person and organization in the world is listed in it. Suez Technology Suez Technology develops maritime traffic management software, and is based in Egypt. Their software support team is based in Egypt and it serves customers across the world. In the Global Phone Book, there is an entry for Suez Technology technical support: However, phone lines are sometimes unreliable and occasionally international customers have difficulty contacting the technical support team. At other times the call is noisy, and there is a noticeable delay when people speak, making conversation difficult. Suez is very conscious that this gives customers a poor impression of their business. Suez decides to set up a second technical support call center, based in Vancouver, as they have many customers in North America and the Far East. This should improve the reliability of the telephone calls, and give customers in those parts of the globe a better service. A second phone number for the Canadian call center is added to the Global Phone Book: 1 In the Internet, there is a similar system called DNS that computers use to look up names (like www.zeus.com) in order to find corresponding addresses but more about that later. 4 A LAYMAN'S GUIDE TO GLOBAL SERVER LOAD BALANCING

However, the phone book simply contains a list of names and numbers. There is no way for callers to know which number is best for them, and they just choose a number at random. Location-aware Phone Book How could this be improved? Imagine if a location aware phone book were developed: When you searched for an organization s phone number, you would also provide the phone number you are calling from. The software behind the phone book: 1. Determines your geographic location from the country and city code of your number (in this case, Cambridge, UK) 2. Looks up all of the candidate phone numbers one is in Suez, Egypt and one in Vancouver, Canada 3. Discards any candidate phone numbers that are not reachable (i.e. off the hook) 4. Determines which number is geographically closest 5. Tells you to call that number. This system would route you to the best call center by choosing the right phone number, based on the call center s availability and geographic location. The load in the call centers Stretch your imagination even further by imagining that a call center could inform the Global Phone Book as to how busy it was. For example, the Vancouver call center could say customers are currently queued for 5 minutes before we can handle their call. So, if the Vancouver call center happened to be particularly busy and the Egypt one were relatively idle, the Global Phone Book could take this into account. A caller from China may be geographically closer to Vancouver, but the phone system would chose to give him the Egypt number instead. As a result, customers get a much better level of service. They are never sent to a call center that is off the hook or too busy to take their call. They are routed to the center that is closest so they get the best call quality. A LAYMAN'S GUIDE TO GLOBAL SERVER LOAD BALANCING 5

The Internet The Internet uses a system called DNS (Domain Name System), which is very much like the Global Phone Book that was described above. Internet Services are published using Domain Names, such as www.zeus.com. However, when you access a service, your computer must look up the corresponding IP Address of the computer hosting that service. This process is very similar to looking up a phone number in the Global Phone Book. It s called resolution, i.e., you resolve a domain name (www.zeus.com) to an IP address (62.128.142.133). The phone book is located on a computer called a DNS server. Global Server Load Balancing Global Server Load Balancing (GSLB) works in a similar way to the smart, location and load-aware Global Phone Book that was described above 2. Multiple Datacenters An organization who wants to use GSLB will need to operate two or more datacenters to host his service. Often this just involves taking the computers in the datacenter that initially host the service and replicating them, running similar computers with similar software and content in one or more additional locations. Note: Global Server Load Balancing people use the term datacenter to describe a location where a service is hosted. It rarely means an entire datacenter building with the associated infrastructure; generally, a datacenter is just a small number of computers that work together to provide a service like a web site. Each datacenter will have a different IP address (just as each call center had a different phone number): 2 Other GSLB techniques exist, using triangulation, redirection and BGP routing, but the DNS-based version this document describes is by far the most common. For more information, please refer to the Zeus white paper Scaling your services with ZXTM Global Load Balancer. 6 A LAYMAN'S GUIDE TO GLOBAL SERVER LOAD BALANCING

Round-Robin DNS The next step the organization must follow is to configure the DNS records (phone book entries) so that the name of their service (www.sueztechnology.com) resolves to the two IP addresses. This commonly-used technique is called Round Robin DNS. When a user s computer tries to access the www.sueztechnology.com service, it makes a DNS request to find out the IP addresses. It receives a list containing both IP addresses, and it tries one of them (generally the first). The DNS server changes the order of the list each time it replies to a DNS request (this is the basis of the round robin name). Round Robin DNS is commonly used to split traffic equally between datacenters, but it does not consider the availability, performance or proximity of the datacenters. So, if the Canada datacenter were to fail, half of the users of the service would be completely cut off 3. DNS-based Global Server Load Balancing DNS-based Global Server Load Balancing (GSLB) works by improving this process, controlling which IP addresses are supplied to each user, just as our location-aware Global Phone Book improved the phone system by giving each user the most appropriate telephone number to use. Some GSLB products replace the DNS server with a new one that is aware of datacenter location, health and availability. However, DNS servers are a core part of the Internet s infrastructure, so using these products can be disruptive and it can be difficult to deploy them. 3 Some software will try each of the IP addresses in the list in turn until it can connect to a datacenter, but this behaviour cannot be relied upon. A LAYMAN'S GUIDE TO GLOBAL SERVER LOAD BALANCING 7

Other GSLB products, including Zeus ZXTM Global Load Balancer (ZXTM GLB) work by extending the DNS server. They modify the responses that the DNS server sends back, ensuring that only the most appropriate IP addresses are contained in each response. These products are referred to as DNS Proxies. They tend to be easier to deploy because they extend rather than replace existing, proven and trusted infrastructure. How does ZXTM GLB work? ZXTM GLB works as follows: 1. ZXTM GLB receives a DNS request for a domain name. It passes the request on to a real DNS server. 2. The DNS server replies with a round-robin list of the IP addresses for the domain name. ZXTM GLB receives the response from the DNS server. 3. ZXTM GLB checks the domain name that was just looked up. If it is not configured to load-balance traffic for that name, it just sends the response straight back to the originator. 4. Otherwise, ZXTM GLB decides which datacenter is most suitable for the user who submitted the DNS request. It removes the IP addresses not in that datacenter from the response and sends the response back to the originator. ZXTM GLB knows how heavily loaded each datacenter is. It continually monitors all of the datacenters it is load-balancing traffic to, to check they are functioning and to measure their performance. ZXTM GLB also knows the geographic location of each datacenter and each user. It can determine the geographic location of each user in much the same way that you could use 8 A LAYMAN'S GUIDE TO GLOBAL SERVER LOAD BALANCING

caller-id to find out a telephone user s phone number, and then look up their country and city code 4. With this information datacenter availability, load and geographic proximity ZXTM GLB can accurately select the most appropriate datacenter for each user of the service. Please refer to the Zeus white paper Scaling your services with ZXTM Global Load Balancer, and to the product information at http://www.zeus.com/products/zxtmglb/ for more details on how ZXTM GLB functions and the different load-balancing methods that are supported. DNS in more detail Behind the scenes, the DNS system is very sophisticated. It s not just a single list of DNS names and IP addresses; it s a distributed set of connected databases that must be searched to find the information required. This section describes some of the fine details of DNS that are relevant to GSLB, but you can skip it if you were just looking for an overview! NS records and CNAMEs As you learn more about DNS, you ll come across terms like NS records and CNAMEs. NS Records An NS record tells the DNS system where the name server for a particular domain is located. When a client looks up a domain, it starts at one of the root name servers, going up through a chain of DNS servers until it finds the one it wants. The NS record for the sueztechnology.com domain tells the world where the DNS servers that know about sueztechnology.com are located. CNAMEs A CNAME is like a nickname for a particular domain name. For example, if the web server for www.sueztechnology.com was located in the BigPipe Hosting Facility in Egypt, then the name www.sueztechnology.com might be a CNAME (nickname) for another name, such as hosting.bigpipe.net.eg. What this means is that when a computer tries to look up the IP address for www.sueztechnology.com, it gets a DNS response saying Use hosting.bigpipe.net.eg instead. It makes a new DNS request for that name, and uses the IP address it receives. This is all completely transparent to the end user. In our Global Phone Book, it s just as if Suez Technology had outsourced its call center to a different organization. The phone book entry for Suez Technology Technical Support 4 ZXTM GLB uses the source IP address of the DNS request to determine the IP address of each user. ZXTM GLB contains a comprehensive database (sourced from MaxMind) that maps IP addresses to geographic location so that it can accurately select the closest datacenter each time. A LAYMAN'S GUIDE TO GLOBAL SERVER LOAD BALANCING 9

might say Use Egypt Support Services, and the phone book would return the number for that organization any time someone looked up Suez Technology Technical Support. Why are NS records and CNAMEs important? NS records and CNAMEs are useful tools. Generally, when you deploy a DNS proxy like ZXTM GLB, you will arrange that DNS requests are directed to it by modifying either an NS record, or by adding a CNAME. This way, you re telling the remote computers to query the ZXTM GLB device rather than the DNS server directly. All of this complexity is completely hidden from end users they continue to access your service using the common name as before and are unaware of the workings of DNS! Please refer to the ZXTM GLB documentation for more information on how to deploy ZXTM GLB and configure your DNS using NS and CNAME records. DNS Caching In order to reduce the load on DNS servers, many clients cache (remember) DNS responses for a period of time. Additionally, clients often route their DNS requests through intermediary cache servers. This DNS caching behavior improves the performance of internet services because clients do not have to resolve DNS names every time they access a service, and a local cache can reply faster than a remote DNS server. Cache Timeout Remembering DNS responses can cause problems when a datacenter fails and its IP address becomes unavailable. If a client or intermediary cache has cached a DNS entry to the datacenter that has just failed, the client will attempt to contact that datacenter without checking with the GSLB device first. This problem is dealt with in two ways. 1. Some client software performs a new DNS lookup when it discovers that the IP address it cached is unavailable. This behavior improves compatibility with GSLB systems. For example, Internet Explorer on Windows XP SP2 or later works this way. 2. DNS responses contain a TTL (Time-To-Live) field that tells systems how long they should cache items for. For a GSLB system, it s appropriate to set the TTL to a low value, such as 30 seconds. ZXTM GLB is able to change the TTL of any DNS responses it modifies in case the DNS server does not provide a suitable SSL value. Cache Location GSLB devices determine the location of the remove user based on where the DNS request came from. This location information is then used to decide which datacenter is closest to the user. When the DNS request comes from an intermediate DNS cache, the GSLB device will use the location of the cache device. However, this rarely causes a problem; the cache is normally located close to the user for performance reasons, and if the user is using a proxy device, the cache and the proxy are located in the same location (as in the case of AOL s network). So, DNS caches have little impact on the effectiveness of the proximity decisions that a GSLB device makes. 10 A LAYMAN'S GUIDE TO GLOBAL SERVER LOAD BALANCING

Conclusion Global Server Load Balancing is a tried and tested way of improving the availability and speed of Internet-based services. DNS can be thought of as the Internet s Phone Book, telling computers where different services are located. DNS-based Global Server Load Balancers are by far the most common type of GSLB device. There is widespread support amongst software vendors and infrastructure providers to ensure that DNS-based GSLB systems are as effective as possible, and significant improvements has been made in the last few years that deal with early application incompatibilities. ZXTM Global Load Balancer Suez Technology, the IP addresses and other examples used in this document are entirely fictitious, but GSLB is a real technique which is in use at many high profile sites on the intranet, as well as for internal applications. For more information on Zeus ZXTM Global Load Balancer, please contact Zeus Technology at the address provided at the end of this document. A LAYMAN'S GUIDE TO GLOBAL SERVER LOAD BALANCING 11

Copyright Zeus Technology Limited 2007. Copyright in this document belongs to Zeus Technology Limited. All rights are reserved. Trademarks Zeus Technology, the Zeus logo, Zeus Web Server, Zeus Load Balancer, Zeus Extensible Traffic Manager, ZXTM, ZXTM Global Load Balancer, ZXTM Virtual Desktop Broker and associated logos and abbreviations, TrafficScript, TrafficCluster and RuleBuilder are trademarks of Zeus Technology Limited. Other trademarks may be owned by third parties. Contact Information If you would like to learn more about any of the topics covered by this white paper, please feel free to contact us for more information. You can reach us in a variety of ways: By Email For general enquiries: info@zeus.com For commercial and technical enquiries: sales@zeus.com For reseller information: partners@zeus.com For press and public relations information: press@zeus.com By Telephone Zeus Technology UK: +44 1223 525000 Zeus Technology US: 1-888-ZEUS-INC or +1 650 965 4627 Fax: +44 1223 525100 By Post or in Person Zeus Technology Limited Zeus Technology The Jeffreys Building 1955 Landings Drive Cowley Road Mountain View Cambridge CB4 0WS CA 94043 United Kingdom United States www.zeus.com Our web site contains a wealth of information on our products, services and solutions, as well as customer case studies and press information. For more information, please visit http://www.zeus.com/. knowledgehub.zeus.com The ZXTM KnowledgeHub is a key resource for developers and system administrators wishing to learn about ZXTM and Zeus Traffic Management solutions. It is located at http://knowledgehub.zeus.com/. 12 A LAYMAN'S GUIDE TO GLOBAL SERVER LOAD BALANCING