---
title: "Denial-of-Service Attack (DoS) — definition | Nuri Glossary"
description: "Overwhelming a service with traffic or junk data until real users cannot use it."
lang: "en"
type: "glossary-term"
canonical: "https://nuri.com/glossary/denial-of-service"
---

# Denial-of-Service Attack (DoS)

Overwhelming a service with traffic or junk data until real users cannot use it.

## Basically

A denial-of-service attack floods a system with requests or data. The system becomes too overwhelmed to serve its intended users.

## Key Takeaways

- A denial-of-service (DoS) attack floods a system with excessive requests or data to exhaust its resources and stop legitimate users accessing the service. Blockchain attacks can target nodes, the mempool, or the peer-to-peer layer.
- Blockchain-specific DoS vectors include transaction spam that fills blocks, computational attacks using underpriced operations, mempool flooding, and network-layer bandwidth exhaustion. The 2016 Ethereum DoS attacks showed how underpriced opcodes could bring nodes to a halt.
- Bitcoin's fee market and fixed block weight limit make sustained DoS economically prohibitive. Every spam transaction competes for scarce block space and must pay real fees, turning the attack into a direct cost to the attacker.

## What Is a Denial-of-Service Attack?

A denial-of-service (DoS) attack is a deliberate attempt to make a computer system, network, or service unavailable to its intended users. The attacker overwhelms the target with more traffic, requests, or data than it can process, exhausting resources like CPU, memory, bandwidth, or storage. An attack originating from many machines simultaneously is called a distributed denial-of-service (DDoS) attack.
Traditional web infrastructure typically faces floods of HTTP requests or network packets until a server can no longer respond. Decentralised, peer-to-peer blockchain networks have no single server to take offline, so attackers target the transactions, blocks, and peer-to-peer messages that every node must process. A successful attack increases confirmation times, raises fees, or forces nodes offline through resource exhaustion, degrading the network for all participants.

## How It Works

Every node in a blockchain network must validate and relay transactions and blocks, and blockchain DoS attacks exploit this requirement. Attackers create transactions or messages that are cheap to make but expensive to process, placing an asymmetric burden on the network through four core vectors.

## Transaction Flooding

The most straightforward attack broadcasts a large volume of valid transactions to fill blocks with spam. Block space is finite, and Bitcoin's block weight limit caps blocks at 4,000,000 weight units, so spam competes with legitimate transactions for inclusion. The resulting congestion drives up fees and delays confirmation for users who cannot or will not pay the inflated rates.
Bitcoin experienced a sustained spam attack in 2015, when an attacker broadcast thousands of small-value transactions of around 0.00001 BTC each and filled blocks to their 1 MB capacity at the time. Mining pools like F2Pool mined oversized blocks in an attempt to clear the backlog. The attack showed that transaction flooding can degrade user experience without breaking consensus.

## Computational DoS

A computational DoS attack crafts transactions that are individually expensive for nodes to validate rather than relying on flooding volume. The attacker exploits operations with a low transaction inclusion cost but a high computational or I/O burden on validating nodes.
The most prominent example occurred on Ethereum in September 2016, when attackers exploited the EXTCODESIZE opcode. The instruction had a gas cost of just 20 units but required nodes to perform disk reads for each call, and attack transactions called it roughly 50,000 times per block, causing geth nodes to take minutes or longer to process a single block. The Parity client handled I/O differently, was less affected, and kept the network moving.
A second wave exploited the SUICIDE opcode, now called SELFDESTRUCT, to create millions of empty accounts that bloated the state trie. Ethereum deployed its Spurious Dragon hard fork in November 2016 after approximately 20 million empty accounts had been added to the state.

## Mempool Flooding

The mempool is the waiting area where unconfirmed transactions sit before miners include them in blocks. An attacker can flood it with low-fee transactions that are valid enough to propagate but unlikely to be mined quickly. The flood consumes memory on every node that stores the mempool and can push legitimate transactions out when nodes enforce memory limits.
Mempool flooding creates a secondary effect because fee estimation algorithms examine mempool state to recommend fees, according to research. An inflated mempool tricks wallets into suggesting higher fees than necessary, so users overpay even if their transactions would have confirmed at normal rates.

## P2P Network Layer Attacks

Attackers can target the peer-to-peer messaging layer itself, beyond transactions. These attacks take several forms.
These attacks do not necessarily appear on-chain but can degrade individual nodes or partitions of the network. That damage can enable follow-up attacks like double spends against isolated victims.

## Bitcoin Spam Attacks (2015)

Waves of transaction spam hit Bitcoin starting in mid-2015. Attackers created thousands of tiny transactions at roughly $0.08 each, filling every 1 MB block, causing fee spikes and delayed confirmations for ordinary users. Nodes continued validating and miners continued producing blocks, so the network never went down, but the degraded experience underscored the importance of mempool policy and fee-based prioritisation.

## Ethereum DoS Attacks (2016)

The Ethereum DoS attacks of September and October 2016 remain the most severe blockchain DoS incident to date. The attackers exploited under-priced EVM opcodes, particularly EXTCODESIZE and SUICIDE, to force nodes into expensive disk I/O operations. Geth nodes stalled, and many operators could not sync past the attack blocks.
Ethereum responded with two emergency hard forks: Tangerine Whistle in October 2016 at block 2,463,000, and Spurious Dragon in November 2016 at block 2,675,000. Tangerine Whistle implemented EIP-150 and raised the gas cost of EXTCODESIZE from 20 to 700, a 35x increase; Spurious Dragon addressed remaining issues, deleted the millions of empty accounts created during the attack, and added replay protection via EIP-155. These forks established a precedent that resource pricing in smart contract platforms must accurately reflect the actual computational cost of each operation.

## Fee Markets as Rate Limiting

The fee market is the most fundamental defence in proof-of-work blockchains. Every transaction included in a block must pay a fee, miners prioritise higher-paying transactions, and an attacker filling blocks must continuously outbid legitimate users while rising fees escalate the cost. Bitcoin's fee market has proven effective because the fixed block weight limit keeps block space scarce.
Ethereum's EIP-1559 fee mechanism adds a base fee that adjusts dynamically with demand. The base fee rises automatically during a DoS attack, making spam transactions increasingly expensive. Validators do not receive the base fee because it is burned, eliminating any incentive for miners to collude with attackers.

## Mempool Policies

Nodes protect themselves through configurable mempool policies. Bitcoin Core implements several such mechanisms.

## P2P Rate Limiting

Nodes implement rate limits and peer scoring at the network layer to manage abusive connections. Bitcoin Core's defences include several such measures.

## Resource Metering

Smart contract platforms defend against computational DoS through resource metering, with every operation costing gas and each block having a gas limit that caps total computation. The key lesson from the 2016 Ethereum attacks is that gas costs must accurately reflect real resource consumption: CPU cycles, memory access, disk I/O, and state growth. Attackers exploit the gap when pricing is wrong.

## Why Bitcoin Is Resilient to DoS

Bitcoin's design makes sustained DoS attacks economically prohibitive. Several features of that design contribute to this resilience.
Layer-2 solutions like the Lightning Network and Spark further reduce DoS surface area by moving transactions off-chain. These protocols settle only final states to the base layer, reducing the volume of on-chain transactions an attacker could use to congest the network.

## DoS vs. DDoS vs. Sybil Attacks

These related attack types are often confused. They target different layers.
A Sybil attack can enable a DoS attack, for example by using fake nodes to eclipse a target, but the two are fundamentally different. DoS targets availability, while Sybil targets identity assumptions.

## Risks and Considerations

Blockchain networks have proven resilient to DoS attacks over more than a decade of continuous operation. Several concerns remain despite that record.
The research article on Bitcoin fee market dynamics and mempool congestion economics provides a deeper analysis of how fee dynamics interact with network congestion. Readers can consult it for more detail on this relationship.
The glossary entry is for informational purposes only and does not constitute financial or investment advice. You should always do your own research before using any protocol or technology.
Part of the [Nuri glossary](https://nuri.com/glossary), which defines 1876 Bitcoin, Lightning, wallet, stablecoin and payment terms.
