{
  "slug": "maelstrom",
  "term": "Maelstrom",
  "aliases": [
    "Maelstrom error-correction appliance"
  ],
  "definition": "Maelstrom is a research network appliance that combines traffic across flows and uses layered XOR repairs to recover lost packets between datacenters.",
  "note": "The NSDI 2008 design places paired proxies at datacenter edges. Multiple interleaves spread each data packet across XOR groups; a repair with one missing member can recover it and unlock other repairs. Aggregation reduces dependence on one flow's arrival rate. [nsdi08]\n\nThe FAST 2009 Smoke and Mirrors File System adds network-sync callbacks after redundancy transmission. That callback is not a remote storage acknowledgement: a primary-site failure combined with a network partition can still lose acknowledged updates. TCP retransmission remains a fallback when FEC cannot repair loss and the sender remains available. [fast09]\n\nRFC 3135 separates TCP receipt from application delivery. Editorial implication: neither an intercepted TCP ACK nor an FEC transmission callback alone certifies a durable replica; record the exact acknowledgement boundary. [rfc3135]\n\nHesela's unoptimized, constructed XOR example sends 40 data packets and 24 repairs. Losing packets 0,1,2,3 is recoverable; losing 0,1,8,9 leaves four unknowns but only rank three, despite all repairs arriving. This uses the paper's explanatory figure parameters, not its benchmark configuration or optimized startup. It is not a measured failure probability. [example]\n\nFor an equal-payload r=8,c=3 accounting example, repair/data is 3/8 (37.5%), whereas data/total is 8/11 (about 72.73%). Headers, recipe lists, fragmentation, acknowledgements and retransmissions are excluded; these fractions are not observed wire goodput. [example]",
  "status": "research",
  "advantages": [],
  "limitations": [
    {
      "text": "The NSDI evaluation used Emulab and Linux 2.6.20 TCP Reno. Its numerical throughput results are not guarantees for modern transports or routinely congested networks; the paper explicitly discusses fairness concerns.",
      "citationIds": [
        "nsdi08"
      ]
    },
    {
      "text": "The gigabit experiment fragmented repair packets; losing one fragment lost the repair. Count repair delivery and payload delivery separately.",
      "citationIds": [
        "nsdi08"
      ]
    },
    {
      "text": "FAST 2009 evaluated a configured disaster sequence and distinguished locally buffered writes, redundancy callbacks and remote storage acknowledgements. Its selected loss model is not a universal disaster probability.",
      "citationIds": [
        "fast09"
      ]
    }
  ],
  "related": [
    "erasure-coding",
    "synchronous-replication",
    "asynchronous-replication"
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-12-05",
  "citations": [
    {
      "id": "nsdi08",
      "title": "Balakrishnan, Marian, Birman, Weatherspoon and Vollset. Maelstrom: Transparent Error Correction for Lambda Networks. NSDI 2008, sections 4-5.",
      "url": "https://www.usenix.org/legacy/event/nsdi08/tech/full_papers/balakrishnan/balakrishnan_html/",
      "accessed": "2026-12-05"
    },
    {
      "id": "fast09",
      "title": "Weatherspoon et al. Smoke and Mirrors: Reflecting Files at a Geographically Remote Location Without Loss of Performance. FAST 2009, sections 2-5.",
      "url": "https://www.usenix.org/legacy/events/fast09/tech/full_papers/weatherspoon/weatherspoon.pdf",
      "accessed": "2026-12-05"
    },
    {
      "id": "rfc3135",
      "title": "RFC 3135 (Informational), section 4.1.3: End-to-end Reliability.",
      "url": "https://www.rfc-editor.org/rfc/rfc3135.html#section-4.1.3",
      "accessed": "2026-12-05"
    },
    {
      "id": "example",
      "title": "Hesela: deterministic layered-XOR example, exact outputs and regression tests.",
      "url": "https://hesela.dev/research/maelstrom-xor/README.md",
      "accessed": "2026-12-05"
    },
    {
      "id": "hesela-ack",
      "title": "Hesela: Replication acknowledgements: received, durable, applied.",
      "url": "https://hesela.com/analyses/replication-acknowledgements-durability-lag/",
      "accessed": "2026-12-05"
    }
  ]
}
