[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN110224950B - Stack system detection system, method, device and computer readable storage medium - Google Patents

Stack system detection system, method, device and computer readable storage medium Download PDF

Info

Publication number
CN110224950B
CN110224950B CN201910543819.5A CN201910543819A CN110224950B CN 110224950 B CN110224950 B CN 110224950B CN 201910543819 A CN201910543819 A CN 201910543819A CN 110224950 B CN110224950 B CN 110224950B
Authority
CN
China
Prior art keywords
stack
switch
stacking
switches
main
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
CN201910543819.5A
Other languages
Chinese (zh)
Other versions
CN110224950A (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.)
Shenzhen Sundray Technologies Co ltd
Original Assignee
Shenzhen Sundray Technologies 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 Shenzhen Sundray Technologies Co ltd filed Critical Shenzhen Sundray Technologies Co ltd
Priority to CN201910543819.5A priority Critical patent/CN110224950B/en
Publication of CN110224950A publication Critical patent/CN110224950A/en
Application granted granted Critical
Publication of CN110224950B publication Critical patent/CN110224950B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/58Association of routers
    • H04L45/583Stackable routers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/10Packet switching elements characterised by the switching fabric construction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/55Prevention, detection or correction of errors
    • H04L49/555Error detection

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a stacking system detection system, wherein each stacking switch in the stacking system is connected with an existing switch controller in an original networking structure, and when the stacking switch becomes a main stacking switch, a detection message is sent to the switch controller, and the switch controller can determine whether a plurality of main switches exist in the stacking system according to the number of the main stacking switches sending the detection message. Therefore, the scheme does not need to change the original networking structure and add new equipment, does not need to establish a detection link for every two stacking switches, can complete detection only by using the switch controller in the original networking structure, and simplifies the deployment of the detection link. The application also provides a stacking system detection method, a system, a device and a computer readable storage medium, which can also achieve the effects.

Description

Stack system detection system, method, device and computer readable storage medium
Technical Field
The present invention relates to the field of switch stacking technologies, and in particular, to a stacking system detection system, method, apparatus, and computer-readable storage medium.
Background
As customer network size and bandwidth requirements increase, the performance requirements of the switch also increase dramatically.
Stacking technology is developed to improve the performance of switches without changing the original networking structure. Switch stacking means that a plurality of switches are connected through a special stacking port or a service port to form a virtual logic device, namely a stacking system, so that the bandwidth of a back plate available for a port is increased, the ports of the switches are expanded, and the reliability is improved.
The stacking system sometimes has a multi-point fault of stacking cables, so that one stacking system becomes a plurality of stacking systems, after the stacking system is split, the split device considers that the split device becomes a master device of the stacking system based on a stacking calculation rule, the device works by using the external IP address and the MAC address of the stacking system, and the external IP address and the MAC address of one stacking system are only one, so that a plurality of stacking systems with the same configuration appear in a network. Leading to conflicts between IP addresses and MAC addresses in the network, causing network failures, which require techniques to detect in time.
The existing detection method, such as a detection mode of BFD protocol detection, needs to add new intermediate equipment in an original networking structure, detect a stacking system by the intermediate equipment, and the addition of the intermediate equipment needs to change the original networking structure, so that the deployment of a detection link is complex; there is also a LLDP protocol detection method, which needs to connect every two switch devices in the system, the deployment of the detection link is also very complex, and it also occupies a large number of device ports, resulting in resource waste.
Therefore, how to simplify the link deployment is a problem to be solved by those skilled in the art.
Disclosure of Invention
The invention aims to provide a stacking system detection system, a method, a device and a computer readable storage medium, so as to simplify the deployment of a detection link.
In order to achieve the above purpose, the embodiment of the present invention provides the following technical solutions:
a stacking system inspection system, the stacking system including at least two stack switches, comprising:
the switch controller is in communication connection with each stacking switch and is used for receiving detection messages sent by main stacking switches in the stacking system and judging whether a plurality of main stacking switches appear in the stacking system according to the detection messages.
Optionally, the detection packet includes a unique identifier of the master stack switch and a unique identifier of the stack system;
and the switch controller determines the unique identifier of the main stacking switch and the unique identifier of the stacking system by using the detection message, and judges whether the number of the unique identifiers of the main stacking switch currently corresponding to the unique identifier of the stacking system is more than 1.
In order to achieve the above object, the present application further provides a method for detecting a stacking system, applied to a switch controller, including:
receiving a detection message sent by a main stacking switch in a stacking system;
and determining whether a plurality of main stack switches exist in the stack system by using the detection message.
Optionally, after determining whether a plurality of primary stack switches are present in the stack system by using the detection packet, the method further includes:
when a plurality of main stack switches appear in the stack system, target main stack switch information is received, and an instruction for suspending a control function is sent to a non-target main stack switch in the plurality of main stack switches.
Optionally, after determining whether a plurality of primary stack switches are present in the stack system by using the detection packet, the method further includes:
when a plurality of main stack switches appear in the stack system, a target main stack switch is determined in the main stack switches by using a preset strategy, and an instruction for suspending the control function is sent to a non-target main stack switch in the main stack switches.
Optionally, the determining a target primary stack switch among the plurality of primary stack switches by using a preset policy includes:
determining a target primary stack switch with the highest priority by using the preset priority of each primary stack switch; wherein the priority is a priority determined based on performance data of each of the primary stack switches.
Optionally, the switch controller and the stacking system belong to the same two-layer network; or, the switch controller and the stacking system belong to the same three-layer network, and each stacking switch is in communication connection with the switch controller through a router.
Optionally, the determining whether a plurality of primary stack switches are present in the stack system using the detection packet includes:
determining the unique identifier of the main stack switch and the unique identifier of the stack system by using the detection message;
and judging whether the number of the unique identifiers of the main stacking switch currently corresponding to the unique identifier of the stacking system is more than 1.
To achieve the above object, the present application further provides a stacking system detection system, including:
the detection message receiving module is used for receiving a detection message sent by a main stacking switch in the stacking system;
and the detection module is used for determining whether a plurality of main stack switches appear in the stack system or not by using the detection message.
To achieve the above object, the present application also provides a switch controller, including:
a memory for storing a computer program;
a processor for implementing the steps of the stacking system detection method according to any one of the preceding claims when executing the computer program.
To achieve the above object, the present application further provides a computer-readable storage medium having a computer program stored thereon, which when executed by a processor, implements the steps of the stacking system detecting method according to any one of the above.
The application provides a system detecting system piles up, system piles up includes two at least stack switches, includes: the switch controller is in communication connection with each stacking switch and is used for receiving detection messages sent by main stacking switches in the stacking system and judging whether a plurality of main stacking switches appear in the stacking system according to the detection messages.
Therefore, according to the detection system of the stacking system provided by the application, each stacking switch in the stacking system is connected with the existing switch controller in the original networking structure, and when the stacking switch becomes a main stacking switch, the detection message is sent to the switch controller, and the switch controller can determine whether a plurality of main switches exist in the stacking system according to the number of the main stacking switches sending the detection message. Therefore, the scheme does not need to change the original networking structure and add new equipment, does not need to establish a detection link for every two stacking switches, can complete detection only by using the switch controller in the original networking structure, and simplifies the deployment of the detection link. The application also provides a stacking system detection method, a system, a device and a computer readable storage medium, which can also achieve the effects.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic structural diagram of a stacking system inspection system according to an embodiment of the present invention;
FIG. 2 is a flowchart of a stacking system detection method according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a stacking system inspection system according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a specific stacking system inspection system according to an embodiment of the present invention;
FIG. 5 is a flowchart of a specific stacking system detection method according to an embodiment of the present invention;
FIG. 6 is a flowchart of a specific stacking system detection method according to an embodiment of the present invention;
FIG. 7 is a schematic structural diagram of a stacking system inspection system according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a switch controller according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention discloses a stacking system detection system, a method, a device and a computer readable storage medium, which are used for simplifying the deployment of a detection link.
Referring to fig. 1, a stacking system detection system provided in an embodiment of the present invention includes at least two stacking switches, and specifically includes:
and the switch controller 101 is in communication connection with each stack switch 102, and is configured to receive a detection message sent by a main stack switch in the stack system 103, and determine whether a plurality of main stack switches appear in the stack system according to the detection message.
The switch Controller 101 is also a Wireless Access Point Controller (Wireless Access Point Controller), and the Controller is used for centrally controlling the switches in the networking structure of the stacking system, and is responsible for managing all switches in the network, such as issuing configuration to the switches, modifying related configuration parameters, accessing security control, and displaying the states of the switch devices. In the scheme, other devices do not need to be added to change the networking structure, but the exchange controller 101 in the original networking structure is used for detecting the multiple master devices in the stacking system.
The stack system 103 includes at least two stack switches 102, and the stack switches 102 are connected by a dedicated stack interface to form a stack link. In this scenario, the detection links do not need to be formed between the stack switches 102, i.e., in this scenario, the detection links do not need to be connected between the stack switches 102 and the stack switches 102, but all the stack switches 102 are connected to the switch controller 101 in the current networking architecture.
Each stack switch 102 is configured in advance, and when the stack switch becomes a master stack switch, a detection message is sent to the switch controller, and the switch controller 103 can determine whether a plurality of master stack switches sending the detection message are present in the current stack system according to the detection message.
In one embodiment, the detection message includes a unique identifier of the primary stack switch and a unique identifier of the stack system.
The unique identifier of the master stack switch may be a Media Access Control Address (MAC Address) of the master stack switch, and the unique identifier of the stack system 103 may be a unique ID previously allocated to the stack system. Even if stack splitting occurs, the original stacking system is split into a plurality of stacking systems, and the unique ID of the original stacking system still retains the unique ID of the original stacking system, so that the switch controller 101 can determine whether a plurality of primary stack switches are present in the stacking system 103 according to the unique identifier of the stacking system 101 and the unique identifier of the primary stack switch, that is, when the unique identifier of the same stacking system corresponds to a plurality of different primary stack switches, it indicates that a plurality of primary stack switches are present in the stacking system.
For example, the unique identifier of the stack system 103 is stack identifier 1, and there are originally 2 stack switches under the system, and the identifiers are sw1 and sw2, respectively, where sw1 is the master switch. The detection message sent by the sw1 to the switch controller 101 includes "stack identifier 1, sw 1"; the stack system 103 is subjected to stack splitting, the two stack switches are split into independent systems respectively and become main stack switches in the independent systems, and each split system retains the configuration of the original system due to the principle of stack splitting, so the stack identifiers of the two split systems are still the stack identifier 1, at this time, the sw2 also becomes the main stack switch of the split stack system, so the sw2 also sends a detection message "stack identifier 1, sw 2" to the switch controller 101, the switch controller 101 receives two detection messages at this time, and the two detection messages both correspond to the same stack system but are not the same stack switch, and the switch controller 101 can determine that two main stack switches appear in the stack system corresponding to the stack identifier 1.
In a specific embodiment, the detection message includes a unique identifier of the primary stack switch and a unique identifier of the stack system;
the switch controller 101 determines the unique identifier of the primary stack switch and the unique identifier of the stack system 103 by using the detection packet, and determines whether the number of the unique identifiers of the primary stack switch currently corresponding to the unique identifier of the stack system 103 is greater than 1.
The unique identifier of the master stack switch may be a Media Access Control Address (MAC Address) of the master stack switch, and the unique identifier of the stack system 103 may be a unique ID previously allocated to the stack system 103. Even if stack splitting occurs, the original stacking system is split into a plurality of stacking systems, and the unique ID of the original stacking system still retains the unique ID of the original stacking system, so that the switch controller 101 can determine whether a plurality of master stacking switches are present in the stacking system 103 according to the unique identifier of the stacking system 103 and the unique identifier of the master stacking switch, that is, when the unique identifier of the same stacking system 103 corresponds to more than or equal to 2 different master stacking switches, it indicates that there are a plurality of master stacking switches in the stacking system 103.
For example, the unique identifier of the stack system 103 is stack identifier 1, and there are originally 2 stack switches under the system, and the identifiers are sw1 and sw2, respectively, where sw1 is the master switch. The detection message sent by the sw1 to the switch controller 101 includes "stack identifier 1, sw 1"; the stack system 103 is subjected to stack splitting, the two stack switches 102 are respectively split into independent systems, and due to the principle of stack splitting, each split system retains the configuration of the original system, so the stack identifiers of the two split systems are still stack identifiers 1, at this time, the sw2 also becomes the master stack switch of the split stack system, so the sw2 also sends detection messages "stack identifier 1, sw 2" to the switch controller 101, the switch controller 101 receives the two detection messages at this time, and the two detection messages both correspond to the same stack system but are not the same stack switch, and the switch controller 101 can determine that two master stack switches appear in the stack system corresponding to the stack identifier 1.
Therefore, in the stacking system detection system provided in the embodiment of the present application, each stack switch 102 in the stacking system 103 is connected to an existing switch controller 101 in an original networking structure, and when the stack switch 102 becomes a master stack switch, a detection message is sent to the switch controller 101, and the switch controller 101 may determine whether a plurality of master switches exist in the stacking system 103 according to the number of the master stack switches that send the detection message. Therefore, in the scheme, the original networking structure does not need to be changed, new equipment does not need to be added, a detection link does not need to be established between every two stacking switches, detection can be completed only by using the switch controller 101 in the original networking structure, and the deployment of the detection link is simplified.
A stacking system detection method provided in the embodiments of the present application is introduced below, and the following description of a stacking system detection method and any of the embodiments described above may be referred to with each other.
Referring to fig. 2, a method for detecting a stacking system provided in the embodiment of the present application specifically includes:
s201, receiving a detection message sent by a main stack switch in the stack system.
The switch controller is connected to each stack switch in the stack system, and a specific networking structure is described in detail in the above embodiment, and specific contents may refer to the above embodiment, which is not described in detail in this embodiment.
The switch controller receives a detection message sent by a main stack switch in the stack system. The detection message can be sent only by the main stack switch, and the specific rule for sending may be that when the stack switch detects that it becomes the main stack switch, the detection message is sent to the switch controller immediately, or all the devices that have become the main stack switch send the detection message once at every preset time interval as the switch controller.
If the second scheme is adopted, in order to save the storage space of the switch controller, when a detection message sent by a main stack switch is received, whether a history detection message sent by the main stack switch is stored or not is judged, and if the history detection message is stored, the history detection message is deleted.
S202, determining whether a plurality of main stack switches appear in the stack system by using the detection message.
Specifically, the switch controller may determine whether a plurality of primary stack switches sending the detection messages are present in the current stack system according to the detection messages, that is, when the detection messages sent by the plurality of stack switches are received, it may determine that a plurality of primary stack switches are present in the current stack system.
In a specific embodiment, the switch controller and the stacking system belong to the same two-layer network; or, the switch controller with the stack system belongs to the same three-layer network, every the stack switch with pass through between the switch controller router communication connection.
Referring to fig. 3, the switch controller and the stacking system belong to the same two-layer network, the two-layer network only has a core layer and an access layer, and the network structure mode is simple and convenient to operate. When the switch controller and the stacking system belong to a two-layer network, each stacking switch can be directly connected with the switch controller, a router is not required to be used for forwarding, and the networking structure is simple.
It should be noted that, because the stack switches are also switches and have a data forwarding function, the stack switches can also forward the detection messages of other stack switches to the switch controller, and it is not necessary that each stack switch is directly connected to the switch controller.
Referring to fig. 4, the switch controller belongs to the same three-layer network as the stacking system. Unlike a two-tier network, a three-tier network structure can be populated with large networks. Generally, when the networking structure of the switch controller 101 and the stack system 103 cannot be implemented by a two-layer network structure, for example, if the switch controller 101 is too far away from the stack system 103, a three-layer network is adopted, and at this time, there are routers in the networking structure, and the routers forward data transmitted between the switch controller 101 and switches controlled by the router. In this embodiment, if the network structure of the stack system detection system is a three-layer network, that is, each stack switch 102 is communicatively connected to the switch controller 101 through the router 104, the detection packet may also be transmitted through the router at this time.
In the three-layer network architecture, each stack switch 102 is connected to the switch controller 101 using its own IP address, thereby enabling communication between the stack switch 102 and the switch controller 101.
In a specific embodiment, the determining whether a plurality of primary stack switches are present in the stack system using the detection message includes:
determining the unique identifier of the main stack switch and the unique identifier of the stack system by using the detection message;
and judging whether the number of the unique identifiers of the main stacking switch currently corresponding to the unique identifier of the stacking system is more than 1.
The unique identifier of the master stack switch may be a MAC address of the master stack switch, and the unique identifier of the stack system may be a unique ID previously assigned to the stack system. Even if stack splitting occurs, the original stacking system is split into a plurality of stacking systems, and the unique ID of the original stacking system still retains the unique ID of the original stacking system, so that the switch controller can determine whether a plurality of master stacking switches are present in the stacking system according to the unique identifier of the stacking system and the unique identifier of the master stacking switch, that is, when the unique identifier of the same stacking system corresponds to more than or equal to 2 different master stacking switches, it indicates that a plurality of master stacking switches are present in the stacking system.
For example, the unique identifier of the stack system is stack identifier 1, and there are originally 2 stack switches under the system, and the identifiers are sw1 and sw2, respectively, where sw1 is the master switch. The detection message sent by the sw1 to the switch controller includes "stack identifier 1, sw 1"; the stacking system is subjected to stacking splitting, two stacking switches are split into independent systems respectively, and each split system retains the configuration of the original system due to the principle of stacking splitting, so that the stacking identifiers of the two split systems are still stacking identifiers 1, at this time, the sw2 also becomes the main stacking switch of the split stacking system, so that the sw2 also sends detection messages 'stacking identifier 1, sw 2' to the switch controller, the switch controller receives the two detection messages at this time, the two detection messages correspond to the same stacking system, but not the same stacking switch, and the switch controller can determine that the two main stacking switches appear in the stacking system corresponding to the stacking identifier 1.
Therefore, according to the detection method for the stacking system provided by the embodiment of the application, each stacking switch in the stacking system is connected with the switch controller, and the switch controller receives the detection message sent by the device serving as the main stacking switch in the stacking system, that is, whether a plurality of main switches exist in the stacking system can be determined according to the number of the main stacking switches sending the detection message. Because the switch controller is arranged in the original networking structure, the original networking structure does not need to be changed, new equipment does not need to be added, and meanwhile, the detection link can be established only by connecting the stacking switches with the switch controller, so that the detection link does not need to be established between every two stacking switches, the detection can be completed only by using the stacking switches in the original networking structure, and the arrangement of the detection link is simplified.
A specific method for detecting a stacking system provided in the embodiments of the present application is described below, and a specific method for detecting a stacking system described below may be mutually referred to any of the embodiments described above.
Referring to fig. 5, a specific stacking system detection method provided in the embodiment of the present application specifically includes:
s301, receiving a detection message sent by a main stack switch in the stack system.
S302, determining whether a plurality of main stack switches appear in the stack system by using the detection message.
S303, when a plurality of main stack switches appear in the stack system, determining a target main stack switch in the plurality of main stack switches by using a preset strategy, and sending a command of suspending a control function to a non-target main stack switch in the plurality of main stack switches.
It should be noted that, in order to cause a network failure due to a plurality of stack systems with the same configuration in a network, when two primary stack switches corresponding to one stack system are detected, the network state of one primary stack switch of one stack system needs to be restored in time.
The conventional means for solving the above problems is to configure the same configuration policy in each stack switch, and all stack switches execute their own stored configuration policies, and the configuration policy can implement that one master stack switch is still in a working state with a control function, and other master stack switches suspend the control function, so that only one master switch corresponding to one stack system is provided in the entire network, thereby ensuring that there is no stack system with the same configuration in the network environment.
However, this method requires configuring each stack switch, so that each stack switch has the same configuration policy, which is very inconvenient.
In this scheme, the preset policy is stored and executed by the switch controller. The switch controller determines a target master stack switch capable of continuing to operate from all current master stack switches by using a preset strategy, and sends a command of a pause control function to other non-target master stack switches, so that only one master stack switch of the stack system is available in the current network.
In one specific embodiment, the determining a target primary stack switch among the plurality of primary stack switches using a predetermined policy includes:
determining a target primary stack switch with the highest priority by using the preset priority of each primary stack switch; wherein the priority is a priority determined based on performance data of each of the primary stack switches.
In the scheme, the priority is set for each stack switch according to the performance data of each stack switch in the stack system, and the higher the priority is, the better the performance is. In the switch controller, the preset policy is set according to the priority, and the target primary stacking system is the highest priority of all the primary stacking systems, that is, the target primary stacking system has the best performance of all the primary stacking systems.
The switch controller is used for managing the working strategies of all the stacking switches in a centralized manner, so that the configuration in each stacking switch can be avoided, manpower and material resources are saved, meanwhile, only one preset strategy in the switch controller needs to be modified for modifying the strategy, and each stacking switch does not need to be modified, so that the strategy can be modified conveniently.
A specific method for detecting a stacking system provided in the embodiments of the present application is described below, and a specific method for detecting a stacking system described below may be mutually referred to any of the embodiments described above.
Referring to fig. 6, a specific stacking system detection method provided in the embodiment of the present application specifically includes:
s401, receiving a detection message sent by a main stack switch in the stack system.
S402, determining whether a plurality of main stack switches appear in the stack system by using the detection message.
S403, when a plurality of main stack switches appear in the stack system, receiving the information of the target main stack switch, and sending a command of suspending the control function to a non-target main stack switch in the plurality of main stack switches.
In this scheme, the switch controller may directly receive the target master stack switch information sent by the user, and determine the target master stack switch to continue as the master stack switch and the master stack switch that needs to suspend the control function according to the target master stack switch information sent by the user. Therefore, the user setting can be realized immediately, and the target main stack exchanger is determined according to the user setting.
A stacking system detection system provided in the embodiments of the present application is described below, and a stacking system detection system described below and any of the embodiments described above may be referred to with each other.
Referring to fig. 7, a stacking system detection system provided in an embodiment of the present application specifically includes:
a detection message receiving module 501, configured to receive a detection message sent by a master stack switch in the stack system.
A detection module 502, configured to determine whether multiple primary stack switches appear in the stack system using the detection packet.
Optionally, the system further comprises:
the first pause work instruction sending module is used for receiving the information of the target main stack switch and sending a pause control function instruction to a non-target main stack switch in the plurality of main stack switches when the plurality of main stack switches appear in the stacking system.
Optionally, the system further comprises:
and a second pause work instruction sending module, configured to, when multiple primary stack switches appear in the stacking system, determine a target primary stack switch among the multiple primary stack switches by using a preset policy, and send an instruction of a pause control function to a non-target primary stack switch among the multiple primary stack switches.
Optionally, the work pause instruction sending module is specifically configured to determine, by using a preset priority of each of the master stack switches, a target master stack switch with a highest priority; wherein the priority is a priority determined based on performance data of each of the primary stack switches.
Optionally, the switch controller and the stacking system belong to the same two-layer network; or, the switch controller with the stack system belongs to the same three-layer network, every the stack switch with pass through between the switch controller router communication connection.
Optionally, the detecting module 502 includes:
a unique identifier determining unit, configured to determine, by using the detection packet, a unique identifier of the master stack switch and a unique identifier of the stack system;
and the judging unit is used for judging whether the number of the unique identifiers of the main stacking switch currently corresponding to the unique identifier of the stacking system is more than 1.
Referring to fig. 8, an embodiment of the present application provides a switch controller, which specifically includes:
a memory 100 for storing a computer program;
a processor 200, configured to implement the steps of any of the above data uploading methods when the computer program is executed.
Specifically, the memory 100 includes a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and computer-readable instructions, and the internal memory provides an environment for the operating system and the computer-readable instructions in the non-volatile storage medium to run.
Further, the switch controller in this embodiment may further include:
the input interface 300 is configured to obtain a computer program imported from the outside, store the obtained computer program in the memory 100, and further obtain various instructions and parameters transmitted by an external terminal device, and transmit the instructions and parameters to the processor 200, so that the processor 200 performs corresponding processing by using the instructions and parameters. In this embodiment, the input interface 300 may specifically include, but is not limited to, a USB interface, a serial interface, a voice input interface, a fingerprint input interface, a hard disk reading interface, and the like.
An output interface 400, configured to output various data generated by the processor 200 to a terminal device connected thereto, so that other terminal devices connected to the output interface 400 can acquire various data generated by the processor 200. In this embodiment, the output interface 400 may be specifically connected to a device such as a switch controller.
A communication unit 500 for establishing a remote link between the switch controller and the stack system.
And the keyboard 600 is used for acquiring various parameter data or instructions input by a user through real-time key cap knocking.
A display 700 for showing the device status of each stack switch, etc.
The mouse 800 may be used to assist a user in inputting data and to simplify the user's operation.
The present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, can implement the steps provided in the above-mentioned data uploading method applied to the wireless terminal. The storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (11)

1. A stacking system inspection system, the stacking system including at least two stack switches, comprising:
the system comprises an existing switch controller in an original networking structure, wherein the switch controller is in communication connection with each stacking switch and is used for receiving detection messages sent by main stacking switches in a stacking system and judging whether a plurality of main stacking switches appear in the stacking system according to the detection messages; when detecting messages sent by a plurality of stack switches are received, determining that a plurality of main stack switches exist in the current stack system;
there is no need to form a sense link between the stack switches.
2. The system of claim 1, wherein the detection message includes a unique identifier of the primary stack switch and a unique identifier of the stack system;
and the switch controller determines the unique identifier of the main stacking switch and the unique identifier of the stacking system by using the detection message, and judges whether the number of the unique identifiers of the main stacking switch currently corresponding to the unique identifier of the stacking system is more than 1.
3. A method for detecting a stacking system is applied to an existing switch controller in an original networking structure, and comprises the following steps:
receiving a detection message sent by a main stacking switch in a stacking system;
determining whether a plurality of main stack switches are present in the stack system by using the detection message; when detecting messages sent by a plurality of stack switches are received, determining that a plurality of main stack switches exist in the current stack system;
the switch controller is communicatively coupled to each stack switch without requiring a sense link to be formed between the stack switches.
4. The method of claim 3, wherein after determining whether a plurality of primary stack switches are present in the stack system using the detection message, further comprising:
when a plurality of main stack switches appear in the stack system, target main stack switch information is received, and an instruction for suspending a control function is sent to a non-target main stack switch in the plurality of main stack switches.
5. The method of claim 3, wherein after determining whether a plurality of primary stack switches are present in the stack system using the detection message, further comprising:
when a plurality of main stack switches appear in the stack system, a target main stack switch is determined in the main stack switches by using a preset strategy, and an instruction for suspending the control function is sent to a non-target main stack switch in the main stack switches.
6. The method of claim 5, wherein determining a target primary stack switch among the plurality of primary stack switches using a predetermined policy comprises:
determining a target primary stack switch with the highest priority by using the preset priority of each primary stack switch; wherein the priority is a priority determined based on performance data of each of the primary stack switches.
7. The method of claim 3, wherein the switch controller and the stacking system belong to the same two-tier network; or, the switch controller and the stacking system belong to the same three-layer network, and each stacking switch is in communication connection with the switch controller through a router.
8. The method of claim 3, wherein said determining whether a plurality of primary stack switches are present in the stack system using the detection message comprises:
determining the unique identifier of the main stack switch and the unique identifier of the stack system by using the detection message;
and judging whether the number of the unique identifiers of the main stacking switch currently corresponding to the unique identifier of the stacking system is more than 1.
9. A stacking system detection system, applied to an existing switch controller in an original networking architecture, comprising:
the detection message receiving module is used for receiving a detection message sent by a main stacking switch in the stacking system;
the detection module is used for determining whether a plurality of main stack switches appear in the stack system or not by using the detection message; when detecting messages sent by a plurality of stack switches are received, determining that a plurality of main stack switches exist in the current stack system;
the switch controller is communicatively coupled to each stack switch without requiring a sense link to be formed between the stack switches.
10. A switch controller, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the stacking system detection method according to any of claims 3 to 8 when executing the computer program.
11. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the stacking system detection method according to any one of claims 3 to 8.
CN201910543819.5A 2019-06-21 2019-06-21 Stack system detection system, method, device and computer readable storage medium Active CN110224950B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910543819.5A CN110224950B (en) 2019-06-21 2019-06-21 Stack system detection system, method, device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910543819.5A CN110224950B (en) 2019-06-21 2019-06-21 Stack system detection system, method, device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110224950A CN110224950A (en) 2019-09-10
CN110224950B true CN110224950B (en) 2022-01-21

Family

ID=67814192

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910543819.5A Active CN110224950B (en) 2019-06-21 2019-06-21 Stack system detection system, method, device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110224950B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110635968A (en) * 2019-09-27 2019-12-31 深信服科技股份有限公司 Monitoring method, device and equipment for stacked double-active detection channel and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101442484A (en) * 2008-12-05 2009-05-27 杭州华三通信技术有限公司 Method, system and equipment for detecting stacking multi-Active
CN102255751A (en) * 2011-06-30 2011-11-23 杭州华三通信技术有限公司 Stacking conflict resolution method and equipment
CN103166811A (en) * 2013-03-06 2013-06-19 杭州华三通信技术有限公司 Multi-active detection (MAD) detection method and device
CN103731303A (en) * 2013-12-20 2014-04-16 杭州华三通信技术有限公司 Method and device of vertical converged framework for achieving multi-active detection
CN105207902A (en) * 2015-10-13 2015-12-30 广州西麦科技股份有限公司 Main-standby virtual gateway system and method based on SDN
CN105763462A (en) * 2016-01-20 2016-07-13 杭州华三通信技术有限公司 Stack splitting processing method and switch
CN108092829A (en) * 2018-01-31 2018-05-29 深信服科技股份有限公司 Processing method, SDN controllers and the storage medium of cluster division
CN108462588A (en) * 2017-02-20 2018-08-28 华为技术有限公司 A kind of data processing method and equipment
CN108632395A (en) * 2018-08-23 2018-10-09 深圳市信锐网科技术有限公司 A kind of equipment long-range control method, system and relevant apparatus across public network

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101917287B (en) * 2010-08-04 2012-03-14 杭州华三通信技术有限公司 Fault processing method and fault detecting system of IRF (Intelligent Resilient Framework)
US8370496B1 (en) * 2011-03-31 2013-02-05 Amazon Technologies, Inc. Reducing average link bandwidth in an oversubscribed environment
CN103944781B (en) * 2014-04-15 2017-08-29 迈普通信技术股份有限公司 It is a kind of to prevent the method and system of the unilateral division of pile system
WO2015200366A1 (en) * 2014-06-24 2015-12-30 Ping Li Active battery stack system and method
CN106487611B (en) * 2016-10-27 2020-10-27 新华三技术有限公司 Method and device for detecting SDN cluster split
CN109218177B (en) * 2017-07-03 2021-06-29 中兴通讯股份有限公司 Out-of-domain link detection method and device, storage medium and computer equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101442484A (en) * 2008-12-05 2009-05-27 杭州华三通信技术有限公司 Method, system and equipment for detecting stacking multi-Active
CN102255751A (en) * 2011-06-30 2011-11-23 杭州华三通信技术有限公司 Stacking conflict resolution method and equipment
CN103166811A (en) * 2013-03-06 2013-06-19 杭州华三通信技术有限公司 Multi-active detection (MAD) detection method and device
CN103731303A (en) * 2013-12-20 2014-04-16 杭州华三通信技术有限公司 Method and device of vertical converged framework for achieving multi-active detection
CN105207902A (en) * 2015-10-13 2015-12-30 广州西麦科技股份有限公司 Main-standby virtual gateway system and method based on SDN
CN105763462A (en) * 2016-01-20 2016-07-13 杭州华三通信技术有限公司 Stack splitting processing method and switch
CN108462588A (en) * 2017-02-20 2018-08-28 华为技术有限公司 A kind of data processing method and equipment
CN108092829A (en) * 2018-01-31 2018-05-29 深信服科技股份有限公司 Processing method, SDN controllers and the storage medium of cluster division
CN108632395A (en) * 2018-08-23 2018-10-09 深圳市信锐网科技术有限公司 A kind of equipment long-range control method, system and relevant apparatus across public network

Also Published As

Publication number Publication date
CN110224950A (en) 2019-09-10

Similar Documents

Publication Publication Date Title
EP3537670B1 (en) Protection switching method, network device, and system
CN102724069B (en) Collision detection method, device and network device of dual-master device in thermal staking system
EP1919138B1 (en) A method for implementing backup of the uplink
CN104753697B (en) A kind of method, equipment and system controlling the automatic beginning of the network equipment
CN107465613B (en) Link aggregation interface communication state switching method and device
US11398976B2 (en) Method, device, and system for implementing MUX machine
CN103166811A (en) Multi-active detection (MAD) detection method and device
CN102694664B (en) Multicast method and multicast equipment
US10873527B2 (en) Link protection method in SDN, switching device, and network controller
CN102231682A (en) Stacking conflict processing method and equipment
CN115152192B (en) PCE controlled network reliability
CN114244736A (en) Multi-master detection method, equipment and medium based on stacking environment
CN102884762A (en) Method, devices and system for controlling network paths
CN110224950B (en) Stack system detection system, method, device and computer readable storage medium
CN104427012A (en) Port negotiation method and device
WO2022217786A1 (en) Cross-network communicaton method, apparatus, and system for multi-bus network, and storage medium
EP3633931B1 (en) Method and system for implementing mux machine
CN104579809B (en) The detection method and equipment of a kind of stacking splitting
US11095514B2 (en) System and method for propagating anima network objective changes
EP2464062B1 (en) Method for switch device establishing topology structure and switch device
CN109120520B (en) Fault processing method and equipment
CN110830598B (en) Method and network equipment for establishing and transmitting interface address and alias in BGP (Border gateway protocol) session
CN115426334B (en) Network address generation method, device, routing equipment and storage medium
EP4148549A1 (en) Distributed storage system, abnormality processing method therefor, and related device
EP3627766B1 (en) Method and system for switching between active bng and standby bng

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