SlideShare ist ein Scribd-Unternehmen logo
1 von 32
Anycast on a shoestring
Nat Morris - @natmorris
Tuesday 2nd March 2015 – APRICOT2015, Fukuoka, Japan
As seen at DNSOARC May 2014, SANOG24, RIPE69, UKNOF30
About me
• Consultant, Esgob Ltd
• Team leader, Cumulus
• Board member, UKNOF
• Based in West Wales, UK
• Aspiring lighthouse keeper
Anycast 101
• Simple concept:
– Announce the same address space from multiple locations
– Multiple paths in BGP, best one selected based on policy
•Benefits:
– Increased reliability
– Load balancing
– Improved performance
– Localized impact of DoS attacks
Summary
• Fancied deploying a DNS Anycast service
• Motivated by:
– Bill Woodcock, PCH
• SANOG8: “Best Practices in DNS Anycast Service-Provision”
– Dave Knight, ICANN (now Dyn)
• RIPE64: “Dense Anycast Deployment of DNS Authority Servers”
• Gain more experience automating distributed
environments.
Thoughts
• Can I do it without spending too much?
• What to offer?
– Initially only secondary DNS
– IPv4 + IPv6
– Free service - no SLA, no Revenue
•Does Claire need to find out?
Must be sub $1000/yr running cost
Requirements
• Separation from existing management
network - AS30746
• Had spare PI /24 + /48
• Applied for new ASN - got AS60564
• Need highly automated framework
• Wanted to play with new tools
• Open source everything
– https://github.com/esgob
Network
• Each anycast node:
– Announce:
– v4 /24 anycast v6 /48 anycast v6 /48 site specific anchor
– Static default route to the provider (accept no routes)
Node 1
AS60564
Upstream A
ASxxx
BGP Announce
193.47.147.0/24
2001:067c:1b43::/48
2a04:ec40:ff01::/48
Node 2
AS60564
Upstream B
ASxxx
BGP Announce
193.47.147.0/24
2001:067c:1b43::/48
2a04:ec40:ff02::/48
Node 3
AS60564
Upstream C
ASxxx
BGP Announce
193.47.147.0/24
2001:067c:1b43::/48
2a04:ec40:ff03::/48 Node 4
AS60564
Upstream D
ASxxx
BGP Announce
193.47.147.0/24
2001:067c:1b43::/48
2a04:ec40:ff04::/48
/30 + /64
Network
• All management traffic inside OpenVPN
– Additional RFC1918 loopback per node
– No need for TSIG from AXFR to anycast nodes
– Protects beanstalk traffic, API, collectd, zone transfers
Node 1
AS60564
Upstream A
ASxxx
Node 2
AS60564
Upstream B
ASxxx
Node 3
AS60564
Upstream C
ASxxx
Node 4
AS60564
Upstream D
ASxxx
Management GW
DNS zone transfers
AS30746
axfr.esgob.com
Anycast nodes
ns1.esgob.com
Master servers operated by others
ns0.esgob.co.uk
(only my zones)
AS60564
Supports notifies from masters
Store everything in JSON
• Data stored in RethinkDB
– Distributed JSON
document database
– Free form, easy to add
attributes
Application design
• REST API - Python + Flask framework
• cronjob + rsync free zone
• Beanstalk - Message queue
– Add/change/removal of zones via API triggers job to be added to queue
– Daemons on AXFR + Anycast nodes wait for jobs
– New zones live on all nodes with 5 seconds
RethinkDB
REST
API
Python + Flask
Website
Python +
Flask
Scripts /
Daemons
BeanstalkD
job
job
Config
files
Jinja2
templates
Redis
Users
Where to host the anycast nodes?
• Can’t cost too much each month
– Ruled out renting co-lo / dedicated servers
• Need a wide reach
• Virtual machines
– Swap with friends?
• Low cost hardware
Mythic Beasts
• UK clueful hosting company
• £7/month = £84/yr = $141/yr
– 512mb RAM, 1 CPU, 10gb HDD, 75gb BW
• Bought a VM, opened a support ticket
– BGP not listed on the website.
– Me: “I have a /24 + /48 of PI, can you set me up a
BGP session? see AS60564 + AS-ESGOB-ANYCAST”
– Them: “Peer with these IPs, sessions are ready!”
• Too easy!
Quest to find more friendly VM hosts
• LowEndBox.com
– Blog / adverts for VM providers, all < $10 month
– Usually OpenVZ based
– Need KVM/XEN/VMWare to support
Quagga/BIRD
• LowEndTalk.com
– Message board, various small scale VM hosts
• Google
– “vps bgp session”
Anynode in Detroit
• Listing on LowEndTalk
– Asked if they could support BGP.
– Yes on any VPS!!
• $80/yr, 1 CPU, 512mb, 40gb HDD, 500gb BW
Indian bargin!
• LeapSwitch, based in Pune, India.
– New VPS host, saw an offer advertised
• $120/yr, 1gb RAM, 20gb HDD, 500gb BW
Growing - Oct 2013
• Up to 4 VMs
– London A (on existing KVM server)
– London B
– Detroit
– India
• Spinning up VM taking about 10 minutes
– Add JSON entry into RethinkDB
– Install Debian
– Install Puppet (Collectd, BIND, Quagga, custom daemons etc)
– Done
– Pub!
Friends - Oct 2013
• Offers to host VMs for free from:
– Edinburgh @ Fluency
– Boston @ TorwardEx
• One swap:
– Bremen, Germany @ Fremaks
• Quickly up to 7 nodes after 1 month
Friends
• “We can host something, but not a VM”
• Various issues:
– Network engineers didn’t have access to VM hosts
– No VM infrastructure at all
– All VMs routed by hypervisor, can’t bridge to BGP routers
• Solution…
– Raspberry PI, $35
– 512mb / 16gb SD Card
– 800mhz (overclocked)
Raspberry Pi
• Sent RPI to Belfast – David Farrell @ Tibus
• Ran NSD3 great, ~200qps
• Adding / removing zones with NSD3 required
service restart ☹
• Swapped to PowerDNS, testing went ok
• pdns_control segfault’ing on ARM
• Gave in and moved to BIND
Time to peer - Jan 2014
• Offer of a node at SFMIX from Matt Peterson
• San Francisco based IXP
• Couldn’t turn this down.
• Zero U install
• Needed 2 NICs, IX + OOB
– FitPC2i - perfect ☺
– Atom 1.6ghz, 1gb RAM, 16gb SSD
– $150 on eBay
• Peering with:
– HE.net, ISC, Unwired, PCH
– Layer42, Lookout, DigitalOcean
Pi problems
• Puppet slow + loading zones taking too long
• More offers to host h/w nodes
– Manchester, Andy Davidson @ Allegro
• Gigabyte BRIX
– Quad Core, 1.8ghz, 4gb RAM, 30gb MSATA
• Swap out Belfast Pi
Still growing today
• 25 nodes live
• 3 peering locations: SFMIX San Francisco
RIX Reykjavik, Iceland
ULN-IX Ulyanovsk, Russia
As of 2nd March 2015
Fun along the way
• First BGP customer for some of the VM hosts:
– Assisted educating them…
– Prefer transit routes over customers, eek
– No BGP filters / route-maps or prefix lists - Ahhhhh!
• Some hosts don’t have communities
– Helping people get those implemented
• RIPE Atlas
– Scheduled measurements to look at latency + CHAOS
id.server
•RIPEstat
–Using the REST API to query visibility of a /48 anchor from
each instance, 15mins to get working.
Market for VMs with BGP sessions
Discoveries
• Easy to find budget anycasters
– Webhost forums / LowEndTalk / bgp.he.net
• “Interesting” deployment methods
– Shared /24
• Dedicated IP, custom fwd/rev DNS, slaved zones
– Hosted /24
• Same as above but customer provides /24 to announce
– Shared /24, /32 tunneled
• Dedicated IP, tunneled by anycaster to customer via GRE
– Single /24
• Anycaster only has one /24, website + mail + mgmt in
same space. DNS answered at edge, other IPs tunneled to
another VM/dedicated box.
Discoveries
• Not all budget DNS hosting companies host
every zone at the edge
– Some host zones centrally and cache at the edge
• Some tunnel all DNS traffic back to a location:
– Looks like anycast
– Poor DNS performance
– GRE from edge to a single auth server
– Selling /32 GRE tunnels to customers!
Not just DNS?
• Simple HTTP/HTTPS service to assist debugging
– local.esgob.com
– local4.esgob.com / local6.esgob.com
• Returns JSON via lighttpd on each node
nat@enw:~ $ curl http://local.esgob.com
{
"city": "London",
"country": "England",
"countryiso": "gb",
"flag": "england",
"locationdisplay": "England, London, B",
"ref": "ql7f823b"
}
What next?
• Keep honest – host every zone at the edge
• Finish web interface
• Healthy mix of routing and DNS daemons:
– configurable per node via JSON in RethinkDB
– BIND, NSD4, KNOT, Quagga, BIRD + ExaBGP
•Looking for friendly hosts:
– Europe, Africa, India, Asia, South America, anywhere!
As of today...
Currently costing just under $480/yr - Claire compliant!
Take aways
• Low barrier to entry - VM with BGP full table $40/yr
• Don’t become part of the problem!
–Ensure your customers aren’t hijacking prefixes
–Always use IRR prefix lists on cust BGP sessions
• Using anycast can improve service delivery to your
customers
• Automate all things!
• Have fun and share your experiences
Questions?
https://noc.esgob.com
@esgobltd
https://nat.ms
@natmorris

Weitere ähnliche Inhalte

Mehr von APNIC

draft-harrison-sidrops-manifest-number-01, presented at IETF 119
draft-harrison-sidrops-manifest-number-01, presented at IETF 119draft-harrison-sidrops-manifest-number-01, presented at IETF 119
draft-harrison-sidrops-manifest-number-01, presented at IETF 119APNIC
 
Making an RFC in Today's IETF, presented by Geoff Huston at IETF 119
Making an RFC in Today's IETF, presented by Geoff Huston at IETF 119Making an RFC in Today's IETF, presented by Geoff Huston at IETF 119
Making an RFC in Today's IETF, presented by Geoff Huston at IETF 119APNIC
 
IPv6 Operational Issues (with DNS), presented by Geoff Huston at IETF 119
IPv6 Operational Issues (with DNS), presented by Geoff Huston at IETF 119IPv6 Operational Issues (with DNS), presented by Geoff Huston at IETF 119
IPv6 Operational Issues (with DNS), presented by Geoff Huston at IETF 119APNIC
 
Is DNS ready for IPv6, presented by Geoff Huston at IETF 119
Is DNS ready for IPv6, presented by Geoff Huston at IETF 119Is DNS ready for IPv6, presented by Geoff Huston at IETF 119
Is DNS ready for IPv6, presented by Geoff Huston at IETF 119APNIC
 
Benefits of doing Internet peering and running an Internet Exchange (IX) pres...
Benefits of doing Internet peering and running an Internet Exchange (IX) pres...Benefits of doing Internet peering and running an Internet Exchange (IX) pres...
Benefits of doing Internet peering and running an Internet Exchange (IX) pres...APNIC
 
APNIC Update and RIR Policies for ccTLDs, presented at APTLD 85
APNIC Update and RIR Policies for ccTLDs, presented at APTLD 85APNIC Update and RIR Policies for ccTLDs, presented at APTLD 85
APNIC Update and RIR Policies for ccTLDs, presented at APTLD 85APNIC
 
NANOG 90: 'BGP in 2023' presented by Geoff Huston
NANOG 90: 'BGP in 2023' presented by Geoff HustonNANOG 90: 'BGP in 2023' presented by Geoff Huston
NANOG 90: 'BGP in 2023' presented by Geoff HustonAPNIC
 
DNS-OARC 42: Is the DNS ready for IPv6? presentation by Geoff Huston
DNS-OARC 42: Is the DNS ready for IPv6? presentation by Geoff HustonDNS-OARC 42: Is the DNS ready for IPv6? presentation by Geoff Huston
DNS-OARC 42: Is the DNS ready for IPv6? presentation by Geoff HustonAPNIC
 
APAN 57: APNIC Report at APAN 57, Bangkok, Thailand
APAN 57: APNIC Report at APAN 57, Bangkok, ThailandAPAN 57: APNIC Report at APAN 57, Bangkok, Thailand
APAN 57: APNIC Report at APAN 57, Bangkok, ThailandAPNIC
 
Lao Digital Week 2024: It's time to deploy IPv6
Lao Digital Week 2024: It's time to deploy IPv6Lao Digital Week 2024: It's time to deploy IPv6
Lao Digital Week 2024: It's time to deploy IPv6APNIC
 
AINTEC 2023: Networking in the Penumbra!
AINTEC 2023: Networking in the Penumbra!AINTEC 2023: Networking in the Penumbra!
AINTEC 2023: Networking in the Penumbra!APNIC
 
CNIRC 2023: Global and Regional IPv6 Deployment 2023
CNIRC 2023: Global and Regional IPv6 Deployment 2023CNIRC 2023: Global and Regional IPv6 Deployment 2023
CNIRC 2023: Global and Regional IPv6 Deployment 2023APNIC
 
AFSIG 2023: APNIC Foundation and support for Internet development
AFSIG 2023: APNIC Foundation and support for Internet developmentAFSIG 2023: APNIC Foundation and support for Internet development
AFSIG 2023: APNIC Foundation and support for Internet developmentAPNIC
 
AFNOG 1: Afghanistan IP Deployment Status
AFNOG 1: Afghanistan IP Deployment StatusAFNOG 1: Afghanistan IP Deployment Status
AFNOG 1: Afghanistan IP Deployment StatusAPNIC
 
AFSIG 2023: Internet routing and addressing
AFSIG 2023: Internet routing and addressingAFSIG 2023: Internet routing and addressing
AFSIG 2023: Internet routing and addressingAPNIC
 
AFSIG 2023: APNIC - Registry & Development
AFSIG 2023: APNIC - Registry & DevelopmentAFSIG 2023: APNIC - Registry & Development
AFSIG 2023: APNIC - Registry & DevelopmentAPNIC
 
Afghanistan IGF 2023: The ABCs and importance of cybersecurity
Afghanistan IGF 2023: The ABCs and importance of cybersecurityAfghanistan IGF 2023: The ABCs and importance of cybersecurity
Afghanistan IGF 2023: The ABCs and importance of cybersecurityAPNIC
 
IDNIC OPM 2023: IPv6 deployment planning and security considerations
IDNIC OPM 2023: IPv6 deployment planning and security considerationsIDNIC OPM 2023: IPv6 deployment planning and security considerations
IDNIC OPM 2023: IPv6 deployment planning and security considerationsAPNIC
 
IDNIC OPM 2023 - Internet Number Registry System
IDNIC OPM 2023 - Internet Number Registry SystemIDNIC OPM 2023 - Internet Number Registry System
IDNIC OPM 2023 - Internet Number Registry SystemAPNIC
 
PacNOG 32: Resource Public Key Infrastructure (RPKI) in 30 minutes or less
PacNOG 32: Resource Public Key Infrastructure (RPKI) in 30 minutes or lessPacNOG 32: Resource Public Key Infrastructure (RPKI) in 30 minutes or less
PacNOG 32: Resource Public Key Infrastructure (RPKI) in 30 minutes or lessAPNIC
 

Mehr von APNIC (20)

draft-harrison-sidrops-manifest-number-01, presented at IETF 119
draft-harrison-sidrops-manifest-number-01, presented at IETF 119draft-harrison-sidrops-manifest-number-01, presented at IETF 119
draft-harrison-sidrops-manifest-number-01, presented at IETF 119
 
Making an RFC in Today's IETF, presented by Geoff Huston at IETF 119
Making an RFC in Today's IETF, presented by Geoff Huston at IETF 119Making an RFC in Today's IETF, presented by Geoff Huston at IETF 119
Making an RFC in Today's IETF, presented by Geoff Huston at IETF 119
 
IPv6 Operational Issues (with DNS), presented by Geoff Huston at IETF 119
IPv6 Operational Issues (with DNS), presented by Geoff Huston at IETF 119IPv6 Operational Issues (with DNS), presented by Geoff Huston at IETF 119
IPv6 Operational Issues (with DNS), presented by Geoff Huston at IETF 119
 
Is DNS ready for IPv6, presented by Geoff Huston at IETF 119
Is DNS ready for IPv6, presented by Geoff Huston at IETF 119Is DNS ready for IPv6, presented by Geoff Huston at IETF 119
Is DNS ready for IPv6, presented by Geoff Huston at IETF 119
 
Benefits of doing Internet peering and running an Internet Exchange (IX) pres...
Benefits of doing Internet peering and running an Internet Exchange (IX) pres...Benefits of doing Internet peering and running an Internet Exchange (IX) pres...
Benefits of doing Internet peering and running an Internet Exchange (IX) pres...
 
APNIC Update and RIR Policies for ccTLDs, presented at APTLD 85
APNIC Update and RIR Policies for ccTLDs, presented at APTLD 85APNIC Update and RIR Policies for ccTLDs, presented at APTLD 85
APNIC Update and RIR Policies for ccTLDs, presented at APTLD 85
 
NANOG 90: 'BGP in 2023' presented by Geoff Huston
NANOG 90: 'BGP in 2023' presented by Geoff HustonNANOG 90: 'BGP in 2023' presented by Geoff Huston
NANOG 90: 'BGP in 2023' presented by Geoff Huston
 
DNS-OARC 42: Is the DNS ready for IPv6? presentation by Geoff Huston
DNS-OARC 42: Is the DNS ready for IPv6? presentation by Geoff HustonDNS-OARC 42: Is the DNS ready for IPv6? presentation by Geoff Huston
DNS-OARC 42: Is the DNS ready for IPv6? presentation by Geoff Huston
 
APAN 57: APNIC Report at APAN 57, Bangkok, Thailand
APAN 57: APNIC Report at APAN 57, Bangkok, ThailandAPAN 57: APNIC Report at APAN 57, Bangkok, Thailand
APAN 57: APNIC Report at APAN 57, Bangkok, Thailand
 
Lao Digital Week 2024: It's time to deploy IPv6
Lao Digital Week 2024: It's time to deploy IPv6Lao Digital Week 2024: It's time to deploy IPv6
Lao Digital Week 2024: It's time to deploy IPv6
 
AINTEC 2023: Networking in the Penumbra!
AINTEC 2023: Networking in the Penumbra!AINTEC 2023: Networking in the Penumbra!
AINTEC 2023: Networking in the Penumbra!
 
CNIRC 2023: Global and Regional IPv6 Deployment 2023
CNIRC 2023: Global and Regional IPv6 Deployment 2023CNIRC 2023: Global and Regional IPv6 Deployment 2023
CNIRC 2023: Global and Regional IPv6 Deployment 2023
 
AFSIG 2023: APNIC Foundation and support for Internet development
AFSIG 2023: APNIC Foundation and support for Internet developmentAFSIG 2023: APNIC Foundation and support for Internet development
AFSIG 2023: APNIC Foundation and support for Internet development
 
AFNOG 1: Afghanistan IP Deployment Status
AFNOG 1: Afghanistan IP Deployment StatusAFNOG 1: Afghanistan IP Deployment Status
AFNOG 1: Afghanistan IP Deployment Status
 
AFSIG 2023: Internet routing and addressing
AFSIG 2023: Internet routing and addressingAFSIG 2023: Internet routing and addressing
AFSIG 2023: Internet routing and addressing
 
AFSIG 2023: APNIC - Registry & Development
AFSIG 2023: APNIC - Registry & DevelopmentAFSIG 2023: APNIC - Registry & Development
AFSIG 2023: APNIC - Registry & Development
 
Afghanistan IGF 2023: The ABCs and importance of cybersecurity
Afghanistan IGF 2023: The ABCs and importance of cybersecurityAfghanistan IGF 2023: The ABCs and importance of cybersecurity
Afghanistan IGF 2023: The ABCs and importance of cybersecurity
 
IDNIC OPM 2023: IPv6 deployment planning and security considerations
IDNIC OPM 2023: IPv6 deployment planning and security considerationsIDNIC OPM 2023: IPv6 deployment planning and security considerations
IDNIC OPM 2023: IPv6 deployment planning and security considerations
 
IDNIC OPM 2023 - Internet Number Registry System
IDNIC OPM 2023 - Internet Number Registry SystemIDNIC OPM 2023 - Internet Number Registry System
IDNIC OPM 2023 - Internet Number Registry System
 
PacNOG 32: Resource Public Key Infrastructure (RPKI) in 30 minutes or less
PacNOG 32: Resource Public Key Infrastructure (RPKI) in 30 minutes or lessPacNOG 32: Resource Public Key Infrastructure (RPKI) in 30 minutes or less
PacNOG 32: Resource Public Key Infrastructure (RPKI) in 30 minutes or less
 

Kürzlich hochgeladen

AWS Community DAY Albertini-Ellan Cloud Security (1).pptx
AWS Community DAY Albertini-Ellan Cloud Security (1).pptxAWS Community DAY Albertini-Ellan Cloud Security (1).pptx
AWS Community DAY Albertini-Ellan Cloud Security (1).pptxellan12
 
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$kojalkojal131
 
Hot Call Girls |Delhi |Hauz Khas ☎ 9711199171 Book Your One night Stand
Hot Call Girls |Delhi |Hauz Khas ☎ 9711199171 Book Your One night StandHot Call Girls |Delhi |Hauz Khas ☎ 9711199171 Book Your One night Stand
Hot Call Girls |Delhi |Hauz Khas ☎ 9711199171 Book Your One night Standkumarajju5765
 
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort ServiceEnjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort ServiceDelhi Call girls
 
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...Sheetaleventcompany
 
GDG Cloud Southlake 32: Kyle Hettinger: Demystifying the Dark Web
GDG Cloud Southlake 32: Kyle Hettinger: Demystifying the Dark WebGDG Cloud Southlake 32: Kyle Hettinger: Demystifying the Dark Web
GDG Cloud Southlake 32: Kyle Hettinger: Demystifying the Dark WebJames Anderson
 
Top Rated Pune Call Girls Daund ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
Top Rated  Pune Call Girls Daund ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...Top Rated  Pune Call Girls Daund ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
Top Rated Pune Call Girls Daund ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...Call Girls in Nagpur High Profile
 
Hot Service (+9316020077 ) Goa Call Girls Real Photos and Genuine Service
Hot Service (+9316020077 ) Goa  Call Girls Real Photos and Genuine ServiceHot Service (+9316020077 ) Goa  Call Girls Real Photos and Genuine Service
Hot Service (+9316020077 ) Goa Call Girls Real Photos and Genuine Servicesexy call girls service in goa
 
How is AI changing journalism? (v. April 2024)
How is AI changing journalism? (v. April 2024)How is AI changing journalism? (v. April 2024)
How is AI changing journalism? (v. April 2024)Damian Radcliffe
 
Nanded City ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready ...
Nanded City ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready ...Nanded City ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready ...
Nanded City ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready ...tanu pandey
 
INDIVIDUAL ASSIGNMENT #3 CBG, PRESENTATION.
INDIVIDUAL ASSIGNMENT #3 CBG, PRESENTATION.INDIVIDUAL ASSIGNMENT #3 CBG, PRESENTATION.
INDIVIDUAL ASSIGNMENT #3 CBG, PRESENTATION.CarlotaBedoya1
 
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...Diya Sharma
 
Pune Airport ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready...
Pune Airport ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready...Pune Airport ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready...
Pune Airport ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready...tanu pandey
 
Call Now ☎ 8264348440 !! Call Girls in Sarai Rohilla Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Sarai Rohilla Escort Service Delhi N.C.R.Call Now ☎ 8264348440 !! Call Girls in Sarai Rohilla Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Sarai Rohilla Escort Service Delhi N.C.R.soniya singh
 

Kürzlich hochgeladen (20)

Russian Call Girls in %(+971524965298 )# Call Girls in Dubai
Russian Call Girls in %(+971524965298  )#  Call Girls in DubaiRussian Call Girls in %(+971524965298  )#  Call Girls in Dubai
Russian Call Girls in %(+971524965298 )# Call Girls in Dubai
 
AWS Community DAY Albertini-Ellan Cloud Security (1).pptx
AWS Community DAY Albertini-Ellan Cloud Security (1).pptxAWS Community DAY Albertini-Ellan Cloud Security (1).pptx
AWS Community DAY Albertini-Ellan Cloud Security (1).pptx
 
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$
 
Hot Call Girls |Delhi |Hauz Khas ☎ 9711199171 Book Your One night Stand
Hot Call Girls |Delhi |Hauz Khas ☎ 9711199171 Book Your One night StandHot Call Girls |Delhi |Hauz Khas ☎ 9711199171 Book Your One night Stand
Hot Call Girls |Delhi |Hauz Khas ☎ 9711199171 Book Your One night Stand
 
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝
 
Dwarka Sector 26 Call Girls | Delhi | 9999965857 🫦 Vanshika Verma More Our Se...
Dwarka Sector 26 Call Girls | Delhi | 9999965857 🫦 Vanshika Verma More Our Se...Dwarka Sector 26 Call Girls | Delhi | 9999965857 🫦 Vanshika Verma More Our Se...
Dwarka Sector 26 Call Girls | Delhi | 9999965857 🫦 Vanshika Verma More Our Se...
 
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort ServiceEnjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort Service
 
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
 
GDG Cloud Southlake 32: Kyle Hettinger: Demystifying the Dark Web
GDG Cloud Southlake 32: Kyle Hettinger: Demystifying the Dark WebGDG Cloud Southlake 32: Kyle Hettinger: Demystifying the Dark Web
GDG Cloud Southlake 32: Kyle Hettinger: Demystifying the Dark Web
 
Top Rated Pune Call Girls Daund ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
Top Rated  Pune Call Girls Daund ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...Top Rated  Pune Call Girls Daund ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
Top Rated Pune Call Girls Daund ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
 
Hot Service (+9316020077 ) Goa Call Girls Real Photos and Genuine Service
Hot Service (+9316020077 ) Goa  Call Girls Real Photos and Genuine ServiceHot Service (+9316020077 ) Goa  Call Girls Real Photos and Genuine Service
Hot Service (+9316020077 ) Goa Call Girls Real Photos and Genuine Service
 
How is AI changing journalism? (v. April 2024)
How is AI changing journalism? (v. April 2024)How is AI changing journalism? (v. April 2024)
How is AI changing journalism? (v. April 2024)
 
Nanded City ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready ...
Nanded City ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready ...Nanded City ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready ...
Nanded City ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready ...
 
INDIVIDUAL ASSIGNMENT #3 CBG, PRESENTATION.
INDIVIDUAL ASSIGNMENT #3 CBG, PRESENTATION.INDIVIDUAL ASSIGNMENT #3 CBG, PRESENTATION.
INDIVIDUAL ASSIGNMENT #3 CBG, PRESENTATION.
 
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
 
@9999965857 🫦 Sexy Desi Call Girls Laxmi Nagar 💓 High Profile Escorts Delhi 🫶
@9999965857 🫦 Sexy Desi Call Girls Laxmi Nagar 💓 High Profile Escorts Delhi 🫶@9999965857 🫦 Sexy Desi Call Girls Laxmi Nagar 💓 High Profile Escorts Delhi 🫶
@9999965857 🫦 Sexy Desi Call Girls Laxmi Nagar 💓 High Profile Escorts Delhi 🫶
 
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
 
Pune Airport ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready...
Pune Airport ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready...Pune Airport ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready...
Pune Airport ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready...
 
Call Now ☎ 8264348440 !! Call Girls in Sarai Rohilla Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Sarai Rohilla Escort Service Delhi N.C.R.Call Now ☎ 8264348440 !! Call Girls in Sarai Rohilla Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Sarai Rohilla Escort Service Delhi N.C.R.
 

Anycast on a shoestring by Nat Morris [APRICOT 2015]

  • 1. Anycast on a shoestring Nat Morris - @natmorris Tuesday 2nd March 2015 – APRICOT2015, Fukuoka, Japan As seen at DNSOARC May 2014, SANOG24, RIPE69, UKNOF30
  • 2. About me • Consultant, Esgob Ltd • Team leader, Cumulus • Board member, UKNOF • Based in West Wales, UK • Aspiring lighthouse keeper
  • 3. Anycast 101 • Simple concept: – Announce the same address space from multiple locations – Multiple paths in BGP, best one selected based on policy •Benefits: – Increased reliability – Load balancing – Improved performance – Localized impact of DoS attacks
  • 4. Summary • Fancied deploying a DNS Anycast service • Motivated by: – Bill Woodcock, PCH • SANOG8: “Best Practices in DNS Anycast Service-Provision” – Dave Knight, ICANN (now Dyn) • RIPE64: “Dense Anycast Deployment of DNS Authority Servers” • Gain more experience automating distributed environments.
  • 5. Thoughts • Can I do it without spending too much? • What to offer? – Initially only secondary DNS – IPv4 + IPv6 – Free service - no SLA, no Revenue •Does Claire need to find out? Must be sub $1000/yr running cost
  • 6. Requirements • Separation from existing management network - AS30746 • Had spare PI /24 + /48 • Applied for new ASN - got AS60564 • Need highly automated framework • Wanted to play with new tools • Open source everything – https://github.com/esgob
  • 7. Network • Each anycast node: – Announce: – v4 /24 anycast v6 /48 anycast v6 /48 site specific anchor – Static default route to the provider (accept no routes) Node 1 AS60564 Upstream A ASxxx BGP Announce 193.47.147.0/24 2001:067c:1b43::/48 2a04:ec40:ff01::/48 Node 2 AS60564 Upstream B ASxxx BGP Announce 193.47.147.0/24 2001:067c:1b43::/48 2a04:ec40:ff02::/48 Node 3 AS60564 Upstream C ASxxx BGP Announce 193.47.147.0/24 2001:067c:1b43::/48 2a04:ec40:ff03::/48 Node 4 AS60564 Upstream D ASxxx BGP Announce 193.47.147.0/24 2001:067c:1b43::/48 2a04:ec40:ff04::/48 /30 + /64
  • 8. Network • All management traffic inside OpenVPN – Additional RFC1918 loopback per node – No need for TSIG from AXFR to anycast nodes – Protects beanstalk traffic, API, collectd, zone transfers Node 1 AS60564 Upstream A ASxxx Node 2 AS60564 Upstream B ASxxx Node 3 AS60564 Upstream C ASxxx Node 4 AS60564 Upstream D ASxxx Management GW
  • 9. DNS zone transfers AS30746 axfr.esgob.com Anycast nodes ns1.esgob.com Master servers operated by others ns0.esgob.co.uk (only my zones) AS60564 Supports notifies from masters
  • 10. Store everything in JSON • Data stored in RethinkDB – Distributed JSON document database – Free form, easy to add attributes
  • 11. Application design • REST API - Python + Flask framework • cronjob + rsync free zone • Beanstalk - Message queue – Add/change/removal of zones via API triggers job to be added to queue – Daemons on AXFR + Anycast nodes wait for jobs – New zones live on all nodes with 5 seconds RethinkDB REST API Python + Flask Website Python + Flask Scripts / Daemons BeanstalkD job job Config files Jinja2 templates Redis Users
  • 12. Where to host the anycast nodes? • Can’t cost too much each month – Ruled out renting co-lo / dedicated servers • Need a wide reach • Virtual machines – Swap with friends? • Low cost hardware
  • 13. Mythic Beasts • UK clueful hosting company • £7/month = £84/yr = $141/yr – 512mb RAM, 1 CPU, 10gb HDD, 75gb BW • Bought a VM, opened a support ticket – BGP not listed on the website. – Me: “I have a /24 + /48 of PI, can you set me up a BGP session? see AS60564 + AS-ESGOB-ANYCAST” – Them: “Peer with these IPs, sessions are ready!” • Too easy!
  • 14. Quest to find more friendly VM hosts • LowEndBox.com – Blog / adverts for VM providers, all < $10 month – Usually OpenVZ based – Need KVM/XEN/VMWare to support Quagga/BIRD • LowEndTalk.com – Message board, various small scale VM hosts • Google – “vps bgp session”
  • 15. Anynode in Detroit • Listing on LowEndTalk – Asked if they could support BGP. – Yes on any VPS!! • $80/yr, 1 CPU, 512mb, 40gb HDD, 500gb BW
  • 16. Indian bargin! • LeapSwitch, based in Pune, India. – New VPS host, saw an offer advertised • $120/yr, 1gb RAM, 20gb HDD, 500gb BW
  • 17. Growing - Oct 2013 • Up to 4 VMs – London A (on existing KVM server) – London B – Detroit – India • Spinning up VM taking about 10 minutes – Add JSON entry into RethinkDB – Install Debian – Install Puppet (Collectd, BIND, Quagga, custom daemons etc) – Done – Pub!
  • 18. Friends - Oct 2013 • Offers to host VMs for free from: – Edinburgh @ Fluency – Boston @ TorwardEx • One swap: – Bremen, Germany @ Fremaks • Quickly up to 7 nodes after 1 month
  • 19. Friends • “We can host something, but not a VM” • Various issues: – Network engineers didn’t have access to VM hosts – No VM infrastructure at all – All VMs routed by hypervisor, can’t bridge to BGP routers • Solution… – Raspberry PI, $35 – 512mb / 16gb SD Card – 800mhz (overclocked)
  • 20. Raspberry Pi • Sent RPI to Belfast – David Farrell @ Tibus • Ran NSD3 great, ~200qps • Adding / removing zones with NSD3 required service restart ☹ • Swapped to PowerDNS, testing went ok • pdns_control segfault’ing on ARM • Gave in and moved to BIND
  • 21. Time to peer - Jan 2014 • Offer of a node at SFMIX from Matt Peterson • San Francisco based IXP • Couldn’t turn this down. • Zero U install • Needed 2 NICs, IX + OOB – FitPC2i - perfect ☺ – Atom 1.6ghz, 1gb RAM, 16gb SSD – $150 on eBay • Peering with: – HE.net, ISC, Unwired, PCH – Layer42, Lookout, DigitalOcean
  • 22. Pi problems • Puppet slow + loading zones taking too long • More offers to host h/w nodes – Manchester, Andy Davidson @ Allegro • Gigabyte BRIX – Quad Core, 1.8ghz, 4gb RAM, 30gb MSATA • Swap out Belfast Pi
  • 23. Still growing today • 25 nodes live • 3 peering locations: SFMIX San Francisco RIX Reykjavik, Iceland ULN-IX Ulyanovsk, Russia As of 2nd March 2015
  • 24. Fun along the way • First BGP customer for some of the VM hosts: – Assisted educating them… – Prefer transit routes over customers, eek – No BGP filters / route-maps or prefix lists - Ahhhhh! • Some hosts don’t have communities – Helping people get those implemented • RIPE Atlas – Scheduled measurements to look at latency + CHAOS id.server •RIPEstat –Using the REST API to query visibility of a /48 anchor from each instance, 15mins to get working.
  • 25. Market for VMs with BGP sessions
  • 26. Discoveries • Easy to find budget anycasters – Webhost forums / LowEndTalk / bgp.he.net • “Interesting” deployment methods – Shared /24 • Dedicated IP, custom fwd/rev DNS, slaved zones – Hosted /24 • Same as above but customer provides /24 to announce – Shared /24, /32 tunneled • Dedicated IP, tunneled by anycaster to customer via GRE – Single /24 • Anycaster only has one /24, website + mail + mgmt in same space. DNS answered at edge, other IPs tunneled to another VM/dedicated box.
  • 27. Discoveries • Not all budget DNS hosting companies host every zone at the edge – Some host zones centrally and cache at the edge • Some tunnel all DNS traffic back to a location: – Looks like anycast – Poor DNS performance – GRE from edge to a single auth server – Selling /32 GRE tunnels to customers!
  • 28. Not just DNS? • Simple HTTP/HTTPS service to assist debugging – local.esgob.com – local4.esgob.com / local6.esgob.com • Returns JSON via lighttpd on each node nat@enw:~ $ curl http://local.esgob.com { "city": "London", "country": "England", "countryiso": "gb", "flag": "england", "locationdisplay": "England, London, B", "ref": "ql7f823b" }
  • 29. What next? • Keep honest – host every zone at the edge • Finish web interface • Healthy mix of routing and DNS daemons: – configurable per node via JSON in RethinkDB – BIND, NSD4, KNOT, Quagga, BIRD + ExaBGP •Looking for friendly hosts: – Europe, Africa, India, Asia, South America, anywhere!
  • 30. As of today... Currently costing just under $480/yr - Claire compliant!
  • 31. Take aways • Low barrier to entry - VM with BGP full table $40/yr • Don’t become part of the problem! –Ensure your customers aren’t hijacking prefixes –Always use IRR prefix lists on cust BGP sessions • Using anycast can improve service delivery to your customers • Automate all things! • Have fun and share your experiences