Edge computing helps break through the resource limitations of the terminal, providing powerful computing power and improving the user experience. Time cost and energy cost are the main considerations for end users to perform edge calculations, so a reasonable edge calculation strategy can ensure that user spending is minimized. This paper first studies the service deployment and edge computing of multi-terminal single-base station scenarios and proposes a resource coordination strategy for multi-base station scenarios. Secondly, the network resource allocation problem is modeled by linear programming. The objective function of the model is to maximize the remaining processing resources of the host with the most processing tasks allocated in the whole network, that is, the load balancing target, and at the same time take into account the routing efficiency; there are three main types of constraints: bandwidth constraint, traffic balancing constraints and processing. The linear optimization tool is used to solve and analyze the optimal configuration results of network resources in a specific network topology. Finally, through the simulation work, it is verified that our scheme is effective for network resource allocation, and the impact of network traffic speed on resource allocation scheme is tested. © 2019 Informa UK Limited, trading as Taylor & Francis Group.