Summary

  • RFC 8955 defines the BGP NLRI encoding that carries flow specifications — match conditions on protocol, port, ICMP type, TCP flags, packet length, DSCP and fragment, plus the actions to apply — for IPv4 unicast and IPv4 BGP/MPLS VPN services.
  • A flow specification is a route that describes traffic instead of a destination, letting a router filter, rate-limit, redirect or mark packets that match a description rather than a prefix.

A prefix answers one question: where do these packets go? A flow specification answers a different one: what do they look like? RFC 8955 put the second question into BGP, which means the answer is now a route — announced, withdrawn, installed, and argued about like any other piece of infrastructure.

That sounds like a formatting detail. It is not. A prefix is a fact about the network. A flow specification is a description of traffic, and a description is an opinion. Once the opinion is installed in a router, it drops packets. The symbolic layer learns to execute.

What the encoding actually carries

The NLRI is a list of match components — destination prefix, source prefix, IP protocol, source and destination port, ICMP type and code, TCP flags, packet length, DSCP, fragment bits — followed by the actions to apply: rate-limit, mark, redirect, sample, terminate. A router that receives the route walks the components and applies the action to whatever matches. Nothing in the encoding requires the router to terminate the traffic it is now policing.

That is the whole trick, and it is a good one. A network can act on traffic it does not own, does not host, and cannot see the far end of. The customer on the receiving side experiences a working connection, or a slower one, or none at all. The customer does not experience a rule.

The pen, and who is holding it

The interesting question is not what FlowSpec can match. It is who gets to write the description, and whose traffic the description is about.

When a transit provider announces a flow specification toward a peer, it is describing traffic that belongs to somebody else's customers. When an enterprise announces one internally, it is describing its own. The encoding is identical. The politics are not. In the first case, a network has acquired the power to define bad traffic for an audience that never appointed it — and the definition arrives as a route, which is to say as infrastructure, which is to say as something nobody thinks to argue with.

This is the registry move, one layer down. A thin coordination artifact — a record, a description, a match list — sits above assets it does not own and conditions what happens to them. Recognition is not ownership. A description is not a destination. But a description that can drop packets is close enough for government work.

Why validation is the whole ballgame

RFC 8955 shipped with a validation procedure, and RFC 9117 later revised it, because the obvious attack is obvious: if anyone can describe your traffic, anyone can describe your traffic. The fix is to anchor the flow specification to the unicast route for the same prefix — the description is trusted only if the party announcing it is the party that already owns the destination.

Read that again, because it is the structural point in one sentence. The power to describe traffic is derived from the power to route it. The description follows the route. So the argument about who defines bad traffic is really an argument about who holds the prefix — which is an old argument, older than FlowSpec, and not settled.

The definition is the announcement

Before RFC 8955, a network's policy about bad traffic lived in configuration: access lists, filters, rate limiters. Local, invisible, deniable. After RFC 8955, the policy is an announcement. It has an originator, a path, a withdrawal, a timestamp. It is auditable in principle — which is the first time anyone has been able to say that about a traffic-filtering decision at this scale.

That is the gift and the trap. The definition of bad traffic became a route, and routes can be inspected. But routes are also announced by whoever holds the pen, and the pen is held by whoever holds the prefix. Watch who announces flow specifications into whom. The party writing the description is doing policy for another network's customers, and those customers will never see the rule that decided their afternoon.