4 ms·
Stupid question: why does WhatsApp need to be its own AS?
by bonzini 6y ago
Stupid question: why does WhatsApp need to be its own AS?
- toast0 6y agoIt's helpful for some network policy issues.
- cranekam 6y agoI'm not sure what AS11917 is for now but the lion's share of WhatsApp now runs over/in Facebook's network/datacenters. WhatsApp chat connections are terminated on the FB edge like most other FB traffic and it shares FB's common CDN for media. AS11917 might be some legacy stuff or, as was mentioned, special policy stuff. But assuming things are as they were a year or two ago most of your WA traffic is via AS32934. Source: also worked at FB/WA.
- rescbr 6y agoSome chat endpoints were still at SoftLayer/IBM Cloud and I saw some at AWS as of early this year. Source: helped a customer with WA Business architecture (and worked at SL/IBM in the past)
- WhyDoesDangSuck 6y agoProbably because it was a standalone application before purchased for 22 Billion by Facebook in 2014.
- mrweasel 6y agoI'm not 100% sure, but if WhatsApp wanted to run their own datacenters, then they'll need their own IP ranges, and BGP/AS numbers is how IPs are "routed". The AS number is used to let others know that a given IP range is reachable via your router. I'd like to give a better explanation, but I think it would be wrong. BGP is really hard for me to grasp, even if my networking colleagues claims it's not really that complicated.
- cranekam 6y ago"Running a datacenter" isn't something that inherently needs its own IP range. You could run a datacenter only in private address space and NAT to the internet (though this wouldn't really be very practical) or even run in private space. My point is that having a lot of computers doesn't _necessarily_ require getting public IPs or ASNs. You need public addresses if you want to be publicly reachable. If you're small you might find an ISP — let's say ISP Inc — that will give you an internet connection and allocate some part of the address space it in turn has been allocated. There's no need for BGP or dedicated IPs here — the rest of the internet already knows how to reach the range(s) of addresses assigned to ISP Inc, and from there ISP Inc's own network takes care of sending the traffic down the pipe to you. If you need a lot more addresses, or you want to use more than one ISP (either of which could apply to WhatsApp's case), you probably need to get a dedicated assignment and an ASN. The ASN means you're an "autonomous system" — not a carved out bit of someone else's network. You go to your local registrar and convince them you need some addresses, and then you go to your ISP(s) and ask them for "transit", which means they'll connect you to their network and route to and from the rest of the internet for you. But since you're now using your own addresses it's not as simple as above, where your IPs were part of your ISP's range and everyone else just sent their traffic to your ISP for them to route to you. Your IPs are yours now, and until you tell the rest of the internet how to find you nothing will work. To make this work you have to get your ISP(s) to tell the internet "hey, y'all want to send traffic to Mr Weasel LLC? I can handle it for you". This is called "announcing" a prefix (IP range) and BGP is the mechanism through which all the routers on the internet propagate announcements detailing who is providing connectivity to who. Conceptually this stuff is quite straightforward but in practice it can be mindbending. As well as transit there are peering arrangements (where Mr Weasel can arrange with Netflix to swap traffic over a dedicated physical connection, rather than their respective ISPs) and hella complicated traffic engineering schemes linking the big content providers to the internet. For instance, Facebook has thousands of transit and peering connections with other ISPs and providers and deciding which path is optimal for any given situation requires very complicated policies and management.
- topranks 6y agoWhile what you suggest is possible it’s amature and fraught with problems. Any halfway serious company that wanted to run a global application on their own infra is gonna need their own ASN and internet presence with their own IP space.