ArticleslgStudy

science

CUBIC TCP

CUBIC TCP is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand CUBIC TCP rather than just read about it. In short: CUBIC is a network congestion avoidance algorithm for TCP which can achieve high bandwidth connections over networks more quickly and reliably in the face of high latency than earlier algorithms. It helps optimize long fat networks.

Key takeaways

  • CUBIC TCP belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect CUBIC TCP to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of CUBIC TCP from memory before moving on to harder problems.

Reference excerpt

CUBIC is a network congestion avoidance algorithm for TCP which can achieve high bandwidth connections over networks more quickly and reliably in the face of high latency than earlier algorithms. It helps optimize long fat networks. In 2006, the first CUBIC implementation was released in Linux kernel 2.6.13. Since kernel version 2.6.19, CUBIC replaces BIC-TCP as the default TCP congestion control algorithm in the Linux kernel. MacOS adopted TCP CUBIC with the OS X Yosemite release in 2014, while the previous release OS X Mavericks still used TCP New Reno. Microsoft adopted it by default in Windows 10.1709 Fall Creators Update (2017), and Windows Server 2016 1709 update.

Characteristics CUBIC is a less aggressive and more systematic derivative of BIC TCP, in which the window size is a cubic function of time since the last congestion event, with the inflection point set to the window size prior to the event. Because it is a cubic function, there are two components to window growth. The first is a concave portion where the window size quickly ramps up to the size before the last congestion event. Next is the convex growth where CUBIC probes for more bandwidth, slowly at first then very rapidly. CUBIC spends a lot of time at a plateau between the concave and convex growth region which allows the network to stabilize before CUBIC begins looking for more bandwidth. Another major difference between CUBIC and many earlier TCP algorithms is that it does not rely on the cadence of RTTs to increase the window size. CUBIC's window size is dependent only on the last congestion event. With earlier algorithms like TCP New Reno, flows with very short round-trip delay times (RTTs) will receive ACKs faster and therefore have their congestion windows grow faster than other flows with longer RTTs. CUBIC allows for more fairness between flows since the window growth is independent of RTT. This RTT-independence is particularly important in modern data centers and cloud environments where flows may traverse paths with vastly different round-trip times. Studies have shown that in networks with mixed RTT flows, CUBIC achieves up to 3-5 times better fairness compared to traditional loss-based algorithms like Reno. The RTT-fairness property makes CUBIC especially suitable for Content Delivery Networks (CDNs) and distributed systems where servers at different geographical locations communicate with clients simultaneously.

Algorithm CUBIC increases its window to be real-time dependent, not RTT dependent like BIC. The calculation for cwnd (congestion window) is simpler than BIC, too. Define the following variables:

β: Multiplicative decrease factor wmax: Window size just before the last reduction T: Time elapsed since the last window reduction C: A scaling constant cwnd: The congestion window at the current time RFC 8312 indicates the following:

The unit of all window sizes in this document is segments of the maximum segment size (MSS), and the unit of all times is seconds. (Section 4) β SHOULD be set to 0.7 (Section 4.5) C SHOULD be set to 0.4 (Section 5) Then cwnd can be modeled by: cwnd = C(T−K)3+wmaxwhere K=wmax(1−β)C3 In August 2023, RFC 9438 was published as a Proposed Standard, obsoleting the older experimental RFC 8312. The standardized version retains the recommended multiplicative decrease factor β (denoted as βcubic) of 0.7, while formally integrating algorithmic improvements including HyStart++ (hybrid slow start), improved response to spurious congestion events, and transport-agnostic optimization for protocols like QUIC.

Alternatives Apart from window based algorithms like Cubic, there are rate based algorithms (including TCP BBR from Google) that works differently using "sending rate" instead of the window. Unlike CUBIC, which relies primarily on packet loss as a congestion signal, BBR uses a model-based approach that estimates the available bandwidth and minimum RTT of the network path. BBR operates by cycling through four states: STARTUP, DRAIN, PROBE_BW, and PROBE_RTT, continuously measuring and adapting to network conditions. The fundamental difference in approach means that BBR can achieve higher throughput in networks with shallow buffers or where random packet loss occurs (such as wireless networks), as it doesn't interpret all losses as congestion signals. However, studies have shown that when BBR flows compete with CUBIC flows, BBR can be more aggressive and may dominate bandwidth allocation.

See also TCP congestion avoidance algorithm Transmission Control Protocol § Development SCTP Compound TCP

References

External links BIC & CUBIC Home Page at NC State University.

Worked examples

Example 1 — a first encounter with CUBIC TCP

Start with the simplest possible case. Write down what CUBIC TCP claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to CUBIC TCP before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about CUBIC TCP ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of CUBIC TCP

In research
CUBIC TCP appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses CUBIC TCP in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
CUBIC TCP is common in secondary-school and first-year university syllabi. It links to neighbouring topics TCP congestion control, so understanding it makes those chapters shorter.
In everyday life
Look for CUBIC TCP outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “CUBIC TCP” →

How to study CUBIC TCP in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what CUBIC TCP means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain CUBIC TCP out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is CUBIC TCP in simple terms?

CUBIC is a network congestion avoidance algorithm for TCP which can achieve high bandwidth connections over networks more quickly and reliably in the face of high latency than earlier algorithms. It helps optimize long fat networks.

Why does CUBIC TCP matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study CUBIC TCP?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on CUBIC TCP.

Tags

  • TCP congestion control

Keep exploring