Small downloads with offset

I see a lot of downloads where only 256 bytes from a larger piece are requested. This makes no sense to me. Is it some kind of testing or ddos?

2025-03-31T20:38:28+02:00       INFO    piecestore      downloaded      {"Piece ID": "BV2DOKQAI3JEJFSK2WQPNIYZHA7RHSUKYVACUY2XC5QGGSRZ6NYQ", "Satellite ID": "12L9ZFwhzVpuEKMUNUqkaTLGzwY9G24tbiigLiXpmZWKwmcNDDs", "Action": "GET", "Offset": 216832, "Size": 256, "Remote Address": "93.177.65.143:56996"}

Could also be an audit. Checking if you have specific pieces. If it is the same piece over and over again, than it is likely something else.

Action is “GET” not “GET_AUDIT”. So I think it’s not audits.

1 Like
1 Like

Those are valid requests and downloads are successful done. The Question is why whould someone download such small parts of a piece file?

Splitting pieces into smaller parts and downloading them in parallel could make sense for performance reasons but not with parts that small.

On the other hand, for a dos attack small parts from random files makes sense… :thinking:

Nodes themselves respond to these downloads very well: piece data is likely cached and read-ahead by the OS anyway, and any writes necessary for accounting (orders, bandwidth and disk space statistics) are batched across many such requests. It could be a problem for your network infrastructure to handle so many small network connections though. For example, my ISP’s router has problems dealing with thousands of concurrent NATted connections, basically hanging and requiring manual restart—thankfully Storj traffic does not reach this number anymore for my setup.

If files are truly random cache can’t help. Requesting 256 bytes will always result in a much bigger read from whatever storage ist used.

But I agree, router overload might kick in earlier than storage overload. My pfsense showing 150K states atm, I guess not many home routers could handle this.

Ah, sorry, the behavior that was observed November was reading from the same piece 256 bytes at a time, instead of requesting it in one go. Do you observe something different?

I see multiple requests for the same file but a number of file names used. Probably not much randomness.

1 Like