CN110661705A - Hardware network switching engine and network fault processing system and method - Google Patents

Hardware network switching engine and network fault processing system and method Download PDF

Info

Publication number
CN110661705A
CN110661705A CN201910935334.0A CN201910935334A CN110661705A CN 110661705 A CN110661705 A CN 110661705A CN 201910935334 A CN201910935334 A CN 201910935334A CN 110661705 A CN110661705 A CN 110661705A
Authority
CN
China
Prior art keywords
session
state
forwarding
fault detection
message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910935334.0A
Other languages
Chinese (zh)
Other versions
CN110661705B (en
Inventor
唐峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Material Core Technology Co Ltd
Original Assignee
Beijing Material Core Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Material Core Technology Co Ltd filed Critical Beijing Material Core Technology Co Ltd
Priority to CN201910935334.0A priority Critical patent/CN110661705B/en
Publication of CN110661705A publication Critical patent/CN110661705A/en
Application granted granted Critical
Publication of CN110661705B publication Critical patent/CN110661705B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/22Alternate routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/28Routing or path finding of packets in data switching networks using route fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/70Routing based on monitoring results

Abstract

The embodiment of the invention discloses a hardware network switching engine, a network fault processing system and a method. Wherein, the hardware network switching engine includes: the system comprises a fault detection message processing module and a message forwarding module, wherein the fault detection message processing module is used for updating a forwarding path group table when detecting that the local terminal session state and/or the opposite terminal session state of a fault detection session are abnormal; the fault detection session is used for sending or receiving a fault detection message; and the message forwarding module is used for switching the failed main transmission path to the corresponding standby transmission path according to the forwarding path group table so as to realize the forwarding of the message. According to the technical scheme of the embodiment of the invention, the forwarding path group table is updated by the fault detection message processing module aiming at the session state, so that the effect of fast switching between the main transmission path and the standby transmission path is realized.

Description

Hardware network switching engine and network fault processing system and method
Technical Field
The embodiment of the invention relates to a network communication technology, in particular to a hardware network switching engine, a network fault processing system and a method.
Background
Currently, it is possible to monitor whether a network path has a fault in real time through various network fault detection mechanisms, such as: bidirectional Forwarding Detection (BFD), Operation and Maintenance Administration and Maintenance (OAM), MPLS OAM, and the like.
Taking OAM as an example, in the prior art, when an OAM hardware processing module detects that an OAM session state changes, an OAM session table needs to be updated and notifies an OAM software processing module, after the OAM software processing module communicates with a forwarding protocol and a management software module, the OAM software processing module notifies the forwarding protocol and the management software module of the update content, and the forwarding protocol and the management software module further update a message forwarding table, so that the message hardware forwarding module realizes switching between a main path and a standby path according to the message forwarding table to solve a network fault.
In the above manner, the OAM software module running in the memory of the computer needs to update the OAM session table, and the OAM software processing module communicates with the forwarding protocol and the management software module to implement the state update of the main path and the standby path and the switch of the main path and the standby path in the forwarding table corresponding to the OAM session.
The implementation process involves a plurality of software and hardware modules, the processing path is long, and a part of CPU resources need to be occupied, especially under the condition that the number of OAM sessions is large, the load of the OAM software modules running on the CPU is large, which results in long switching time of the main path and the standby path, and the effect of quickly recovering the network fault is difficult to achieve.
Disclosure of Invention
The embodiment of the invention provides a hardware network switching engine, a network fault processing system and a method thereof, which are used for realizing the switching of a main transmission path and a standby transmission path without participation of a software module through the interaction of a fault detection message processing module and a message forwarding module.
In a first aspect, an embodiment of the present invention provides a hardware network switching engine, where the hardware network switching engine includes: fault detection message processing module and message forwarding module, wherein:
the failure detection message processing module is used for updating the forwarding path group table when detecting that the local terminal session state and/or the opposite terminal session state of the failure detection session are abnormal; the fault detection session is used for sending or receiving a fault detection message;
and the message forwarding module is used for switching the failed main transmission path to the corresponding standby transmission path according to the forwarding path group table so as to realize the forwarding of the message.
In a second aspect, an embodiment of the present invention further provides a network fault handling system, where the system includes: a controller and a hardware network switching engine as provided by any of the embodiments of the present invention;
a fault detection protocol processing assembly and a forwarding processing assembly are arranged in the controller; the fault detection protocol processing assembly is connected with the fault detection message processing module, and the forwarding processing assembly is connected with the message forwarding module;
the fault detection message processing module is used for updating a fault detection session table when detecting that at least one fault detection session is abnormal or abnormally recovered, notifying an update result to the fault detection protocol processing component, and writing the detected local end session state of the fault detection session into a fault detection message to be sent;
the fault detection protocol processing component is used for managing a fault detection message processing module and notifying the update result to the forwarding processing component;
the forwarding processing component is configured to update the forwarding path group table according to the update result;
and the message forwarding module is used for determining a transmission path of the fault detection message according to the forwarding path group table and forwarding the fault detection message to a corresponding message output interface according to the forwarding information table.
In a third aspect, an embodiment of the present invention further provides a network fault processing method, where the method includes:
detecting the local terminal session state and/or the opposite terminal session state of at least one fault detection session;
when detecting that the local terminal session state of the fault detection session and/or the opposite terminal session state are abnormal, updating a forwarding path group table; the fault detection session is used for sending or receiving a fault detection message;
the updated forwarding path group table is used to instruct the message forwarding module to switch the failed main transmission path to the corresponding standby transmission path, so as to implement forwarding of the message.
The technical scheme of the embodiment of the invention is that a hardware network switching engine comprises: the fault detection message processing module detects whether the local terminal session state and/or the opposite terminal session state in the fault detection session are abnormal or not, when the abnormal state exists, the forwarding path group table is updated, and finally the main transmission path with the fault is switched to the corresponding standby transmission path through the message forwarding module according to the updated forwarding path group table, so that the interaction of the fault detection message processing module and the message forwarding module which are only contained in the hardware network switching engine is realized, the main/standby transmission path switching which is participated by the software module is not needed, and the recovery speed of the network fault is improved.
Drawings
Fig. 1 is a schematic structural diagram of a hardware network switching engine in a first embodiment of the present invention;
fig. 2 is a schematic structural diagram of a network fault handling system according to a second embodiment of the present invention;
fig. 3 is a flowchart of a network failure processing method in the third embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a schematic structural diagram of a hardware network switching engine in an embodiment of the present invention, where the technical solution of this embodiment is suitable for a situation where a network fails and a primary/standby transmission path is switched through the hardware network switching engine, and the hardware network switching engine includes a failure detection message processing module 21 and a message forwarding module 22.
A failure detection message processing module 21, configured to update the forwarding path group table 3 when detecting that the local session state and/or the peer session state of the failure detection session are/is abnormal; the failure detection session is used for sending or receiving a failure detection message.
It should be noted that the fault detection packet processing module 21 includes a fault detection session table 211 for recording states of each fault detection session, and the fault detection packet processing module 21 updates the home terminal session state and/or the peer terminal session state in the fault detection session table 211 in real time according to the detected home terminal session state and/or peer terminal session state.
Specifically, the failure detection session table 211 includes, as shown in table 1, a failure detection session index, a scan timer ID, a scan count value, a home session state, a home failover enable flag, an opposite session state, and a forwarding path group index.
TABLE 1
Figure BDA0002221461730000051
The failure detection message processing module 21 obtains a home terminal session state by performing session scanning, and obtains an opposite terminal session state by analyzing a received failure detection message sent by an opposite terminal, further updates the home terminal session state and/or the opposite terminal session state in the failure detection session table 211 according to the detected home terminal session state and/or opposite terminal session state, determines a forwarding path group index corresponding to a failure detection session in which a failure is currently detected according to the failure detection session table 211, finally queries the forwarding path group table 3 according to the forwarding path group index, and updates a primary transmission path state therein. Illustratively, when detecting that the session state of the peer end is a failure state, the session state of the peer end in the failure detection session table 211 is updated to the failure state, and further, the forwarding path group table 3 is queried according to the forwarding path group index corresponding to the current failure detection session, and the state of the active transmission path therein is set to the failure state; when detecting that the session state of the local terminal is a failure state, only under the condition that the local terminal failure switching enable flag bit in the failure detection session table 211 is valid, the forwarding path group table 3 may be directly queried according to the forwarding path group index corresponding to the current failure detection session, and the state of the active transmission path therein is set to be a failure state without further detecting the session state of the opposite terminal.
The forwarding path group table 3 is used to store the state of the active transmission path used by the failure detection session, and includes the state of the active transmission path, the forwarding table index of the active transmission path, and the forwarding table index of the standby transmission path, which are specifically shown in table 2.
TABLE 2
Figure BDA0002221461730000061
The message forwarding module 22 is configured to switch the failed active transmission path to the corresponding standby transmission path according to the forwarding path group table 3, so as to implement forwarding of the message.
In this embodiment, when the failure detection packet processing module 21 detects that the session state of the local terminal and/or the session state of the opposite terminal are abnormal and updates the forwarding path group table 3, the packet forwarding module 22 forwards the packet according to the state of the active transmission path and the state of the standby transmission path in the updated forwarding path group table. Illustratively, after detecting that the session state of the opposite end is abnormal, the failure detection message processing module 21 sets the state of the main transmission path in the forwarding path group table 3 to be a failure state, and the message forwarding module 22 switches the main transmission path with the failure to be a standby transmission path according to the updated forwarding path group table 3, and forwards the message by using the standby transmission path.
Optionally, the fault detection packet processing module specifically includes: a failure detection session processing unit 212, and a failure detection message receiving unit 213;
the failure detection session processing unit 212 is configured to, when it is detected that the home end session state of the failure detection session is a failure state, set the state of the active transmission path corresponding to the home end session state as a failure state in the forwarding path group table 3.
In this optional embodiment, the failure detection session processing unit 212 sets a plurality of timers with set periods according to the detection period of the network failure detection, and scans the failure detection session to determine the local session state of the scanning session.
Specifically, each timer has a specific timer ID, a session matching the timer ID in the failure detection session table is searched for by the timer ID, and scanning is performed for a set period, the scan count value in the failure detection session table 211 is accumulated by 1 every time scanning is performed, when the scan count value exceeds a set threshold value, for example, the scan count value exceeds 6, the session state of the home terminal of the current scan session is set as a failure, and the forwarding path group table 3 is searched for by the forwarding path group index corresponding to the current scan session in the failure detection session table 211, and the state of the main path in the forwarding path group table 3 is set as a failure state.
The failure detection packet receiving and processing unit 213 is configured to, when detecting that the opposite-end session state of the failure detection session is a failure state, set the state of the active transmission path corresponding to the opposite-end session state as a failure state in the forwarding path group table 3.
In this optional embodiment, the failure detection packet receiving and processing unit 213 is configured to receive a failure detection packet sent by the opposite end, and analyze the received failure detection packet to obtain a session state of the opposite end.
Specifically, firstly, the received fault detection message is analyzed to obtain a fault detection session index corresponding to the current message, since the fault detection message is successfully received, it can be determined that the home terminal session state of the current session is a normal state, the scan count value corresponding to the current fault detection session index is set to zero according to the fault detection session index, the home terminal session state is set to a normal state, then the opposite terminal session state flag information (used for indicating the opposite terminal session state) contained in the fault detection message is further obtained by analyzing the fault detection message sent by the opposite terminal, if the opposite terminal session state is a fault state, the opposite terminal session state in the fault detection session table 211 is set to be a fault state, and finally, the forwarding path group table 3 is queried according to the forwarding path group index corresponding to the current fault detection session, and updating the state of the main transmission path from a normal state to a fault state.
It can be understood that, if the session state of the opposite end obtained by analyzing the received fault detection packet is in a normal state, the session state of the far end in the fault detection session table 211 is set to be in a normal state, and at this time, the state of the main path is in a normal state, and the state of the main path in the forwarding path group table 3 does not need to be updated.
In addition, it should be noted that when a failure detection session has an overlapping portion in a bidirectional forwarding path in a network, if it is detected that the session state of the home terminal has a failure, the session state of the opposite terminal often also has a failure, and at this time, as long as it is detected that the session state of the home terminal is a failure state, the forwarding path group table 3 is directly queried according to the forwarding path group index corresponding to the current failure detection session in the failure detection session table 211, and the state of the active transmission path therein is updated from a normal state to a failure state, and it is not necessary to further determine whether the session state of the opposite terminal is a failure state.
Optionally, the fault detection packet processing module 21 further includes:
the failure detection message sending unit 214 is configured to, when sending a failure detection message, obtain a home terminal session state by reading the failure detection session table 211, so as to set home terminal session state flag information in the failure detection message to be sent according to the home terminal session state.
The session state flag information of the local terminal is contained in the fault detection message and is used for identifying the session state of the local terminal, and when the opposite terminal receives the fault detection message, the session state flag information of the local terminal can be obtained through analyzing the message so as to determine the session state of the local terminal.
In this optional embodiment, the fault detection message sending unit 214 is configured to set local session state flag information in a fault detection message to be sent when the fault detection message is sent. Specifically, when sending the message, the failure detection message sending unit 214 reads the home session state in the failure detection session table 211, and sets home session state flag information in the failure detection message according to the home session state.
Optionally, the packet forwarding module 22 is specifically configured to:
switching the failed main transmission path to a corresponding standby transmission path according to the forwarding path group table 3;
inquiring a forwarding information table 4 according to the index of the standby transmission path forwarding table to acquire forwarding information of the message, wherein the forwarding information comprises a message output interface and message encapsulation information;
and forwarding the message according to the forwarding information.
Specifically, the forwarding information table 4 mainly includes a message output interface and message encapsulation editing information, which is specifically shown in table 3.
TABLE 3
Figure BDA0002221461730000091
In this optional embodiment, when the failure detection packet processing module 21 detects that the local session state and/or the opposite session state of the failure detection session are/is abnormal, the forwarding path group table 3 is updated, for example, the active path state is set to the failure state, the packet forwarding module 22 performs path switching according to the active path state in the forwarding path group table 3, when the active path state is the failure state, the active path with the failure is switched to the corresponding standby transmission path, and further, if the active path is switched to the standby transmission path, the standby transmission path forwarding table index is used to query the forwarding information table 4 to obtain packet forwarding information, so as to forward the packet according to the forwarding information.
The technical scheme of the embodiment of the invention is that a hardware network switching engine comprises: the fault detection message processing module detects whether the local terminal session state and/or the opposite terminal session state in the fault detection session are abnormal or not, when the abnormal state exists, the forwarding path group table is updated, and finally the main transmission path with the fault is switched to the corresponding standby transmission path through the message forwarding module according to the updated forwarding path group table, so that the interaction of the fault detection message processing module and the message forwarding module only contained in the hardware network switching engine is realized, the main/standby transmission path switching with the participation of a software module is not needed, and the network fault processing speed is improved.
Example two
Fig. 2 is a schematic structural diagram of a network fault handling system according to a second embodiment of the present invention, and the following describes, with reference to fig. 2, a network fault handling system according to a second embodiment of the present invention:
the network fault handling system includes: a controller 1 and a hardware network switching engine 2 provided by any embodiment of the present invention;
a fault detection protocol processing component 11 and a forwarding processing component 12 are arranged in the controller 1; the fault detection protocol processing component 11 is connected with a fault detection message processing module 21, and the forwarding processing component 12 is connected with a message forwarding module 22;
the failure detection message processing module 21 is configured to, when it is detected that at least one failure detection session is abnormal or abnormally recovered, update the failure detection session table 211, notify the failure detection protocol processing component 11 of an update result, and write the detected local session state of the failure detection session into a failure detection message to be sent.
In this embodiment, the failure detection message processing module 21 detects the home terminal session state and the peer terminal session state of the failure detection session by scanning the failure detection session at regular time and analyzing the failure detection message sent by the peer terminal, and updates the failure detection session table 211 according to the detected home terminal session state and peer terminal session state, and meanwhile, timely notifies the update result to the failure detection protocol processing component 11, and in addition, the failure detection message processing module 21 also writes the home terminal session state into the failure detection message to be sent, so that the peer terminal can obtain the home terminal session state by analyzing the message.
Illustratively, if the current home terminal session state is restored from the fault state to the normal state, the home terminal session state in the fault detection session table 211 is restored to the normal state, and meanwhile, the updated home terminal session state is sent to the fault detection protocol processing component 11 included in the controller 1 in an interrupt manner, so that the fault detection protocol processing component 11 can obtain the state of the fault detection session in time. The failure detection protocol processing component 11 is configured to manage the failure detection packet processing module 21, and notify the forwarding processing component 12 of the update result.
In this embodiment, the fault detection protocol processing component 11 is a software component built in the controller 1, and is configured to manage the fault detection packet processing module 21, receive the current session state and the state of the forwarding path sent by the fault detection packet processing module 21 in real time, and send the received current session state to the forwarding processing component 12.
The forwarding processing component 12 is configured to update the forwarding path group table 3 according to the update result.
In this embodiment, after receiving the current session state sent by the failure detection protocol processing component 11, the forwarding processing component 12 may update the forwarding path group table 3 according to the session state. For example, when the forwarding processing component 12 receives that the session state of the home terminal of the current session is recovered from the failure state to the normal state, and the session state of the opposite terminal is also the normal state, the forwarding path group table 3 may be updated, and the state of the active transmission path is set to the normal state.
The message forwarding module 22 is configured to determine a transmission path of the fault detection message according to the forwarding path group table 3, and forward the fault detection message to a corresponding message output interface according to the forwarding information table 4.
In this embodiment, the message forwarding module 22 is configured to determine a transmission path of the failure detection message according to a state (e.g., a normal state) of the active transmission path in the forwarding path group table 3, and forward the failure detection message according to a message egress interface and message encapsulation editing information in the forwarding information table 4.
It can be understood that, when it is detected that at least one fault detection session is recovered abnormally, the forwarding path group table 3 may also be updated directly through the fault detection packet processing module 21, and the packet forwarding module 22 is used to switch from the standby transmission path to the active transmission path without processing by a software component in the controller 1.
The technical scheme of the embodiment of the invention, a network fault processing system, comprises: the controller and the hardware network switching engine provided by any embodiment of the invention are internally provided with a fault detection protocol processing component and a forwarding processing component, when the fault detection message processing module detects that at least one fault detection session is abnormal or abnormally recovered, the fault detection session table is updated, and informs the session state to the failure detection protocol processing component, the failure detection protocol processing component informs the session state to the forwarding processing component to update the forwarding path group table, finally, the message forwarding module, determining the transmission path of the fault detection message according to the forwarding path group table, and forwarding the fault detection message to the corresponding output interface according to the forwarding information table, so that after the fault detection session state changes, the switching of the main/standby transmission path is performed by the interaction of the controller and the hardware network switching engine.
EXAMPLE III
Fig. 3 is a flowchart of a network failure processing method in the third embodiment of the present invention, where the technical solution of this embodiment is suitable for a situation where a network fails and a hardware network switching engine is used to implement switching between a primary transmission path and a standby transmission path, and the method may be executed by a network failure processing system, and specifically includes the following steps:
step 310, detecting a local terminal session state and/or an opposite terminal session state of at least one fault detection session.
The fault detection session is a session established for fault detection, and network fault detection is performed by transmitting a fault detection message.
In this embodiment, the failure detection packet processing module detects at least one failure detection session, including detecting a session state of a home terminal and detecting a session state of an opposite terminal. Illustratively, the session state of the local terminal can be determined by scanning the fault detection session for a set period; and analyzing the received message, reading the opposite terminal session state mark information contained in the message, and acquiring the opposite terminal session state.
Step 320, when detecting that the local terminal session state of the fault detection session and/or the opposite terminal session state are abnormal, updating the forwarding path group table; the fault detection session is used for sending or receiving a fault detection message;
the updated forwarding path group table is used to instruct the message forwarding module to switch the failed main transmission path to the corresponding standby transmission path, so as to implement forwarding of the message.
The forwarding path group table comprises a main transmission path state, a main transmission path forwarding table index and a standby transmission path forwarding table index, wherein the main transmission path state is used for indicating a message transmission path used by the message forwarding module for forwarding a message, and the main transmission path forwarding table index and the standby transmission path forwarding table index are respectively used for querying a forwarding information table when the main transmission path is in a normal state and the main transmission path is in a fault state so as to acquire forwarding information. Illustratively, the forwarding information includes message egress interface and message encapsulation information.
In this embodiment, when detecting that the local session state and/or the peer session state of the failure detection session are/is abnormal, the failure detection session table needs to be updated, the forwarding path group table is updated according to the session state included in the failure detection session table, and finally, the packet forwarding module forwards a packet according to the state of the active transmission path included in the updated forwarding path group table.
Optionally, when detecting that the local session state of the failure detection session and/or the opposite session state are abnormal, updating the forwarding path group table includes:
when detecting that the local end session state of the fault detection session is a fault state, setting the state of a main transmission path corresponding to the local end session state as the fault state in the forwarding path group table;
and when detecting that the opposite-end session state of the fault detection session is a fault state, setting the state of the main transmission path corresponding to the opposite-end session state as the fault state in the forwarding path group table.
In this optional embodiment, when it is detected that the session state of the local end of the fault detection session is in the fault state, and/or when the session state of the opposite end is in the fault state, the session state in the fault detection session table is updated by the fault detection message processing module, and the forwarding path group table is updated according to the updated fault detection session table. Illustratively, when detecting that the local end session state of the failure detection session is a failure state, the local end session state in the failure detection session table is set to be the failure state, and further, according to the session state in the failure detection session table, the state of the primary transmission path included in the forwarding path group table is updated from a normal state to the failure state.
Optionally, when it is detected that the home terminal session state of the failure detection session is a failure state, setting, in the forwarding path group table, the state of the active transmission path corresponding to the home terminal session state as a failure state, includes:
setting a session scanning timer, and scanning the fault detection session for a set period to obtain a scanning count value;
when the scanning count value exceeds a set number threshold value, determining that the local terminal session state of the fault detection session is a fault state, and updating the local terminal session state corresponding to the fault detection session in a fault detection session table;
and searching the forwarding path table according to the forwarding path group index corresponding to the fault detection session in the fault detection session table so as to set the state of the main transmission path in the forwarding path group table as a fault state.
In this alternative embodiment, a specific manner of detecting a session state of a home terminal and a manner of updating a forwarding path group table according to the session state of the home terminal are provided, in which a plurality of timers with a set period are first set, each timer corresponds to a failure detection session, the timers scan the failure detection session according to the set period, each scanning is performed, a scan count value is incremented by 1, when the scan count value exceeds a set number threshold value, indicating that the failure detection session is overtime, the session state of the home terminal of the failure detection session is determined to be a failure state, at this time, the session state of the home terminal corresponding to the current failure detection session in the failure detection session table needs to be updated, further, a forwarding path group index corresponding to the current failure detection session is determined according to the failure detection session table, and a tactical path group table is queried according to the forwarding path group index, and setting the state of the main transmission path in the forwarding path group table as a fault state, so that the message forwarding module can switch the main transmission path with the fault to a corresponding standby transmission path according to the path state in the forwarding path group table.
Optionally, when it is detected that the opposite-end session state of the failure detection session is a failure state, setting, in the forwarding path group table, the state of the active transmission path corresponding to the opposite-end session state as a failure state, including:
receiving and analyzing a fault detection message sent by an opposite terminal to acquire opposite terminal session state flag information contained in the fault detection message;
when the opposite-end session state flag information is a fault, determining that the opposite-end session state of the current fault detection session is a fault state, and updating the opposite-end session state corresponding to the current fault detection session in the fault detection session table;
and searching the forwarding path table according to the forwarding path group index corresponding to the current fault detection session in the fault detection session table so as to set the state of the main transmission path in the forwarding path group table to be a fault state.
In this optional embodiment, a specific manner of detecting an opposite-end session state and a manner of updating a forwarding path group table according to the opposite-end session state are provided, where a failure detection packet sent by an opposite end is first analyzed, a failure detection session index corresponding to the failure detection packet is obtained, the failure detection session table is queried according to the failure detection session index, further, opposite-end session state flag information included in the failure detection packet is further obtained by analyzing the received failure detection packet, if the opposite-end session state is a failure state, a far-end session state in the failure detection session table is set to be the failure state, and finally, the forwarding path group table is queried according to a forwarding path group index corresponding to a current failure detection session, and a main transmission path state therein is updated from a normal state to the failure state.
Optionally, the network fault processing method further includes:
when detecting that at least one fault detection session is abnormally recovered, updating a fault detection session table and notifying an update result to a fault detection protocol processing assembly;
the updating result is used for notifying a forwarding processing component through the fault detection protocol processing component so that the forwarding processing component updates the forwarding path group table according to the updating result;
the updated forwarding path group table is used to instruct the message forwarding module to switch the currently used at least one standby transmission path back to the corresponding main transmission path.
In this optional embodiment, a manner is provided for switching the standby transmission path back to the active transmission path when the failure detection session is recovered abnormally, first, after it is detected that the failure detection session is recovered from the failure state to the normal state, the home terminal session state and/or the peer terminal session state in the failure detection session table are recovered to the normal state, and the updated session state is sent to the failure detection protocol processing component built in the controller, and the failure detection protocol processing component communicates with the forwarding processing component, and sends the updated session state to the forwarding processing component, and the forwarding processing component updates the active transmission path state in the forwarding path group table according to the updated session state, so that the packet forwarding module forwards the packet according to the updated forwarding path group table.
It can be understood that, when the failure detection session is recovered abnormally, switching from the standby transmission path to the active transmission path may also be implemented directly through the hardware network switching engine, but because the path recovery does not have a time limit, the restoration of the active transmission path is generally implemented by using the technical scheme in this embodiment that the forwarding path group table is updated by a software component included in the controller.
According to the technical scheme of the embodiment of the invention, the home terminal state and/or the opposite terminal session state of at least one fault detection session are detected through the fault detection message processing module, when the home terminal session state and/or the opposite terminal session state of the fault detection session are detected to be abnormal, the forwarding path group table is updated, and finally, the main transmission path with the fault is switched to the corresponding standby transmission path through the message forwarding module according to the updated forwarding path group table, so that the interaction of the fault detection message processing module and the message forwarding module contained in the hardware network switching engine is realized, the main/standby transmission path switching with the participation of a software module is not needed, and the network fault processing speed is increased.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A hardware network switching engine, comprising: fault detection message processing module and message forwarding module, wherein:
the failure detection message processing module is used for updating the forwarding path group table when detecting that the local terminal session state and/or the opposite terminal session state of the failure detection session are abnormal; the fault detection session is used for sending or receiving a fault detection message;
and the message forwarding module is used for switching the failed main transmission path to the corresponding standby transmission path according to the forwarding path group table so as to realize the forwarding of the message.
2. The hardware network switching engine of claim 1, wherein the failure detection packet processing module specifically comprises: a fault detection session processing unit and a fault detection message receiving unit;
the failure detection session processing unit is configured to, when it is detected that a home terminal session state of a failure detection session is a failure state, set a state of a primary transmission path corresponding to the home terminal session state as a failure state in the forwarding path group table;
the failure detection message receiving and processing unit is configured to set, in the forwarding path group table, a state of the active transmission path corresponding to the opposite-end session state as a failure state when it is detected that the opposite-end session state of the failure detection session is the failure state.
3. The hardware network switching engine of claim 1 wherein the failure detection message processing module further comprises:
and the fault detection message sending unit is used for reading the fault detection session table to obtain the session state of the local terminal when the fault detection message is sent, so as to set the session state flag information of the local terminal in the fault detection message to be sent according to the session state of the local terminal.
4. The hardware network switching engine of claim 1, wherein the packet forwarding module is specifically configured to:
switching the main transmission path with the fault to a corresponding standby transmission path according to the forwarding path group table;
inquiring a forwarding information table according to the index of the standby transmission path forwarding table to acquire forwarding information of the message, wherein the forwarding information comprises a message output interface and message encapsulation information;
and forwarding the message according to the forwarding information.
5. A network fault handling system, comprising: a controller and the hardware network switching engine of claims 1-4;
a fault detection protocol processing assembly and a forwarding processing assembly are arranged in the controller; the fault detection protocol processing assembly is connected with the fault detection message processing module, and the forwarding processing assembly is connected with the message forwarding module;
the fault detection message processing module is used for updating a fault detection session table when detecting that at least one fault detection session is abnormal or abnormally recovered, notifying an update result to the fault detection protocol processing component, and writing the detected local end session state of the fault detection session into a fault detection message to be sent;
the fault detection protocol processing component is used for managing a fault detection message processing module and notifying the update result to the forwarding processing component;
the forwarding processing component is configured to update the forwarding path group table according to the update result;
and the message forwarding module is used for determining a transmission path of the fault detection message according to the forwarding path group table and forwarding the fault detection message to a corresponding message output interface according to the forwarding information table.
6. A network fault handling method is characterized by comprising the following steps:
detecting the local terminal session state and/or the opposite terminal session state of at least one fault detection session;
when detecting that the local terminal session state of the fault detection session and/or the opposite terminal session state are abnormal, updating a forwarding path group table; the fault detection session is used for transmitting a fault detection message;
the updated forwarding path group table is used to instruct the message forwarding module to switch the failed main transmission path to the corresponding standby transmission path, so as to implement forwarding of the message.
7. The method according to claim 6, wherein when detecting that the home session status of the failure detection session and/or the peer session status is abnormal, updating the forwarding path group table comprises:
when detecting that the local end session state of the fault detection session is a fault state, setting the state of a main transmission path corresponding to the local end session state as the fault state in the forwarding path group table;
and when detecting that the opposite-end session state of the fault detection session is a fault state, setting the state of the main transmission path corresponding to the opposite-end session state as the fault state in the forwarding path group table.
8. The method according to claim 7, wherein when detecting that a home end session state of the failure detection session is a failure state, setting a state of the active transmission path corresponding to the home end session state to be a failure state in the forwarding path group table, includes:
setting a session scanning timer, and scanning the fault detection session for a set period to obtain a scanning count value;
when the scanning count value exceeds a set number threshold value, determining that the local terminal session state of the fault detection session is a fault state, and updating the local terminal session state corresponding to the fault detection session in a fault detection session table;
and searching the forwarding path table according to the forwarding path group index corresponding to the fault detection session in the fault detection session table so as to set the state of the main transmission path in the forwarding path group table as a fault state.
9. The method according to claim 7, wherein when it is detected that the opposite end session state of the failure detection session is a failure state, setting the state of the active transmission path corresponding to the opposite end session state to be a failure state in the forwarding path group table, includes:
receiving and analyzing a fault detection message sent by an opposite terminal to acquire opposite terminal session state flag information contained in the fault detection message;
when the opposite-end session state flag information is a fault, determining that the opposite-end session state of the current fault detection session is a fault state, and updating the opposite-end session state corresponding to the current fault detection session in the fault detection session table;
and searching the forwarding path table according to the forwarding path group index corresponding to the current fault detection session in the fault detection session table so as to set the state of the main transmission path in the forwarding path group table to be a fault state.
10. The method of claim 6, further comprising:
when detecting that at least one fault detection session is abnormally recovered, updating a fault detection session table and notifying an update result to a fault detection protocol processing assembly;
the updating result is used for notifying a forwarding processing component through the fault detection protocol processing component so that the forwarding processing component updates the forwarding path group table according to the updating result;
the updated forwarding path group table is used to instruct the message forwarding module to switch the currently used at least one standby transmission path back to the corresponding main transmission path.
CN201910935334.0A 2019-09-29 2019-09-29 Hardware network switching engine and network fault processing system and method Active CN110661705B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910935334.0A CN110661705B (en) 2019-09-29 2019-09-29 Hardware network switching engine and network fault processing system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910935334.0A CN110661705B (en) 2019-09-29 2019-09-29 Hardware network switching engine and network fault processing system and method

Publications (2)

Publication Number Publication Date
CN110661705A true CN110661705A (en) 2020-01-07
CN110661705B CN110661705B (en) 2022-06-28

Family

ID=69038413

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910935334.0A Active CN110661705B (en) 2019-09-29 2019-09-29 Hardware network switching engine and network fault processing system and method

Country Status (1)

Country Link
CN (1) CN110661705B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111683007A (en) * 2020-05-20 2020-09-18 新华三信息安全技术有限公司 Method and system for switching monitoring traffic forwarding path
CN114036080A (en) * 2021-11-09 2022-02-11 许昌许继软件技术有限公司 Method and device for upgrading program by using communication serial port of display terminal
CN115225397A (en) * 2022-07-22 2022-10-21 山石网科通信技术股份有限公司 Control method, control device, firewall and computer readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101136789A (en) * 2006-08-30 2008-03-05 华为技术有限公司 Method and device for implementing terminal-to-terminal link detection, routing strategy rearrangement
CN101626317A (en) * 2008-07-07 2010-01-13 华为技术有限公司 Method, system and device for link failure recovery
US20100177632A1 (en) * 2009-01-15 2010-07-15 Teliasonera Ab System and a method for routing data traffic
CN101800676A (en) * 2010-02-20 2010-08-11 中兴通讯股份有限公司 Link detection method, device and system
CN101917290A (en) * 2010-08-12 2010-12-15 北京星网锐捷网络技术有限公司 method, device and network equipment for processing label transmitting path fault as well as network equipment
CN102143005A (en) * 2011-04-14 2011-08-03 中兴通讯股份有限公司 Method and device for determining fault elimination based on operation and maintenance (OAM)
US9264301B1 (en) * 2012-09-20 2016-02-16 Wiretap Ventures, LLC High availability for software defined networks
CN109981450A (en) * 2017-12-28 2019-07-05 中国电信股份有限公司 Path is connected to maintaining method, device and system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101136789A (en) * 2006-08-30 2008-03-05 华为技术有限公司 Method and device for implementing terminal-to-terminal link detection, routing strategy rearrangement
CN101626317A (en) * 2008-07-07 2010-01-13 华为技术有限公司 Method, system and device for link failure recovery
US20100177632A1 (en) * 2009-01-15 2010-07-15 Teliasonera Ab System and a method for routing data traffic
CN101800676A (en) * 2010-02-20 2010-08-11 中兴通讯股份有限公司 Link detection method, device and system
CN101917290A (en) * 2010-08-12 2010-12-15 北京星网锐捷网络技术有限公司 method, device and network equipment for processing label transmitting path fault as well as network equipment
CN102143005A (en) * 2011-04-14 2011-08-03 中兴通讯股份有限公司 Method and device for determining fault elimination based on operation and maintenance (OAM)
US9264301B1 (en) * 2012-09-20 2016-02-16 Wiretap Ventures, LLC High availability for software defined networks
CN109981450A (en) * 2017-12-28 2019-07-05 中国电信股份有限公司 Path is connected to maintaining method, device and system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111683007A (en) * 2020-05-20 2020-09-18 新华三信息安全技术有限公司 Method and system for switching monitoring traffic forwarding path
CN114036080A (en) * 2021-11-09 2022-02-11 许昌许继软件技术有限公司 Method and device for upgrading program by using communication serial port of display terminal
CN115225397A (en) * 2022-07-22 2022-10-21 山石网科通信技术股份有限公司 Control method, control device, firewall and computer readable storage medium
CN115225397B (en) * 2022-07-22 2024-05-03 山石网科通信技术股份有限公司 Control method, control device, firewall and computer readable storage medium

Also Published As

Publication number Publication date
CN110661705B (en) 2022-06-28

Similar Documents

Publication Publication Date Title
CN110661705B (en) Hardware network switching engine and network fault processing system and method
US7518983B2 (en) Proxy response apparatus
US7898943B2 (en) Method for switching route and network device thereof
US20100182933A1 (en) Method And Switching Device For Stack Port Configuration
EP2536066A1 (en) Link detecting method, apparatus and system
CN102045332B (en) Method for processing control message in intelligent resilient framework and line card boards
EP2698948A1 (en) Method and device for determining failure elimination based on oam protocol
CN111371625A (en) Method for realizing dual-computer hot standby
CN112039710A (en) Service fault processing method, terminal device and readable storage medium
CN112543143B (en) Method, chip, equipment and storage medium for multicast service fast protection switching
US9246796B2 (en) Transmitting and forwarding data
WO2022057514A1 (en) Link fault detection method and apparatus and computer-readable storage medium
CN112383414B (en) Dual-machine hot backup quick switching method and device
CN102571383B (en) Access control method and system
CN101848165B (en) The method recovered after controlling interrupted communication link and interface board
CN110661836B (en) Message routing method, device and system, and storage medium
US11812487B2 (en) Method, device, extender, and computer medium for automatically restoring connection
CN109361781B (en) Message forwarding method, device, server, system and storage medium
CN112769653B (en) Network detection and switching method, system and medium based on network port binding
CN109818870B (en) Multicast routing method, device, service board and machine readable storage medium
CN104158735A (en) Network data package distribution method and device
US8327023B2 (en) Querier election method, router, and network system
WO2021046565A2 (en) Pce controlled network reliability
CN115102897B (en) Stacking splitting protection method based on link aggregation
CN105763412A (en) Communication method in virtual switching cluster and apparatus thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CB03 Change of inventor or designer information
CB03 Change of inventor or designer information

Inventor after: Tang Feng

Inventor before: Tang Feng