Articles

Distributed Denial of Service: How It Works and How to Reduce Its Impact

A simple introduction to DDoS attacks, their main categories and detection signs, and the role of preparation and provider coordination in reducing disruption.

Network flows and service protection — conceptual cover
Generated conceptual illustration, not a product screen or research result.

From time to time, a website suddenly becomes slow or a service stops responding. The cause may be a technical fault, a normal surge in visitors, or a deliberate attack. What is distributed denial of service? How does it work, and how can we detect it and reduce its impact?

What is distributed denial of service?

DDoS stands for Distributed Denial of Service. An attack tries to obstruct legitimate access to a website, service, or network by sending traffic or requests that exhaust available resources. The effect may be slow responses, partial disruption, or an outage. Not every attempt succeeds, and a server does not have to stop completely for users to be affected.

Think of a road that suddenly becomes so congested that ordinary traffic can no longer pass. In a digital service, the congested resource may be the network link, the server's processing capacity, or the number of connections it can manage.

A denial-of-service attack, DoS, can originate from a single source; DDoS involves multiple sources acting together. Some sources may be compromised devices called bots, collectively a botnet. However, not every source must be a compromised device: reflection attacks can also misuse intermediary services.

Multiple sources compete with a legitimate user
Attack-traffic sources
  • First source
  • Second source
  • Third source
Concurrent attack traffic
Target service

Bandwidth · processing · active connections

A response may be delayed or unavailable.

Legitimate user
Normal service request

This is a direct-traffic model, not a reflection diagram. Not every attack source must be a compromised device.

Attack traffic from multiple sources reaches the same service and competes with legitimate requests for available resources.

Concept reference: Cloudflare explanation of distributed denial of service

Why are these attacks carried out?

  • To disrupt a service or communication channel.
  • To damage an organisation's reputation and users' trust.
  • To gain an illegitimate advantage from a competitor's outage.

Motives vary, but the intended result is difficulty for legitimate users trying to reach the service.

The main categories

A simple classification has three groups: application-layer attacks, protocol attacks, and volumetric attacks. This is a teaching aid; a single attack can combine several types.

1. Application-layer attacks

These target application functions and are often called layer-seven, or L7, attacks. For example, a web service may be flooded with numerous or computationally expensive HTTP requests until the application cannot respond adequately.

A malicious request may resemble a legitimate one. Data volume is not the only concern: a small request can require substantial work in the server or database. It is therefore misleading to describe every application attack as smaller or more complex than every other type.

Possible targets include web applications, Internet-connected applications, and cloud services. An attack from one machine remains DoS, not distributed DoS simply because it targets layer seven.

2. Protocol attacks

These put pressure on connection resources or network equipment, such as servers, firewalls, and load balancers. Examples include:

  • SYN Flood: many attempts to establish TCP connections remain incomplete, consuming resources for half-open connections. This does not mean that every modern system will crash; its configuration and protections affect the outcome.
  • Smurf: the attacker uses the victim's address as the forged source of ICMP requests sent to a broadcast address on a network that permits this. Devices reply to the victim, multiplying the traffic directed at it. This is neither an endless loop nor a network attacking itself. The Smurf explanation and RFC 2644 describe the mechanism and directed-broadcast controls.

A poorly configured firewall is not the only explanation for a successful attack. The protection equipment itself can face more load than it can handle, so the entire network path matters.

3. Volumetric attacks

These target network capacity, consuming bandwidth and competing with legitimate traffic. They are not simply a more advanced version of application attacks: they target a different resource.

  • UDP Flood: large quantities of UDP packets strain connectivity, processing, or protection equipment.
  • ICMP Flood: large quantities of ICMP packets strain the network or processing capacity.
  • DNS reflection and amplification: queries with a forged source address identifying the victim are sent to open DNS resolvers. Replies reach the victim instead of the actual sender and may be larger than the queries. Reflection changes the destination of the reply; amplification increases traffic volume. See the DNS reflection and amplification explanation.
DNS reflection: the query and reply have different destinations
Attack-traffic sender

Forges the victim’s source address

Query with a forged source
Open DNS resolver

Replies to the stated source address

Reply to the victim’s address
Victim

Receives replies it did not request

A reply may be larger than its query: this is amplification. Arrows show the path, not measured traffic volumes.

A query uses the victim’s address as its forged source, so the DNS resolver sends its reply to the victim, not the actual sender.

Concept reference: Cloudflare DNS reflection and amplification explanation

How can we distinguish an attack from normal demand?

More visitors alone are not proof of an attack. A product announcement, marketing campaign, or widely shared link can bring legitimate traffic. Compare current activity with normal usage and available indicators: request rate, response time, errors, CPU and memory consumption, and network capacity.

Signs worth examining include:

  1. An unusual surge in requests or heavy repetition of a particular pattern.
  2. Noticeable delays or difficulty reaching the service.
  3. More server errors or failed connection attempts.
  4. Disruption to other services that depend on the same network or resource.

A 503 response does not establish an attack; it can indicate temporary overload or maintenance, as described in HTTP's 503 semantics. An expired TTL in a connectivity test concerns a packet's lifetime and route, not an attack diagnosis; see RFC 1812. Repeated requests from one address can be an attack or legitimate users sharing a public address, while a distributed attack can originate from many addresses.

When service is disrupted, do not wait several minutes without action merely to rule out a marketing campaign. Investigation and response should proceed together, with the hosting or connectivity provider involved when needed.

Preparing before an attack

Configure services and the network

Close unnecessary ports and services, update systems, and set request and connection limits suited to actual use. The aim is to reduce abuse without denying legitimate users access.

Do not indiscriminately block UDP port 53 as a general remedy. DNS uses this port, and blocking it can break name resolution. Restrict access according to the server's role, and limit recursive resolver access so it does not become an open resolver. RFC 1035 describes DNS transport over UDP and TCP.

Blocking an IP address solely because requests repeat can also exclude real users on a shared network. Assess patterns and context, and apply service-appropriate rules rather than arbitrary thresholds.

Network capacity and distributed delivery

Spare bandwidth helps absorb increased demand, but it does not itself stop an attack or solve application-resource exhaustion. Traffic can saturate the provider's link before the local server can filter it.

A content delivery network, CDN, can reduce the load of cacheable content and distribute access. Its presence does not mean every service or port is protected, nor does it guarantee application availability. Know which traffic passes through it and what remains exposed at the origin.

Moving to the cloud is likewise not automatic protection. Coverage depends on the service, settings, and provider plan. Redundancy and backups support recovery but do not prevent an active link from being overwhelmed.

A clear response plan

Prepare a plan in which everyone knows their role: who monitors, who contacts the provider, who authorises mitigation, and who informs users?

Include internal and external contacts, an alternative communication channel, priorities for essential services, and escalation and recovery steps. On-demand or continuous protection can be chosen according to service importance, activation time, coverage, and cost. Neither is best for every site.

What should we do during an attack?

Early detection and communication

Monitor the difference between normal and current load. Record timings and indicators needed for analysis, and notify the response team and hosting or connectivity provider. The NCSC guidance emphasises preparation, provider coordination, and an alternative communication channel.

Reduce pressure without causing more harm

Apply mitigation prepared for the service, such as filtering malicious patterns or suitable rate limits, in coordination with the provider. More capacity can buy time, but it is not a guaranteed way to stop an attack.

The provider may use filtering outside the local network or route traffic through a protection path. Dropping all traffic to the target address may protect the rest of the network while also cutting off the victim's service; understand this consequence before making the decision.

Do not reduce connection limits arbitrarily or impose broad rules on protocols the site needs. Monitor each action's effect on real users, then review the cause and what worked once service stabilises.

Conclusion

DDoS response is not one button or extra bandwidth alone. Understand the resources that can be overloaded, know normal usage, prepare a clear plan, and coordinate early with the provider. Effective mitigation is measured by legitimate users retaining service, not only by the number of blocked requests.

References

Help improve this content

Suggest a correction or edit

Your contribution is private and used to review and improve this content. The Privacy Policy explains how data is processed and retained and how to request deletion. Read the Privacy Policy and Terms of Use.