The increase in the power, economic and environmental performance of modern internal combustion engines is largely due to the improvement of the system that controls the gas exchange processes. Its characteristics determine the quality of filling and cleaning of the cylinders in various operating modes, the loss of power for gas exchange and, consequently, the indicator and effective indicators of the engine. The issues of mathematical modeling of gas exchange processes in combination with the study and improvement of the gas distribution mechanism are considered. The results of experimental and computational studies of gas exchange of tractor diesel are presented. Reserves for improving the gas exchange and the engine as a whole are identified based on the choice of optimal valve timing phases and valve motion laws. They provide a reduction in the modulus of the average pressure of the pump passages in the range of operating modes by 12 - 14 %, which contributed to a decrease in the specific effective fuel consumption by 1.4 ÷ 2.2 g/kWh. The above allows us to conclude that the use of a generalized step-by-step numerical method for synthesizing the law of motion of a pusher with an upper stand allows us to obtain the maximum efficiency characteristics of the gas distribution in the presence of a number of restrictions.