Knowledgebase

Advertise webserver ip using BGP !!

Posted by atif-register, 05-30-2015, 01:04 PM
Hi, We're running high traffic website which cannot afford downtime, our servers are deployed in single DataCenter and whenever any event occurs inside DC such as (power-outage, networking issue) whole website goes offline. To overcome this issue, we're going for primary/secondary DataCenter. So if primary DC goes down, traffic should be re-routed towards Secondary Dc. To achieve this, we're planning to advertise same webserver ip from both DataCenter using BGP routing. Following is what we believe will do our job (Off-course , we'll need expert advise on it). - Our router in front of web-cluster will be advertising its IP(1.1.1.1) to peering router (DC switch), which will be then advertising this ip to their peering ISP and rest of the internet. - If our primary router goes down, advertising will be vanished. - Meanwhile, the router in secondary DC will also be advertising the same ip(1.1.1.1) towards its nearest peer which is ISP router. So traffic will be re-routed towards secondary DC and downtime will be minimized. To implement it, we've following confusions : - Is this method valid or there are better ways of achieving this ? - Do we have to get own ip space such as /18 prefix to implement this, or there are other options as well ? - If we use unicast DNS server whose ip is different from /18 prefix , and create DNS entry against 1.1.1.1 ip . Will this be enough ? Looking for expert suggestions on this matter. Thanks in advance.

Posted by DJMizt73, 06-08-2015, 01:54 PM
Have you ever implemented BGP peering before? You will need to apply for an ASN plus hope to get/buy IP blocks from someone (unless you can justify a /22 allocation from ARIN). The minimum routable block an ISPs will take is a /24. Providers will not aggregate anything smaller than this. Also if you are just handing this off to your DC provider you may not be able to justify the multi-homed requirement to get an ASN You maybe better off looking into global load balancing services. The minimum would be something like a DNS load balancing but that's not always effective. Good luck.

Posted by atif-register, 06-14-2015, 01:35 PM
Thanks for reply. Well, we'll get /22 or /24 prefix and we're not worried about this part. I just wanted to confirm the method i am about to apply is valid or community got more flexible and applicable method ? And you didn't answer this part . Anyway, thanks for your contribution !!

Posted by dcdan, 06-14-2015, 03:18 PM
You can do this without ASN by using private AS numbers with your upstream providers (DC). Provided that you have at least a /24 what you want to accomplish is possible and should not take a lot of effort. Making sure your servers are in sync will probably be a much more complicated task to accomplish, it can be especially tricky if a database is involved.

Posted by DJMizt73, 06-16-2015, 02:20 PM
if you can get a /22 and ASN then yes - this is doable; you will need to create an IBGP peering between your two routers, create communities to control your routing, preferences, create a failover routing with preference on both routers, etc. Also it is not 'your' router's IP that needs to be advertised to your upstream ISP but your web-cluster IPs. I dont think you can accomplish this using private ASN as dcdan suggest. You have to own your IP (delegated) before you can advertise it to your upstreams. If your DC is providing you with the subnet and it is not delegated then your other upstream ISP (secondary site) will reject those advertisements.

Posted by JustinAY, 06-17-2015, 12:09 PM
I would strongly recommend consulting a professional for this. You are in no way to ready to implement this and it is not a trivial task.I do not mean to sound like a jerk, but there is simply no other way of putting it. Do you have a network engineer on staff or would you be interested in an outside agency? There are some bandwidth resellers who do network services, along with companies who specialize in this type of thing here, if you are interested. It really depends on what you may be interested in.



Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article

Also Read
OpenVZ, Xen or VMWare (Views: 529)
Lovevps.com (Views: 690)


Language:

Client Login

Email

Password

Remember Me

Search