The printer that answered in a different order

A print job goes out describing a booklet: a heavy cover stock, a lighter inner block, a saddle stitch down the middle. The printer takes the job, does the work, and hands the description back — except the cover is now third and the stitch is second. Nothing is broken. Nothing was ever promised. Under RFC 3382, the order of those members was never part of what they meant.

That is the whole trick, and it is a better trick than it sounds. RFC 3382 taught the Internet Printing Protocol that a collection's meaning lives in its member names, not in the sequence they happen to arrive in. Two decades on, that is still the difference between a system that survives a re-serialization and one that quietly starts printing the wrong thing.

What RFC 3382 actually added to IPP

Published in September 2002 on the Standards Track, RFC 3382 — Internet Printing Protocol (IPP): The "collection" Attribute Syntax — carries two names on its cover: Robert Herriot of Xerox and Ira McDonald of High North. Between them they had spent years dragging printing, the least glamorous corner of the networked world, into a shape a protocol could describe.

What they described here was a gap. IPP already knew how to carry scalars and how to carry repeated values of one type. What it lacked was a general way to hold attributes of different types together as a single value. The RFC reached for a familiar comparison — a PostScript dictionary, a Java Map — but the comparison was about named membership, not about importing an entire programming-language object model into a print protocol.

Why a print job needed a bag instead of a list

The requirement sounds mundane: describe one thing using several related fields. A physical medium, for instance, might need dimensions, type, colour and source to travel as one conceptual unit. A flat list can carry every one of those facts and still leave you unable to say which values belong to which instance the moment two such units appear in the same job.

A collection supplied that boundary. RFC 3382 defined it as one or more member attributes, each with its own name and its own syntax. One member could be an integer, another a keyword, another a range, another a nested collection, another a set of collections. The outer container did not flatten those types into mush. It let unlike values stay distinct while declaring that they belonged to one structure — a bag with labels, not a numbered queue.

The rule that decided where meaning lives

Then came the sentence that did all the real work: member attributes could occur in any order. A Printer was free to store them however it liked and return them in an order different from the request. This was not a serialization footnote. It was a decision about where semantic authority sits. A consumer had to resolve a member by name — never by asserting that the second value always means height, or that the last one always means colour.

Names therefore carried a heavier burden than names usually do. Any document defining a real collection attribute had to spell out the collection's name, whether it was single- or multi-valued, the contexts it could appear in, how supported members were advertised, and then, for each member: name, requirement level, syntax, semantics, constraints, supported values and defaults. The container syntax created a place for structure. It did not excuse the specification from defining that structure.

Uniqueness was scoped with real care. Member names had to be unique within one collection definition, but the same name could legitimately appear in another collection or elsewhere in the wider IPP attribute namespace, because the collection boundary supplied the scope. Local enough to allow reuse, strict enough inside one container to make name-based lookup unambiguous — a genuinely elegant asymmetry.

Duplicate names, and the ambiguity the RFC refused to resolve

A collection value containing the same member name twice was malformed. Clients were not to send it; Printers were not to return it. The receiver's permitted behaviour exposed the limit of the guarantee: a Printer could reject the request as bad, or accept it and use only one of the duplicates, depending on implementation. RFC 3382 established no portable first-wins or last-wins rule. Once uniqueness failed, serialized order could not be drafted in to repair the meaning.

That boundary matters for security and operations as much as for parsing. If two components pick different duplicates, validation can happen against one value while execution uses another. The RFC did not describe that modern attack pattern, and publication alone says nothing about any particular product. But its conformance rule points in the right direction: producers should not manufacture ambiguity, and consumers should not invent a position rule the protocol never promised.

Nesting, extension, and the Unsupported Attributes Group

Nesting made the model more expressive. A member could contain another collection; a member could be a set of collections. There was no single global length limit on the collection as a whole, though every member remained constrained by its own syntax. The result was not an unbounded free-form document — it was a recursive structure whose leaves still obeyed IPP value rules and whose definitions still had to enumerate the supported grammar.

Extension was equally deliberate. A collection definition could include optional members, and later documents could add more where the defining rules allowed. An older implementation did not have to pretend to understand a new member. It needed a disciplined way to say what it did not support while keeping the failure attached to the correct container — which RFC 3382 provided through the Unsupported Attributes Group. Unsupported or conflicting members could be returned inside the collection, preserving the boundary around what failed.

Flattening them into an unrelated top-level error would have lost the context entirely, since the same name can exist in several scopes and only the surrounding collection explains which use caused the trouble.

Wire tags, and making ignorance less dangerous

The encoding reinforced the same boundaries. begin-collection, member-name and end-collection tags framed the structure, and the design took older IPP parsers into account so that a parser unfamiliar with collections would not casually read a member name as an ordinary top-level attribute. Compatibility here did not mean a legacy implementation suddenly understood the new semantics. It meant the extension was framed so that ignorance would be less likely to curdle into misinterpretation.

The RFC's media-col and job-sheet-col material was illustrative — a demonstration of how authors might define collections, with required and optional members, supported-member attributes and nesting. It did not by itself standardize those examples as deployed attributes. A later specification still had to do the definitional work. Copying an example name into a payload created no interoperable contract.

Where RFC 3382 sits in the IPP family

This is what separates it from the two extensions standing immediately beside it. RFC 3380 concerned atomic acceptance or rejection of a job-attribute update. RFC 3381 concerned progress counters whose interpretation shifted with collation and observation boundaries. RFC 3382 asked something more basic: how can several typed values travel as one unit without their physical order becoming part of their meaning?

The answer updated both RFC 2910, the IPP/1.1 encoding and transport document, and RFC 2911, the model and semantics document. Earlier, RFC 2565 and RFC 2566 had defined the IPP/1.0 counterparts, RFC 2567 recorded requirements, and RFC 2568 explained design goals and protocol structure. Later, RFC 8010 and RFC 8011 consolidated encoding and model. That chronology locates the mechanism precisely. It does not, on its own, prove adoption, product behaviour or a single successful print.

The durable lesson: presentation is not identity

The separation between membership and order is durable because so many systems accidentally let presentation carry identity. A decoder reads fields into an array, an application renders that array, and within a release or two the third element has acquired a meaning no specification ever assigned it. The arrangement works fine until a serializer normalizes its output, a new optional member is inserted, or an intermediary rebuilds the collection from a map and the whole thing silently reorders itself.

RFC 3382's rule interrupts that drift. If order may change, tests must shuffle it. If names define members, duplicate names must be rejected or quarantined as ambiguity. If nesting supplies scope, logs and error reports must preserve the path into the nested collection. If optional extension is allowed, an unknown member must stay visibly unknown rather than being silently bound to the nearest familiar position.

Lu Heng's minimum initial specification lens explains the design economy here. The RFC did not attempt to standardize every future structured attribute. It standardized the smallest reusable container, the duties of the documents that defined concrete collections, and the rules that let optional members appear without rewriting the base model — leaving future decisions localized in new definitions rather than accumulating in a central authority.

His reality layers lens supplies the matching warning. Serialized order is one presentation layer. Member identity, collection membership, support status, validated meaning and eventual device action are different layers entirely. A cleanly decoded collection proves none of the rest: not that every member was supported, not that the request was accepted, not that a page came out. Grouping syntax is evidence about structure, never a certificate of outcome.

So the historical achievement of RFC 3382 was not that it put brackets around a handful of values. It taught IPP to preserve a relationship while letting the representation move — and it did so with a rule plain enough to survive every rewrite since. The collection kept its members together. Unique names and explicit boundaries kept those members intelligible. Order went back to being what it had always been: a property of the envelope, not a fact about the letter.

Sources