All DDoS Definitions
We use this to reply to you. Privacy policy
DDoS Testing Definition

Shrew Attack

A shrew attack works by timing short bursts of traffic to TCP's own retransmission timer, rather than by sending more traffic than a link can carry. It is a low-rate denial-of-service attack against TCP flows, and one of the timing cases a DDoS test has to include, because its average rate looks harmless while the connections it targets slow almost to a stop.

Shrew attack: bursts timed to TCP's retransmission timer Traffic at the bottleneck link 100 ms burst above the link's capacity quiet between bursts so the average stays low period of about 1 s, the minimum retransmission timeout What each TCP flow does, short requests and long transfers alike Loses several packets burst fills the queue Waits out the timeout minimum 1 s, RFC 6298 Retries into a burst the retry is lost too Timer doubles the flow stays in timeout repeats every period: throughput falls close to zero Attack average rate: 909 kb/s a long averaging window sees a modest stream Victim TCP throughput: 9.8 to 1.2 Mb/s wide-area test, Rice University, ACM SIGCOMM 2003 BlackNeuron™
Shrew attack: short high-rate bursts repeated about once a second fill a bottleneck link's queue, each TCP flow loses several packets, waits out its one-second minimum retransmission timeout, retries straight into the next burst and backs off again, so its throughput falls close to zero while the attack's average rate stays low

How a shrew attack works

The attack was described in "Low-Rate TCP-Targeted Denial of Service Attacks (The Shrew vs. the Mice and Elephants)" by Aleksandar Kuzmanovic and Edward W. Knightly of Rice University, presented at ACM SIGCOMM in 2003.

It exploits the way TCP recovers from heavy loss. When a flow loses several packets from one window, fast retransmit cannot repair it, and the sender falls back to the retransmission timeout: it stops, waits, and tries again. RFC 6298 still sets the minimum for that timeout at 1 second, and the paper modelled that value.

The attacker sends a burst at a rate high enough to fill the bottleneck queue and cost each flow several packets at once. Then it goes quiet for about a second. When the flows' timers expire and they retry, the next burst is already there. The retry is lost, the timer doubles, and the flow never climbs out of timeout.

The shared floor is the detail that makes this work against many flows at once. A flow's round-trip time barely matters when flows on the same stack share the same minimum timeout, so one period catches the short flows and the long transfers together: the mice and the elephants of the paper's title.

In the paper's wide-area experiment, an attack averaging 909 kb/s, sent as 100 ms bursts, cut the victim's TCP throughput from 9.8 Mb/s to 1.2 Mb/s.

Shrew attack: every retry meets the next burst throughput before the bursts TCP throughput seconds, one burst per minimum timeout full TCP rate each retry lost, timer doubles bursts stop flow climbs back The average attack rate stays low: the damage comes from timing each burst to the 1 s retransmission floor BlackNeuron™
Shrew attack in motion: a TCP flow runs at full rate, the bursts start and every retry after a timeout meets a fresh outage, throughput sits at a small fraction of normal while the bursts continue, and the flow only climbs back once they stop

It sits between two families. A low and slow attack also uses little bandwidth, but it holds server connections open; a shrew holds nothing at the server and goes after congestion control on the link. A pulse wave attack also comes in bursts, but its period is tuned to a mitigation system's reaction window, while a shrew's is tuned to the minimum retransmission timeout that TCP senders share (1 second in RFC 6298, lower in some stacks).

Why it matters under attack

The average is the disguise. In the paper's test the attack's mean rate was less than a tenth of the victim's normal throughput. A detector that reads rates over a minute, or even over ten seconds, sees a modest stream well under the link's capacity.

The victim reads it as congestion. Packet loss and timeouts are what TCP expects on a busy path, so the flows behave correctly and the symptom looks like an ordinary slow network. Link graphs averaged over time show headroom that the flows cannot use.

The protocol fix is not simple. The authors found that randomising the minimum timeout only distorts the attack and mitigates it slightly. The floor exists to avoid spurious retransmissions, so it is not a setting a defender can just lower across every client.

That leaves the defence where the bursts land. Headroom or scrubbing ahead of the bottleneck keeps a burst from filling the queue, and detection that looks at short timescales has a chance of seeing a peak that an average hides. Neither works if it only reacts to the long-run rate.

2026-11-30T07:08:15.353738 image/svg+xml Matplotlib v3.5.1, https://matplotlib.org/ 0 2 4 6 8 10 Mb/s Victim TCP throughput, no attack Victim TCP throughput, under attack Attack average rate 9.8 Mb/s 1.2 Mb/s 0.909 Mb/s Wide-area experiment, 100 ms bursts Source: Kuzmanovic and Knightly, Rice University, ACM SIGCOMM 2003 Shrew attack: a low average rate, a large loss of TCP throughput BlackNeuron™
Shrew attack figures from the 2003 paper's wide-area experiment: victim TCP throughput of 9.8 Mb/s with no attack falls to 1.2 Mb/s under a shrew attack averaging 909 kb/s

What a DDoS test measures

The question is not how much traffic the path survives. It is what happens to real TCP flows while bursty traffic with a low average crosses a bottleneck you own: your uplink, your load balancer, your firewall.

So the result is a goodput figure for genuine TCP traffic during the bursts, with both short requests and long transfers measured, set beside the average rate of the test traffic that caused it. A test that reports only peak rate and whether the service stayed up will pass a path that real users find unusable.

The second reading is detection. Did any alert or mitigation fire, and on what window was it computing the rate? An honest finding here is often that the bursts were visible in raw counters and invisible on every dashboard.

The test runs from the test's own authorised generators, against links in scope, and never against a third party's path. Why a simulated traffic profile needs short bursts as well as long plateaus is argued in DDoS simulation.

We use this to reply to you. Privacy policy