Patent ID: 7940678

Claim:
A method for triggering failure detection in Bidirectional Forwarding Detection, wherein a Bidirectional Forwarding Detection session is established between two sides of a bidirectional forwarding link, and the method comprises: during the establishment of the Bidirectional Forwarding Detection session, negotiating by the two sides of the Bidirectional Forwarding Detection session to determine Bidirectional Forwarding Detection session parameters including a timing length of a Bidirectional Forwarding Detection session detection timer, and setting an initial value of a preset label indicating whether a first packet from an opposite side has been received to indicate that a first Bidirectional Forwarding Detection packet sent by the opposite side of the Bidirectional Forwarding Detection session has not been received; when receiving the first Bidirectional Forwarding Detection packet from the opposite side, setting a value of the label indicating whether a first packet from the opposite side has been received to indicate that the first Bidirectional Forwarding Detection packet sent by the opposite side of the Bidirectional Forwarding Detection session has been received; A) sending, by one side of the Bidirectional Forwarding Detection session, a Bidirectional Forwarding Detection packet to the opposite side periodically according to a time length of a Bidirectional Forwarding Detection packet sending timer in the Bidirectional Forwarding Detection session parameters; B) determining, by one side of the Bidirectional Forwarding Detection session, whether the value of the label indicating whether a first packet from the opposite side has been received indicates that the first Bidirectional Forwarding Detection packet sent by the opposite side of the Bidirectional Forwarding Detection session has not been received, if the value of the label indicating whether the first packet from the opposite side has been received indicates that the first Bidirectional Forwarding Detection packet sent by the opposite side of the Bidirectional Forwarding Detection session has not been received, the procedure return to process A; otherwise, the value of the label indicating whether a first packet from the opposite side has been received indicates that the first Bidirectional Forwarding Detection packet sent by the opposite side of the Bidirectional Forwarding Detection session has been received, process C is executed; and C) triggering failure detection according to a starting Bidirectional Forwarding Detection session detection timer preset by the timing length of the Bidirectional Forwarding Detection session detection timer, and sending, by one side of the Bidirectional Forwarding Detection session, the Bidirectional Forwarding Detection packet to the opposite side periodically according to the time length of a Bidirectional Forwarding Detection packet sending timer.