hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Colocation and Data Centers : BGP default route - how to failover when provider peers down?
Reply

Colocation and Data Centers Find data centers, server hardware, bandwidth providers, and techniques for colocation purposes. Get advice on colocation web hosting, review providers and offer suggestions on choosing colocation hosting services and the right datacenter. If your service is unavailable, please click here.
Forum Jump

BGP default route - how to failover when provider peers down?

Reply Post New Thread In Colocation and Data Centers Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 02-21-2011, 05:44 PM
eger eger is offline
Web Hosting Evangelist
 
Join Date: Feb 2004
Location: Bay Area, CA
Posts: 521

BGP default route - how to failover when provider peers down?


I'm setting up BGP so I can be multi-homed to a second provider. My switch doesn't have enough memory to receive a full table so I will do equal cost balancing with default routes.

My primary reason for adding a second provider is to help with unplanned downtime when a provider (or their peers) do maintenance. However, my understanding is that with a default route originated to me, even if the providers peers are down, they will still send me a default route and I would still try to send them traffic. This would still make me essentially down (or having at least 50% packet loss) while one of the 2 providers are having issues.

So my question is, what mechanism out there would let me suppress receiving a default route or ignore it when that providers peers are down or having an issue? How can I work around the issue of receiving a default route for a router that might not actually have a working internet connection (or may be having issues)?

Reply With Quote


Sponsored Links
  #2  
Old 02-21-2011, 06:00 PM
Jay Suds Jay Suds is offline
Web Hosting Master
 
Join Date: Jun 2001
Location: Denver, CO
Posts: 3,210
If your BGP session is down with a peer, they will not be able to advertise any routes, default or otherwise, to you. You can easily admin down a peer, however, if they are having network troubles and your BGP session is still up. On IOS, it's like ...

to disable:
conf t
router bgp xxxxx
neighbor x.x.x.x shutdown
end
wr mem

to enable:
conf t
router bgp xxxxx
no neighbor x.x.x.x shutdown
end
wr mem

__________________
Jay Sudowski // Handy Networks LLC // Co-Founder & CTO
AS30475 - Level(3), HE, Telia, XO and Cogent. Noction optimized network.
Offering Self Managed, Truly Dedicated Server and Colocation from our Private Denver Data Center.
Current specials here. Check them out.

Reply With Quote
  #3  
Old 02-21-2011, 06:52 PM
appliedops appliedops is offline
NetOps Ninja
 
Join Date: Jan 2005
Location: San Francisco/Hot Springs
Posts: 984
Quote:
Originally Posted by eger View Post
My primary reason for adding a second provider is to help with unplanned downtime when a provider (or their peers) do maintenance. However, my understanding is that with a default route originated to me, even if the providers peers are down, they will still send me a default route and I would still try to send them traffic.
That is 100% correct, you will be affected. You need full routes to handle peer outages.

Quote:
So my question is, what mechanism out there would let me suppress receiving a default route or ignore it when that providers peers are down or having an issue?
Your provider would need to support a conditional advertisement, but I'd say thats unlikely to really provide what you need.

__________________
AppliedOperations - Premium Service
Bandwidth | Colocation | Hosting | Managed Services | Consulting
www.appliedops.net

Reply With Quote
Sponsored Links
  #4  
Old 02-21-2011, 09:42 PM
rhythmic rhythmic is offline
Junior Guru Wannabe
 
Join Date: Jan 2011
Posts: 37
Quote:
Originally Posted by eger View Post
So my question is, what mechanism out there would let me suppress receiving a default route or ignore it when that providers peers are down or having an issue? How can I work around the issue of receiving a default route for a router that might not actually have a working internet connection (or may be having issues)?
It depends on your equipment. There are a lot of different options you have available to you. The most common is to create a ping target that is hit through each connection. If the ping target is down, the router marks the port administratively down proactively, continuing to ping that target until it is working again.

I personally wouldn't recommend this for multihoming, though. If your providers are legit, each of them should have full routing tables from their carriers. This means if they lose any given peer, you might see degraded performance, but you'll still have full accessibility to the Internet. If each of your providers only has one provider themselves, you've got bigger issues!

By the way, keep in mind that ECMP is only going to affect your outbound traffic. You'll have to do creative things with prepending and subnet splitting to balance your outbound traffic.

Do you mind sharing what gear you're using for this?

Reply With Quote
  #5  
Old 02-21-2011, 11:43 PM
FastServ FastServ is online now
Randy
 
Join Date: Aug 2006
Location: Ashburn VA, San Diego CA
Posts: 3,902
What you need is either SLA tracking to up/down poorly performing peers. But this is usually not available some lower end devices. The other option would be to write some scripts to do the SLA tracking on the LAN segment and use something like rancid to automate neighbor changes (like Jay Suds example) on the router when problems are detected.

__________________
Fast Serv Networks, LLC | AS29889 | Dedicated, Cloud, Streaming and more...
Auto OS Install | IPMI | Routed Private Network w/VPN | Managed Services


Reply With Quote
  #6  
Old 02-22-2011, 01:14 AM
eger eger is offline
Web Hosting Evangelist
 
Join Date: Feb 2004
Location: Bay Area, CA
Posts: 521
Quote:
Originally Posted by rhythmic View Post
Do you mind sharing what gear you're using for this?
I am using a Foundry FESX448 to try and do this. I'm an extremely small time shop so I can't afford a real router at the moment. I did finally find some examples which show sla tracking. I also found some examples for doing conditional default-originate with a route-map. But it looks like this needs to be done at the provider end and I doubt many would want to configure and maintain something like that.

The main thing that worries me is that I have had downtime due to "fiber cuts" (not quite sure what the actual problem is yet as still waiting on a RFO) where my network was down but the network port was. I am adding a second provider to take over in the event one is down. But I worry that even though the provider may not pass traffic, the peer session will still be UP and I'll just be sending 50% of the traffic to /dev/null until someone complains or I notice

By the way, thanks for the comments everyone! Really wish I could just do a full view.

Reply With Quote
  #7  
Old 02-22-2011, 01:30 AM
Jay Suds Jay Suds is offline
Web Hosting Master
 
Join Date: Jun 2001
Location: Denver, CO
Posts: 3,210
During that outage, were you able to ping your providers default gateway? Where exactly was the fiber cut? Between you and them, or between them and the world?

__________________
Jay Sudowski // Handy Networks LLC // Co-Founder & CTO
AS30475 - Level(3), HE, Telia, XO and Cogent. Noction optimized network.
Offering Self Managed, Truly Dedicated Server and Colocation from our Private Denver Data Center.
Current specials here. Check them out.

Reply With Quote
  #8  
Old 02-22-2011, 01:42 AM
eger eger is offline
Web Hosting Evangelist
 
Join Date: Feb 2004
Location: Bay Area, CA
Posts: 521
I wasn't able to test as I was not on site. I'm guessing it was between them and the world. I only know that my port with them never went down from logging (I log port up/downs). I suppose I should start monitoring my gateways too!

Reply With Quote
  #9  
Old 02-22-2011, 02:25 AM
Jay Suds Jay Suds is offline
Web Hosting Master
 
Join Date: Jun 2001
Location: Denver, CO
Posts: 3,210
It's pretty sad that a single fiber cut apparently took your provider entirely offline. No redundant transport / transit is not acceptable in this day.

__________________
Jay Sudowski // Handy Networks LLC // Co-Founder & CTO
AS30475 - Level(3), HE, Telia, XO and Cogent. Noction optimized network.
Offering Self Managed, Truly Dedicated Server and Colocation from our Private Denver Data Center.
Current specials here. Check them out.

Reply With Quote
  #10  
Old 02-22-2011, 09:47 AM
rhythmic rhythmic is offline
Junior Guru Wannabe
 
Join Date: Jan 2011
Posts: 37
Quote:
Originally Posted by eger View Post
I wasn't able to test as I was not on site. I'm guessing it was between them and the world. I only know that my port with them never went down from logging (I log port up/downs). I suppose I should start monitoring my gateways too!
As long as the BGP session goes down, it doesn't matter if the port is up. The session will timeout in whatever threshold you set (3-5 minutes is typically the default), at which point that default gateway will disappear. I have had plenty of carrier issues where the port was up but the network was down, particularly with providers that backhaul you to another data center for routing. I can't think of a time where I've ever had a provider with the session up but all traffic on their network down, and I'd be rightly pissed it happened.

Reply With Quote
  #11  
Old 02-22-2011, 03:03 PM
Spudstr Spudstr is offline
Master of the Truth
 
Join Date: Mar 2006
Location: Reston, VA
Posts: 3,048
Quote:
Originally Posted by Jay Suds View Post
It's pretty sad that a single fiber cut apparently took your provider entirely offline. No redundant transport / transit is not acceptable in this day.
To add to this I have seen people who use media converters which give a false positive of "links" being up and hence causing a bgp session to stay "up" until it default times out.... lower bgp timeouts can help with this but I've seen it way to often due to low end media converters.

__________________
Yellow Fiber Networks
http://www.yellowfiber.net : Managed Solutions - Colocation - Network Services IPv4/IPv6
Ashburn - Reston - DC - Denver Markets Served -- zak@yellowfiber.net
You might not like my answers, but it will be the most straight forward and honest answer you will get here.

Reply With Quote
  #12  
Old 02-22-2011, 03:34 PM
appliedops appliedops is offline
NetOps Ninja
 
Join Date: Jan 2005
Location: San Francisco/Hot Springs
Posts: 984
Quote:
Originally Posted by rhythmic View Post
I can't think of a time where I've ever had a provider with the session up but all traffic on their network down, and I'd be rightly pissed it happened.
I've experienced this a few times, it was pretty irritating.
This happens especially with carriers who do multihop/etc, where the direct attach device is sending default+loopbacks, and continues to send default even though the upstream router is down/broken. If you have full routes its less of a big deal, but it can be pretty annoying.

__________________
AppliedOperations - Premium Service
Bandwidth | Colocation | Hosting | Managed Services | Consulting
www.appliedops.net

Reply With Quote
  #13  
Old 02-23-2011, 02:19 AM
condoraam condoraam is offline
Temporarily Suspended
 
Join Date: Jan 2011
Location: Hong Kong
Posts: 59
If your interface down, your BGP will down and your router will auto use your second route in your routing table.

If your upstream whole network down, you can use SLA tracking to send ping request to a target IP. If the connection break, switch to second link.

If your upstream down only a part of network, You cannot control if you are not recvice a full BGP table. If you have full route table. Your router will find second AS-path to your target network.

Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
BGP Alternative to Route to Null0 VegasAdmin Hosting Security and Technology 7 12-30-2010 06:48 PM
Heartbeat Failover, Virtual IP, Route Problems matt2kjones Hosting Security and Technology 3 12-10-2009 08:17 AM
add new default route for 2nd nic in freebsd Pillhead Hosting Security and Technology 8 10-12-2002 01:03 PM
Changing default route mpope Hosting Security and Technology 1 04-22-2002 06:44 PM

Related posts from TheWhir.com
Title Type Date Posted
Web Host FireHost Expands Business Continuity Solutions Web Hosting News 2012-08-15 15:58:31
Parallels Australia Cloud Forum Sydney 2012 Web Hosting Events 2012-05-21 16:49:41
Colocation Firm Zayo Buys Telecommunications Firm 360networks Web Hosting News 2011-10-11 20:05:40
Web Host Rackspace Offers Cloud DNS Beta to UK and US Customers Web Hosting News 2011-07-08 13:52:04
Hibernia Atlantic Provides Access to BATS Financial Exchanges in Europe and US Web Hosting News 2011-06-29 14:25:26


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?