CN111950640B - Switch fault processing method and device - Google Patents

Switch fault processing method and device Download PDF

Info

Publication number
CN111950640B
CN111950640B CN202010820839.5A CN202010820839A CN111950640B CN 111950640 B CN111950640 B CN 111950640B CN 202010820839 A CN202010820839 A CN 202010820839A CN 111950640 B CN111950640 B CN 111950640B
Authority
CN
China
Prior art keywords
switch
candidate
type
communication
switches
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
Application number
CN202010820839.5A
Other languages
Chinese (zh)
Other versions
CN111950640A (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.)
Shanxi Taigang Stainless Steel Co Ltd
Original Assignee
Shanxi Taigang Stainless Steel 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 Shanxi Taigang Stainless Steel Co Ltd filed Critical Shanxi Taigang Stainless Steel Co Ltd
Priority to CN202010820839.5A priority Critical patent/CN111950640B/en
Publication of CN111950640A publication Critical patent/CN111950640A/en
Application granted granted Critical
Publication of CN111950640B publication Critical patent/CN111950640B/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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting

Abstract

The invention discloses a method and a device for processing switch faults. The method comprises the following steps: acquiring network communication fault data, and identifying a fault switch according to the fault data; judging whether the fault switch is a first type switch or not; wherein the first type of switch supports only the first communication protocol; if yes, searching a candidate switch matched with the failed switch; the candidate switch is a second type switch which supports a first communication protocol and a second communication protocol; configuring the communication ports of the candidate switches so as to replace the fault switch by the configured candidate switches; the configured candidate switch comprises a first type port and a second type port, wherein the first type port corresponds to a first communication protocol, and the second type port corresponds to a second communication protocol. By adopting the scheme, when a certain switch fails, communication equipment in the whole network does not need to be replaced, the failure processing cost is low, and the processing efficiency is high.

Description

Switch fault processing method and device
Technical Field
The invention relates to the technical field of communication, in particular to a method and a device for processing switch faults.
Background
A switch is a network device for electrical (optical) signal forwarding that can provide an exclusive electrical signal path for any two network nodes accessing the switch, thereby becoming an important ring in a communication network. At present, when a switch fails, the failed switch needs to be processed and replaced in time to ensure the normal operation of the service.
However, the inventor finds that the following defects exist in the prior art in the implementation process: because the exchange is updated fast, when the exchange breaks down and needs to be replaced by a new exchange, the exchange which is completely consistent with the old exchange cannot be found. Especially in some application scenarios (for example, different switches need to be configured with different VLAN communication protocols), when an old switch is replaced with a new switch, due to the compatibility problem involved in the replacement process, all switches in the entire network need to be replaced frequently, thereby greatly increasing the cost of fault processing and reducing the efficiency of fault processing.
Disclosure of Invention
In view of the above, the present invention is proposed to provide a switch failure handling method and apparatus that overcomes or at least partially solves the above problems.
According to an aspect of the present invention, there is provided a switch failure processing method, including:
acquiring network communication fault data, and identifying a fault switch according to the fault data;
judging whether the fault switch is a first-class switch or not; wherein the first class of switches support only a first communication protocol;
if yes, searching a candidate switch matched with the fault switch; the candidate switch is a second type switch, and the second type switch supports a first communication protocol and a second communication protocol;
configuring the communication ports of the candidate switches for replacing the failed switch with the configured candidate switches; the configured candidate switch comprises a first type port and a second type port, wherein the first type port corresponds to a first communication protocol, and the second type port corresponds to a second communication protocol.
Optionally, the configuring the communication port of the candidate switch further includes:
and configuring the communication ports of the candidate switches according to the proportion of the first class of switches in the current preset network and the number of the communication ports of the candidate switches.
Optionally, the configuring the communication ports of the candidate switch according to the proportion of the first class switch in the current preset network and the number of the communication ports of the candidate switch further includes:
determining the number of the first type ports and the second type ports according to the proportion of the first type switches in the current preset network and the number of the communication ports of the candidate switches;
and configuring the communication ports of the candidate switch according to the number of the first type ports and the second type ports.
Optionally, the method further includes: and dynamically updating the port configuration of the second type of switch in the preset network according to the proportion of the first type of switch in the current preset network.
Optionally, the identifying a faulty switch according to the fault data further includes:
determining a fault range according to the fault data;
determining a hierarchy of failed switches based on the failure scope;
identifying a failed switch based on the hierarchy of failed switches.
Optionally, the failed switch includes at least one of the following switches: a first tier switch, a second tier switch, and a third tier switch.
Optionally, the first communication protocol is an ISL1 protocol, and the second communication protocol is a DOT1Q protocol.
According to another aspect of the present invention, there is provided a switch failure processing apparatus including:
the identification module is suitable for acquiring network communication fault data and identifying a fault switch according to the fault data;
the judging module is suitable for judging whether the fault switch is a first-class switch or not; wherein the first class of switches support only a first communication protocol;
the searching module is suitable for searching a candidate switch matched with the fault switch if the candidate switch is matched with the fault switch; the candidate switch is a second type switch, and the second type switch supports a first communication protocol and a second communication protocol;
a configuration module adapted to configure the communication ports of the candidate switches for replacing the failed switch with the configured candidate switch; the configured candidate switch comprises a first type port and a second type port, wherein the first type port corresponds to a first communication protocol, and the second type port corresponds to a second communication protocol.
Optionally, the configuration module is further adapted to:
and configuring the communication ports of the candidate switches according to the proportion of the first class of switches in the current preset network and the number of the communication ports of the candidate switches.
Optionally, the configuration module is further adapted to: determining the number of the first type ports and the second type ports according to the proportion of the first type switches in the current preset network and the number of the communication ports of the candidate switches;
and configuring the communication ports of the candidate switch according to the number of the first type ports and the second type ports.
Optionally, the apparatus further comprises: and the updating module is suitable for dynamically updating the port configuration of the second type of switch in the preset network according to the proportion of the first type of switch in the current preset network.
Optionally, the identification module is further adapted to determine a fault range according to the fault data; determining a hierarchy of failed switches based on the failure scope; identifying a failed switch based on the hierarchy of failed switches.
Optionally, the failed switch includes at least one of the following switches: a first tier switch, a second tier switch, and a third tier switch.
Optionally, the first communication protocol is an ISL1 protocol, and the second communication protocol is a DOT1Q protocol.
According to yet another aspect of the present invention, there is provided a computing device comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction enables the processor to execute the operation corresponding to the switch failure processing method.
According to still another aspect of the present invention, there is provided a computer storage medium having at least one executable instruction stored therein, the executable instruction causing a processor to perform operations corresponding to the switch failure handling method.
According to the switch fault processing method and device provided by the invention, network communication fault data are obtained firstly, and a fault switch is identified according to the fault data; judging whether the fault switch is a first type switch or not; wherein the first type of switch supports only the first communication protocol; if yes, searching a candidate switch matched with the failed switch; the candidate switch is a second type switch which supports a first communication protocol and a second communication protocol; configuring the communication ports of the candidate switches so as to replace the fault switch by the configured candidate switches; the configured candidate switch comprises a first type port and a second type port, wherein the first type port corresponds to a first communication protocol, and the second type port corresponds to a second communication protocol. By adopting the scheme, when a certain switch fails, communication equipment in the whole network does not need to be replaced, the failure processing cost is low, and the processing efficiency is high.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a schematic flow chart illustrating a switch failure processing method according to an embodiment of the present invention;
fig. 2 is a schematic diagram illustrating a communication connection of a switch according to an embodiment of the present invention;
fig. 3 is a schematic flow chart illustrating a switch failure processing method according to a second embodiment of the present invention;
fig. 4 is a schematic flowchart illustrating a method for processing a switch failure according to a third embodiment of the present invention;
fig. 5 is a functional structure diagram of a switch failure processing apparatus according to a fourth embodiment of the present invention;
fig. 6 shows a schematic structural diagram of a computing device according to a sixth embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
Example one
Fig. 1 is a schematic flow chart illustrating a switch failure processing method according to an embodiment of the present invention. Wherein the method is executable by a computing device having corresponding computing capabilities. The embodiment does not limit the specific implementation device of the method.
As shown in fig. 1, the method includes:
step S110: and acquiring network communication fault data, and identifying a fault switch according to the fault data.
In order to ensure the normal operation of the service, the network communication state can be monitored in real time, and when the abnormal network state is monitored, a corresponding network communication fault report is generated. Therefore, the step can acquire fault data such as generated network communication fault reports and the like in real time or according to a preset period,
further, after acquiring the failure data, the failed switch is identified through data processing on the failure data. Wherein the identified failed switch may be one or more. When there are a plurality of identified switches, the following steps S120 to S140 are performed for any failed switch.
In this embodiment, the hierarchy type of the failed switch is not limited, and the failed switch may be a first layer switch, a second layer switch, or a third layer switch.
Step S120: judging whether the fault switch is a first type switch or not; if yes, go to step S130.
Wherein the first type of switch is a switch that supports only the first communication protocol. Alternatively, the first communication protocol may be the ISL1 protocol. The first type of switch is often an old version of the switch that is currently in a down-stream state, so that when the failed switch fails and needs to be replaced, the same type of switch as the failed switch cannot be found.
In an optional implementation manner, in order to accurately and quickly determine whether a failed switch is a first-class switch, a switch information table may be generated in advance, where attribute information of each switch in the network is recorded in the switch information table, where the attribute information includes switch model information. Therefore, when judging whether the faulty switch is the first-class switch, the model information of the faulty switch can be extracted from the switch information table, and then whether the faulty switch is the first-class switch is determined according to the model information.
Step S130: searching a candidate switch matched with the fault switch; wherein the candidate switch is a second type switch.
And generating a comparison table of each first-class switch and each second-class switch according to the function matching degrees of the first-class switch and the second-class switch in advance. Therefore, the second type switch matched with the failed switch can be found from the comparison table according to the model of the failed switch, and the matched second type switch is used as a candidate switch of the failed switch.
In particular, the second type of switch supports two communication protocols, a first communication protocol and a second communication protocol. Wherein the second communication protocol is DOT1Q protocol.
Step S140: and configuring the communication ports of the candidate switches so as to replace the failed switch by the configured candidate switches.
In the prior art, even though the switch supports two communication protocols, it still configures all ports to the same communication protocol during the configuration process. Different from the prior art, in this embodiment, after the candidate switch is found, the communication ports of the candidate switch are further configured, so that the candidate switch can simultaneously communicate with different devices by using two communication protocols, and thus the configured candidate switch includes a first type of port and a second type of port, where the first type of port corresponds to the first communication protocol and the second type of port corresponds to the second communication protocol.
For example, in the network shown in fig. 2, FM _ ARL3 is a triple-layer switch, RM _ AR, FM _ AR1, FM _ AR3, and FM _ AR2 are double-layer switches, and RM _ MCD and FM _ MCD are single-layer switches, and different VLANs are used for devices corresponding to each layer of switches in the network. The switches in the network are the first type of switches (i.e. only supporting ISL1 protocol), and the type of switches are already in the shutdown state, so that when it is determined that a switch fails and needs to be replaced by a new switch, a candidate switch corresponding to the failed switch can be found through step S120, and then a communication port of the candidate switch can be configured through step S130, so that the candidate switch can communicate with the old model of switch by using ISL1 protocol, and can communicate with other new models of switches by using DOT1Q protocol.
Therefore, in the embodiment, when the failed switch is determined to be the first type switch, the candidate switch belonging to the second type switch, which is matched with the failed switch, is found, wherein the second type switch still supports the first communication protocol, so that after the candidate switch replaces the failed switch, the candidate switch can be ensured to realize the communication function of the original failed switch; and the replaced candidate switch can also communicate with other communication equipment by using the second communication protocol at the same time, so that the other communication equipment has larger selection space when being replaced. In a word, adopt this embodiment and need not to change the communication equipment in the whole network to reduce the replacement cost, promote change efficiency.
Example two
Fig. 3 is a schematic flow chart illustrating a switch failure processing method according to a second embodiment of the present invention. The present embodiment is specifically directed to further optimization of the method for processing a switch failure in the first embodiment.
As shown in fig. 3, the method includes:
step S310: and acquiring network communication fault data, and identifying a fault switch according to the fault data.
Step S320: judging whether the fault switch is a first-class switch or not; if yes, go to step S330.
Step S330: and searching for a candidate switch matched with the failed switch.
Step S340: and configuring the communication ports of the candidate switches according to the proportion of the first class of switches in the current preset network and the number of the communication ports of the candidate switches, so as to replace the failed switch by the configured candidate switches.
In this embodiment, to further improve the overall efficiency of processing the switch failure in the preset network, when the communication ports of the candidate switches are configured, the communication ports of the candidate switches are specifically configured according to the proportion of the first class switch in the current preset network and the number of the communication ports of the candidate switches. The preset network may be a device control network of an enterprise, and the like, and a person skilled in the art may determine the range of the preset network according to an actual service scenario.
In a specific implementation process, the number of the first type ports and the second type ports in the candidate switches is determined according to the proportion of the first type switches in the current preset network and the number of the communication ports of the candidate switches. The ratio of the number of the first-class ports to the total number of the candidate switches positively correlates to the ratio of the first-class switches in the current default network, that is, the higher the ratio of the first switch in the current entire default network is, the higher the ratio of the first-class ports in the current candidate switches is.
Further, the communication ports of the candidate switches are configured according to the number of the first type ports and the second type ports. The specific configuration manner is not limited in this embodiment, and for example, the configuration file "interface gigabit Ethernet 0/1; switch trunk encapsulation ISL 1' configures port 1 as a first type of port that supports the ISL1 protocol; by "interface gigabit Ethernet 0/2; switch trunk encapsulation DOT1q "configures port 2 as a second type of port that supports the DOT1Q protocol.
In an optional implementation manner, the port configuration of the second type of switch in the preset network may be dynamically updated according to the proportion of the first type of switch in the current preset network, so that the number of the first port and the second port of the second type of switch in the preset network is adapted to the proportion of the first type of switch and the second type of switch in the actual network, thereby providing a basis for subsequently improving the fault processing rate of the faulty switch. Specifically, the port configuration of the second type switch in the preset network may be dynamically updated according to a corresponding period (e.g., every other day) and according to the proportion of the first type switch in the current preset network; or when monitoring that a new second-class switch accesses the network, updating the port configuration of other second-class switches.
Therefore, in the embodiment, the number of the communication ports of the candidate switch can be determined according to the proportion of the first switch in the network, and then the communication port configuration of the candidate switch is realized, so that the communication port configuration of the candidate switch is matched with the current network configuration, and the integral switch fault processing efficiency in the preset network is improved; and the port configuration of the second type of switch in the preset network can be dynamically updated according to the proportion of the first type of switch in the current preset network, so that the fault processing efficiency of the fault switch is further improved.
EXAMPLE III
Fig. 4 is a schematic flow chart illustrating a switch failure processing method according to a third embodiment of the present invention. The present embodiment is specifically directed to further optimization of the method for processing a switch failure in the first embodiment.
As shown in fig. 4, the method includes:
step S410: the method comprises the steps of obtaining network communication fault data, determining a fault range according to the fault data, determining the hierarchy of a fault switch based on the determined fault range, and identifying the fault switch according to the hierarchy of the fault switch.
In an actual implementation process, the number of network devices covered by the switches of different levels is different, wherein the number of network devices covered by the switches of the third layer is greater than that of the switches of the second layer, and the number of network devices covered by the switches of the second layer is greater than that of the switches of the first layer. Thereby further determining the fault scope in the current network after obtaining the fault data. Wherein, the fault range can be determined according to the communication abnormal equipment in the current network.
Further, based on the determined fault scope, a hierarchy of the faulty switch is determined to reduce the screening scope. The failed switch is ultimately identified according to its hierarchy. For example, when the failure range is large, it is determined that the currently failed switch is a three-layer switch, and the failed switch is determined by detecting the failure of each three-layer switch.
Step S420: judging whether the fault switch is a first type switch or not; if yes, go to step S230.
Step S430: searching a candidate switch matched with the fault switch; wherein the candidate switch is a second type switch.
Step S440: and configuring the communication ports of the candidate switches so as to replace the failed switch by the configured candidate switches.
Therefore, the level of the faulted switch is determined according to the fault range, the faulted switch is rapidly and accurately identified, and therefore the fault switch identification efficiency is improved.
Example four
Fig. 5 is a schematic functional structure diagram of a switch failure processing apparatus according to a fourth embodiment of the present invention. As shown in fig. 5, the apparatus includes: an identification module 51, a determination module 52, a lookup module 53, and a configuration module 54.
The identification module 51 is suitable for acquiring network communication fault data and identifying a fault switch according to the fault data;
a judging module 52 adapted to judge whether the failed switch is a first type switch; wherein the first class of switches support only a first communication protocol;
a searching module 53, adapted to search for a candidate switch matching the faulty switch if yes; the candidate switch is a second type switch, and the second type switch supports a first communication protocol and a second communication protocol;
a configuration module 54 adapted to configure the communication ports of the candidate switches for replacing the failed switch with the configured candidate switch; the configured candidate switch comprises a first type port and a second type port, wherein the first type port corresponds to a first communication protocol, and the second type port corresponds to a second communication protocol.
Optionally, the configuration module is further adapted to:
and configuring the communication ports of the candidate switches according to the proportion of the first class of switches in the current preset network and the number of the communication ports of the candidate switches.
Optionally, the configuration module is further adapted to: determining the number of the first type ports and the second type ports according to the proportion of the first type switches in the current preset network and the number of the communication ports of the candidate switches;
and configuring the communication ports of the candidate switch according to the number of the first type ports and the second type ports.
Optionally, the apparatus further comprises: and the updating module is suitable for dynamically updating the port configuration of the second type of switch in the preset network according to the proportion of the first type of switch in the current preset network.
Optionally, the identification module is further adapted to determine a fault range according to the fault data; determining a hierarchy of failed switches based on the failure scope; identifying a failed switch based on the hierarchy of failed switches.
Optionally, the failed switch includes at least one of the following switches: a first tier switch, a second tier switch, and a third tier switch.
Optionally, the first communication protocol is an ISL1 protocol, and the second communication protocol is a DOT1Q protocol.
The specific implementation process of each module in the apparatus may refer to the description of the corresponding part in the foregoing method embodiment, which is not described herein again.
Therefore, in the embodiment, when the failed switch is determined to be the first type switch, the candidate switch belonging to the second type switch, which is matched with the failed switch, is found, wherein the second type switch still supports the first communication protocol, so that after the candidate switch replaces the failed switch, the candidate switch can be ensured to realize the communication function of the original failed switch; and the replaced candidate switch can also communicate with other communication equipment by using the second communication protocol at the same time, so that the other communication equipment has larger selection space when being replaced. In a word, adopt this embodiment and need not to change the communication equipment in the whole network to reduce the replacement cost, promote change efficiency.
EXAMPLE five
According to a fifth embodiment of the present invention, a non-volatile computer storage medium is provided, where the computer storage medium stores at least one executable instruction, and the computer executable instruction may execute the switch failure processing method in any of the above-mentioned method embodiments.
The executable instructions may be specifically configured to cause the processor to:
acquiring network communication fault data, and identifying a fault switch according to the fault data;
judging whether the fault switch is a first-class switch or not; wherein the first class of switches support only a first communication protocol;
if yes, searching a candidate switch matched with the fault switch; the candidate switch is a second type switch, and the second type switch supports a first communication protocol and a second communication protocol;
configuring the communication ports of the candidate switches for replacing the failed switch with the configured candidate switches; the configured candidate switch comprises a first type port and a second type port, wherein the first type port corresponds to a first communication protocol, and the second type port corresponds to a second communication protocol.
In an alternative embodiment, the executable instructions may be specifically configured to cause the processor to:
and configuring the communication ports of the candidate switches according to the proportion of the first class of switches in the current preset network and the number of the communication ports of the candidate switches.
In an alternative embodiment, the executable instructions may be specifically configured to cause the processor to:
determining the number of the first type ports and the second type ports according to the proportion of the first type switches in the current preset network and the number of the communication ports of the candidate switches;
and configuring the communication ports of the candidate switch according to the number of the first type ports and the second type ports.
In an alternative embodiment, the executable instructions may be specifically configured to cause the processor to:
and dynamically updating the port configuration of the second type of switch in the preset network according to the proportion of the first type of switch in the current preset network.
In an alternative embodiment, the executable instructions may be specifically configured to cause the processor to:
determining a fault range according to the fault data;
determining a hierarchy of failed switches based on the failure scope;
identifying a failed switch based on the hierarchy of failed switches.
In an alternative embodiment, the failed switch comprises at least one of the following switches: a first tier switch, a second tier switch, and a third tier switch.
In an optional implementation, the first communication protocol is an ISL1 protocol, and the second communication protocol is a DOT1Q protocol.
Therefore, in the embodiment, when the failed switch is determined to be the first type switch, the candidate switch belonging to the second type switch, which is matched with the failed switch, is found, wherein the second type switch still supports the first communication protocol, so that after the candidate switch replaces the failed switch, the candidate switch can be ensured to realize the communication function of the original failed switch; and the replaced candidate switch can also communicate with other communication equipment by using the second communication protocol at the same time, so that the other communication equipment has larger selection space when being replaced. In a word, adopt this embodiment and need not to change the communication equipment in the whole network to reduce the replacement cost, promote change efficiency.
EXAMPLE six
Fig. 6 shows a schematic structural diagram of a computing device according to a sixth embodiment of the present invention. The specific embodiments of the present invention are not intended to limit the specific implementations of computing devices.
As shown in fig. 6, the computing device may include: a processor (processor)602, a communication Interface 604, a memory 606, and a communication bus 608.
Wherein: the processor 602, communication interface 604, and memory 606 communicate with one another via a communication bus 608. A communication interface 604 for communicating with network elements of other devices, such as clients or other servers. The processor 602 is configured to execute the program 610, and may specifically perform relevant steps in the foregoing method embodiments.
In particular, program 610 may include program code comprising computer operating instructions.
The processor 602 may be a central processing unit CPU or an application Specific Integrated circuit asic or one or more Integrated circuits configured to implement embodiments of the present invention. The computing device includes one or more processors, which may be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs.
And a memory 606 for storing a program 610. Memory 606 may comprise high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The program 610 may specifically be configured to cause the processor 602 to perform the following operations:
the executable instructions may be specifically configured to cause the processor to:
acquiring network communication fault data, and identifying a fault switch according to the fault data;
judging whether the fault switch is a first-class switch or not; wherein the first class of switches support only a first communication protocol;
if yes, searching a candidate switch matched with the fault switch; the candidate switch is a second type switch, and the second type switch supports a first communication protocol and a second communication protocol;
configuring the communication ports of the candidate switches for replacing the failed switch with the configured candidate switches; the configured candidate switch comprises a first type port and a second type port, wherein the first type port corresponds to a first communication protocol, and the second type port corresponds to a second communication protocol.
In an alternative embodiment, the program 610 may be specifically configured to cause the processor 602 to perform the following operations:
and configuring the communication ports of the candidate switches according to the proportion of the first class of switches in the current preset network and the number of the communication ports of the candidate switches.
In an alternative embodiment, the program 610 may be specifically configured to cause the processor 602 to perform the following operations:
determining the number of the first type ports and the second type ports according to the proportion of the first type switches in the current preset network and the number of the communication ports of the candidate switches;
and configuring the communication ports of the candidate switch according to the number of the first type ports and the second type ports.
In an alternative embodiment, the program 610 may be specifically configured to cause the processor 602 to perform the following operations:
and dynamically updating the port configuration of the second type of switch in the preset network according to the proportion of the first type of switch in the current preset network.
In an alternative embodiment, the program 610 may be specifically configured to cause the processor 602 to perform the following operations:
determining a fault range according to the fault data;
determining a hierarchy of failed switches based on the failure scope;
identifying a failed switch based on the hierarchy of failed switches.
In an alternative embodiment, the failed switch comprises at least one of the following switches: a first tier switch, a second tier switch, and a third tier switch.
In an optional implementation, the first communication protocol is an ISL1 protocol, and the second communication protocol is a DOT1Q protocol.
Therefore, in the embodiment, when the failed switch is determined to be the first type switch, the candidate switch belonging to the second type switch, which is matched with the failed switch, is found, wherein the second type switch still supports the first communication protocol, so that after the candidate switch replaces the failed switch, the candidate switch can be ensured to realize the communication function of the original failed switch; and the replaced candidate switch can also communicate with other communication equipment by using the second communication protocol at the same time, so that the other communication equipment has larger selection space when being replaced. In a word, adopt this embodiment and need not to change the communication equipment in the whole network to reduce the replacement cost, promote change efficiency.
The algorithms or displays presented herein are not inherently related to any particular computer, virtual system, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. In addition, embodiments of the present invention are not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the embodiments of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the invention and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components according to embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names. The steps in the above embodiments should not be construed as limiting the order of execution unless specified otherwise.

Claims (10)

1. A switch failure processing method is characterized by comprising the following steps:
acquiring network communication fault data, and identifying a fault switch according to the fault data;
judging whether the fault switch is a first-class switch or not; wherein the first class of switches support only a first communication protocol;
if yes, searching a candidate switch matched with the fault switch; the candidate switch is a second type switch, and the second type switch supports a first communication protocol and a second communication protocol;
configuring the communication ports of the candidate switches for replacing the failed switch with the configured candidate switches; the configured candidate switch comprises a first type port and a second type port, wherein the first type port corresponds to a first communication protocol, and the second type port corresponds to a second communication protocol.
2. The method of claim 1, wherein the configuring the communication ports of the candidate switches further comprises:
and configuring the communication ports of the candidate switches according to the proportion of the first class of switches in the current preset network and the number of the communication ports of the candidate switches.
3. The method of claim 2, wherein the configuring the communication ports of the candidate switches according to the proportion of the first class switches in the current default network and the number of communication ports of the candidate switches further comprises:
determining the number of the first type ports and the second type ports according to the proportion of the first type switches in the current preset network and the number of the communication ports of the candidate switches;
and configuring the communication ports of the candidate switch according to the quantity of the first-class ports and the second-class ports.
4. The method of claim 2, further comprising:
and dynamically updating the port configuration of the second type of switch in the preset network according to the proportion of the first type of switch in the current preset network.
5. The method of any of claims 1-4, wherein the identifying a failed switch from the failure data further comprises:
determining a fault range according to the fault data;
determining a hierarchy of failed switches based on the failure scope;
identifying a failed switch based on the hierarchy of failed switches.
6. The method of claim 5, wherein the failed switch comprises at least one of: a first tier switch, a second tier switch, and a third tier switch.
7. The method of any of claims 1-4, wherein the first communication protocol is an ISL1 protocol and the second communication protocol is a DOT1Q protocol.
8. A switch failure handling apparatus, comprising:
the identification module is suitable for acquiring network communication fault data and identifying a fault switch according to the fault data;
the judging module is suitable for judging whether the fault switch is a first-class switch or not; wherein the first class of switches support only a first communication protocol;
the searching module is suitable for searching a candidate switch matched with the fault switch if the candidate switch is matched with the fault switch; the candidate switch is a second type switch, and the second type switch supports a first communication protocol and a second communication protocol;
a configuration module adapted to configure the communication ports of the candidate switches for replacing the failed switch with the configured candidate switch; the configured candidate switch comprises a first type port and a second type port, wherein the first type port corresponds to a first communication protocol, and the second type port corresponds to a second communication protocol.
9. A computing device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction causes the processor to execute the operation corresponding to the switch failure processing method according to any one of claims 1-7.
10. A computer storage medium having stored therein at least one executable instruction that causes a processor to perform operations corresponding to the switch failure handling method of any of claims 1-7.
CN202010820839.5A 2020-08-14 2020-08-14 Switch fault processing method and device Active CN111950640B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010820839.5A CN111950640B (en) 2020-08-14 2020-08-14 Switch fault processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010820839.5A CN111950640B (en) 2020-08-14 2020-08-14 Switch fault processing method and device

Publications (2)

Publication Number Publication Date
CN111950640A CN111950640A (en) 2020-11-17
CN111950640B true CN111950640B (en) 2022-08-02

Family

ID=73343156

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010820839.5A Active CN111950640B (en) 2020-08-14 2020-08-14 Switch fault processing method and device

Country Status (1)

Country Link
CN (1) CN111950640B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113206750B (en) * 2021-03-11 2022-07-12 新华三大数据技术有限公司 Fault equipment replacement method, computer equipment and storage medium
CN114384875A (en) * 2021-12-22 2022-04-22 中核武汉核电运行技术股份有限公司 Multi-functional maintenance platform of nuclear power plant DCS switch system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1716954A (en) * 2005-05-27 2006-01-04 清华大学 Method for intercommunication between IP V6 network and IPV4 network based on transit mechanism
CN107105026A (en) * 2017-04-14 2017-08-29 中国联合网络通信有限公司沈阳市分公司 A kind of IPV4/IPV6 exchanges application platform
CN207038883U (en) * 2017-06-07 2018-02-23 国网辽宁省电力有限公司检修分公司 A kind of field layer I/O device quick-replaceable interface switching device
CN107800652A (en) * 2017-10-20 2018-03-13 深圳市楠菲微电子有限公司 The protocol access method and device used in a switch
CN108768737A (en) * 2018-06-06 2018-11-06 新华三技术有限公司 A kind of data switching method and apparatus
CN111274185A (en) * 2020-01-10 2020-06-12 中国地质科学院地质研究所 Method and system for solving communication interface data compatibility in instrument old part replacement
CN111404779A (en) * 2020-03-12 2020-07-10 深圳市吉祥腾达科技有限公司 Method, device and system for testing role switching of router nodes

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1716954A (en) * 2005-05-27 2006-01-04 清华大学 Method for intercommunication between IP V6 network and IPV4 network based on transit mechanism
CN107105026A (en) * 2017-04-14 2017-08-29 中国联合网络通信有限公司沈阳市分公司 A kind of IPV4/IPV6 exchanges application platform
CN207038883U (en) * 2017-06-07 2018-02-23 国网辽宁省电力有限公司检修分公司 A kind of field layer I/O device quick-replaceable interface switching device
CN107800652A (en) * 2017-10-20 2018-03-13 深圳市楠菲微电子有限公司 The protocol access method and device used in a switch
CN108768737A (en) * 2018-06-06 2018-11-06 新华三技术有限公司 A kind of data switching method and apparatus
CN111274185A (en) * 2020-01-10 2020-06-12 中国地质科学院地质研究所 Method and system for solving communication interface data compatibility in instrument old part replacement
CN111404779A (en) * 2020-03-12 2020-07-10 深圳市吉祥腾达科技有限公司 Method, device and system for testing role switching of router nodes

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
110kV变电所保护及综合自动化系统升级改造;娄东祥;《中小企业管理与科技(上旬刊)》;20160805(第08期);全文 *
交换机安全技术;古乐声等;《电脑开发与应用》;20090905(第09期);全文 *
定制式变电站综合自动化系统改造策略研究;晏腾等;《安徽电力》;20191215(第04期);全文 *

Also Published As

Publication number Publication date
CN111950640A (en) 2020-11-17

Similar Documents

Publication Publication Date Title
US10402293B2 (en) System for virtual machine risk monitoring
CN112003961B (en) Resource exposure method, system, equipment and medium in kubernets
CN111950640B (en) Switch fault processing method and device
WO2018125924A1 (en) Methods and devices for switching a virtual internet protocol address
US10644969B2 (en) Method and system for network elements to internally probe their forwarding elements
JP4598065B2 (en) Monitoring simulation apparatus, method and program thereof
CN107544835B (en) Method and device for detecting service network port of virtual machine
CN113259168B (en) Fault root cause analysis method and device
CN109189758B (en) Operation and maintenance flow design method, device and equipment, operation method, device and host
CN107666493B (en) Database configuration method and equipment thereof
CN107516547A (en) The processing method and processing device of internal memory hard error
WO2019242487A1 (en) Fault management method and related device
CN111182089A (en) Container cluster system, method and device for accessing big data assembly and server
CN109697078B (en) Repairing method of non-high-availability component, big data cluster and container service platform
CN106603330A (en) Cloud platform virtual machine connection state checking method
CN107947974B (en) Network key link detection method for cloud platform service
WO2017197982A1 (en) Packet processing method, device and system, and computer storage medium
CN115794769B (en) Method for managing high-availability database, electronic equipment and storage medium
CN115373916A (en) Abnormality detection method, abnormality detection device, electronic apparatus, and computer-readable storage medium
CN114840495A (en) Database cluster split-brain prevention method, storage medium and device
CN113055203B (en) Method and device for recovering exception of SDN control plane
US11036624B2 (en) Self healing software utilizing regression test fingerprints
CN106130800B (en) Data frame processing method and device
CN112068935A (en) Method, device and equipment for monitoring deployment of kubernets program
US20190207805A1 (en) Node fault isolation

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