The invention relates to a method for controlling and/or regulating the hydraulic system (1) of gearbox wherein a pump (3) transmits hydraulic oil. A hydraulic network model (2) is used to control and/or regulate the pump (3). The hydraulic system (1) is therefore capable of efficiently controlling or regulating. The hydraulic network model (2) comprises at least one hydraulic resistor (RH1, RH2, RH3, RH4, RH5, RH6, RHS1, RHS3) wherein each volume flow of the resistors(RH1, RH2, RH3, RH4, RH5, RH6, RHS1, RHS3) is calculated. Based on the calculations, the pump (3) is controlled and regulated.