Summary

  • BGP Flow Specification distributes packet-match rules and filtering actions; a route proves a control-plane state, never a forwarding outcome.
  • External rules normally depend on unicast-route validation and must be revalidated the moment the best-match unicast route moves.
  • Overlapping or conflicting rules, IPv6 header parsing and hardware limits can all stop an apparently valid match from ever being enforced.
  • Close mitigation only with evidence that joins the exact NLRI and actions to device programming, counters, sampled packets, victim traffic and safe withdrawal.

At 10:04 the FlowSpec rule lands on the route reflector. By 10:05 it is on three edge control planes. The dashboard goes green, the bridge call exhales, and the attack keeps pouring in through the one ingress link whose line card never compiled the upper-layer match.

Nothing in that trace is a vendor scandal. It is a category error, and it is the most common one in DDoS operations: mistaking a distributed instruction for an executed filter. A BGP FlowSpec route is a message about intent. Mitigation is a measurement of packets.

What a BGP FlowSpec route actually carries

RFC 8955 encodes a Flow Specification as an n-tuple in BGP NLRI. Components describe destination and source prefixes, protocol, ports, TCP flags, packet length, DSCP and fragments, and a packet matches only when it satisfies the intersection of every component present. The decoded expression — not the dashboard label — is the first artefact worth preserving.

Actions ride in BGP Extended Communities: rate limits in bytes or packets, sampling, route-target redirect, traffic marking. The default for a matching rule is ordinary acceptance, and a rate of zero conventionally means discard. A route that arrives without the action the operator expected can therefore install cleanly and drop precisely nothing.

Several Flow Specifications can match the same traffic. RFC 8955 defines ordering independently of BGP arrival order, but multiple actions can still collide, and when conflicting actions reach forwarding selection the implementation picks the winner. Propagation stays immaculate while behaviour diverges by platform, by policy, by line card.

Validation is a moving dependency

An external Flow Specification is not normally accepted on syntax alone. Without an explicit override it must carry a destination prefix, its originator must match the originator of the best-match unicast route, and no more-specific unicast route from a different neighbouring AS may be captured. Configuration can relax the destination-prefix requirement — which is exactly why the validation policy is itself evidence.

The unicast route moves on its own schedule. RFC 8955 requires revalidation when it does, so a rule feasible at 10:01 can be infeasible at 10:07 while the original announcement still sits in a collector looking perfectly healthy. An internal BGP receiver may also lean on validation performed elsewhere. The record must name where validation happened and which unicast state propped it up.

RFC 8956 extends the mechanism to IPv6 with AFI 2 and SAFI 133 or 134, requires a destination-prefix offset of zero for validation, and exposes a harder data-plane boundary: malformed or oversized IPv6 header chains and hardware limits can make upper-layer matches physically impossible to enforce. Control-plane acceptance does not negotiate with silicon.

The verdict needs packet evidence

RFC 8955 recommends packet-header logging and per-rule match counters, and those observations are not decoration — they are the only things that connect the selected rule to actual traffic. A useful incident view shows which target devices and interfaces programmed the rule, whether hardware rejected or approximated any component, what precedence and action survived compilation, and how the counters moved.

Then measure outside the rule: traffic reaching the victim, legitimate traffic lost, redirect capacity, latency, and what withdrawal actually does. A rising discard counter can coexist with an unchanged attack if the rule matches the wrong aggregate. A falling victim rate can coexist with collateral damage nobody has priced yet. Neither fact is visible from the FlowSpec route.

Sources