Industry Applied

Global industry.
Applied in Australia & New Zealand.

A 64 KiB gateway limit is not the same as a 64 kB upload limit

A fixed header and indivisible records change how many observations fit inside one upload. The smaller limit in the full path wins.

Industry Applied Editorial Published 2 min read

An edge recorder and removable storage on a bench. AI-generated editorial illustration.
AI-generated editorial illustration by Industry Applied · Industry Applied editorial artwork

Read the byte count behind a gateway’s stated batch limit. A 64 KiB buffer contains 65,536 bytes. A service that accepts 64 kB on a decimal basis accepts 64,000 bytes. If records cannot be split, the smaller limit can reject an otherwise legitimate gateway batch even before any encoding overhead is added.

Count complete records

Suppose the file format has a 256-byte header and each observation occupies exactly 120 bytes. A 64,000-byte ceiling leaves 63,744 bytes for records. The largest complete batch holds 531 observations and uses 63,976 bytes in total. Under 65,536 bytes, 544 records fit, consuming exactly 65,536 bytes. The difference is 13 records, not a whole-number percentage of the nominal “64”.

All cases include a 256-byte header and whole 120-byte records. Spare bytes under the limit cannot hold a partial record.
Figure 1. All cases include a 256-byte header and whole 120-byte records. Spare bytes under the limit cannot hold a partial record. Original figure by Industry Applied Editorial. Illustrative data.

Worked data

Encoded batch limit

Available after header (bytes)

Full records

60,000 bytes

59,744

497

64,000 bytes

63,744

531

65,536 bytes

65,280

544

Download the figures in this worked example (CSV)

Test the payload the server measures

A field logger may buffer binary records and then send JSON or another text encoding. Field names, separators and longer timestamp strings change the transmitted size. Compression changes it again, and a server can enforce a limit before or after decompression. Define the layer and count actual encoded bytes from representative records.

NIST documents binary and decimal prefixes. Label limits explicitly in interface specifications and exercise boundary cases with one record fewer, the maximum and one more. A reconnect after an outage is a good time to observe batching behaviour using an approved test dataset. Keep accepted, retried and rejected batches separately so a size problem cannot masquerade as a device dropout.

Sources

NIST · Binary prefixes for units of information

Cover illustration by Industry Applied, generated with AI. An edge recorder and removable storage on a bench.

0 views0 comments

Comments