In case of an error in the power system, it is the duty of the protection relays to isolate the faulty part from the rest of the system as soon as possible. Overcurrent and distance relays are usually used to protect the transmission and super distribution systems. The optimum coordination of these relays is very important. In this article, communication links are used to improve the optimal coordination of overcurrent and distance relays. In the proposed plan, the overcurrent relays on both sides of the line are equipped with a communication link for immediate action in the event of an error. Using this communication link, the complete coverage of the line is also provided by distance relays. The number and place of installation of the communication link greatly affect the operation time of overcurrent relays and the distance and coordination between them. The coordination problem is formulated by considering the location and number of communication links, and to solve it, the combined optimization algorithm of genetics and linear programming will be used. With the help of the genetic algorithm, the location and setting of the second zone of the distance relay, and by using the linear programming algorithm, the setting of the overcurrent relays is determined. The proposed method has been tested on the IEEE 14-bus (the simulation in MATLAB software) network and its results examined, and it will be seen how much the existence of a communication link can improve the performance time of the protection system.