Different networks use different BGP communities for remote-triggered blackholing (RTBH). That’s a problem when you’re trying to automate DDoS mitigation.
Following a proposal from Inter.link’s Stefan Funke and James Bensley, PeeringDB introduced a new rtbh_community field in release 2.83.0, giving networks a common place to publish their RTBH communities.
We’re already using this data at Inter.link to automate RTBH with other networks, without relying on manually maintained lookup tables. This is a major win for the network community because it helps to overcome a key challenge.
A Brief History of RTBH and BGP Communities
For many years (or even decades), network operators have used Border Gateway Protocol (BGP) communities for what RFC 7999 later called “destination-based blackholing in IP networks.”
By tagging a prefix with such a community, networks can signal their upstreams or peering partners to blackhole traffic destined for it. Typically, you would use this feature to drop traffic towards a network (prefix) that is under heavy attack and congesting your network capacity and services.
The Challenge of Automating RTBH
As is often the case, everyone did their own thing and implemented whatever they thought was best for their own network. They picked a BGP community of their own, implemented it, and, in the best case, documented it somewhere on a web page where partners and customers could find it. This worked well, until the internet grew and slow humans started to automate networks.
Automation works fine, as long as you have the necessary data. Since everyone, their mom, and their mom’s ISP implemented their own thing, you can imagine how well automation and RTBH work together.
RFC 7999: A Common Standard
However, there was an initiative in 2016 to define a common BGP community: RFC 7999, BLACKHOLE Community. The RFC reserves the value 666 in the well-known community range (65535), which means 65535:666 would become the new de facto standard.
Many networks adopted the new standard. Others didn’t. If you want to automate your network, you can either assume everyone uses 65535:666 (good luck with that), or you start building lookup tables that tell your network, e.g., “hey, if we want Hurricane Electric to blackhole this prefix, we need to send 6939:666 instead.”
PeeringDB: A Solution to the Data Problem
As you can imagine, keeping those translation tables up to date is a great job. Not. After all, it’s a reason to keep paying for your Microsoft Excel licenses. Another approach would be to ignore the problem instead of maintaining it, but as the old saying goes: If you don’t schedule time to maintain your equipment, your equipment will schedule it for you.
As of today, about 120,000 ASNs are registered, about 82,000 are active, and 35,667 are registered in PeeringDB. We thought: let’s stop guessing, let’s put the RTBH BGP communities of networks into PeeringDB. Since PeeringDB implemented the field, we at Inter.link have been actively using that data to automatically trigger RTBH with remote networks.
Your Turn: Update Your PeeringDB Record
Now it’s your turn: please log in to PeeringDB, check and update your record(s). And while you’re at it, please add your RTBH community to the database, like I did here. With every update, you help companies like us, and people like James and ME, make the Internet a better place. Thanks to everyone involved!
