Network Working Group H. Zhu Internet-Draft 25 November 2026 Intended status: Informational Expires: 29 May 2027 Peer-Transparent High Availability for Established TCP Connections draft-zhu-tcpm-tcp-ha-00 Abstract This document describes the conditions under which a standby device can continue an established TCP connection after failure of the active device, without requiring changes at the remote TCP endpoint. It distinguishes connection continuity from application recovery and specifies observations for evaluating a failover attempt. It defines no new TCP option, state transfer protocol, or interoperability requirement. Status of This Memo This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79. Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet- Drafts is at https://datatracker.ietf.org/drafts/current/. Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress." This Internet-Draft will expire on 29 May 2027. Copyright Notice Copyright (c) 2026 IETF Trust and the persons identified as the document authors. All rights reserved. Zhu Expires 29 May 2027 [Page 1] Internet-Draft TCP HA November 2026 This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/ license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Revised BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Revised BSD License. Table of Contents 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 2 2. Scope and Failure Model . . . . . . . . . . . . . . . . . . . 3 3. Conditions for Continuation . . . . . . . . . . . . . . . . . 3 3.1. Peer Reachability and Exclusive Ownership . . . . . . . . 3 3.2. Consistent Transport and Application State . . . . . . . 3 3.3. Time Budgets and Fallback . . . . . . . . . . . . . . . . 4 4. Evaluation . . . . . . . . . . . . . . . . . . . . . . . . . 4 5. Relationship to Existing Work . . . . . . . . . . . . . . . . 5 6. Security Considerations . . . . . . . . . . . . . . . . . . . 5 7. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 6 8. Informative References . . . . . . . . . . . . . . . . . . . 6 Author's Address . . . . . . . . . . . . . . . . . . . . . . . . 6 1. Introduction A long-lived connection can be expensive to reestablish if the application must rebuild application state when TCP closes. In some deployments the operator can deploy a redundant local service but cannot modify the remote TCP endpoint. The objective is for a standby on a separate device to continue the established TCP connection, including its original endpoint addresses and ports, before the peer or its application abandons it. This is a deployment objective, not a guarantee of uninterrupted service. Packets may be lost or retransmitted, and operations may pause while the endpoint moves. Reconnecting with the same four- tuple does not count as continuation. An application can still time out, and its consistency and availability have to be evaluated separately. Zhu Expires 29 May 2027 [Page 2] Internet-Draft TCP HA November 2026 2. Scope and Failure Model Consider one established TCP connection [RFC9293] with a remote peer and an active local endpoint. The operator controls the active device, the standby device, and the mechanisms used to move the local endpoint. The devices are in separate failure domains within one administrative domain. The peer is not part of the redundancy system and need not negotiate any new TCP option. The failure model includes abrupt cessation of the active device and a partition in which the original active may remain able to reach the peer. The operator needs a surviving path to the local endpoint after takeover. Loss of both devices, loss of all peer-facing paths, and a failure of the remote peer are outside this model. Takeover of connections in establishment or teardown is outside the initial evaluation scope; teardown racing with failover must not be reported as a successful continuation if the terminal state cannot be recovered. 3. Conditions for Continuation 3.1. Peer Reachability and Exclusive Ownership Both directions of the connection have to reach the new owner under the original addressing and port identity. Deployment-specific forwarding, neighbor resolution, and middlebox state can prevent this even if transport state is available. Before the standby transmits, the deployment needs evidence that the old owner cannot send as the same endpoint, including after a partition or reboot. An ownership record by itself does not prove that packets from a previous owner are blocked. If ownership or isolation cannot be established, the standby remains silent rather than risking two live transmitters. 3.2. Consistent Transport and Application State A recoverable point has to be consistent with progress already visible to the peer. Data the active acknowledged to the peer cannot be silently lost. Data the peer might already have received cannot be replaced by different bytes in the same sequence space. The standby needs sufficient information to preserve outstanding transmission and receive state and honor the options negotiated on the original connection. A socket four-tuple or a pair of sequence numbers is not by itself sufficient. Zhu Expires 29 May 2027 [Page 3] Internet-Draft TCP HA November 2026 For example, where TCP timestamps are negotiated, the new owner cannot assume that its unrelated local clock will yield timestamps acceptable to the peer's PAWS check [RFC7323]. Receive-window accounting, option state, loss recovery, and congestion control must also remain consistent with standard TCP behavior. A change in the forwarding path does not justify carrying over optimistic assumptions about its capacity. Transport continuity alone does not resolve application state. The standby needs to distinguish bytes accepted by TCP from bytes consumed or acted on by the application. If the application protocol cannot recover from a consistent point, the deployment cannot claim that preserving the socket preserves the application session or its effects. 3.3. Time Budgets and Fallback The new owner is constrained by the peer's existing transport and application timers. The deployment does not lengthen the peer's timers to manufacture a successful failover result. A ready standby before failure is useful evidence, but it is not proof that recoverable state, path reachability, or the peer's time budget will still be sufficient when the fault occurs. If ownership, endpoint reachability, recoverable state, or the negotiated TCP behavior cannot be established, the system does not claim continuation. After safe ownership has been established, ordinary TCP and application recovery apply. This document defines no new failure signal or recovery handshake. 4. Evaluation Use an unmodified peer and a capture point that survives the fault. Compare with ordinary reconnect behavior using the same endpoints and application load. Record the exact failure, the peer-facing path before and after it, TCP options, and relevant application timeouts. Include idle and bidirectional data transfer, data outstanding at the time of failure, and a failure during an application transaction. Include a partition or reappearance of the previous owner, and a standby that lacks a usable recovery point. Evaluate these outcomes independently: 1. *Connection continuity:* The original connection resumes valid bidirectional communication without a new handshake. The absence of a SYN in a capture is not evidence of success if traffic never resumes. Ordinary retransmissions within the original byte stream are compatible with continuity. Zhu Expires 29 May 2027 [Page 4] Internet-Draft TCP HA November 2026 2. *Stream correctness:* Compare the byte stream observed by both applications with the expected stream. Report missing, altered, or duplicated delivered bytes separately from packet loss, reordering, and TCP retransmissions. 3. *Application correctness:* Verify an application-level outcome, including an operation already in progress, rather than inferring success from TCP alone. 4. *Failure containment:* Show that a previous owner cannot resume transmitting as the same endpoint, and that unready or unfenced takeover attempts do not claim continuation. Report interruption duration, failed trials, and which conditions were not tested. This document does not claim a measured latency, production readiness, or universal application compatibility. 5. Relationship to Existing Work Multipath TCP [RFC8684] supports multiple paths for an MPTCP connection. It is negotiated with the peer. Moving a path or subflow of a negotiated MPTCP connection is distinct from continuing an ordinary TCP connection with an unchanged peer when an endpoint device fails. Prior research, including Koch et al., _Transparent TCP Connection Failover_ [KHM+03], already explores transparent endpoint failover. This document does not claim to introduce the underlying technique. Its scope is common deployment assumptions, independent failure domains, and a peer-visible evaluation method, without standardizing a replication design. A separate BGP HA draft discusses the additional protocol and liveness constraints of routing applications. This document does not depend on the companion draft. 6. Security Considerations A standby capable of continuing a connection is entrusted with sensitive transport and application context. Authenticate and restrict replication endpoints; protect replication traffic and stored state against disclosure, modification, and replay. Prevent stale members from reclaiming the endpoint, and constrain and audit promotion and fencing authority. A compromised standby or ownership mechanism can affect the integrity and availability of the connection. Do not weaken or bypass configured authentication to achieve failover. TCP-AO [RFC5925] and TCP MD5 [RFC2385] have requirements beyond a connection's basic transport state. This document does not Zhu Expires 29 May 2027 [Page 5] Internet-Draft TCP HA November 2026 define migration of keys or authentication state, and does not claim that protected connections can be continued. If the deployment cannot preserve the required protection, ordinary authenticated recovery is the appropriate fallback. 7. IANA Considerations This document requests no IANA actions. 8. Informative References * RFC9293 (https://www.rfc-editor.org/rfc/rfc9293.html), _Transmission Control Protocol (TCP)_. * RFC7323 (https://www.rfc-editor.org/rfc/rfc7323.html), _TCP Extensions for High Performance_. * RFC8684 (https://www.rfc-editor.org/rfc/rfc8684.html), _TCP Extensions for Multipath Operation with Multiple Addresses_. * RFC5925 (https://www.rfc-editor.org/rfc/rfc5925.html), _The TCP Authentication Option_. * RFC2385 (https://www.rfc-editor.org/rfc/rfc2385.html), _Protection of BGP Sessions via the TCP MD5 Signature Option_. * KHM+03 (https://doi.org/10.1109/DSN.2003.1209949), R. R. Koch, S. Hortikar, L. E. Moser, and P. M. Melliar-Smith, _Transparent TCP Connection Failover_, DSN 2003. Author's Address Hengbo Zhu Email: zhuhengbo2018@gmail.com Zhu Expires 29 May 2027 [Page 6]