Facebook is down this morning, apparently due to a BGP problem.

What's BGP? It's an absolutely essential but fairly obscure internet protocol. I have a CS degree, but I only know about it because I did a summer internship with @Akamai a very long time ago.

A brief explainer:
One of the more mind-blowing facts about the Internet is that *no one owns or manages all of it*, and there is no central authority keeping track of all of its parts. Authority and responsibility are distributed among a large number of ISPs who manage independent networks.
Each ISP has a map of its own network, so its routing computers can route packets of information internally. But how does information go beyond the confines of one ISP? How does a browser on Comcast talk to a website on AT&T?
For this to happen, each ISP has to have some way of talking to the other ISPs and exchanging some sort of network information.

Enter BGP: the Border Gateway Protocol.
BGP organizes the Internet into “autonomous systems” (ASes). Each ISP's network is an AS.

The ASes talk to each other at “peering points”, each of which is a bridge or gateway from one AS to another.
BGP is the protocol that routers at peering points speak to each other, to help each other understand the others' network.

They can't exchange complete maps of their internal networks—that would be too much info, and it changes too fast.
What they exchange is just information about which internet addresses (IP addresses) they contain, and which other ASes they peer with.

From that information, any router can form a high-level picture of what ASes they need to traverse to get to any other point on the Internet.
For instance, suppose my browser, on my local Comcast network, is trying to reach a website in Japan on a local ISP there. And suppose those networks don't peer with each other directly, but AT&T peers with both.
My laptop only knows to send the request to a router on the Comcast network. But once it's in the middle of that network, the routers need to figure out which way to send it. They consult their AS map derived from BGP. This says that the shortest AS path is through AT&T.
So the Comcast routers say, aha, what I have to do is get this packet to AT&T, and they'll take care of it. That they know how to do because of their internal map of the Comcast network.
The AT&T routers, again because of BGP, know that they are directly connected to the Japanese ISP. So they consult their internal map to find where that peering point is, and route the packet there.
Finally it's dropped off at the Japanese peering point, and can then be routed internally to the website.

But all of that is possible only because of BGP.
You can imagine that if this gets misconfigured, it could be Very Bad™️. An entire AS could just disappear, getting sucked into an internet black hole. Apparently that's what happened to Facebook today.
Disclaimer: this is a simplified, high-level, layman's summary, and it's based on 20-year-old knowledge that may have rusted, or things may be different now. No warranty express or implied. Read more: en.wikipedia.org/wiki/Border_Ga…
PS: How did BGP, specifically, mess up Facebook? Here's a brief thread about it. Facebook seems to have put out an empty/null BGP message, causing all network hell to break loose:

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Jason Crawford

Jason Crawford Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @jasoncrawford

4 Oct
Proposed NYC subway expansion, 1920. Everything in red was proposed to be built by 1945.

Source: NYT, colorized for readability by @Chaos_Boy / @transitmap transitmap.net/ny-subway-expa…
Here's the original, from Oct 3, 1920. The plan was for an additional 830 miles of track over 25 years. The eventual capacity would be 5 billion passengers per year.

timesmachine.nytimes.com/timesmachine/1…
Said chief engineer Daniel Turner, “the growth of the city will never cease… in twenty-five years the population will be in the neighborhood of 9,000,000, and … the city must speedily provide facilities for the accommodation of an additional 2,000,000 passengers a year.”
Read 8 tweets
9 Jul
In the 1960s, one of the top concerns of the environmentalist movement was “overpopulation”. Books such as *The Population Bomb* and *Famine 1975!* waged a campaign to sound the alarm.

What happened next: Image
*The Population Bomb*, by Paul and Anne Ehrlich, was particularly defeatist, opening with:

“The battle to feed all of humanity is over. In the 1970s… hundreds of millions of people are going to starve to death in spite of any crash programs embarked upon now.”
In 1970, Paul Ehrlich said: “When you reach a point where you realize further efforts will be futile, you may as well look after yourself and your friends and enjoy what little time you have left. That point for me is 1972.”

books.google.com/books?id=pwsAA…
Read 12 tweets
30 Jun
Cars are one of the most amazing and wonderful inventions in all of history. They serve us. They connect us. They liberate us.

The future should have lots more cars. Self-driving cars. Flying cars. Space cars! Cars are fantastic.
Nothing else:

* Takes you directly from origin to destination
* Is available instantly on-demand
* Can carry a family and/or packages
* Protects you from the elements
* Is safe to use at night and in all weather

For convenience, practicality, and safety, cars are unbeatable.
Cities should absolutely be designed around cars! Not as an exclusive consideration, but as one of the top considerations.

A city that is unfriendly to cars is a bad city.
Read 31 tweets
13 Jun
It’s almost impossible to predict the future. But it’s also unnecessary, because *most people are living in the past*.

All you have to do is see the present before everyone else does.
Less pithy, but more clear:

Most people are slow to notice and accept change. If you can just be faster than most people at seeing what’s going on, updating your model of the world, and reacting accordingly, it's almost as good as seeing the future.
We see this in the US with covid. The same people who didn’t realize that we all should be wearing masks, when they were life-saving, are now slow to realize/admit that we can stop wearing them.
Read 15 tweets
26 May
The more I study nuclear technology the more I think that every problem of today's nuclear tech has a potential solution that has already been identified. They just haven't been brought to market, because the market is sclerotic.
Nuclear is slow and expensive? There are faster, cheaper ways to build.

It's dangerous? There are safer designs.

Nuclear plants are bespoke megaprojects? There are small, standardized, modular approaches?
Nuclear can't do load-following? Actually it can (and does in France).

It produces waste? There are designs that burn that “waste”.

Weapons proliferation? There are designs that don't produce weapons-grade material.
Read 7 tweets
6 May
“Patents are not the problem. All of the vaccine manufacturers are trying to increase supply as quickly as possible. Billions of doses are being produced–more than ever before in the history of the world. Licenses are widely available.…

marginalrevolution.com/marginalrevolu…
“There are no mRNA factories idling on the sidelines. … Why do you think China hasn’t yet produced an mRNA vaccine? Hint: it isn’t fear about violating IP.”

marginalrevolution.com/marginalrevolu…
“The US trade representative’s announcement is virtue signaling to the anti-market left and will do little to nothing to increase supply.”

marginalrevolution.com/marginalrevolu…
Read 6 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!

Follow Us on Twitter!

:(