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.
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.
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.
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.