RFC 8257: Data Center TCP (DCTCP): TCP Congestion Control for Data Centers
IETF / RFC Editor · S. Bensley, D. Thaler et al.
A 2017 informational IETF RFC documenting DCTCP, which estimates the fraction of ECN-marked bytes and cuts the window by cwnd x (1 - alpha/2), for use only inside controlled data centre networks.
On this page
Overview
RFC 8257 documents Data Center TCP (DCTCP) as implemented in Microsoft Windows Server 2012. The starting problem is that low-cost switches have shallow queues while data centre traffic mixes latency-sensitive short flows, throughput-hungry long flows and many-to-one incast bursts. Loss-based classic TCP reacts too late for short flows, and for incast it reacts after most of the burst has already been dropped.
The algorithm has three parts: switches set the CE codepoint in the IP header when the queue exceeds a threshold, the receiver echoes this back with the ECE flag, and the sender measures the fraction of marked bytes M over an observation window (about one RTT) and estimates alpha = alpha x (1 - g) + g x M. Classic ECN halves the window on every mark, while DCTCP shrinks it only by alpha/2, preserving throughput under mild congestion.
The document also covers implementation and deployment: a fixed gain g of 1/16 in some implementations, efficient shift-based arithmetic, ECT marking on SYN, SYN-ACK and RST packets, and deciding on which connections to enable DCTCP. Because there is no negotiation mechanism, per-connection configuration is needed; for instance, automatic selection is possible when the estimated RTT is under 10 ms and ECN is negotiated.
A key limit: DCTCP should be used only where endpoints and switching fabric share one administrative domain, and not on the public Internet without additional measures. It does not coexist well with conventional TCP, so DSCP-based segregation is recommended for mixed traffic. The IETF TCPM working group concluded that a standard would require further work, so the document has informational status.
Key points
- The sender updates its congestion estimate as alpha = alpha x (1 - g) + g x M; alpha starts at 1 and the observation window is about one RTT.
- Window reduction is cwnd = cwnd x (1 - alpha/2), instead of always halving as in classic ECN.
- Some implementations use a fixed g of 1/16; g = 0 freezes alpha at its initial value and g = 1 removes smoothing.
- The receiver sends an immediate ACK when its DCTCP.CE state changes, which keeps delayed ACKs usable.
- On the switch side, threshold marking with K > (RTT x C)/7 is cited, and typical deployments keep the threshold small.
- On packet loss and timeout DCTCP behaves like conventional TCP (cwnd at most one full-sized segment after a timeout).
- The sender should set ECT on SYN, SYN-ACK and RST packets, otherwise they are dropped more often under load.
- There is no negotiation for DCTCP; heuristics such as RTT below 10 ms, or IP-address-based configuration, are needed.
- In a mixed network DCTCP takes a larger share of capacity than conventional TCP; DSCP segregation is recommended.
Using it in design
- Verify in switch specifications that spine and leaf devices support ECN marking and threshold configuration; DCTCP benefits depend on ECN support across the entire network infrastructure.
- Prepare a QoS plan that separates DCTCP and conventional TCP into different queues with DSCP, applying AQM to the DCTCP class only.
- Guarantee at configuration level (IP ranges or RTT heuristic) that traffic leaving the data centre does not use DCTCP.
- For shallow-buffer switch choices under incast-heavy workloads, measure the effect of DCTCP during commissioning tests.
Who should read it
Data centre network architects, engineers writing switch specifications, and teams tuning operating system or network performance.
Document contents
- Introduction
- Terminology
- DCTCP Algorithm
- Implementation Issues
- Deployment Issues
- Known Issues
- Security Considerations
- IANA Considerations
- References
Related standards
- RFC 8257
Publication details
- Authors
- S. Bensley; D. Thaler; P. Balasubramanian; L. Eggert; G. Judd
- Publisher
- IETF / RFC Editor
- Year
- 2017
- Document number
- RFC 8257
- Document language
- English
- Source type
- Industry body
- Access
- Free to read
- Licence
- Copyright retained; citation only: the publisher’s terms apply to the original document
Original licence note
The document copyright notice identifies IETF Trust Legal Provisions (BCP 78). Full-text redistribution and adaptation conditions were not separately audited; this deliverable is metadata and original summary only.
Citation
S. Bensley; D. Thaler; P. Balasubramanian; L. Eggert; G. Judd (2017). RFC 8257: Data Center TCP (DCTCP): TCP Congestion Control for Data Centers. IETF / RFC Editor. RFC 8257. https://doi.org/10.17487/RFC8257
All content and rights belong to the respective authors and publishers. SoSo CAD provides only the citation, its own summary and a link to the source, and is not responsible for the sources' content.
