← Back to blog

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.

Upstream filtering DDoS: stopping attack traffic before it saturates your infrastructure
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.

Definition of the problem

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.

BGP Blackhole vs FlowSpec Compare blackholing and targeted FlowSpec rules.
Open offer
Protected IP Transit View the protected IP transit offer.
Open offer
Talk to an engineer Describe your topology to Peeryx.
Open offer

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.

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.

Anti-DDoS latency Reading time: 13 min

Anti-DDoS latency explained: how mitigation affects real service quality

DDoS mitigation can add latency when routing, filtering or clean traffic delivery are poorly designed. Learn what really matters before choosing a protection model.

Read article
DDoS network impact Reading time: 13 min

DDoS impact on a network: links, routers, queues and customer services

A DDoS attack does not only affect the targeted server: it can saturate links, routers, queues and neighbouring services.

Read article
High PPS Anti-DDoS Reading time: 14 min

How to handle 100Mpps+ DDoS traffic without exhausting your infrastructure

Handling 100Mpps+ requires an architecture designed for packet rate, not only for Gbps: early detection, upstream relief, fast filtering and clean traffic delivery.

Read article
Anti-DDoS comparison Reading time: 14 min

Anti-DDoS hardware vs software: what really protects exposed infrastructure?

Comparing Anti-DDoS hardware and software means comparing placement, flexibility, filtering speed, cost and ability to adapt to modern attacks.

Read article
Scrubbing center guide Reading time: 14 min

What is a scrubbing center and why does it matter for DDoS protection?

A scrubbing center receives attacked traffic, filters DDoS noise and delivers cleaner traffic back to the customer.

Read article
Scrubbing center architecture Reading time: 14 min

How does a DDoS scrubbing center work from routing to clean traffic?

A scrubbing center works as a chain: attract traffic, analyze flows, filter the attack and deliver clean traffic.

Read article
Anti-DDoS guide Reading time: 13 min

Real-time DDoS mitigation: filtering attacks before the service drops

Real-time DDoS mitigation means detecting abnormal traffic, applying precise filtering and delivering clean traffic before links, firewalls or game servers collapse.

Read article
Anti-DDoS guide Reading time: 13 min

Why firewalls fail against DDoS attacks

Classic firewalls protect policies and sessions, but DDoS attacks target capacity, packet rate and state exhaustion before the application can respond.

Read article
Anti-DDoS guide Reading time: 13 min

DDoS mitigation architecture: from attack detection to clean traffic delivery

A strong DDoS mitigation architecture combines upstream capacity, routing control, fast packet filtering, service-aware rules and clean traffic delivery via BGP, tunnel or cross-connect.

Read article
Anti-DDoS guide Reading time: 13 min

High PPS attack mitigation: protect routers, firewalls and game servers

High PPS attacks can break packet processing with modest bandwidth. Learn how to mitigate small-packet floods before routers, firewalls, VPS and gaming services lose stability.

Read article
Anti-DDoS guide Reading time: 11 min

How to detect a DDoS attack before it takes your service offline

Learn the practical signs of a DDoS attack: traffic spikes, high PPS, failed connections, abnormal UDP/TCP patterns, overloaded firewalls and degraded gaming or web services.

Read article
Anti-DDoS guide Reading time: 11 min

DDoS vs DoS: difference, impact and protection choices

Understand the difference between DoS and DDoS attacks, why it changes the mitigation design and when to choose protected IP transit, a protected server, VPS or gaming proxy.

Read article
Anti-DDoS guide Reading time: 11 min

UDP flood protection: protect servers, VPS and gaming traffic

A practical guide to protect exposed UDP services without breaking legitimate traffic for games, VPS, dedicated servers, protected transit and real-time applications.

Read article
Anti-DDoS guide Reading time: 11 min

DDoS PPS vs Gbps explained: why packet rate matters

Learn why a DDoS attack can be dangerous at low Gbps but high PPS, and how packet rate changes capacity planning for routers, firewalls, servers and Anti-DDoS platforms.

Read article
Anti-DDoS guide Reading time: 16 min

Enterprise DDoS protection: protect critical services without slowing growth

A practical guide to enterprise DDoS protection for exposed services, hosting platforms, dedicated servers, BGP networks and gaming infrastructure across Europe.

Read article
Anti-DDoS guide Reading time: 16 min

How Anti-DDoS works: from raw attack traffic to clean delivery

Understand how Anti-DDoS filtering absorbs volumetric attacks, separates legitimate users from hostile traffic and delivers clean traffic to transit, servers and gaming services.

Read article
DDoS guide Reading time: 14 min

Memcached DDoS attack mitigation: protect transit, dedicated servers and gaming networks

Memcached amplification can create extremely large reflected UDP floods. Learn how to mitigate it with upstream filtering, protected transit and clean traffic delivery.

Read article
DDoS guide Reading time: 14 min

NTP amplification attack protection: how to mitigate this DDoS vector

NTP amplification can turn small spoofed requests into much larger UDP responses sent toward your IP. Learn how to filter it without breaking legitimate services.

Read article
TCP Anti-DDoS guide Reading time: 15 min

ACK flood protection: mitigate TCP DDoS attacks without blocking real sessions

An ACK flood targets the part of TCP that should normally look legitimate: packets that appear to belong to established connections. The problem is not only bandwidth. High packet rate, spoofed ACKs and asymmetric paths can exhaust firewalls, load balancers, routers or servers before the application understands what is happening. Good mitigation must reduce the flood early while preserving real sessions that already exist.

Read article
DDoS architecture guide Reading time: 15 min

DDoS amplification attack explained: why small requests can become massive floods

A DDoS amplification attack uses third-party services to turn small spoofed requests into much larger responses sent to the victim. The target does not only receive traffic from the attacker. It receives reflected traffic from many legitimate servers on the Internet, often using UDP-based protocols. Understanding amplification is essential before choosing protected IP transit, a scrubbing model or a gaming proxy, because the failure point is usually upstream capacity rather than the application itself.

Read article
DNS Anti-DDoS guide Reading time: 15 min

DNS amplification DDoS mitigation: protect exposed infrastructure without blocking legitimate DNS

DNS amplification is one of the most common UDP reflection patterns because DNS is widely available, response sizes can be larger than requests and spoofed traffic can be directed at a victim. The mitigation challenge is precise: blocking all UDP/53 may stop a graph, but it can also break DNS-dependent services. A serious design separates open resolver abuse, reflected floods and legitimate DNS traffic before the attack reaches the customer edge.

Read article
Volumetric mitigation 9 min read

How do you mitigate a DDoS attack above 100Gbps?

Link, PPS, CPU, upstream relief and clean handoff: the real framework behind credible 100Gbps mitigation.

Read the article
DDoS guide Reading time: 7 min

How to stop a DDoS attack without losing network control

A practical guide to stopping a DDoS attack while keeping clean traffic delivery, routing control and a credible upstream mitigation model.

Read article
UDP Anti-DDoS guide Reading time: 14 min

UDP flood mitigation: stop a UDP DDoS without breaking legitimate traffic

A UDP flood is not just “a lot of UDP packets”. Depending on the service, it can saturate a link, exhaust a firewall, trigger useless responses or disrupt a real-time protocol such as gaming, VoIP, DNS, VPN or a UDP-based application. Good mitigation is not about blocking UDP everywhere. It is about separating obvious noise from useful traffic, protecting upstream capacity and delivering clean traffic with low latency.

Read article
TCP Anti-DDoS guide Reading time: 15 min

SYN flood protection: mitigate TCP DDoS attacks without blocking real connections

A SYN flood is not only about sending many packets. It abuses the TCP opening phase to create pressure on connection queues, stateful firewalls, load balancers and exposed servers. Effective protection must filter early, avoid state exhaustion and keep legitimate users able to establish sessions.

Read the article
Anti-DDoS guide Reading time: 15 min

Volumetric vs application-layer DDoS: differences, risks and the right mitigation model

A volumetric DDoS attack and an application-layer DDoS attack do not break a service in the same way. The first mainly tries to saturate network capacity, ports, packet rate or upstream paths. The second targets service logic: HTTP, APIs, authentication, game proxies or expensive requests. Understanding the difference helps choose a mitigation design that actually works instead of relying on a generic Anti-DDoS promise.

Read article
Scrubbing center guide Reading time: 14 min

What is a scrubbing center and why does it matter for DDoS protection?

A scrubbing center receives attacked traffic, filters DDoS noise and delivers cleaner traffic back to the customer.

Read article
DDoS guide Reading time: 8 min

Anti-DDoS server for dedicated infrastructure

How to position an Anti-DDoS server when you need a cleaner edge before your own routing, XDP or application filters.

Read article
DDoS guide Reading time: 7 min

PPS vs Gbps in DDoS mitigation

Why packet rate matters as much as bandwidth when evaluating DDoS mitigation, filtering servers and upstream relief.

Read article

Block upstream before the link saturates

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.