The dynamic TCP-sessions model is proposed. The model is represented by a system of nonlinear differential equations. On the bifurcation theory basis the TCP-sessions stability conditions are obtained. A TCP-sessions optimization method for calculation of the TCP and RED-algorithm basic parameters is proposed.