← Back to blog

Peering vs transit for DDoS protection: what changes during an attack?

Peering and IP transit do not behave the same way under DDoS pressure. This guide explains the routing, capacity, economic and operational differences for protected networks.

Peering vs transit for DDoS protection: what changes during an attack?
Peering is selective reachability

It can reduce latency and cost for specific networks, but it is not global Internet coverage.

Transit is operational coverage

A transit provider gives broader reachability and often more DDoS-related controls.

DDoS changes economics

Cheap inbound traffic is not cheap if it saturates ports and bypasses mitigation.

Peering and transit are often discussed as cost or latency topics, but DDoS changes the comparison. Peering is a direct interconnection between networks, usually used to exchange traffic with specific partners or Internet exchanges. Transit is paid reachability to the wider Internet through an upstream provider. Under normal conditions, both can be useful. During an attack, the difference becomes operational: who absorbs the flood, who can filter it, who can blackhole or apply FlowSpec, and which path still returns clean traffic to users?

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 problem is that peering can attract traffic without the same service model as protected transit. A public peering session may bring excellent latency to a major eyeball network, but if a flood enters through that peering port and there is no mitigation path, the low-latency path becomes the failure path.

Transit, on the other hand, is not automatically clean. A commodity transit provider may deliver global reachability and full routes, but if it only offers basic blackhole and no usable filtering, the protected service still needs another layer. The question is not “peering or transit?” but “which path has capacity, filtering, support and a controlled handoff during attack?”

DDoS also interacts with routing policy. A more specific route, AS path change or community can move traffic away from peering and toward protected transit. But if that policy is improvised during an incident, it may create asymmetric routing, poor return paths or unexpected cost.

Why it matters

This matters because many networks try to optimize for normal traffic first: lower transit commit, more peering, cheaper inbound, shorter paths. That can be smart, but DDoS is abnormal traffic. It can appear on the cheapest path, the fastest path or the least prepared path.

For game servers, streaming, SaaS or hosting, a peering decision can become a support issue. Users may say “the server is down” while the real cause is that traffic from one region enters through a congested exchange. Without visibility per ingress, the operator may blame the wrong firewall, host or application.

Transit is also part of a commercial promise. A protected transit provider should be able to explain filtering, blackhole alternatives, FlowSpec options, capacity limits and clean traffic delivery. Peering partners often do not provide that level of customer-specific DDoS service.

Possible solutions

One solution is to keep peering for normal low-latency traffic but route attacked prefixes through protected transit. This keeps performance benefits while giving engineers a mitigation path.

Another is to use selective de-preference: during attack, communities or route policy make certain paths less attractive without withdrawing the service entirely. This requires testing and monitoring.

A third option is to keep public peering but ensure the edge facing the exchange has enough capacity and filtering. That may include ACLs, sampling, FlowSpec internally and clear escalation with the IXP or peer when abuse is visible.

Finally, some services should simply use protected transit as the primary inbound path. If availability under attack is more important than saving a few milliseconds or euros, the cleanest model is to design protection first and optimize peering later.

BGP fundamentals Review prefixes, AS path and BGP decisions.
Open offer
Protected IP Transit View the protected IP transit offer.
Open offer
Talk to an engineer Describe your topology to Peeryx.
Open offer

Choosing peering or transit when the attack path changes

Peeryx positions protected IP transit as the path that should remain understandable during an attack. Peering can still be useful, but the protected path must have a defined role: attract traffic, filter, and return clean traffic without making the client guess what happened.

The approach is to map ingress paths by prefix and service. Some traffic may be safe over peering. Some should enter through mitigation all the time. Some can switch only when thresholds are crossed. The key is to avoid accidental protection gaps where an attacked service enters through an unprotected peering port.

For networks using BGP, Peeryx can work with route policy, tunnels, cross-connects or customer BGP sessions so the client keeps enough control while benefiting from a mitigation layer built for DDoS conditions.

Concrete use case

A gaming provider peers at an exchange for low latency to a large ISP and buys transit from two upstreams. Normal traffic looks great. Then attackers target the game query port from the same ISP footprint. The traffic enters through peering because that path is preferred and saturates the exchange port.

The quick but bad reaction is to shut the peering session. That may restore stability but increase latency for every user on that ISP. A better design is to move only the attacked prefix or service through protected transit, apply targeted filtering and keep the rest of peering alive where it remains safe.

After the incident, the operator can compare latency, packet loss, ingress volume and false positives. That feedback determines whether the service should stay on protected transit, return to peering or use a hybrid policy.

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

  • Assuming peering is always better because it is shorter.
  • Using public peering as an unprotected bypass around the Anti-DDoS path.
  • Buying transit only on price without asking about DDoS controls.
  • Changing AS path or more-specifics during an attack without a rollback plan.
  • Ignoring inbound capacity on IXP ports.
  • Not separating normal traffic engineering from attack traffic engineering.

FAQ

Is peering bad for DDoS protection?

No. Peering can be excellent, but it must not bypass the mitigation path for services that require protection.

Is transit always safer?

Not automatically. Protected transit with filtering and clean handoff is different from commodity transit with only blackhole support.

Can I combine peering and protected transit?

Yes. Many strong designs keep peering for normal traffic and use protected transit for attacked or critical prefixes.

Does peering reduce latency?

Often, but only for specific networks. If the peering path saturates during attack, the real user experience becomes worse than a slightly longer protected route.

Conclusion

Peering vs transit is not a religious debate. Peering optimizes selected paths; transit provides broader reachability; protected transit adds an operational mitigation role. Under DDoS pressure, the best path is the one that stays available, observable and controllable.

A serious design defines which services may use peering, which must enter through protected transit and how BGP policy changes during an incident. That is how a network keeps latency gains without turning peering into an unprotected attack door.

Resources

Related reading

To go deeper, here are other useful pages and articles.

BGP & mitigation 8 min read

BGP Flowspec for DDoS: useful or dangerous?

What Flowspec does well, what it should never do alone and how to fit it into a safe multi-layer strategy.

Read the article
BGP fundamentals Reading time: 14 min

How BGP works: prefixes, AS paths, routing decisions and DDoS impact

BGP is the protocol that lets networks announce reachability to each other. Understanding prefixes, AS paths, communities and route preference is essential before buying protected transit.

Read article
BGP & DDoS mitigation Reading time: 14 min

BGP Blackhole vs BGP FlowSpec: choosing the right DDoS filtering tool

Blackholing saves capacity by sacrificing a destination. FlowSpec can remove attack traffic more precisely, but only when rules are short, measurable and reversible.

Read article
Network architecture Reading time: 14 min

Anycast DDoS protection: when it helps, when it does not

Anycast distributes traffic toward several points of presence, but it is not a magic shield. The clean delivery model after mitigation still decides latency, stability and customer experience.

Read article
Routing security Reading time: 14 min

Route hijacking and DDoS: how BGP incidents can turn into outages

A route hijack can divert, intercept or blackhole traffic before packets reach your infrastructure. DDoS planning must include routing security, monitoring and fast withdrawal procedures.

Read article
VXLAN / IPIP 11 min read

DDoS protection over VXLAN or IPIP: when should you use them?

VXLAN and IPIP do not solve exactly the same clean traffic delivery problem after DDoS mitigation. This guide explains when each one makes sense, which limits matter and how to choose a model that matches your topology, edge design and operations. It also helps compare VXLAN, IPIP, GRE, clean handoff and post-mitigation traffic delivery with an operator-grade architecture, operations and buying logic.

Read the article
Protected IP transit 12 min read

Protected IP transit benefits for operators, hosters and exposed services

Protected IP transit combines Internet connectivity and Anti-DDoS mitigation in the same delivery model. The benefit is not only attack absorption, but clearer routing, cleaner handoff and fewer emergency migrations.

Read the article
DDoS guide Reading time: 7 min

Clean handoff design after DDoS mitigation

Clean traffic delivery is only useful if the handoff stays readable, supportable and aligned with the customer topology.

Read article
DDoS guide Reading time: 7 min

Operator buying checklist for Anti-DDoS and protected transit

A practical checklist for hosters, operators and technical buyers comparing Anti-DDoS providers, handoff models and protected transit offers.

Read article

Choose the right path before the next attack

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.