root/trunk/pdns/pdns/docs/gslb-operations.sgml @ 2

Revision 2, 3.9 KB (checked in by ahu, 11 years ago)

Initial revision

  • Property svn:eol-style set to native
  • Property svn:keywords set to author date id revision
Line 
1<!doctype linuxdoc system>
2
3<article>
4
5<!-- Title information -->
6<title>The case for PowerDNS</title>
7<author>PowerDNS BV (bert hubert &lt;bert@trilab.com&gt;) &nl;
8Trilab BV</author>
9<date>v1.0 $Date: 2002/11/27 15:18:34 $</date>
10<abstract>
11This document describes what Global Server Load Balancing is, and how
12PowerDNS can be employed in a GSLB configuration
13</abstract>
14<toc>
15<sect>GSLB
16<p>
17GSLB, short for Global Server Load Balancing, isr the act of distributing
18server traffic to different locations. Although not necessary, this is
19almost always done using a smart nameserver.
20<sect1>Typical GSLB implementation
21<p>
22A user enters the name of a site ('www.thesite.com') in his or her browser.
23This causes the operating system, often Windows, to send out a request to
24the ISP of the user, asking for the IP address of www.thesite.com. If the
25nameserver of the ISP doesn't know this address, it asks the nameserver of
26thesite.com.
27<p>
28This nameserver then contains the GSLB smartness. Based on the IP Address of
29the nameserver of the ISP, it determines which of the 'www.thesite.com'
30servers is closest.
31
32A multitude of algoritms is in use for determining which server is closest.
33Some of them employ the Border Gateway Protocol, BGP, which is used for
34global internet routing. Some use 'ICMP Ping' measurements, some use
35modified DNS Queries. The simplest algorithm is to use IP Netmasks, which
36are an easy rule of thumb for determining who assigned an IP Address, which
37also gives it probable location.
38
39<sect>IP Netmasks and Location
40<p>
41IP Addresses are asigned by only a few entities worldwide, the foremost
42being ARIN, RIPE and APNIC, who respectively manage North- and South
43America, Europe and surrounding areas, and the Asian Pacific Region.
44
45This allows for coarse grained identification of location. While not very
46precise, it is very robust and guaranteed to work. It can be likened to a
47very good rule-of-thumb. Other methods employ complicated and fragile
48techniques for determining the 'internet distance' to a site.
49
50For example, ICMP Ping measurements are becoming less and less valid. The
51advent of Distributed Denial of Service attacks has lead many internet
52providers to block or limit these packets. The aforementioned BGP router
53protocol gives distance in 'AS Hops' which are no longer a valid measure of
54distance, as many Autonomous Subsystems now spread the globe.
55
56<sect1>IP Netmasks Configuration
57<p>
58PowerDNS comes preconfigured with a reasonable set of IP Rules. These may
59need some maintainance over time. It is adviseable to get a Subscription with
60PowerDNS so as to receive updates.
61
62These rules come in several levels. The lowest level is based on who
63assigned the IP Addresses, ARIN, RIPE or APNIC. The second level contains
64exceptions to these major rules. Change is expected especially in this
65second level.
66
67<sect>GSLB Concepts
68<p>
69A number of concepts are used in the PowerDNS GSLB configuration:
70
71<descrip>
72<tag>Netblock</tag>
73A netblock is a range of IP Addresses. A number of Netblocks together are
74grouped in a Region.
75<tag>Region</tag>
76A Region might be called 'ARIN' or 'Surfnet', and consists of a limited
77number of Netmasks.
78<tag>Target</tag>
79A Target describes a set of servers in a single location. Target names might
80be 'UUnet Amsterdam', 'Level3 Amsterdam' or 'Genuity'.
81<tag>Route</tag>
82A Route assigns a certain Region to a Target. A sample Route might be:
83Assign all ARIN IP Addresses to Genuity.
84<tag>Schema</tag>
85A set of Routes, Regions, Netblocks and Targets is called a Schema. Many
86different domains may be assigned to this Schema, which then only needs to
87be defined once.
88</descrip>
89
90<sect>DNS Configuration
91<p>
92In order to Load Balance a domain it must be pointed at the GSLB Schema.
93This is typically done using a DNS CNAME on the nameserver of the domain
94that needs to be balanced.
95
96In order for this to work, the Schema name must resolve to the IP Address of
97PowerDNS.
98</article>
99
Note: See TracBrowser for help on using the browser.