RTBH (blackholing)
RTBH (Remotely Triggered Black Hole) is a technique in which, on a signal sent via BGP, an operator drops at its network edge all traffic to an attacked address (D/RTBH) or from selected source addresses (S/RTBH).
Definition
RTBH (Remotely Triggered Black Hole), commonly called blackholing, is a DDoS protection technique in which traffic is dropped (“falls into a black hole”) at the edge of an operator’s network. The decision is made in one place, and the signal to drop traffic reaches the edge routers via BGP — hence “remotely triggered”.
RTBH comes in two variants. D/RTBH (Destination-based) drops all traffic sent to a specified destination address. The technique is described in RFC 3882 “Configuring BGP to Block Denial-of-Service Attacks”. S/RTBH (Source-based) drops traffic coming from selected source addresses; it is described in RFC 5635, which combines RTBH with the uRPF mechanism.
In point 9, the Polish Government Plenipotentiary for Cybersecurity’s recommendation on protecting internet service providers against DDoS advises agreeing with upstream operators on the possibility of deploying D/RTBH and S/RTBH, and preparing a procedure for ongoing 24/7 contact with those operators during attack mitigation.
How RTBH works
D/RTBH — dropping traffic to the target
The triggering router announces in BGP a route to the attacked address (usually a single host) with a pre-agreed BGP community. Edge routers that receive it send traffic for that address to an interface that discards packets. As a result, attack traffic is stopped at the edge before it saturates links inside the network or the customer’s link.
The price is that all legitimate traffic to that address is dropped together with the attack. The attacked address stops responding, but the rest of the network keeps working. It is a deliberate trade-off: one address is sacrificed to save the other users of the link.
S/RTBH — dropping traffic from sources
In the source variant, routes to the attack’s source addresses are announced, and uRPF runs on the edge interfaces. uRPF checks whether a valid route exists for a packet’s source address; a route pointing to the “black hole” causes packets from that source to be dropped. Point 9 of the recommendation stresses that for S/RTBH to work effectively, uRPF must be enabled on the interfaces where filtering takes place.
S/RTBH spares the attacked address, but only works when there are few sources and they are genuine. With an attack from thousands of addresses or from spoofed source addresses, its usefulness drops.
The BLACKHOLE community
So that operators do not have to agree a separate value with each customer and neighbour, RFC 7999 defined a standard BGP community called BLACKHOLE, with the value 65535:666. The number 666 had previously been commonly associated with blackholing among network operators. Not every operator honours it — so the value and conditions have to be agreed with each provider.
RTBH at transit providers and internet exchange points
RTBH is most effective when the upstream operator drops the traffic — then the attack does not even reach the organisation’s link. Point 12b of the recommendation advises having at least two independent transit providers and agreed, tested communities for RTBH or selective blackholing. Selective blackholing is a variant in which traffic is dropped only in selected places or only from selected directions, rather than across the whole internet.
Point 2d of the recommendation notes that an internet exchange point provides an additional path and often the possibility of blackholing. An organisation connected to an exchange point can ask for traffic to the attacked address to be dropped directly at the exchange participants.
Advantages and limitations of RTBH
Advantages:
- speed — one BGP announcement and traffic is stopped on many routers,
- no additional infrastructure — it works on existing routers,
- protection of the rest of the network — an attack on one address does not saturate the link for other services.
Limitations:
- D/RTBH completes the attack — the attacked address is unavailable just as if the attack had succeeded; that is why RTBH is a last-resort or short-term tool,
- low precision — all traffic is dropped, not just malicious traffic; BGP Flowspec or diversion to a scrubbing center is more precise,
- dependence on agreements — communities, prefix length and the triggering method have to be agreed with each operator before an attack.
RTBH from a company’s perspective
A company with its own AS number and BGP sessions can trigger RTBH at its transit providers itself — provided the communities have been agreed and tested. A company without its own AS depends on whether its internet service provider applies RTBH at its request. In both cases it is worth asking:
- Does the provider support RTBH for the customer’s addresses, and which communities does it use?
- Who triggers blackholing — the customer via BGP or the operator on request — and through which contact channel during an attack?
- Is selective blackholing possible, and has it been tested together with the customer?
- How does RTBH combine with anti-DDoS protection and with diversion to scrubbing?
When planning, it is worth listing which addresses the company is prepared to sacrifice in an attack and which it is not. The server of an auxiliary service can be cut off by blackholing for a few hours without major losses. The address of the VPN gateway used by remote staff, or of an online shop, rather calls for precise mitigation or diversion to scrubbing. Such a list, prepared in advance and agreed with the business, shortens the decision during an attack. The RTBH triggering procedure itself should be part of the business continuity plan and be rehearsed — point 2 of the recommendation stresses that a plan that has not been tested may not work in practice.
Agreeing the RTBH community with transit providers and testing it is part of the DDoS protection and scrubbing center service.
Summary
RTBH drops traffic at the edge of an operator’s network on a signal sent in BGP: D/RTBH to the attacked address, S/RTBH from selected sources with uRPF in place. It is a fast and cheap tool, but imprecise — it protects the network at the cost of the attacked address. It only works if communities have been agreed and tested with every transit provider before an attack.