Picture the message a Media Gateway Controller sends: a neat stack of instructions, “add this termination” sitting above “modify it,” reading top to bottom like a to-do list. Now picture the gateway treating that stack as a pile of unrelated errands and running the second one first. That is not a bug in RFC 3525. It is the design, written down in plain English, and it has been quietly embarrassing careful engineers ever since.

Summary

  • RFC 3525 guaranteed sequential command processing inside a single transaction. Separate transactions could run in any order or simultaneously — even when they shared one message.
  • Pending notices, retransmission control, response acknowledgements and at-most-once handling bounded delivery and duplication. None of them created a shared causal clock, and none proved a media outcome.

The protocol needed that distinction because its own architecture was already split down the middle. A Media Gateway Controller held the call-control intelligence; a Media Gateway held the media-facing resources — the trunks, the codecs, the things that actually carry a voice. RFC 3525 supplied the language between them: Contexts collected related Terminations, Actions addressed one Context, and Commands added, modified, moved, subtracted or audited state.

It was, in other words, a protocol written by committee — the IETF Megaco Working Group on one side of the table, ITU-T Study Group 16 on the other — and the compromise shows in the most interesting place: the exact point where the guarantee runs out.

The Nesting That Lied

The hierarchy looked nested enough to invite a false inference. A Message contained Transactions. A Transaction contained Actions. An Action contained Commands. Reading down the page, it was easy to imagine that every outer container also imposed order on everything inside it — that a Message was a batch, a Transaction was a unit, and the whole thing moved like a conveyor belt.

RFC 3525 drew the line somewhere else.

Where the Ordering Guarantee Actually Stops

Commands inside one Transaction were executed sequentially. The first failing non-optional Command stopped the remaining Commands in that Transaction. If the failed Command was marked Optional, later Commands could continue. That was a real ordering guarantee — and it ended, cleanly, at the transaction boundary.

Separate Transactions were expressly unordered. The gateway could execute them in any order or simultaneously. Putting Transactions A, B and C in the same Message did not turn the Message into a batch with one application clock; the specification called the Message essentially a transport mechanism. Replies to A and C could come back together while B arrived later in a different Message entirely.

This was not an oversight. Parallelism let a controller act promptly on independent Terminations: one process could manage one group while another process handled another. Globally serializing unrelated work would have made the protocol easier to narrate and slower to run.

The Race Between Add and Modify

The cost appeared when the work was not independent. Suppose one transaction asked the gateway to Add a Termination and another immediately asked it to Modify that same Termination. Send order did not prove execution order. If the Modify reached its operational turn before the Add had established the target state, the later-looking instruction could fail first.

RFC 3525 therefore handed the controller a discipline rather than a guarantee. On a single Termination, normally only one Add, Modify or Move should be outstanding — unless the dependent Commands were placed in the same Transaction. The application had to build the stronger ordering it needed. The network envelope did not infer dependency from proximity.

Subtract made the race visible. The specification allowed it to be issued at any time. A Modify could consequently arrive for a Termination already subtracted; the gateway should ignore that Modify and return an error. A clean request trace could therefore preserve send order while the gateway’s own state history told a different story.

Notify, Pending and the Receipts That Actually Prove Something

Notify had its own version of the problem. A notification could be delayed until after the controller transmitted a new EventsDescriptor. On a transport without in-sequence delivery — UDP, say — the specification advised no more than one outstanding Notify per Termination. The receipt needed a transaction identifier, Termination identity, event-request identity and time. Not merely a packet position.

TransactionPending was equally precise and equally easy to over-read. It meant that processing had not completed but remained active. It restarted the sender’s application timer. It did not say which Command had run, whether any state change would survive, or whether another Transaction had already overtaken it.

What “Transaction” Did Not Mean

Failure inside a Transaction was narrower than the everyday meaning of the word. A failed Command was to restore the state before that Command’s attempted execution as far as possible. The document did not promise a database-style rollback of every earlier Command that had succeeded. Its TransactionReply returned values for successful Commands and an error descriptor for the failed one.

Wildcard execution made partial evidence unavoidable. A Command with a wildcarded TerminationID was attempted against every match, and the reply included a result for each. If one match failed, later Commands in the Transaction were not attempted. The controller could therefore receive a mixture of successful wildcard instances, one or more errors, and absent later work. “Transaction failed” was too coarse a phrase to reconstruct what actually happened.

At-Most-Once Is Not Exactly-Once

The transport annex handled a different problem: a lost reply could cause a request to be repeated. Transaction identifiers, retained replies, response acknowledgements and retransmission rules supported at-most-once behavior. They helped distinguish a repeat from a new operation. They did not establish order between two different Transactions, and at-most-once execution was never the same thing as exactly-once service delivery.

Even a successful reply stopped short of the user. It could prove that the gateway processed a Command and returned specified state. An Audit could examine Context or Termination properties. Neither receipt alone proved that packets followed the intended bearer path, that audio was decoded, or that a person on the other end heard the call.

How a 2003 Specification Became History

The document’s institutional history reinforces the boundary. RFC 3525 replaced RFC 3015 in 2003 and reflected joint work between the IETF Megaco Working Group and ITU-T Study Group 16. In 2008, RFC 5125 moved it to Historic because the ITU-T had carried H.248.1 forward through corrections and later versions. RFC 3525 can explain the design’s ordering model; it must not be presented as the current deployment specification.

The live IANA Megaco/H.248 registry tells another bounded truth. Package identifiers, errors, reasons and profiles remain coordinated under later references. A registry can preserve shared names long after the specification around them has moved on. It cannot show which version one gateway runs, or how two transactions raced inside it.

The Durable Lesson: Put the Guarantee Where the Dependency Lives

RFC 3525’s lasting lesson is not “always serialize.” It is to put the guarantee at the smallest layer that owns the dependency. Independent Terminations may proceed in parallel. Dependent Commands belong together, or must wait for a prior receipt. The shared protocol names the minimum common order; the running controllers remain responsible for the stronger causal story they need.

Which is why a protocol container is coordination, not reality. The moment an observability or billing system treats send order, TransactionPending, a response acknowledgement or a successful earlier Command as proof of the final media service, it has confused the envelope with the letter. Preserve the receipt ladder — encoded intent, gateway state, packet, user observation — and the story stays honest.

Sources