The silence that hides two histories

Delete a file over the network. The server does the work, then the reply evaporates somewhere between the machine and your client. The client waits, gives up, and asks again. Now answer a question that looks trivial and is not: how many times did the file die?

Two histories fit the same silence. In the first, the call never arrived and the retry is the only execution. In the second, the operation completed and only its acknowledgement was lost, so the retry is a ghost walking back to a grave that is already dug. The client cannot tell them apart. Neither can the wire.

This is the oldest awkwardness in remote procedure call, and nobody ever hid it. RFC 1050, published in April 1988, said plainly that RPC did not try to provide reliability. RFC 1057, its successor two months later, kept the uncomfortable rule: over an unreliable transport, no reply tells you nothing about how many times the procedure ran; a reply establishes at least one.

At least one. That phrase is the entire problem in three words.

What the XID actually promised

Every version-2 RPC message opens with an unsigned 32-bit transaction identifier, the XID. The reply carries the XID of the call that caused it. When several calls are in flight, this is how a client hands each returning result to the right local waiter.

That is correlation. It is not chronology. RFC 5531 is careful about the difference: the service may compare XIDs for equality when hunting retransmissions, but it must not treat the field as a sequence number. The integer carries no server epoch, no execution counter, no expiry rule, and no identity of the side effect it supposedly names.

Even the at-most-once trick is conditional. A client application may reuse the previous XID when it retransmits; a server may remember that value and decline to run a matching call twice. Stack those two choices and you get something like execute-at-most-once. Neither choice lives inside the number. The number is a handle two parties agree to hold, and nothing more.

A matching reply is not a receipt

RPC kept authentication fields separate from the XID, and the reply number was never a signature, a credential, or a certificate that an authorized procedure committed exactly once. An authenticated message answers who protected the exchange. It does not answer how many times application state moved.

The transport distinction was narrower than it sounds. RFCs 1831 and 5531 both permit an exactly-once inference when a reply arrives over a reliable transport — inside their model. Then they immediately preserve the hard case: when no reply arrives, the caller may not assume the procedure did not run, and timeouts plus reconnection remain necessary after a server failure.

Reliability orders and delivers bytes on one connection. It cannot resurrect the application history that died with a crashed process, and it cannot decide whether a post-reconnect retry refers to work committed before the break. The boundary reappears every time the recovery context changes.

NFS walks straight into the ambiguity

The early Network File System chose statelessness on purpose. RFC 1094 explained the appeal: after a crash or a network interruption, a client could simply keep retrying instead of rebuilding protocol state with the server.

To make that survivable, NFS leaned on idempotence. Repeating a read, or a write to the same range, usually lands on the same intended effect. But the specification flagged several operations as possibly non-idempotent. A name can be removed only once. A rename that succeeded the first time can fail the second because its source name has already moved.

Idempotence lowered the cost of ignorance. It did not remove ignorance. RFC 1813 supplied the sharper NFSv3 example: repeating a truncate-like non-idempotent request could destroy writes performed after the first copy. Even a connection-oriented transport could not eliminate duplicate processing after a break and an automatic reconnect.

Now "same request" needed an operating definition. Two packets resembling each other was not enough. The server had to know which requester, which RPC procedure, which XID and which retained outcome belonged together.

The duplicate cache bought a window, not eternity

Many NFSv3 servers kept a duplicate request cache. After finishing a call, the server remembered its completion status. If the same request came back while the entry was still there, the server replayed the stored answer instead of applying the operation again.

This was a correctness mechanism, not a performance trick. It moved the decision from the client's guess to evidence held at the execution boundary. RFC 1813 was equally clear about the limit. Typical cache state lived in RAM and vanished on a crash. A finite cache could evict an entry during a long partition, before the client ever saw the original reply. The next duplicate would then look brand new.

The XID had not failed at being an XID. The retained context had expired. Calling the number an "idempotency key" hides the facts that actually control the outcome: who stored the first result, how the lookup was scoped, how long the entry survived, and what happened at failover.

NFSv3 sometimes smuggled stronger evidence into the operation itself. Exclusive CREATE carried a verifier tied to the created object, precisely because volatile duplicate-cache memory was not enough for the required semantics. That evidence was local to one operation. It did not turn every RPC XID into durable history.

NFSv4.1 and the price of memory

NFSv4.1 changed the shape of the problem. RFC 5661 introduced sessions; the current specification, RFC 8881, describes a bounded slot table with a sequence ID and a cached reply for each slot.

A requester picks an unused slot. The first request on it carries a defined sequence value; each new use advances that value. A retry repeats the current sequence. The replier can now separate three cases locally: the next new request, a retransmission of the current one, or a misordered value. A completed retry receives the cached reply instead of a second execution.

The slot matters as much as the sequence. It bounds how many requests can be outstanding, and therefore how many replies the server may have to remember. A new sequence also tells the server the requester has moved past the old result, so that slot's cache entry can be replaced.

RFC 8881 draws the contrast with an unstructured XID space. XIDs are opaque to the replier, and calls can complete out of order. Perfectly retaining every possible 32-bit result would demand an impractical history. A negotiated slot table converts an unbounded naming problem into a finite custody obligation. That is the trade: memory for certainty, with a bill attached.

Where exactly-once still breaks

NFSv4.1 did not repeal failure. Its exactly-once semantics depend on the reply cache and recovery state surviving the failures across which the claim is made. RFC 8881 notes that complete EOS across a restart requires persistent cache state. A volatile implementation still improves ordinary retry handling, but it cannot testify about records it lost.

Nor did sessions abolish the XID. The RPC layer still uses it to match replies and calls, including exchanges that never follow the normal SEQUENCE path. The new mechanism did not crown a replacement identifier as universal authority. It added a narrower state machine where the application demanded a stronger outcome.

That is the real arc of the history: a number correlated messages; a cache gave equality short-term consequences; a bounded session made the cost and lifetime of stronger memory explicit. Each layer answered a different question, and none of them answered all of them.

What one number never authorized

An XID does not prove that two calls carried identical arguments, that they came from the same authenticated principal, or that the server stayed in the same boot epoch. A cache hit does not prove durable commit. A cache miss does not prove a request is new. And an apparently idempotent operation is not safe under every ordering — RFC 8881 shows how an older delayed write can overwrite a later one even when repeating the same write would normally be harmless.

The honest claim is smaller, and it is the one that matters. The XID gives running endpoints a shared comparison token. Once-only execution appears only when the executor keeps enough scoped state to tie that token to the work, the result, and the recovery boundary.

Everything else — the marketing phrase, the API label, the confident dashboard — is a promise that someone, somewhere, is paying for memory.

Sources and evidence limits

  • RFC 1050 records the April 1988 RPC version-2 specification.
  • RFC 1057 records its June 1988 successor and the unreliable-transport execution limits.
  • RFC 1831 carries the RPC model into the later standards sequence.
  • RFC 5531 states the current Standards Track RPC version-2 contract.
  • RFC 1094 explains the early NFS stateless-server objective.
  • RFC 1813 documents NFSv3 retry hazards and the duplicate-request-cache boundary.
  • RFC 5661 introduced NFSv4.1 sessions and their slot machinery.
  • RFC 8881 contains the current NFSv4.1 description, including reply-cache and persistence conditions.

These documents define protocols and report design experience. They do not measure current cache sizes, persistence policies, deployment shares or implementation conformance.