With the rapid development of mobile communication technology, the data transmission rate of mobile communication has been significantly improved and emerging Internet of things applications need a lot of computing resources to meet their own computing needs. However, the existing intelligent terminals have limited computing power and cannot meet the low-latency computing requirements with limited energy consumption. Mobile edge computing technology is considered to be one of the technical solutions that can efficiently solve this problem. Through mobile edge computing technology, intelligent terminals can actively divert some computing tasks to the computing servers deployed in edge network nodes and return the computing results to intelligent terminals after the edge computing servers have finished computing, thus greatly reducing the computing delay of users. In this paper, aiming at multiple edge server networks, combined with dual-connection technology, based on the research of a single edge computing server network, it is further extended to two edge computing servers and a joint optimization problem of computing task allocation and security performance requirements of intelligent terminals and edge computing servers is proposed, so as to minimize the global time delay for completing the computing tasks of intelligent terminals. By layering the problem, this paper proposes a corresponding algorithm, which can efficiently obtain the optimal solution of the initial problem. Compared with the linear search algorithm, the algorithm proposed in this paper can significantly reduce the computation time.