Currently, data traffic is growing rapidly, and ensuring optimal network performance and effective data flow management have become the most important tasks. In this context, the quality of network service plays a crucial role in achieving these goals. This article suggests an approach to solving the problem of efficient service in ISDN. Namely, optimization of resource distribution between channel switching and packet switching subnets in ISDN to calculate optimal quality of service characteristics. In the process of ISDN design analysis, an optimization problem is compiled, where the evaluation of the packet-switched subnet service is used as an objective function, and the evaluation of the circuit-switched subnet service is used as one of the constraints for this task. To calculate the main characteristics of a packet-switched subnet, the subnet is considered as a service system with a delay. During the study, the methods of optimal movement of the generalized channel boundary between the subnets of channel switching and packet switching were identified, depending on the data parameters and the state of the integrated network, which made it possible to develop an optimal mathematical model of optimal control of the generalized boundary. To calculate the bandwidth for channel switching and packet switching subnets, an algorithm has been compiled to implement the resulting model and a program in C++ has been compiled. The study of the generalized boundary and the dynamic redistribution of bandwidth between subnets represents a new approach to network optimization. The results are based on the use of the classical Erlang formula for systems with service failures and on load distribution plans, which makes it possible to effectively manage the maintenance process in the network