CN110661705B - 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 PDFInfo
- Publication number
- CN110661705B CN110661705B CN201910935334.0A CN201910935334A CN110661705B CN 110661705 B CN110661705 B CN 110661705B CN 201910935334 A CN201910935334 A CN 201910935334A CN 110661705 B CN110661705 B CN 110661705B
- 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.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/22—Alternate routing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/02—Topology update or discovery
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/28—Routing or path finding of packets in data switching networks using route fault recovery
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/70—Routing based on monitoring results
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
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
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 processing 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 method for processing a network fault, where the method includes:
detecting the session state of the local terminal and/or the session state of the opposite terminal of at least one fault detection session;
when detecting the local terminal session state of the fault detection session and/or the opposite terminal session state is 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 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 according to 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 message processing module 21 includes a fault detection session table 211 for recording states of fault detection sessions, and the fault detection message processing module 21 updates a home session state and/or an opposite session state in the fault detection session table 211 in real time according to the detected home session state and/or opposite 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 enabling flag, an opposite session state, and a forwarding path group index.
TABLE 1
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
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, in the forwarding path group table 3, the state of the active transmission path corresponding to the home end session state as a failure state.
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 fault detection session table is searched for by the timer ID, and is scanned for a set period, and once the session is scanned, the scan count value in the fault detection session table 211 is incremented by 1, and when the scan count value exceeds a set threshold value, for example, the scan count value exceeds 6, the home session state of the current scan session is set as a fault, and the forwarding path group table 3 is searched for by the forwarding path group index corresponding to the current scan session in the fault detection session table 211, and the main path state in the forwarding path group table 3 is set as a fault 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 included 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 the fault detection message to be sent when sending the fault detection message. Specifically, when sending a 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
In this optional embodiment, when the failure detection packet processing module 21 detects that the home session state and/or the peer session state of the failure detection session are/is abnormal, the forwarding path group table 3 is updated, for example, the state of the primary path is set to be a failure state, the packet forwarding module 22 performs path switching according to the state of the primary path in the forwarding path group table 3, and when the state of the primary path is a failure state, the failed primary path is switched to a corresponding backup transmission path, and further, if the primary path is currently switched to the backup transmission path, an index of a forwarding table of the backup transmission path 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, the 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 a 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 processing system according to a second embodiment of the present invention, and a description is given below of the network fault processing system according to the second embodiment of the present invention with reference to fig. 2:
the network fault handling system includes: a controller 1 and a hardware network switching engine 2 provided by any embodiment of the 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 to a fault detection message processing module 21, and the forwarding processing component 12 is connected to 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 session state is restored to the normal state from the fault state, the home session state in the fault detection session table 211 is restored to the normal state, and meanwhile, the updated home 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:
and 310, detecting the session state of the local terminal and/or the session state of the opposite terminal 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.
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 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 home end 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 quantity threshold value, determining that the home terminal session state of the fault detection session is a fault state, and updating the home 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 session state of the opposite end 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 session state of the opposite end as a failure state, 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.
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 may be understood that, when the failure detection session is recovered due to an exception, 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 is recovered without time limitation, the restoration of the active transmission path is generally implemented by using the technical scheme in this embodiment that a software component included in the controller performs forwarding path group table update.
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 a 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.
It is to be noted that the foregoing description is only exemplary of the invention and that the principles of the technology may be employed. Those skilled in the art will appreciate that the present invention is not limited to the particular embodiments described herein, and that various obvious changes, rearrangements and substitutions will now be apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in some detail by the above embodiments, the invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the invention, and the scope of the invention is determined by the scope of the appended claims.
Claims (7)
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;
the message forwarding module is configured to switch the failed primary transmission path to a corresponding standby transmission path according to the forwarding path group table, so as to implement forwarding of a message;
the fault detection message processing module specifically includes: a fault detection session processing unit and a fault detection message receiving unit;
the failure detection session processing unit is configured to set, in the forwarding path group table, a state of a primary transmission path corresponding to a home terminal session state to a failure state when it is detected that the home terminal session state of the failure detection session is the failure state and a home terminal failure switching enable flag bit in the failure detection session table is valid;
the failure detection message receiving unit is configured to update an opposite-end session state in a failure detection session table to a failure state when detecting that the opposite-end session state of the failure detection session is the failure state, and set a state of a main transmission path corresponding to the opposite-end session state to the failure state in the forwarding path group table;
The fault detection message processing module is specifically configured to obtain a session state of a home terminal by performing session scanning, and obtain a session state of an opposite terminal by analyzing a received fault detection message sent by the opposite terminal;
the message 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.
2. 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.
3. A network fault handling system, comprising: a controller and the hardware network switching engine of claim 1 or 2;
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.
4. A network fault handling method is characterized by comprising the following steps:
Detecting the session state of the local terminal and/or the session state of the opposite terminal of at least one fault detection session;
when detecting the local terminal session state of the fault detection session and/or the opposite terminal session state is abnormal, updating the forwarding path group table; the fault detection session is used for transmitting a fault detection message;
the updated forwarding path group table is used for instructing the message forwarding module to switch the failed main transmission path to the corresponding standby transmission path so as to forward the message;
when detecting the local terminal session state of the fault detection session and/or the opposite terminal session state is abnormal, updating the forwarding path group table, including:
when detecting that the home terminal session state of the fault detection session is a fault state and the home terminal fault switching enabling flag bit in the fault detection session table is valid, setting the state of the main transmission path corresponding to the home terminal session state as a fault state in the forwarding path group table;
when detecting that the opposite terminal session state of the fault detection session is a fault state, updating the opposite terminal session state in a fault detection session table to be a fault state, and setting the state of a main transmission path corresponding to the opposite terminal session state to be a fault state in the forwarding path group table;
The detecting the local terminal session state and/or the opposite terminal session state of at least one fault detection session includes:
acquiring a local terminal session state by performing session scanning, and acquiring an opposite terminal session state by analyzing a received fault detection message sent by an opposite terminal;
after updating the forwarding path group table when detecting the local end session state of the fault detection session and/or the opposite end session state is abnormal, the method further comprises:
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. The method according to claim 4, 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 quantity threshold value, determining that the home terminal session state of the fault detection session is a fault state, and updating the home terminal session state corresponding to the fault detection session in a fault detection session table;
and searching the forwarding path group 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.
6. The method according to claim 4, 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 group 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.
7. The method of claim 4, 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 component;
the update 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 update 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.
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 CN110661705A (en) | 2020-01-07 |
CN110661705B true 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) |
Families Citing this family (3)
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 |
CN115225397B (en) * | 2022-07-22 | 2024-05-03 | 山石网科通信技术股份有限公司 | Control method, control device, firewall and computer readable storage medium |
Citations (7)
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 |
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 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DK2209267T3 (en) * | 2009-01-15 | 2017-08-28 | Telia Co Ab | System and method for routing data traffic |
-
2019
- 2019-09-29 CN CN201910935334.0A patent/CN110661705B/en active Active
Patent Citations (7)
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 |
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 |
Also Published As
Publication number | Publication date |
---|---|
CN110661705A (en) | 2020-01-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110661705B (en) | Hardware network switching engine and network fault processing system and method | |
US7518983B2 (en) | Proxy response apparatus | |
CN109344014B (en) | Main/standby switching method and device and communication equipment | |
US20100182933A1 (en) | Method And Switching Device For Stack Port Configuration | |
EP2698948A1 (en) | Method and device for determining failure elimination based on oam protocol | |
CN111371625A (en) | Method for realizing dual-computer hot standby | |
US20170116094A1 (en) | Fault handling methods in a home service system, and associated household appliances and servers | |
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 | |
CN101414972B (en) | Method and apparatus for updating information | |
US20130232277A1 (en) | Transmitting and Forwarding Data | |
CN102571383B (en) | Access control method and system | |
CN112383414B (en) | Dual-machine hot backup quick switching method and device | |
CN110932878A (en) | Management method, equipment and system of distributed network | |
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 | |
WO2021249173A1 (en) | Distributed storage system, abnormality processing method therefor, and related device | |
CN109818870B (en) | Multicast routing method, device, service board and machine readable storage medium | |
CN114422335A (en) | Communication method, communication device, server and storage medium | |
US8327023B2 (en) | Querier election method, router, and network system | |
EP4094421A2 (en) | Pce controlled network reliability | |
CN115102897B (en) | Stacking splitting protection method based on link aggregation | |
CN115190005B (en) | Redis-based high availability method of double-host system |
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 |
Inventor after: Tang Feng Inventor before: Tang Feng |
|
CB03 | Change of inventor or designer information |