Method and device for closing Diameter connection

The invention aims to provide a method and a device for closing Diameter connection. The first Diameter node starts the first timer, when the first timer overtimes or the transmit queue to be opened on connection is empty, sending the disconnection request message to the second Diameter node. Then, at one side of the second Diameter node, starting the third timer, when the third timer overtimes or the transmit queue to be opened on connection and the receiving queue are empty, sending the disconnection reply message to the first Diameter node. At one side of the first Diameter node, the second timer is started, and breaking the Diameter connection when the second timer overtimes or receives the disconnection reply message. The number of the failure can be obviously reduced through the method and the device, under reasonable setting of the timer, the ideal effect without failure message can be achieved and the QoS and stability of the system can be raised.