# Additive increase/multiplicative decrease

> Mediated Wiki article. Canonical URL: https://mediated.wiki/source/Additive_increase%2Fmultiplicative_decrease
> Markdown URL: https://mediated.wiki/source/Additive_increase%2Fmultiplicative_decrease.md
> Source: https://en.wikipedia.org/wiki/Additive_increase%2Fmultiplicative_decrease
> Source revision: 1340219627
> License: Creative Commons Attribution-ShareAlike 4.0 International (https://creativecommons.org/licenses/by-sa/4.0/)

{{Short description|Feedback control algorithm used in congestion control}}

The '''additive-increase/multiplicative-decrease''' ('''AIMD''') algorithm is a feedback control algorithm best known for its use in [TCP congestion control](/source/TCP_congestion_control). AIMD combines linear growth of the congestion window when there is no congestion with an exponential reduction when congestion is detected. Multiple flows using AIMD congestion control will eventually converge to an equal usage of a shared link.<ref name=chui1989>{{cite journal|last=Chiu|first=Dah-Ming|author2=Raj Jain|title=Analysis of increase and decrease algorithms for congestion avoidance in computer networks|journal=Computer Networks and ISDN Systems|year=1989|volume=17|pages=1–14|doi=10.1016/0169-7552(89)90019-6 }}</ref> The related schemes of multiplicative-increase/multiplicative-decrease (MIMD) and additive-increase/additive-decrease (AIAD) do not reach [stability](/source/Stability_theory).

== Algorithm ==

The approach taken is to increase the transmission rate (window size), probing for usable bandwidth, until loss occurs. The policy of additive increase may, for instance, increase the congestion window by a fixed amount every [round-trip time](/source/round-trip_time). When congestion is detected, the transmitter decreases the transmission rate by a multiplicative factor; for example, cut the congestion window in half after loss. The result is a saw-tooth behavior that represents the process of bandwidth probing.

AIMD requires a binary congestion signal. Most frequently, packet loss serves as the signal; the multiplicative decrease is triggered when a timeout or an acknowledgement message indicates a packet lost. It is also possible for in-network switches/routers to mark congestion (without discarding packets) as in [Explicit Congestion Notification](/source/Explicit_Congestion_Notification) (ECN).

=== Mathematical formula ===

Let <math>w(t)</math> be the [congestion window](/source/congestion_window) size indicating the amount of data in flight during time slot <math>t</math>, <math>a</math> {{nowrap|(<math>a > 0</math>)}} be the additive increase parameter, and <math>b</math> {{nowrap|(<math>0 < b < 1</math>)}} be the multiplicative decrease factor.

<math display="block">
w(t + 1) = \begin{cases}
  w(t) + a & \text{ if congestion is not detected} \\
  w(t) \times b & \text{ if congestion is detected}
\end{cases}
</math>

In TCP, after [slow start](/source/TCP_congestion_control), the additive increase parameter <math>a</math> is typically one MSS ([maximum segment size](/source/maximum_segment_size)) per [round-trip time](/source/round-trip_time), and the multiplicative decrease factor <math>b</math> is typically 1/2.

== Protocols ==

AIMD congestion avoidance is or was used in:
* [Transmission Control Protocol](/source/Transmission_Control_Protocol) (TCP)
* [Scalable TCP](/source/Scalable_TCP) (STCP) 
* [OSI Transport Class 4](/source/Transport_layer)<ref name=chui1989/>
* [DCCP](/source/DCCP) (in some modes)<ref>{{cite IETF |last1=Floyd |last2=Kohler |rfc=4341 |title=Profile for Datagram Congestion Control Protocol (DCCP) Congestion Control ID 2: TCP-like Congestion Control |date=March 2006}}</ref>
* [DECnet](/source/DECnet)<ref name=chui1989/>

== In nature ==
AIMD has been found to be utilized by diverse [biological system](/source/biological_system)s, including maintaining [cell-size](/source/Cell_size) homeostasis and for [synaptic learning](/source/Synaptic_plasticity) and adaptation in [neural circuit](/source/neural_circuit)s.<ref>{{Cite journal |last1=Suen |first1=Jonathan Y. |last2=Navlakha |first2=Saket |title=A feedback control principle common to several biological and engineered systems |journal=Journal of the Royal Society Interface |year=2022 |volume=19 |issue=188 |article-number=20210711 |doi=10.1098/rsif.2021.0711 |pmc=8889180 |pmid=35232277}}</ref>

== References ==
{{Reflist}}

{{Authority control}}

{{DEFAULTSORT:Additive increase multiplicative decrease}}
Category:Flow control (data)
Category:TCP congestion control

---
Adapted from the Wikipedia article [Additive increase/multiplicative decrease](https://en.wikipedia.org/wiki/Additive_increase%2Fmultiplicative_decrease) by Wikipedia contributors ([contributor history](https://en.wikipedia.org/wiki/Additive_increase%2Fmultiplicative_decrease?action=history)). Available under [Creative Commons Attribution-ShareAlike 4.0 International](https://creativecommons.org/licenses/by-sa/4.0/). Changes may have been made.
