A normal speed test runs for about fifteen seconds. It tells you how fast your connection can go, and almost nothing about whether it can keep going. I wanted to know the second thing. Could my gateway, my 10GbE core switch, my always on server and the NBN line itself hold a near maximum download for days rather than seconds, without anything crashing, overheating or quietly falling over?
So I wrote a small script that downloads a file on a loop forever, throws every byte away, and holds a fixed speed. Then I left it running from Sunday night to Friday night.
November, according to my ISP. Spot the week I started testing.
The short version:
- Final run: 17.41 TB in nearly four days, averaging 405.4 Mbps against a 410 Mbps cap (about 99%)
- Whole test: about 20 TB over five days. My ISP recorded 23,668.54 GB for November, against 2,738.11 GB for all of October
- Stability: nothing went down. The gateway, switch, server and line all stayed up, with 25 automatic reconnects over roughly 1,680 passes of a 10.49 GB file
- The ISP's side: for days my single download was most of the traffic on my ISP's link at my local NBN point of interconnect, and that link still never went much above 40% of its capacity
- Bonus finding: raising my ISP's adjustable shaper from the default to its maximum cut upload latency under load from 72 ms to between 7 and 12 ms
- What my ISP said: nothing at all
The Setup
The connection is a 500/50 NBN plan from Launtel with no data cap. Launtel is a small Tasmanian ISP, and one of the reasons I picked it is that its portal lets customers adjust their own shaper, which turned out to matter later.
The network side is the same UniFi stack I wrote about in Collapsing the Core. A UniFi Cloud Gateway Fiber handles routing, and a USW Aggregation sits in the middle with every important device on 10GbE SFP+.
The test ran on my homelab server, a Lenovo ThinkCentre V520S small form factor PC with an i5-7400, 16 GB of RAM, Ubuntu 24.04 and a 10GbE NIC on a DAC cable back to the Aggregation switch. It's the always on box that runs Plex, my Claude Phone project and the rest of my services, 11 Docker containers in all. I deliberately left all of that running. A soak test on an idle machine proves less than one on the machine as it actually lives.
I picked 410 Mbps as the cap. That's close enough to the plan to stress everything, while leaving some headroom so the rest of the house could still use the internet without noticing.
Building the Tool
The first version was a few lines of bash around curl --limit-rate, looping over an Ubuntu ISO from the AARNet mirror. It failed straight away with an HTTP 403. The ISO I had hard coded, 24.04.3, had been pulled from the mirror after a newer point release came out. Mirrors don't keep old point releases around forever, so I changed the script to read the mirror's directory listing and pick whichever 24.04 ISO was current. It found 24.04.5.
The bigger problem with curl was visibility. I wanted a live readout of speed, total and elapsed time that I could check inside tmux, and curl only really tells you the size once a download finishes. So I rewrote it in Python, standard library only. I used an AI coding assistant to speed up writing the code, and spent my own time on what it needed to do and on testing it against the real line.
The script, endless-download.py, reads 64 KB chunks with urllib and discards them. Nothing touches the disk, which is exactly what you want from something that's going to move tens of terabytes.
A Shared Token Bucket
The rate limit is a single token bucket shared by every download stream. That means -r 410 -n 4 gives you 410 Mbps in total, not 410 per stream. The bucket starts empty, so there's no burst at startup, and in local testing it held between 409.9 and 410.4 Mbps.
class Limiter:
"""Token bucket shared by all streams, so the cap is total, not per stream."""
def __init__(self, rate_bps):
self.rate = rate_bps
self.capacity = max(rate_bps * 0.25, CHUNK * 4)
self.tokens = 0 # no burst at startup
self.last = time.monotonic()
self.lock = threading.Lock()
def acquire(self, n):
while True:
with self.lock:
now = time.monotonic()
self.tokens = min(self.capacity, self.tokens + (now - self.last) * self.rate)
self.last = now
if self.tokens >= n:
self.tokens -= n
return
wait = (n - self.tokens) / self.rate
time.sleep(wait)
A Readout That Doesn't Scroll
Printing a new line every second inside tmux turns into a wall of text very quickly. Instead, the readout redraws itself in place. \033[nF moves the cursor up to the start of the block and \033[2K clears each line before it's rewritten.
def draw(lines, first):
out = []
if not first:
out.append(f"\033[{len(lines)}F") # cursor up to start of block
for line in lines:
out.append("\033[2K" + line + "\n") # clear line, write
sys.stdout.write("".join(out))
sys.stdout.flush()
Before it starts looping, the script sends a HEAD request so a bad URL fails fast with its HTTP code, which is how the 403 showed up so clearly. After that, any error gets a five second wait and a retry, and Ctrl+C prints a one line summary of the whole run.
tmux Helpers
To run it in the background I wrote four small bash functions, sourced from ~/.bashrc. dl-start creates a detached tmux session and refuses to start a second copy. dl-attach jumps into it, and dl-stop sends Ctrl+C, waits for the summary line and closes the session. The one I used most was dl-status, which grabs the live readout without attaching at all.
dl-status() {
if ! _dl_exists; then
echo "Not running (no tmux session '$DL_SESSION')."
return 1
fi
_dl_running || echo "(session exists but the script isn't running, last output below)"
tmux capture-pane -p -t "$DL_SESSION" | sed '/^[[:space:]]*$/d' | tail -n 10
}
They're functions rather than aliases so they can take arguments and do checks. I also added all four to the quick commands list on my server's login dashboard. That dashboard has a strict zero delay rule. It only reads cache files written by background timers and never calls tmux or anything slow at login, which is why it lists the commands but doesn't show a live "download running" line.
If you want to try it yourself, both files are here: endless-download.py and endless-dl-commands.sh.
Choosing What to Download
A five minute run against the AARNet mirror held a flat 410 Mbps with zero errors. It also made me think about what I was actually about to do. Overnight, at that speed, the script would pull the same ISO hundreds of times from one address. My ISP was unlikely to care on an unlimited plan. The mirror was a different story. Community mirrors run on bandwidth provided for research and education, and that pattern looks a lot like abuse.
So I switched to a file that exists to be downloaded over and over. Leaseweb's Sydney speed test server publishes a 10.49 GB test file. It only answers over plain HTTP, but that doesn't matter when every byte gets thrown away. The first run against it pulled 12.75 GB in just over four minutes at exactly 410 Mbps, so I made it the script's default and restarted the long run at about 11:31 pm on Sunday 15 November.
Night One
The first thing I learned was that my graphs were lying to me, or at least running late.
UniFi's per client daily total showed only 1.40 GB for the server while the switch port was doing 397 Mbps live. The "Wired Experience" rate for the same client read 656 bps. UniFi stores per client stats in time buckets, so those numbers catch up later. The switch port counters and the gateway's WAN graph were the views that matched reality in real time.
Launtel's capacity graph was worse, with its newest 10 to 15 minutes always missing and drawn as a flat zero. Its status page was closer to live. A few minutes in, it already showed my point of interconnect at 16% utilisation. 16% of roughly 3.6 Gbps is about 576 Mbps, and 410 of that was me.
UniFi's first 24 hours, with the 1:30 am dip and the midday pause for speed tests.
The only real wobble came between about 1:30 and 1:50 am on Monday. Speed fell to somewhere between 190 and 260 Mbps and ping to 1.1.1.1 rose from 2 ms to 82 ms. The server itself was only seeing the download, so the extra load was coming from somewhere else on the network. It turned out to be another device pulling a big update. Once it finished, everything recovered by itself, and the dip shows on both the UniFi and Launtel graphs. After that the line sat flat at about 410 to 433 Mbps through to midday, with UniFi's figure including the rest of the house's traffic on top of mine.
Seeing Myself on My ISP's Graph
This was the part I didn't expect to find so interesting.
In Australia, NBN hands each ISP's traffic over at 121 points of interconnect, or POIs. An ISP buys capacity at each one separately. That capacity was historically called CVC, and Launtel's portal still uses the name. ISPs size each POI for its busiest time of day rather than for every customer's plan speed added together, because most households average only a few megabits even at peak.
Launtel's portal shows a graph for each POI, with a red line for the maximum. Mine sits at about 3,600 Mb, and that's the capacity for Launtel's customers in my POI's area only, not the whole ISP. On a normal day before the test, overnight traffic idled at about 50 to 100 Mb and the evening peak reached about 900 Mb, roughly a quarter of capacity.
A normal day at my POI. The step up at the far right, just before midnight, is the test starting.
Then I started the download and the shape of the graph changed completely. Overnight on the 16th it held a plateau of about 450 to 600 Mb. With the usual overnight baseline at 50 to 100 Mb, something like 80 to 90% of all of Launtel's traffic through my POI was one script on my server. At around 3 am, one house was most of an ISP's traffic for a whole NBN region, and the link was still sitting at about a sixth of its capacity.
The gap in the middle is when I stopped for speed tests. Launtel's graph tracks me exactly.
The gap from about 12:30 to 2:30 pm is when I paused the download to run speed tests, and it lines up exactly with the gap in UniFi. That was the moment I was sure the plateau really was me. At 7:17 pm, around the evening peak, the status page put my POI at 17%. Without me it would have been about 6%.
The same status page lists every Launtel POI, and at that evening peak none of them were above about half their capacity. The busiest was Launceston at 47%, which makes sense for a Tasmanian ISP, and most sat between 5 and 25%. Each percentage is relative to that POI's own capacity, so they can't be compared as absolute numbers, but it fits Launtel's reputation for buying generous capacity.
The obvious follow up question is what happens if a handful of gigabit customers all download a big game release at the same moment. A few of them at full speed could fill a POI like mine. In practice it rarely happens all at once, and a full link means congestion, where everyone slows down and latency rises, rather than an outage. ISPs watch exactly these graphs and buy more capacity when they need it.
A Side Quest: Fixing Bufferbloat With One Setting
When I paused the download on Monday, I used the quiet line to try something I'd been curious about. Launtel's portal lets you choose your own shaper settings. The defaults were a "Shaping" queue at 540 down and 55 up, with an allowed maximum of 575 and 57.
My baseline on Ookla Speedtest, using the Aussie Broadband Sydney server, looked great on throughput but not on latency under load.
Before. Fast, but 72 ms of upload latency under load.
Idle ping was 2 ms, but it rose to 38 ms while downloading and 72 ms while uploading. That's classic bufferbloat, where packets sit in an oversized queue somewhere along the path. So I set the shaper to override at the maximum, 575 down and 57 up, kept the queue type on Shaping, and saved.
Overriding the shaper to the maximum Launtel allows.
My first test afterwards accidentally ran against Launtel's own Sydney server. That's on Launtel's network, so it isn't a fair comparison with the Aussie Broadband baseline. I reran it three times on the original server.
Same server as before. Upload latency under load down from 72 ms to 7 ms.
Upload latency under load improved by about ten times, download latency under load roughly halved, and throughput went up by about 2% as a bonus. My best explanation is that with Launtel's shaper set above what the NBN actually delivers (about 537/53.7 here), Launtel's queue is no longer the bottleneck. The NBN's own speed limit becomes the cap, and it seems to queue far less. I can't see inside either system, so treat that as a theory that fits the numbers rather than a fact.
It matters more than the speed figures suggest. Upload latency is what makes a video call stutter while a backup runs, or a game lag while someone streams from Plex. If your ISP lets you touch the shaper, it's worth testing. I didn't need to go further, but the other options would have been Launtel's "Policing" queue type, or Smart Queues on the gateway at around 90 to 95% of line speed, trading a little throughput for lower latency.
Four Days Later: The Results
I restarted the download around midnight going into Tuesday 17 November to reset the counters for a clean final run, then left it alone until Friday night. Launtel recorded about 4.7 TB a day on the 17th, 18th and 19th. This was the last dl-status before I stopped it.
$ dl-status
URL: http://speedtest.syd12.au.leaseweb.net/10000mb.bin
File: 10.49 GB Cap: 410 Mbps across 1 stream(s) (~184.50 GB/hour) Ctrl+C to stop
Speed 134.2 Mbps 5s avg 166.3 Mbps
Total 17.38 TB (pass progress ~60%)
Elapsed 3d 23:16:19
Average 405.4 Mbps
Passes 1658 Errors 25
Last [23:20:50] stream 1 finished pass 1683 (10.49 GB)
By the time it actually stopped a few minutes later, the final run had reached 17.41 TB.
UniFi's week. 23.2 TB through the gateway.
A full day at exactly 410 Mbps works out to about 4.43 TB of data reaching the script, but Launtel counted between about 4.64 and 4.7 TB a day. The gap is probably because an ISP counts bytes on the wire, including TCP/IP and link layer headers, which add something like 3 to 5%, plus the rest of the house's normal use on top. That fits, but I haven't confirmed it. Tools also disagree on decimal and binary units, so I've quoted each total the way its own tool reports it.
For scale, about 20 TB in five days is roughly eleven months of this house's normal use. A normal fortnight of about 900 GB took the script around five hours.
The hardware barely noticed. A nearly ten year old i5, a UniFi gateway and a 10GbE switch moved about 20 TB in five days without a single crash, and the script itself never used more than a small slice of one core while Plex and everything else kept running alongside it.
On Friday night, on the last day of the test, my POI had a thick raised base all day with my 410 Mb sitting underneath everyone else, peaking at 1,214.62 Mb at 10:07 pm. Then it dropped away when I stopped.
The last day. The thick base is mostly me, and it drops away when I stopped.
And Launtel? No email, no warning, no throttling. Unlimited meant unlimited, at least this time.
What I Learned
- The hardware is more robust than a speed test can show. Five days near line rate, no crashes, no thermal problems, and the server kept doing its normal job the whole time.
- Monitoring graphs lag. UniFi's per client totals and Launtel's capacity graph both trail reality. Switch port counters and the gateway's WAN graph were the honest live views. If I want proper history, polling UniFi every few seconds into Grafana with something like UnPoller is the next step.
- Pick test targets responsibly. Looping a community mirror for days isn't fair on the people who run it. Speed test files exist for exactly this.
- Check your ISP's shaper. One setting cut my upload latency under load by six to ten times, for free.
- A soak test shows things a speed test can't. Stability, overnight dips, how your monitoring behaves and how your ISP's queueing affects latency only show up over hours and days.
The most fun part was seeing my own traffic on someone else's infrastructure. It's one thing to know an ISP aggregates customers at a POI. It's another to watch a flat 410 Mb block sit underneath everyone else in your area for four days straight.