Cloud & Data Centers

DDoS Protection Services: How They Absorb Attacks

How protection providers spread, filter and challenge attack traffic, and how to choose a setup.

Key takeaways

  • Protection works mainly through spare capacity spread across many sites, plus filtering that separates attack traffic from real use.
  • Network floods, protocol attacks and application-layer floods exhaust different resources and need different defenses.
  • Traffic reaches the protector through DNS changes, reverse proxies or BGP route announcements.
  • If attackers can reach your origin address directly, edge protection can be bypassed, so lock the origin down.
  • Prepare before an attack: know your contacts, your normal traffic and your fallback plan.

A DDoS protection service puts a much larger network between attackers and your servers. It takes in the flood across many locations, throws away what's clearly junk, tests what's doubtful, and passes the rest to you. The goal is to keep real visitors getting through while the attack runs, without your own connection or servers ever feeling the full force.

A distributed denial-of-service attack, or DDoS, uses many machines at once to exhaust something you have a limited amount of. The basics are in DDoS attacks explained. Here the focus is on how the defenses work and how to set them up sensibly.

What actually gets exhausted

Think of a service as a series of limits. Your internet link carries only so many bits per second. Your firewall and load balancer can track only so many connections. Your application and database can answer only so many requests.

Volumetric attacks aim at the link. Often they use reflection: the attacker sends small queries with a forged source address to open services, which send larger replies to the victim.

Protocol attacks aim at connection handling. A SYN flood, for example, starts huge numbers of TCP handshakes and never finishes them, filling tables that track half-open connections.

Application-layer attacks send requests that look legitimate, such as repeated searches or logins, that are cheap to send and expensive to answer.

Three families of DDoS attack
Volumetric Fills the network link Often reflected or amplified Needs large upstream capacity Protocol Fills connection state tables SYN floods are the classic case Needs smart packet handling Application layer Looks like normal requests Targets expensive pages or APIs Needs request-level analysis Volumetric Fills the network link Often reflected or amplified Needs large upstream capacity Protocol Fills connection state tables SYN floods are the classic case Needs smart packet handling Application layer Looks like normal requests Targets expensive pages or APIs Needs request-level analysis

Capacity: the first line of defense

You can't filter traffic that has already jammed your only link. If an attack is bigger than your connection, the drop has to happen upstream, somewhere with far more room.

Large protection providers run many sites connected to many networks. Using anycast, they announce the same addresses everywhere, so attack traffic from machines around the world lands at whichever site is closest to each source. A flood that would crush one location gets divided among many.

This is why a content delivery network often doubles as a shield. Cached files are answered right at the edge, and the origin never sees those requests at all.

Filtering junk from real visitors

Once traffic arrives, the provider decides what to drop. The cheapest decisions come first. If your website only needs TCP and UDP on port 443, packets for other protocols and ports can be discarded immediately. Known reflection patterns, such as unsolicited replies from services you never queried, are easy to remove.

For SYN floods, a common technique is SYN cookies. The server or proxy encodes connection details into its reply and keeps no state until the client answers correctly. A forged source never answers, so it costs almost nothing.

Higher up, providers compare traffic against normal patterns and look at request headers, TLS characteristics, request rates and which paths are being hit. Matching traffic can be blocked, slowed or challenged.

How traffic passes through a scrubbing network
1 Arrive Traffic spreads across many sites. 2 Drop the obvious Wrong ports, protocols and known floods. 3 Verify connections Handshakes must complete correctly. 4 Judge requests Rates, patterns and rules are applied. 5 Forward the rest Clean traffic travels to your origin. Arrive Traffic spreads across many sites. 1 Drop the obvious Wrong ports, protocols and known floods. 2 Verify connections Handshakes must complete correctly. 3 Judge requests Rates, patterns and rules are applied. 4 Forward the rest Clean traffic travels to your origin. 5

How an attack gets noticed

Detection starts with a baseline, a picture of what normal traffic looks like by time of day, region, protocol and page. A sharp departure from that picture raises an alarm. Network operators often watch flow records, which summarize who is talking to whom and how much, while web proxies watch requests directly.

Automated systems then look for something the unwanted traffic has in common. It might be a packet size, a source port used by a reflection service, an unusual order of request headers, or one path hit far more than any other. A rule built from that shared trait can be pushed to every location within moments.

Automation isn't perfect. A product launch or a news mention can look like an attack, and a patient attacker can vary traits to avoid obvious patterns. Good services let you see what was blocked and override a rule that catches real customers.

Blunt tools upstream

Internet providers have simpler options too. With remotely triggered black hole routing, a network under attack signals its upstream provider to discard all traffic for a targeted address. It saves the rest of the network, but it takes that address offline, which is what the attacker wanted for that one target.

BGP FlowSpec, defined in RFC 8955, lets networks share finer filtering rules, such as dropping only UDP from a particular source port toward one destination. Where providers support it, it removes junk without sacrificing everything else.

There's also prevention at the source. Networks that check outgoing packets and refuse forged source addresses, a practice described in BCP 38, make reflection attacks much harder to launch. It protects other people more than the network doing it, which is why adoption relies on good citizenship.

Challenges and rate limits

When a request is suspicious but not clearly hostile, a service can ask for proof. A browser challenge runs a small test in the visitor's browser, and a CAPTCHA asks the person to act. Both add friction, and they don't suit APIs or automated clients that can't run a page.

Rate limiting caps how often one source can do something, such as attempting a login. It's useful but blunt. Many legitimate users may share one address behind a mobile carrier or office network, while a botnet spreads its requests across thousands of sources so each one stays quiet. When a limit triggers, a well-behaved service returns a 429 Too Many Requests response.

A web application firewall adds rules about request content, which helps when an attack has a recognizable fingerprint.

Getting traffic to the protector

There are three main ways to route traffic through a protection network.

With a reverse proxy, you point your domain's DNS records at the provider. Visitors connect to its edge, and it connects to you. It's quick to set up and works well for websites and APIs.

With BGP-based protection, typically for organizations with their own IP address blocks, the provider announces your addresses and attracts the traffic, then returns clean packets through a tunnel or direct link. This covers any protocol but requires more networking skill.

Some services are always on, with traffic flowing through them constantly. Others are on demand, activated when an attack is detected. On demand can cost less and add less latency in normal times, but there's a gap while detection and rerouting happen.

Protecting the origin

A proxy only helps if attackers have to go through it. If your server's real address is exposed through old DNS records, a mail server on the same machine, or past use before you signed up, they can aim straight at it.

Reduce that risk with a few habits:

  1. Configure your firewall to accept web traffic only from your provider's published address ranges, or use an outbound tunnel so no inbound port is open.
  2. Ask your host about changing the origin address after you move behind protection.
  3. Keep other services, such as email, on different addresses.
  4. Use authentication between the edge and the origin where your provider offers it, so other customers of the same network can't impersonate it.

If you're testing which published provider ranges an address belongs to, the cloud prefix matcher can help.

What protection doesn't cover

No service makes you immune. A well-disguised application attack can look like a sudden surge of interest. Strict rules may block real customers, which counts as a partial win for the attacker.

Your own design matters. Cache what you can, make expensive endpoints require login or limits, set timeouts, and let optional features switch off under load. A search page that runs a heavy database query for every anonymous request is a weak spot no matter who sits in front of it.

Protection also doesn't address break-ins. A DDoS shield won't stop stolen passwords or unpatched software, and attacks are sometimes used to distract a team while something else happens.

Choosing a level of protection

Your needs depend on what you host and what downtime costs.

Which kind of protection fits?
Is it only a website or web API? YES A proxy or CDN with DDoS features is the usual start 1 NO Do you run other protocols on a few addresses? YES Look for a proxy that handles arbitrary TCP and UDP 2 NO Do you announce your own IP address blocks? YES Consider network-level protection through BGP 3 NO Ask your host or provider Learn what filtering is included and what happens during a large attack. Is it only a website or web API? 1 IF YES A proxy or CDN with DDoS features is the usual start NO Do you run other protocols on a few addresses? 2 IF YES Look for a proxy that handles arbitrary TCP and UDP NO Do you announce your own IP address blocks? 3 IF YES Consider network-level protection through BGP NO Ask your host or provider Learn what filtering is included and what happens during a large attack.

Ask vendors how billing works during an attack, whether your traffic can be dropped entirely if it exceeds a limit, which protocols are covered, and how fast a human responds. Terms and plan features change, so read the current contract.

Preparing before it happens

Write a short runbook: who to call at your provider and host, how to turn on stricter settings, and how to tell customers what's going on. Record what normal traffic looks like so you can spot abnormal traffic. Keep your status page somewhere separate from the service it reports on.

During an attack, save logs, note times, and change one thing at a time so you know what helped. If you receive an extortion demand, contact your provider and consider reporting it to law enforcement; paying offers no guarantee the attacks stop.

Afterward, review which limit gave way first. That tells you where the next improvement belongs.

Common questions

Will a bigger server stop a DDoS attack?

Only some application floods, and only up to a point. A larger server does nothing for a saturated network link, and renting capacity to absorb junk can get expensive.

Can a home user get DDoS protection?

Home connections are rarely the right place to fight a flood. Contact your internet provider, which may be able to filter the traffic or assign a new address. Gamers and streamers should avoid exposing their home address, for instance by using services that relay connections.

How can I tell an attack from a busy day?

Compare what visitors are doing. Real surges tend to follow a believable path through your site and load images and scripts. Attack traffic often hammers one address, skips supporting files or arrives from sources that never used your service before. None of these is proof by itself.

Written for 4Internet with AI writing tools and not reviewed line by line by a person. Check anything you rely on with the maker, provider or standard concerned. Report an error.

Keep reading

All 45 articles in Cloud & Data Centers →

Latest news on this topic