Other Transports: Multipath TCP and SCTP
Multipath TCP spreads one connection over several paths such as Wi-Fi and mobile data while looking like TCP to the network; SCTP offers messages, multiple streams and multihoming. How each works, where they're used, and real lab captures of negotiation, fallback and failover.
kvi5hnuCode Sprout team member16 min readOn this page
TCP and UDP carry almost all Internet traffic, and QUIC (the previous article) is the newest big transport. Two other transports solve problems TCP can't, and you'll meet both in practice:
- Multipath TCP (MPTCP) lets one connection use several network paths at once, for example a phone's Wi-Fi and mobile data, while each path looks like ordinary TCP to the network.
- SCTP (Stream Control Transmission Protocol) is a message-oriented reliable transport with multiple streams per association and built-in support for hosts with several addresses. It's the backbone of mobile-network signaling and runs inside every WebRTC data channel.
Both ran into the same wall that pushed QUIC onto UDP: the middleboxes of the Internet only understand TCP and UDP well. How each one copes with that is a big part of its story.
Multipath TCP
The problem
A TCP connection is tied to one source address and one destination address. A phone with both Wi-Fi and mobile data can use only one of them per connection, and if it walks out of Wi-Fi range, every connection on that address dies. A server with two network cards can't spread one big transfer across both.
MPTCP (version 1 is RFC 8684, from 2020) fixes this without changing applications' view of TCP. An application opens what looks like one TCP connection. Underneath, MPTCP creates one or more subflows, each a normal TCP connection on its own pair of addresses, and spreads the data across them:

How it works
- Opening the connection. The first subflow starts with a normal-looking SYN that carries an MP_CAPABLE option (TCP option kind 30). If the server supports MPTCP, its SYN-ACK carries MP_CAPABLE too, and the two sides exchange 64-bit keys during the handshake. If either side doesn't, the connection simply continues as plain TCP.
- Adding subflows. Either side can tell the other about extra addresses with ADD_ADDR. A new subflow opens with a SYN carrying MP_JOIN, which includes a token identifying the MPTCP connection and an HMAC (a keyed hash, article 79) computed from the keys, so an attacker can't attach a subflow to someone else's connection.
- Sending data. Each subflow has its own TCP sequence numbers, ACKs and congestion window, so each looks like normal TCP to firewalls along its path. A DSS option (Data Sequence Signal) maps each subflow's bytes to positions in the overall connection's data sequence number (DSN) space. The receiver reorders by DSN.
- Surviving failures. If a subflow dies, data it had sent but that wasn't acknowledged at the connection level is resent on another subflow. The connection carries on as long as one path works.
- Choosing paths. A scheduler decides which subflow carries each chunk. Linux's default prefers the subflow with the lowest RTT that has room in its congestion window. A subflow can be marked as a backup (MP_PRIO) so it's used only when the others fail, which is how a phone avoids spending mobile data while Wi-Fi works.
Negotiation and fallback, captured
The course lab's kernel (a Docker Desktop Linux 6.12 kernel) was built without MPTCP, which is a realistic situation in itself: many container and embedded kernels leave it out. Here's how that looks to a program:
sysctl: cannot stat /proc/sys/net/mptcp/enabled: No such file or directory
RTNETLINK answers: No such file or directory
An application that wants MPTCP asks for it with the protocol number IPPROTO_MPTCP (262 on Linux) when creating the socket, and falls back to TCP if the kernel refuses. This small Python client does exactly that:
MPTCP socket failed: Protocol not supported (errno 93); using plain TCP
connected using TCP
Fallback also happens on the wire when the server (or a middlebox) doesn't speak MPTCP. To show that, the lab sent a hand-built SYN with an MP_CAPABLE option to a plain TCP server, and captured both packets:
reply flags: SA options: ['MSS', 'NOP', 'NOP', 'SAckOK', 'NOP', 'WScale']
Internet Protocol Version 4, Src: 192.0.2.10, Dst: 198.51.100.10
Transmission Control Protocol, Src Port: 40001, Dst Port: 8081, Seq: 0, Len: 0
Flags: 0x002 (SYN)
Options: (16 bytes), Maximum segment size, SACK permitted, Window scale, MPTCP, End of Option List (EOL), End of Option List (EOL), End of Option List (EOL)
TCP Option - Maximum segment size: 1460 bytes
TCP Option - SACK permitted
TCP Option - Window scale: 7 (multiply by 128)
Multipath Transmission Control Protocol: Multipath Capable
Kind: Multipath TCP (30)
0000 .... = Multipath TCP subtype: Multipath Capable (0)
.... 0001 = Multipath TCP version: 1
Multipath TCP flags: 0x01
0... .... = Checksum required: 0
.... ...1 = Use HMAC-SHA256: 1
Internet Protocol Version 4, Src: 198.51.100.10, Dst: 192.0.2.10
Transmission Control Protocol, Src Port: 8081, Dst Port: 40001, Seq: 0, Ack: 1, Len: 0
Flags: 0x012 (SYN, ACK)
Options: (12 bytes), Maximum segment size, No-Operation (NOP), No-Operation (NOP), SACK permitted, No-Operation (NOP), Window scale
TCP Option - Maximum segment size: 1460 bytes
TCP Option - SACK permitted
TCP Option - Window scale: 7 (multiply by 128)
The first line is the lab script's summary of the reply: its flags (SA, SYN and ACK) and the options it carried. Below it is tshark's decoding of the SYN and then the SYN-ACK.
The SYN offers MPTCP version 1 with HMAC-SHA256. The server's SYN-ACK has MSS, SACK and window scale, but no MP_CAPABLE, so a real MPTCP client would treat the connection as ordinary TCP from here on. The application never notices. The same thing happens when a middlebox strips unknown TCP options: MPTCP was designed to degrade to TCP rather than break.
Using MPTCP
- Linux: an application opts in by passing
IPPROTO_MPTCPtosocket(). Unmodified programs can be run undermptcpize run <program>, from the mptcpd project, which swaps their TCP sockets for MPTCP ones. Go's standard library supports it: since Go 1.24, listeners use MPTCP by default on Linux (dialers don't), controlled by themultipathtcpsetting in theGODEBUGenvironment variable (Go's switch for runtime behaviors). - Apple platforms: iOS has used MPTCP since 2013 for Siri, so requests survive leaving Wi-Fi. Apps can request it through the
multipathServiceTypesetting on URLSession or Network.framework connections, with modes such as handover (keep the connection alive when moving between networks) and interactive (use the lowest-latency path). - Mobile operators: some have run MPTCP proxies that combine a customer's Wi-Fi and LTE (4G mobile data) into one faster connection.
Limits and trade-offs
- Both ends must support it, or a proxy must convert to plain TCP, so it's mostly used where one company controls client and server.
- Fairness. Several subflows sharing one bottleneck could take more than a fair share. RFC 6356 describes coupled congestion control, which links the subflows' windows so the whole connection behaves like one TCP flow at a shared bottleneck. Implementations differ in whether they use it.
- Reordering across paths. Paths with very different RTTs cause data to arrive out of order at the connection level, which needs receive buffer space and can stall the faster path.
- Security. The keys travel in the clear during the first handshake, so an on-path attacker present at that moment could later add subflows. MPTCP protects against off-path attackers, not on-path ones; TLS on top still protects the data.
- Multipath QUIC (RFC 10069, November 2026) brings the same idea to QUIC, where encryption hides the multipath signals from middleboxes entirely.
SCTP
What it offers
SCTP (RFC 9260, which replaced RFC 4960 in 2022) was designed in the late 1990s to carry telephone-network signaling over IP. It's reliable and congestion-controlled like TCP, but differs in four ways:
| TCP | SCTP | |
|---|---|---|
| Unit of data | byte stream | messages, with boundaries preserved |
| Ordering | one ordered stream | several streams per association, each ordered on its own; messages can also be sent unordered |
| Addresses | one address per side | multihoming: each side can have several addresses, with failover |
| Handshake | 3-way, state created at SYN | 4-way with a signed state cookie, no state until the cookie returns |
An SCTP connection is called an association. Every SCTP packet has a 12-byte common header (source port, destination port, a 32-bit verification tag that each side chose at setup, and a CRC32c checksum, a stronger check than TCP's 16-bit sum), followed by one or more chunks: DATA, SACK, INIT, HEARTBEAT and so on. Several chunks can be bundled into one packet.
The handshake and message boundaries, captured
The lab ran an SCTP client and server in Linux, which has a kernel SCTP implementation. The server had two addresses, 198.51.100.10 and 198.51.100.11. As in article 1, the client sent three messages and the server waited half a second before reading:
send() 13 bytes: b'first message'
send() 6 bytes: b'second'
send() 14 bytes: b'third and last'
recv() returned 13 bytes: b'first message'
recv() returned 6 bytes: b'second'
recv() returned 14 bytes: b'third and last'
Unlike TCP, which delivered the same three writes as one 33-byte read in article 1, SCTP delivered three separate messages, even though they were all waiting in the buffer at once.
Here's the start of that association, captured on the router:
0.000 192.0.2.10 -> 198.51.100.10 INIT
0.000 198.51.100.10 -> 192.0.2.10 INIT_ACK
0.000 192.0.2.10 -> 198.51.100.10 COOKIE_ECHO
0.000 198.51.100.10 -> 192.0.2.10 COOKIE_ACK
0.000 192.0.2.10 -> 198.51.100.10 DATA
0.000 198.51.100.10 -> 192.0.2.10 SACK
0.000 192.0.2.10 -> 198.51.100.10 DATA
0.205 198.51.100.10 -> 192.0.2.10 SACK
0.205 192.0.2.10 -> 198.51.100.10 DATA
0.419 198.51.100.10 -> 192.0.2.10 SACK
0.469 192.0.2.10 -> 198.51.100.11 HEARTBEAT
0.469 198.51.100.10 -> 192.0.2.10 HEARTBEAT_ACK
1.010 192.0.2.10 -> 198.51.100.10 SHUTDOWN
1.010 198.51.100.10 -> 192.0.2.10 SHUTDOWN_ACK
1.010 192.0.2.10 -> 198.51.100.10 SHUTDOWN_COMPLETE

- INIT and INIT_ACK. The client proposes its verification tag, stream counts and addresses. The server's INIT_ACK carries a state cookie: all the association's parameters, signed with a key only the server knows. The server keeps nothing in memory yet.
- COOKIE_ECHO and COOKIE_ACK. The client sends the cookie back. Only now does the server verify the signature and create the association. A flood of INITs from spoofed addresses therefore can't fill the server's memory. TCP's SYN cookies (article 63) borrow the idea, but SCTP had it from the start.
- DATA and SACK. Each message travels in a DATA chunk with a stream number and a per-stream sequence number, and SACK chunks acknowledge them. The 0.2-second gap before the second SACK is the server's delayed acknowledgment.
- HEARTBEAT. The client periodically probes every address of the server, including the second one, to know which paths are alive.
The server's INIT_ACK lists both of its addresses, which is how the client learned about the second path:
INIT_ACK chunk (Outbound streams: 10, inbound streams: 10)
Number of outbound streams: 10
Number of inbound streams: 10
IPv4 address parameter (Address: 198.51.100.10)
IPv4 address parameter (Address: 198.51.100.11)
Two INIT_ACK chunks appear because the lab opened two associations, one for each demo.
Multihoming failover, captured
For the second demo, the client sent a "tick" message every half second. About three seconds in, the router started dropping every packet addressed to 198.51.100.10, the server's primary address. (The lab lowered SCTP's timers from their defaults of 1 to 60 seconds to 0.5 to 1 second so the failover happens quickly.)
router now drops packets sent TO 198.51.100.10
12 of 12 "tick" messages arrived
No message was lost. Here's what the client sent around the moment of failure, with time measured from when the router started dropping:
-0.490 198.51.100.10 -> 192.0.2.10 SACK
-0.186 192.0.2.10 -> 198.51.100.10 DATA
+0.021 198.51.100.10 -> 192.0.2.10 SACK
+0.028 198.51.100.10 -> 192.0.2.10 HEARTBEAT
+0.028 192.0.2.10 -> 198.51.100.10 HEARTBEAT_ACK
+0.324 192.0.2.10 -> 198.51.100.10 DATA
+0.608 192.0.2.10 -> 198.51.100.11 HEARTBEAT
+0.608 198.51.100.10 -> 192.0.2.10 HEARTBEAT_ACK
+0.930 192.0.2.10 -> 198.51.100.11 DATA, DATA
+1.133 198.51.100.10 -> 192.0.2.10 SACK
+1.220 192.0.2.10 -> 198.51.100.10 HEARTBEAT
+1.333 192.0.2.10 -> 198.51.100.11 DATA
+1.541 198.51.100.10 -> 192.0.2.10 SACK
+1.759 198.51.100.10 -> 192.0.2.10 HEARTBEAT
+1.759 192.0.2.10 -> 198.51.100.10 HEARTBEAT_ACK
+1.823 192.0.2.10 -> 198.51.100.10 HEARTBEAT
+1.840 192.0.2.10 -> 198.51.100.11 DATA
+2.048 198.51.100.10 -> 192.0.2.10 SACK
+2.341 192.0.2.10 -> 198.51.100.11 DATA
+2.550 198.51.100.10 -> 192.0.2.10 SACK
+2.783 192.0.2.10 -> 198.51.100.10 HEARTBEAT
+2.849 192.0.2.10 -> 198.51.100.11 DATA
+3.036 198.51.100.10 -> 192.0.2.10 HEARTBEAT
+3.036 192.0.2.10 -> 198.51.100.10 HEARTBEAT_ACK
+3.054 198.51.100.10 -> 192.0.2.10 SACK
+3.350 192.0.2.10 -> 198.51.100.11 DATA
+3.556 198.51.100.10 -> 192.0.2.10 SACK
+3.852 192.0.2.10 -> 198.51.100.11 DATA

- A DATA chunk sent to .10 just after the failure got no SACK. When its retransmission timer expired, SCTP retransmitted it to the other address, bundled with the next message. RFC 9260 recommends sending retransmissions to an alternate destination for exactly this reason.
- From then on, new data goes to .11. Linux marks a path potentially failed after
net.sctp.pf_retranstimeouts (the default is 0, so the first timeout counts) and moves traffic to another active path without waiting for the path to be declared dead. - Heartbeats to .10 continue, unanswered. If .10 starts answering again, it becomes usable again.
- The server's replies (SACKs) always come from 198.51.100.10. Multihoming selects destination addresses, and each side chooses its own source address with normal routing. Only the client's path to .10 failed, so the server's replies still arrived.
Where SCTP is used
- Mobile and telephone networks. SIGTRAN (signaling transport) carries telephone signaling over SCTP, and 4G and 5G core networks use SCTP between base stations and the core (S1-AP and NGAP) and for Diameter (the authentication and accounting protocol of mobile networks, article 81).
- WebRTC data channels. Every browser data channel is SCTP running over DTLS (article 83) over UDP (RFCs 8261 and 8831). SCTP's messages, multiple streams and optional unordered or partially reliable delivery (RFC 3758) fit what real-time apps want, and putting it over UDP solves the NAT problem.
- SCTP directly over UDP (RFC 6951) is the general workaround for networks that only pass TCP and UDP.
Operating system support is uneven: Linux and FreeBSD have kernel SCTP, while Windows and macOS have no built-in SCTP, so applications there use a user-space library (the browsers' WebRTC stack includes one). That, plus NAT and firewall support, is why SCTP never became a general Internet transport.
Choosing a transport
| Need | Good fit |
|---|---|
| Reliable byte stream, works everywhere | TCP |
| Small independent messages, or your own reliability and timing | UDP |
| Encrypted, multiplexed, low-latency web traffic; survives address changes | QUIC |
| One connection over several paths, invisible to TCP-only networks | MPTCP |
| Reliable messages, multiple streams and multihoming inside a controlled network | SCTP |
| SCTP's features across NAT, in browsers | SCTP over DTLS over UDP (WebRTC) |
Common questions
Is MPTCP the same as bonding or link aggregation?
No. Link aggregation (article 15) combines links between two neighboring devices at the link layer. MPTCP works end to end across the Internet, over paths that can go through completely different networks and providers.
Does MPTCP make one download faster?
It can, by using both paths at once, but only if the server supports MPTCP and the paths aren't sharing the same bottleneck. In practice, its biggest benefit is keeping connections alive while moving between networks.
Why didn't my MPTCP connection use MPTCP?
The most common reasons are: the server or a middlebox doesn't support it (the SYN-ACK has no MP_CAPABLE, as in the lab capture), the application didn't ask for IPPROTO_MPTCP, the kernel was built without it, or the path manager has no extra endpoints configured, so only the first subflow exists.
Why isn't SCTP used for web browsing?
Because many NAT devices and firewalls only understand TCP and UDP, and Windows and macOS don't include SCTP. By the time SCTP was standardized, the web was built on TCP. Its ideas live on, in WebRTC's SCTP over UDP and in QUIC's streams.
Does SCTP's multihoming send data over both paths at once?
No. Standard SCTP uses one primary path for new data and the others for retransmissions and failover. Sending over several paths at once (Concurrent Multipath Transfer) exists as an extension but isn't widely deployed.
Does SCTP have a half-close like TCP?
No. SCTP's shutdown is a three-way exchange (SHUTDOWN, SHUTDOWN_ACK, SHUTDOWN_COMPLETE) that closes both directions together, after all outstanding data has been delivered. The handshake capture above ends with that exchange.
Summary
- MPTCP (RFC 8684) runs one connection over several TCP subflows, each on its own pair of addresses. MP_CAPABLE and MP_JOIN set it up, DSS maps subflow bytes into one data sequence space, and a scheduler picks paths.
- It falls back to plain TCP whenever the peer or a middlebox doesn't support it. The lab showed a SYN-ACK without MP_CAPABLE, and an application falling back when the kernel lacks MPTCP.
- Linux supports MPTCP since 5.6 through
IPPROTO_MPTCP,mptcpizeandip mptcp. Apple has used it since 2013, and Go's listeners use it by default since Go 1.24. - SCTP (RFC 9260) is message-oriented, with multiple streams, multihoming and a 4-way handshake whose state cookie protects against floods. The lab showed message boundaries kept and an association failing over to a second address without losing a message.
- SCTP carries mobile-network signaling and, over DTLS and UDP, every WebRTC data channel. NAT and missing OS support kept it from general Internet use.
Practice questions
1. A phone opens an MPTCP connection over Wi-Fi, then leaves Wi-Fi range. What does MPTCP need to have done beforehand for the connection to survive?
Answer
It needs a second subflow over mobile data, either already open (perhaps marked as backup) or opened with MP_JOIN once the phone has a mobile address. Data the Wi-Fi subflow sent but that wasn't acknowledged at the connection level is then resent on the mobile-data subflow, and the connection continues.
2. A firewall between a client and server strips unknown TCP options. What happens to an MPTCP connection attempt?
Answer
The MP_CAPABLE option is removed from the SYN (or SYN-ACK), so the other side never sees it, and the connection proceeds as ordinary TCP. The application works normally, just without multipath.
3. Why does each MPTCP subflow keep its own TCP sequence numbers instead of using the connection's data sequence numbers directly?
Answer
So each subflow looks like a completely normal TCP connection to firewalls, NAT devices and other middleboxes on its path, which expect sequence numbers without gaps. If a subflow's sequence numbers jumped around (because the other subflow carried the bytes in between), many middleboxes would drop or "repair" the packets. The DSS option maps subflow bytes to the connection-level data sequence numbers separately.
4. A program sends 3 messages over SCTP and 3 over TCP to a receiver that reads late. How many reads does each receiver need, at minimum?
Answer
SCTP: 3 reads, one per message, because SCTP preserves message boundaries. TCP: possibly just 1, because TCP is a byte stream and may hand over all the bytes in a single read. That's what the lab showed: 13, 6 and 14 bytes over SCTP, and 33 bytes in one read over TCP in article 1.
5. Why can't a flood of spoofed SCTP INIT chunks exhaust a server's memory the way a SYN flood can for a TCP server without SYN cookies?
Answer
The server answers INIT with an INIT_ACK containing a signed state cookie and keeps no state. It creates the association only when a COOKIE_ECHO returns a valid cookie, which requires the sender to have received the INIT_ACK at its address. Spoofed INITs therefore cost the server only one reply each and no memory.
6. In the failover capture, the server's SACKs kept coming from 198.51.100.10 even after packets to that address were being dropped. Why did they still arrive?
Answer
The router dropped only packets addressed to 198.51.100.10. Packets from that address to the client were forwarded normally. SCTP multihoming chooses which destination address to send to; each side picks its source address by normal routing, and the server's path to the client was still working.
7. Which would you choose to carry chat messages between browsers, and why: TCP, SCTP directly over IP, or a WebRTC data channel?
Answer
A WebRTC data channel. Browsers can't open raw TCP connections to each other or use SCTP directly over IP (it doesn't cross NAT and isn't available on all OSes). A data channel is SCTP over DTLS over UDP, which gets through NAT with ICE, is encrypted, and keeps message boundaries.
Previous: QUIC and HTTP/3: Transport Over UDP With Built-In TLS
Next: Troubleshooting Networks: A Layer-by-Layer Method With Real Captures

More in TCP/IP Course
Quiz: TCP/IP Delicate Details
Twenty-five questions on the details that catch out experienced engineers: sequence numbers for SYN and FIN, TIME_WAIT versus tcp_fin_timeout, Karn's algorithm, socket buffer doubling, even and odd ephemeral ports, IPv6 checksums and fragmentation, negative DNS caching, and capture filter traps.
Quiz: TCP/IP Interview Questions
Thirty-three networking questions of the kind asked in developer, SRE and network engineering interviews: what happens when you load a URL, TCP versus UDP, handshakes, closing and TIME_WAIT, subnetting, NAT, DNS, MTU problems, congestion, TLS and QUIC, and debugging slow or failing connections.
Quiz: TCP/IP Course Final Exam (All Parts)
The final exam for the TCP/IP course: thirty questions across all fourteen parts, from packets and addressing through Ethernet, ARP, IP, DHCP, NAT, ICMP, UDP, DNS, TCP connections, reliability, congestion control, security, QUIC and troubleshooting.
Quiz: Modern Transports and Troubleshooting (TCP/IP Part 14)
Review modern transports and troubleshooting: QUIC packets, handshakes, 0-RTT, streams and connection migration, HTTP/3, Multipath TCP, SCTP multihoming, and a layered method for diagnosing real network faults.
Discussion
Sign in to ask a question or share what you learned.