General time-to-live safety mechanism inspection method and device

The invention provides a general time-to-live safety mechanism inspection method and device. The method includes the steps that according to own configuration, for the IP address of any opposite end router needing GTSM inspection, after a local router is started or the change of network topology of the opposite end router is found, the network topology with the opposite end router as a root is calculated, and according to the network topology, a TTL value used for carrying out GTSM inspection on the opposite end router is calculated; the local router transmits the TTL value to the opposite end router to calculate a request message; the local router compares a TTL value transmitted by the opposite end router and the TTL value calculated by the local router, if the TTL value transmitted by the opposite end router and the TTL value calculated by the local router are the same, it is determined that the TTL value is used for carrying out GTSM inspection on the opposite end router, and otherwise, GTSM inspection is not carried out on the opposite end router. The error rate of GTSM inspection is reduced.