In one of the projects I was working on, a data exchange mechanism was implemented between remote components of the system, which worked according to the following scenario: source component A on its side prepares data to be transmitted; Recipient component 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 postponed 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.

Denote by $$ - the amount of data in some conventional units accumulated for exchange on the component A side at the time point $$ . Let the pause between the end of the exchange session and the beginning of the next be $$ units of time, and for transferring one unit of data, $$ units of time. Then on the transfer $$ data units required $$ units of time. Data transfer rate is

If the data accumulation rate on side A is indicated by $$ , then $$ is the solution of a differential equation:

Since the unlimited growth of the volume of still undistributed data is a highly undesirable situation, the important task is to obtain conditions for the boundedness of solutions of this equation.

For simplicity, we will assume the function $$ continuous. Let

where

for all $$ , and $$ is a constant playing the role of an average value.

Consider a few examples. Let $$ periodic and its schedule is:

< br/>
In this case, $$ , $$ .

Numerically integrating equation (1) for several parameter values $$ and initial values of $$ , we get the following decision graphics:

< br/>

The examples show: when $$ , solutions are also limited for different values of $$ the system tends to some steady state. The shorter the pauses between sessions $$ , the faster this convergence. With $$ such convergence is not observed, and solutions grow over time. Reducing the duration of pauses slows the growth rate, but the tendency to unlimited increase $$ is still saved.

In general, it can be shown that if $$ , then the solutions to equation (1) are limited, and if $$ - unlimited solutions will be obtained. That is, the boundedness of solutions is determined only by the ratio of the rates of accumulation and extraction of data. Duration of pauses between exchanges $$ , 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 examples, with its increase, the exchange rate decreases.

As a result, the analysis of the model leads to the following conclusions. If the exchange rate is insufficient, and the volume of data to send is constantly increasing on the source side, then trying to rectify the situation by reducing the pauses between sessions does not make sense.Help here can only increase system performance.

On the other hand, in the case when the exchange service constantly loads computers to the detriment of other tasks, it would be advisable to increase the pauses within reasonable limits: this will only affect the relevance of the data without risking overflow of the source with unsent data.

Detailed calculations for the conditions of bounded solutions 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. Resurrection. You can view and download the article using this link .

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.

Denote by $$ - the amount of data in some conventional units accumulated for exchange on the component A side at the time point $$ . Let the pause between the end of the exchange session and the beginning of the next be $$ units of time, and for transferring one unit of data, $$ units of time. Then on the transfer $$ data units required $$ units of time. Data transfer rate is

$$

If the data accumulation rate on side A is indicated by $$ , then $$ is the solution of a differential equation:

$$

Since the unlimited growth of the volume of still undistributed data is a highly undesirable situation, the important task is to obtain conditions for the boundedness of solutions of this equation.

For simplicity, we will assume the function $$ continuous. Let

$$

where

$$

for all $$ , and $$ is a constant playing the role of an average value.

Consider a few examples. Let $$ periodic and its schedule is:

Numerically integrating equation (1) for several parameter values $$ and initial values of $$ , we get the following decision graphics:

The examples show: when $$ , solutions are also limited for different values of $$ the system tends to some steady state. The shorter the pauses between sessions $$ , the faster this convergence. With $$ such convergence is not observed, and solutions grow over time. Reducing the duration of pauses slows the growth rate, but the tendency to unlimited increase $$ is still saved.

In general, it can be shown that if $$ , then the solutions to equation (1) are limited, and if $$ - unlimited solutions will be obtained. That is, the boundedness of solutions is determined only by the ratio of the rates of accumulation and extraction of data. Duration of pauses between exchanges $$ , 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 examples, with its increase, the exchange rate decreases.

As a result, the analysis of the model leads to the following conclusions. If the exchange rate is insufficient, and the volume of data to send is constantly increasing on the source side, then trying to rectify the situation by reducing the pauses between sessions does not make sense.Help here can only increase system performance.

On the other hand, in the case when the exchange service constantly loads computers to the detriment of other tasks, it would be advisable to increase the pauses within reasonable limits: this will only affect the relevance of the data without risking overflow of the source with unsent data.

Detailed calculations for the conditions of bounded solutions 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. Resurrection. You can view and download the article using this link .

Source text: Data Exchange and Differential Equations