A method and system for filtering BFD protocol packets

A technology of protocol message and filtering method, which is applied in the BFD protocol message filtering method and system field, can solve the problems of FPGA configuration redundancy, long time, configuration residue, etc., and achieve the effect of avoiding configuration redundancy

CN109039822AActive Publication Date: 2018-12-18FENGHUO COMM SCI & TECH CO LTD
10 Cites 2 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Publication Date
2018-12-18

Smart Images

  • Figure 1
    Figure 1
Patent Text Reader

Abstract

A method and system for filtering BFD protocol packets are disclosed, relating to the technical field of communication. The method comprises the following steps of: comparing the key value and contentof the BFD configuration sent to the local control layer with the BFD configuration saved locally; marking the BFD configuration sent to the control layer with the mark; saving the marking BFD configuration in the local binary tree; When the timer interrupts the response, traversing the binary tree which locally stores the BFD configuration, and based on the marking result of the BFD configuration, sending the BFD configuration stored in the binary tree and needing addition or deletion operation to the application layer, and then performing addition or deletion operation of the BFD configuration in the application layer according to the marking result of the BFD configuration. The invention realizes the filtering of the BFD message on the forwarding layer, avoids the repeated reading andwriting of the FPGA by the BFD addition or deletion operation of the same descriptor, and avoids the configuration redundancy on the FPGA.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention relates to the technical field of communication, in particular to a BFD protocol message filtering method and system. Background technique

[0002] In order to reduce the impact of equipment failures on services and improve network reliability, when network failures occur, network equipment needs to be able to detect communication failures with its adjacent equipment as soon as possible, so that measures can be taken in time to ensure the continuation of services. In the existing network, for the detection of network faults, some links usually use hardware detection signals, such as using SDH (Synchronous Digital Hierarchy, Synchronous Digital Hierarchy) alarms to detect link faults, but not all All media can provide hardware detection. Some applications rely on the upper-layer protocol’s own Hello message mechanism for fault detection, but the detection time of the upper-layer protocol is more than 1 second, which is too long for some ap...

Examples

Embodiment 1

[0034] see figure 1 As shown, Embodiment 1 of the present invention provides a method for filtering BFD protocol packets. The filtering of BFD packets is implemented at the forwarding layer by means of marking, so that the configuration of BFD packets on subsequent FPGAs is redundant. The BFD protocol message filtering method of the embodiment of the present invention specifically includes the following steps:

[0035] S1: Add a tag to the local BFD configuration structure, compare the key value and content between the BFD configuration sent by the control layer to the local BFD configuration and the BFD configuration saved locally, and use the tag to compare the BFD delivered by the control layer according to the comparison result configuration for marking. The local in this embodiment of the present invention refers to the forwarding layer. The tags are update, add, and same, where the same tag means no processing, update means delete operation first, and then add operatio...

Embodiment 2

[0040] On the basis of Embodiment 1, the BFD configuration issued by the control layer is marked with a mark, and the specific process is as follows:

[0041] If the BFD configuration delivered by the control layer has the same key value and content as the BFD configuration saved locally, mark the BFD configuration delivered by the control layer as same;

[0042] If the BFD configuration delivered by the control layer has the same key value as the locally saved BFD configuration but the content is different, mark the BFD configuration delivered by the control layer as update;

[0043] If the key value of the BFD configuration delivered by the control layer is different from that of the BFD configuration saved locally, mark the BFD configuration delivered by the control layer as add.

[0044] Furthermore, in the initial state, the default mark of the BFD configuration sent by the control layer to the local is delete, and the mark delete means to be deleted. When all the data st...

Embodiment 3

[0046] On the basis of Embodiment 2, after the data stored in the binary tree is sent to the application layer, the addition and deletion of BFD configuration in the application layer is performed, specifically:

[0047] If the BFD configuration in the binary tree is marked as update, delete the BFD configuration first at the application layer, and then add the BFD configuration;

[0048] If the mark of BFD configuration in the binary tree is add, the operation of adding BFD configuration is performed at the application layer.

[0049] Further, when the mark of the BFD configuration in the binary tree is delete, the BFD configuration delivered to the application layer is deleted. Of course, packet statistics can also be added to record how many BFD packets are sent by the control layer, and how many BFD packets are sent to the application layer after being filtered by the forwarding layer.