anycast

17
Anycast Anycast Jennifer Rexford Jennifer Rexford Advanced Computer Networks Advanced Computer Networks http://www.cs.princeton.edu/courses/archive/ http://www.cs.princeton.edu/courses/archive/ fall08/cos561/ fall08/cos561/ Tuesdays/Thursdays 1:30pm-2:50pm Tuesdays/Thursdays 1:30pm-2:50pm

Upload: lucas-marsh

Post on 30-Dec-2015

36 views

Category:

Documents


0 download

DESCRIPTION

Anycast. Jennifer Rexford Advanced Computer Networks http://www.cs.princeton.edu/courses/archive/fall08/cos561/ Tuesdays/Thursdays 1:30pm-2:50pm. Naming and Addressing. Some definitions Name: what we seek Address: where it is located Examples Wide area: www.cnn.com vs. 63.251.179.13 - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Anycast

AnycastAnycast

Jennifer RexfordJennifer Rexford

Advanced Computer NetworksAdvanced Computer Networkshttp://www.cs.princeton.edu/courses/archive/fall08/http://www.cs.princeton.edu/courses/archive/fall08/

cos561/cos561/Tuesdays/Thursdays 1:30pm-2:50pmTuesdays/Thursdays 1:30pm-2:50pm

Page 2: Anycast

Naming and Addressing

• Some definitions– Name: what we seek– Address: where it is located

• Examples– Wide area: www.cnn.com vs. 63.251.179.13– LAN: 63.251.179.13 vs. 00:16:CF:1C:D0:24

• What should we name and address?– Objects: http://www.cnn.com/election-

over.htm– Hosts: www.cnn.com or 63.251.179.13– ASes: 7018

Page 3: Anycast

Anycast:Application-Level vs. IP-Level

Page 4: Anycast

Many Services are Replicated

• Servers in many locations– Reliability: copies that fail independently– Performance: clients directed to nearby replicas

Page 5: Anycast

Anycast

• Anycast– One-to-many association of name to endpoints– Each destination represents a set of receivers– Only one receives information from a given

sender

• Questions– How to name the (replicated) service?

• URL, host name, IP address, …

– How to decide which instance receives traffic?• Network proximity, load balancing policies, …

– How “sticky” should the binding be?• Each packet independent? Connection-oriented?

Page 6: Anycast

IP Anycast

• Announce IP prefix in interdomain routing– At each replica location

• Rely on global routing to direct traffic– To the “nearest” replica 63.251.179.13

63.251.179.13

63.251.179.13

Page 7: Anycast

IP Anycast: Pros and Cons

• Advantages– Completely transparent to clients and routers– Scales well for a large group of replicas– End-to-end paths automatically efficient

• Disadvantages– Pollutes the global routing system– Separate /24 for each replicated service– Does not consider server load– Different packets may reach different replicas– Slow BGP convergence after a withdrawal

Page 8: Anycast

Application-Level Anycast

• URL rewriting– Server dynamically rewrites HTML page– E.g., image at foo23.bar.com vs.

foo46.bar.com

• Application-level redirection– Explicit redirection of a request to new

location– E.g., HTTP 302 “Moved Temporarily”

• DNS redirection– Change mapping of domain name to address– E.g., www.cnn.com to 8.15.7.117

Page 9: Anycast

Application-Layer Anycast: Pros and Cons

• Advantages– Fine-grain control of load across group members– Can easily incorporate variety of criteria– Successive packets delivered to the same replica

• Disadvantages– Need to identify location of the requesting client

• Especially difficult for DNS-based redirection

– Extra round-trip times for redirection– Small TTLs to prevent long DNS caching– Boot-strapping to find redirecting/lookup server

Page 10: Anycast

Anycast in Practice

• Content Distribution Networks (CDNS)– Direct Web clients to site replica– E.g., URL rewriting, HTTP redirection, or DNS

• Reliable root DNS servers– Direct DNS queries to nearby DNS server– E.g., IP anycast

Page 11: Anycast

Improving IP Anycast

• Improvements– Considering network and server load– Ensuring successive packets reach same replica

• Anycast proxies– Proxies announce common IP prefix– And tunnel packets to group members

• Route control platforms– Collects networks and server load information– Determines which replica receives the requests

Page 12: Anycast

Other Uses of Anycast-Like BGP Prefix Announcements

Page 13: Anycast

Evolvability: Opt-In to Partially Deployed Solution

• New protocol partially deployed as overlay– E.g., IPv6

• Nodes announce common IP prefix– To suck user traffic into the overlay

• Participating host tunnels its traffic

Page 14: Anycast

Mobility: Dynamic Announcements & Withdrawals

• Boeing Connexion service

Internet

12.78.3.0/24

http://www.nanog.org/mtg-0405/abarbanel.html

Page 15: Anycast

Security: Hijacking the Hijacker

• Prevent BGP route hijacking– Group of nodes collectively announce prefix– And form overlay to deliver to the

destination

12.1.0.0/16

Tries to hijack

http://www.cs.princeton.edu/research/techreps/TR-808-07

Page 16: Anycast

Discussion

• Application vs. IP anycast– Early binding vs. late binding?

• Granularity of naming and addressing?– Services, hosts, or ASes?

• Handling change in replica selection?– Unplanned: failure and physical mobility– Planned: maintenance, load balancing,

migration

• Protecting health of the Internet?– DNS abuse (with small, cache-busting TTLs)– BGP abuse (with many prefixes and updates)

Page 17: Anycast

Next Class, on Thursday

• I will be out of town– At NSF serving on a proposal review panel

• Guest lecture by Changhoon Kim– Scalable Ethernet architecture for large

enterprises– Flat addressing, separating host name and

location, route caching, reactive cache invalidation