Upstream filteringPublished on 23 May 2026Reading time: 13 min
Upstream filtering DDoS: stopping attack traffic before it saturates your infrastructure
Upstream DDoS filtering protects a service before the attack reaches the customer port, firewall or server. This guide explains when it is useful, how it differs from blackholing and how to combine it with clean traffic delivery.
The first bottleneck matters
Local filtering is useless if the link is already saturated before it.
Filtering is not blackholing
Good upstream filtering removes precise attack patterns instead of dropping the whole prefix.
Clean handoff still matters
After upstream relief, legitimate traffic must return through a stable and observable path.
When a DDoS attack reaches your port, it may already be too late. A local firewall can be well tuned and a server can have available CPU, but if the access link or transit port is saturated, legitimate traffic cannot enter. Upstream filtering means removing part of the attack at the provider side: transit network, backbone edge, scrubbing edge or mitigation operator. The goal is not to block everything aggressively; it is to remove enough useless traffic before the bottleneck so the precise downstream filtering layer can keep working.
Why choose Peeryx
Why choose Peeryx
Peeryx focuses on a readable design: upstream capacity, precise filtering, clean handoff and support that can explain decisions during the incident.
The core problem is that many architectures put the real filtering layer too low in the path. Traffic first reaches a carrier port, crosses a router and may then hit a firewall, load balancer or server. A UDP reflection attack, a high-PPS TCP flood or a mix of tiny packets can saturate the first link long before your local logic sees enough samples to react.
Upstream filtering moves part of the decision higher in the path. The upstream provider can apply volumetric rules, ACLs, BGP FlowSpec, targeted rate-limits or redirection to a scrubbing center. This layer does not replace fine-grained mitigation because it often has less application context. Its job is to shave the attack down before physical or billing saturation turns into an outage.
You also need to separate three ideas: blackholing a prefix, filtering an attack pattern and delivering clean traffic. Blackholing protects the provider network but kills the service. Intelligent upstream filtering reduces the attack while trying to preserve users. Clean delivery then keeps the service reachable.
Why it matters
This matters for hosting providers, operators, game servers and exposed platforms because the cost of a bad first reaction is immediate: lost players, customer tickets, saturated ports, 95th-percentile billing spikes or blackhole communities activated too early. A 40 Gbps attack against a 10 Gbps connected service is not primarily a firewall problem; it is an ingress capacity problem.
Upstream filtering also reduces the risk of huge false positives. If the only available response is “blackhole the /32” or “drop all UDP”, the service remains unavailable even if the attack is technically handled. A good upstream strategy should use the smallest effective action: protocol, ports, packet lengths, flags or obvious reflection sources, with a short lifetime and a clear rollback.
It also affects commercial trust. A B2B buyer does not only want to hear about terabits of capacity. They want to know where the attack is stopped, how long the rule stays active, how legitimate traffic is preserved and how support will explain the action during the incident.
Possible solutions
The first option is BGP blackholing, useful as a last resort when the priority is to save the rest of the network. It is simple, fast and widely supported by transit providers, but it is destructive for the targeted service. It should not be sold as true availability protection.
The second option is static provider-side filtering: ACLs or classic anti-amplification profiles for DNS, NTP, SSDP, memcached and similar vectors. It works well against obvious attacks but is weaker when the attack imitates normal traffic or changes shape quickly.
The third option is controlled BGP FlowSpec. FlowSpec can propagate rules matching several traffic fields, not only a destination. Used well, it relieves the port without dropping the entire prefix. Used badly, it breaks legitimate traffic as quickly as it stops the flood.
The fourth option is upstream scrubbing with clean traffic returned through GRE, IPIP, VXLAN, cross-connect or a router VM. This is often the cleanest model when the customer needs to stay online during the attack and keep more precise logic behind the first layer.
Filtering upstream without breaking customer traffic
At Peeryx, upstream filtering is treated as a relief layer, not as the whole product. The network first absorbs and reduces volumetric floods. Then a more precise mitigation logic handles cases where legitimate traffic and attack traffic look closer to each other.
BGP FlowSpec can be useful to remove an obvious pattern quickly, for example a combination of protocol, source or destination ports, packet length or TCP flags. But it must be short-lived, targeted and monitored. A broad permanent rule is usually a bad operational signal.
The critical point is the handoff. Peeryx can return clean traffic through tunnels, cross-connect or a BGP design depending on the customer control model. The customer should understand the path: where the attack enters, where it is reduced, where clean traffic exits and what logic remains under their control.
Why choose Peeryx
Peeryx focuses on a readable design: upstream capacity, precise filtering, clean handoff and support that can explain decisions during the incident.
Concrete use case
Consider a hosting provider exposing several game servers behind a 10G port. A 70 Gbps UDP reflection flood arrives with highly recognizable packets. If everything reaches the customer port, the service disappears. The correct response is not to block all UDP because the games need UDP to work.
A cleaner strategy applies a short upstream rule on attack characteristics such as reflection source ports, a packet-length range and a precise destination. The volume falls below available capacity. Then the specialized mitigation layer continues separating legitimate flows from suspicious ones.
The customer still sees the service online while the attack continues. Support can explain the rule, duration, expected impact and removal plan. That is the difference between “we absorbed traffic” and “we protected the service without unnecessary collateral damage”.
1. Observe
Identify volume, PPS, protocol, ports, BGP path and customer impact.
2. Act
Apply the smallest effective action: route, filter, shift or handoff.
3. Roll back
Remove or narrow rules as soon as pressure drops to avoid persistent side effects.
Frequent mistakes
Confusing upstream filtering with total blackholing of the service.
Applying a rule that is too broad on UDP or TCP without understanding legitimate traffic.
Leaving a FlowSpec rule active after the attack ends.
Not measuring 95th percentile and real saturation thresholds.
Not preparing the clean return path before the incident.
Buying only on advertised capacity without asking how filtering decisions are made.
FAQ
Does upstream filtering replace specialized Anti-DDoS?
No. It relieves upstream saturation, but fine mitigation is still needed to preserve legitimate traffic, especially for gaming, UDP and application-specific services.
Is BGP FlowSpec dangerous?
It is dangerous when it is broad, permanent or poorly validated. It is useful when it is precise, temporary and based on observed attack characteristics.
Why not blackhole immediately?
A blackhole cuts the service. It can save the backbone, but it does not protect customer availability.
Can upstream filtering work with a GRE tunnel?
Yes. Upstream filtering can reduce the attack before clean traffic is returned over GRE, IPIP, VXLAN or cross-connect.
Conclusion
Upstream DDoS filtering is essential when the threat exceeds the customer port or the first local device. Its value is not to block as much as possible, but to remove enough useless traffic to keep the service alive and allow precise mitigation behind it.
The quality of the architecture is visible in the combination: triggering thresholds, targeted rules, short duration, observability, clean handoff and the ability to explain what happened during the attack. That operational level turns provider-side filtering into real protection.
Resources
Related reading
To go deeper, here are other useful pages and articles.
Peeryx can review your prefixes, upstreams, latency constraints and DDoS exposure to propose a protected transit or clean-handoff model that fits your real topology.