
Data Exchange and Differential Equations
In one of the projects that I worked on, a mechanism for exchanging data between remote components of the system was implemented, working according to the following scenario: source component A, on its side, prepares data for transmission; component-receiver B periodically opens a communication session and takes all the data that A has accumulated at the time of connection. Data arriving already during a communication session is delayed until the next connection.
At some point, I realized that the data transfer in such a scheme is described using an ordinary differential equation. Description of the model and the conclusions that were obtained with its help, under the cut.
We denote
- the amount of data in some arbitrary units accumulated for exchange on the side of component A by the time
. Let the pause between the end of the exchange session and the beginning of the next equal
units of time, and for the transfer of one unit of data is required
units of time. Then on the transfer
data units required
units of time. Data rate is
If the data storage rate on side A is designated
then
is a solution to the differential equation:
Since an unlimited growth in the volume of yet unsent data is an extremely undesirable situation, it becomes an important task to obtain conditions for the boundedness of solutions to this equation.
For simplicity, we consider the function
continuous. Let be
Where
for all
, a
- constant, playing the role of average value.
Let's look at a few examples. Let be
periodic and its schedule has the form:

In this case
,
.
By numerically integrating equation (1) for several parameter values
and initial values
, we obtain the following graphs of solutions:


The examples show: when
, solutions are also limited for various values
the system tends to some steady state. Less shorter pauses between sessions
, the faster this convergence. At
such convergence is not observed, and solutions grow over time. Reducing the duration of pauses slows down the growth rate, but the tendency to an unlimited increase
still saved.
In the general case, it can be shown that if
, then the solutions of equation (1) are bounded, and if
- unlimited solutions will be obtained. That is, the limited solutions are determined only by the ratio of the rates of data accumulation and extraction. Duration of pauses between exchange sessions
, the only parameter that can be easily controlled does not fundamentally affect the behavior of the system. Although, as can be seen from relation (1) and the examples, with its increase, the exchange rate decreases.
As a result, analysis of the model allows us to draw the following conclusions. If the exchange rate is insufficient, and the amount of data to send is constantly growing on the source side, then it makes no sense to try to correct the situation by reducing the pauses between sessions. Only an increase in system performance can help here.
On the other hand, in the case when the exchange service constantly loads computers to the detriment of other tasks, the right decision will be to increase the pause duration within reasonable limits: this will only affect the relevance of the data, without the risk of overflowing the source with unsent data.
Detailed calculations for the conditions of limited decisions and some other questions concerning the considered model are published in the materials of the school-seminar “Mathematical modeling, numerical methods and program complexes” named after E.V. Voskresensky. You can view and download the article here .
At some point, I realized that the data transfer in such a scheme is described using an ordinary differential equation. Description of the model and the conclusions that were obtained with its help, under the cut.
We denote
If the data storage rate on side A is designated
Since an unlimited growth in the volume of yet unsent data is an extremely undesirable situation, it becomes an important task to obtain conditions for the boundedness of solutions to this equation.
For simplicity, we consider the function
Where
for all
Let's look at a few examples. Let be

In this case
By numerically integrating equation (1) for several parameter values


The examples show: when
In the general case, it can be shown that if
As a result, analysis of the model allows us to draw the following conclusions. If the exchange rate is insufficient, and the amount of data to send is constantly growing on the source side, then it makes no sense to try to correct the situation by reducing the pauses between sessions. Only an increase in system performance can help here.
On the other hand, in the case when the exchange service constantly loads computers to the detriment of other tasks, the right decision will be to increase the pause duration within reasonable limits: this will only affect the relevance of the data, without the risk of overflowing the source with unsent data.
Detailed calculations for the conditions of limited decisions and some other questions concerning the considered model are published in the materials of the school-seminar “Mathematical modeling, numerical methods and program complexes” named after E.V. Voskresensky. You can view and download the article here .