What network stress testing is and is not
Network stress testing is the deliberate generation of traffic against your own infrastructure to find the point — and the manner — in which it degrades. It is not "see how much we can send." It is a measurement exercise: given a hypothesis about capacity or mitigation, produce traffic that answers it while someone watches the right graphs.
It differs from script-based load testing with k6, JMeter or Locust in scope and realism. Those tools test application throughput from a few workers; an IP stresser tests the network path and edge — packet rates, connection tables, scrubbing, ISP handoffs, TLS termination — with traffic shapes that resemble real floods. Both are legitimate and answer different questions.
Step one: write the hypothesis
Every useful run starts as a falsifiable sentence: "the edge holds 2 Gbps of UDP without loss," "checkout stays under 800ms p95 at 300 concurrent buyers," "the scrubbing service engages within 60 seconds." The hypothesis determines the layer, method, duration and which dashboard matters.
Pick the layer from the question. Pipe and perimeter questions — bandwidth ceilings, firewall connection tables, mitigation engagement — belong to Layer 4 methods such as UDP floods, TCP connection storms and socket exhaustion. Application questions — latency, error rates, autoscaling, WAF and cache behavior — belong to Layer 7 methods such as HTTP floods and browser-like flows. If the hypothesis touches both, run two phases rather than one mixed blast.
Step two: prepare the window
Preparation is what separates a test from an incident. Define the exact scope and explicit exclusions, keep written authorization with the run record, and notify your NOC, hosting provider and mitigation vendor so anomaly detection does not trigger a false incident. Open the monitoring before you start: interface counters, connection tables, load-balancer metrics, application latency and error classes, and the mitigation console.
Agree the abort rules in advance — the threshold at which the run stops, such as production latency over a limit or upstream packet loss past a few percent — and verify the stop control works on a trivial run first. Assign one person to own the stop decision and another to watch metrics.
Step three: run in steps, not one blast
The most common beginner mistake is a single max-intensity run, which teaches almost nothing beyond "it broke." Capture a baseline first, then a short low-intensity probe of 30 to 60 seconds to confirm the path and monitoring behave as expected. Step the intensity up in discrete stages, holding each long enough for steady-state metrics. The first cliff is the answer; everything after it is noise.
Spend time just below the degradation point — the "knee" — because that is where real tuning happens, and abort when the hypothesis is answered rather than when the maximum duration expires. For long runs remember that many platforms renew upstream jobs in chunks behind the scenes while the panel keeps the full duration.
Step four and five: measure, fix, retest
For L4 runs the answering metrics live below HTTP: interface packets and bits per second, packet loss, firewall connection-table usage and drops, load-balancer active connections, and mitigation engagement state. For L7 runs they are request-path metrics: p95 and p99 latency on the tested endpoint, error-class distribution, edge versus origin request rate, WAF actions and autoscaling events. Correlate by timestamp and save the annotated window with the run record.
A stress test that is not retested after a fix is a story, not a control. Change one thing — connection-table sizing, a WAF rule, pool limits, a scrubbing threshold — rerun the same scenario, then make it routine. Attack capacity grows every quarter and configs rot, so a short scheduled probe on every infrastructure change, monthly for exposed services and before every known peak is the sustainable pattern.