The fifth octet belongs to two words at once
Count four octets, then stop halfway through the fifth. That is where one 36-bit word ends in an FTP data stream — and where the next one has already begun. Nothing on the wire marks the seam. TCP may split the stream there, a router may drop a packet there, and the file is unchanged. A gateway that treats every octet boundary as a logical boundary can preserve every last bit and still hand the receiver nonsense.
This is the small, stubborn miracle of TYPE L. In 1980 the FTP designers fixed the carrier at eight bits and then refused to say that eight bits was what a byte meant. A file could declare its own logical unit — 36 bits, if the machine had 36-bit words — and the protocol would pack those units end to end across the eight-bit stream, boundaries be damned. The wire moved the bits. It never acquired authority over what counted as one.
The short version
- Mature FTP fixed the transfer byte at eight bits, but
TYPE Ldeclared a separate, mandatory logical-byte width whose boundaries could fall inside those octets. - A receiver could rearrange the logical units to suit its own word size only through an invertible, publicized transformation. Identity was promised when storage and retrieval used the same parameters.
- Image preserved contiguous bits; Local additionally declared their units. A successful reply proved neither application meaning, nor physical allocation, nor durable storage, nor universal support for the requested width.
1971: a catalogue of every machine's private habits
RFC 114, published in April 1971, reads like a diplomat trying to inventory every guest's dietary law before the banquet. Abhay Bhushan's tentative type list included several ASCII forms, EBCDIC, SIXBIT, decimal, octal and hexadecimal encodings, differently signed integers, and separate floating-point descriptions for the IBM 360 and the PDP-10. Some integer types carried an explicit width anywhere from one to 255 bits.
The information was interpretive. A host accepting a type could convert the received value into whatever internal form suited its own arithmetic. A 36-bit-word computer might pack five seven-bit ASCII characters into a word, four eight- or nine-bit characters another way, and six SIXBIT characters another way again.
That 1971 table is not the TYPE command grammar of RFC 959, and reading it as such flattens a decade of evolution. What it does show is the original commissioning problem: ARPANET hosts agreed on almost nothing — not character code, not numeric representation, not storage word, not even the unit everyone casually called a byte.
A reliable bit path therefore left the job unfinished. The receiver could hold the exact sequence and still not know which groups were meant to be handled together. The early answer was to stuff every machine distinction into the shared catalogue.
1972: even the wire's byte was negotiable
RFC 354, dated July 1972, separated representation type, structure and transfer mode — but its data connection could still use a selected byte size. ASCII and print representations used eight bits. Image and Local Byte could use whatever size the connection had chosen.
No server had to accept every possible size. It could implement the widths its transfer machinery handled efficiently, with eight-bit support merely recommended. Expressibility was never a certificate of deployment, even in the protocol's infancy.
The Local Byte transformation depended on the transfer size and on the particular host, and its method had to be well publicized and invertible. Store a file with one representation and byte size, retrieve it with the same combination, and the identical file had to come back. Remembering those parameters was the user's problem.
That arrangement gave unlike machines room to preserve native forms, and it enlarged the interoperability matrix in exchange. A host might understand 36-bit values in memory and still decline a 36-bit data-connection byte. Meaning and carriage width both sat on the negotiated surface.
1980: eight bits become the carrier, not the constitution
RFC 765 in 1980 simplified the model by fixing the transfer byte at eight bits. RFC 959 kept that decision and stated the distinction out loud: FTP has a logical byte size for interpreting file structure and a transfer byte size for moving data, and neither is necessarily the unit in which a system stores the result.
TYPE L requires a decimal second parameter. There is no default. Without the number, the receiver knows the width of the arriving containers but not the width of the units to rebuild from them.
When the two widths differ, logical bytes are packed contiguously, ignoring transfer-byte boundaries entirely. The change did not ban nine-, 18- or 36-bit objects. It moved their packing out to the endpoints and removed their geometry from the data connection itself.
That was a controlled reduction of common authority. Every implementation could rely on eight-bit carriage. No implementation could infer from that common carrier that the file, the CPU and the disk all dealt in eight-bit native objects.
What TYPE L 36 actually promises — and what it does not
A server that accepts TYPE L 36 has agreed to treat the coming file as a sequence of 36-bit logical units. It has not agreed to use 36-bit memory, to understand the values as numbers, or to reserve any particular amount of disk. The command selects a representation state. Everything else belongs to other mechanisms.
The arithmetic makes the modesty visible. Two logical units hold 72 bits. The mature data connection carries eight-bit transfer bytes, so the pair occupies nine of them. The first four octets hold 32 bits of the first unit; the first half of the fifth octet completes it, and the second half already begins the next.
The specifications' TYPE L 36 example is unusually useful because it defeats a visual habit. Four full octets are not a 36-bit word. Five full octets are too many. The boundary sits inside the fifth, leaving that single transport unit partly owned by each neighbour.
A conforming packer therefore treats the stream as bits with a separately known stride. It does not restart the stride at an octet boundary, an IP packet, a TCP segment or a storage block. Those are containers and operational divisions, not declarations of file meaning.
And the width still does not define a number format. Thirty-six bits might hold a floating-point value, an instruction, an image element or something else entirely. L 36 specifies no sign, no exponent, no internal ordering, no application semantics. It preserves a boundary on which some other authoritative description can operate.
That limit cuts both ways. Accepting Local type does not prove the receiver's application understands the content. An application that understands a 36-bit format does not prove the FTP service will accept L 36. Representation support and application use remain separate observations.
Padding was allowed only where it could be found again
If the logical content does not fill the last transfer octet, RFC 765 and RFC 959 permit the necessary padding at the end. They do not permit a receiver or an intermediary to round every logical unit up to the next eight-bit boundary for convenience.
Position is what makes padding recoverable. Zeros inserted between units are indistinguishable from original data. At the end of a file or record, the endpoint can combine the termination point with the declared logical width and identify the remainder.
A row of zeros in a packet capture is therefore weak evidence. It might be content. To call it padding, an investigator needs the active type and width, the relevant file or record structure, and a trustworthy end boundary. The transport bytes alone do not carry that verdict.
An intermediary that inserts four zero bits after every 36-bit unit has not merely optimized alignment. It has invented a second encoding before the authorized interpreter ever saw the original — and removing those zeros later would require a rule that appears nowhere in the FTP declaration.
The receiver was free to choose a bigger drawer
RFC 959 imagines 36-bit floating-point units arriving at a host with 32-bit words. The host could park each logical unit in a 64-bit double word and keep it easy to manipulate. The 28 unused bits belong to the local drawer, not to the file that FTP transported.
That freedom is constrained by invertibility. The transformation must let the server return an identical file when the same parameters are used, and implementers should publicize how the transformation works.
The phrase "same parameters" is a condition, not a reassurance. A file stored as TYPE L 36 is not generally promised to emerge identically when requested as TYPE L 8. An archive that keeps only the padded 64-bit storage form while discarding the original width and the conversion rule may one day be unable to tell content from local space.
The durable object is therefore larger than a blob. It includes the bit sequence, the representation parameters and the provenance of the local mapping. A checksum over the drawer proves the drawer survived; it cannot reconstruct the lost instruction saying which 36 bits mattered.
Image and Local can produce identical bits and mean different things
Image type treats the file as contiguous bits packed into eight-bit transfer bytes, and the receiving site must preserve that continuity. If its storage needs alignment at a byte, word or block boundary, zero padding may appear only at the end of the file or record, and it must be identifiable for removal on retrieval.
Local also moves a contiguous bit stream, but it declares a logical unit — and that declaration authorizes the receiver to arrange each unit into a host-appropriate, reversible form. The two types can produce identical bits on a particular machine without carrying the same evidence.
RFC 1123 explains that TYPE L 8 is equivalent to Image on an eight-bit-byte machine, and that between two m-bit-word machines TYPE L m should have the same effect as Image. The equivalence is conditional on a known organization. It does not license a receiver to invent an m-bit boundary when the sender selected Image alone.
That is the difference between outcome and authority. Two procedures may happen to yield identical output; only one of them contains the parameter that justified a host-specific transformation.
The mandatory floor was deliberately narrow
RFC 1123 requires FTP programs to support TYPE I and TYPE L 8. A machine whose memory is organized in m-bit words, where m is not a multiple of eight, may also support TYPE L m.
So the rule sets an eight-bit interoperability floor and leaves a doorway for native-word extensions. It does not oblige every server to accept every decimal integer after L. Defined syntax, implemented capability and session acceptance are three different facts wearing the same name.
A rejection of TYPE L 36 proves that the requested representation was not accepted in that session. It proves nothing about a broken path, insufficient storage or damaged content. The client can fall back to Image, convert into an externally shared format before transfer, or simply stop.
Silently substituting L 8 would make the immediate command easier to satisfy while deleting the statement the sender meant to make. Compatibility bought by changing the requested unit is not evidence that the original representation survived.
Type never swallowed structure, mode or restart state
FTP kept representation type, file structure and transfer mode as separate parameters. Knowing that a logical unit is 36 bits says nothing about record boundaries, page indexes, or Stream, Block and Compressed behaviour. Nor does it say that a completion reply means modern durable storage.
The restart-marker question is its own story: a marker was never necessarily a byte count, because a receiver performing a transformation might need to encode enough local state to resume it. TYPE L supplies an input unit to that transformation; the marker supplies a restart point. Preserving one does not recreate the other.
ALLO counted a unit it did not define
FTP's ALLO command could express expected storage in logical bytes, and the active representation supplied the unit. The allocation command created no 36-bit boundary, and its positive reply did not necessarily prove that physical space had been reserved.
So the two mechanisms assign authority in opposite directions. TYPE lets the sender declare a representation, subject to server acceptance. ALLO lets the sender estimate a need while the server decides whether advance allocation matters at all. Sufficient space cannot repair a mispacked logical stream, and correct packing cannot prove a reservation. Lumping both into one generic "binary transfer succeeded" erases the control surface of each.
A registry entry is not a map of anybody's memory
The IANA FTP Commands and Extensions registry records TYPE as the Representation Type command and points at its specification. That establishes a name and a documentary reference — nothing more.
It does not list the Local sizes any given server accepts, the mapping used on its filesystem, or how often the command is used today. Those claims need implementation evidence, the actual session reply, a same-parameter round trip and, for usefulness, an application that understands the restored units.
Registration, acceptance, correct transformation and application interpretation form a ladder of evidence. No rung can be inferred automatically from the one below it.
The wire's modesty made provenance an endpoint duty
FTP travelled from an expansive catalogue of machine representations, through variable connection byte sizes, to fixed eight-bit carriage plus a separate logical width. The common layer got simpler without ever declaring the attached machines homogeneous.
That modesty works only when the endpoints keep what the wire deliberately declines to interpret. Type, logical size, structure, mode and conversion provenance cannot be safely collapsed into a label like "binary." Nine pristine octets might still be an unfinished record of two 36-bit words.
The historical lesson is not that modern systems should resurrect every old FTP mode. It is that simplifying a shared layer never abolishes the context excluded from it. It relocates the duty to preserve that context — and hands the bill to whoever is still holding the file when the wire has forgotten everything.
Sources and the edge of the evidence
The evidence comprises RFC 114, RFC 354, RFC 765, RFC 959, RFC 1123 and the IANA registry. These sources establish designs and requirements. They do not establish current deployment, any product's accepted widths, a disk layout, the application meaning of a 36-bit value, or a guarantee of durable storage.
Member Briefing
Read the full trend briefing
Members read the full briefing with the source notes behind every finding.
Strategic Circle
A daily briefing in your language, built from changes we have verified.
Join for USD 20/monthCancel anytime.
Members also get the full research library, a daily briefing on the networks they follow and the private forum.






