The invention discloses a method for transmitting messages between network equipment, which comprises the following steps: a, establishing a
retransmission array by taking a message identifier ID as an array index; b, when a request is generated, inserting the request into the
retransmission array by taking the message identifier ID as the array index, and sending a message; c, sending a request message, simultaneously setting a
retransmission timer for the sent message, if a response is not received when the
timer is time out, taking opposite end ID + message ID as a return value, retrievinga unit that the opposite-end node ID takes the message ID as the array index, positioning to a retransmission
array element for retransmitting the request message, accumulating transmission times, and deleting the message from a retransmission
list if the transmission times exceed a designed maximum retransmission time threshold; and d, when the response is received, directly positioning to the retransmission
array element according to the message ID, and deleting the corresponding request message. The method can greatly improve the efficiency of retransmitting the messages of the network equipment, acquires flexible balance between
system resource occupation and the timeliness of message notification restoration, and ensures the accuracy of message transmission.