CN106452921B - Stacking system splitting detection method and device - Google Patents

Stacking system splitting detection method and device Download PDF

Info

Publication number
CN106452921B
CN106452921B CN201611069961.3A CN201611069961A CN106452921B CN 106452921 B CN106452921 B CN 106452921B CN 201611069961 A CN201611069961 A CN 201611069961A CN 106452921 B CN106452921 B CN 106452921B
Authority
CN
China
Prior art keywords
mad detection
stacking system
message
pex
mad
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
CN201611069961.3A
Other languages
Chinese (zh)
Other versions
CN106452921A (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.)
New H3C Technologies Co Ltd
Original Assignee
New H3C 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 New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201611069961.3A priority Critical patent/CN106452921B/en
Publication of CN106452921A publication Critical patent/CN106452921A/en
Application granted granted Critical
Publication of CN106452921B publication Critical patent/CN106452921B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Abstract

the invention provides a method and a device for detecting the splitting of a stacking system, wherein the method comprises the following steps: when the target parent equipment is main equipment of the stacking system, sending an MAD detection message through a PEX port of a preset port expander, wherein the MAD detection message carries a Domain identifier (Domain ID) and an Active identifier (Active ID) of the stacking system to which the target parent equipment belongs, so that the PEX equipment receiving the MAD detection message forwards the MAD detection message to other PEX ports except for the input port until the MAD detection message reaches other parent equipment in the stacking system; when the target parent equipment receives the MAD detection message, whether the stacking system split occurs is determined according to the Domain ID and the Active ID carried in the MAD detection message. The embodiment of the invention can improve the networking reliability.

Description

Stacking system splitting detection method and device
Technical Field
the invention relates to the technical field of network communication, in particular to a method and a device for detecting splitting of a stacking system.
Background
the IRF3(Intelligent resource Framework 3, third generation Intelligent Resilient Framework) is a vertical network integration virtualization technology developed for improving the access capability and management efficiency of a network access layer. The core idea of the method is that a plurality of PEX (Port Extender) devices are connected to a father device, after necessary configuration is carried out, each PEX device is virtualized into a remote interface board of the father device, and the father device manages the PEX devices in a unified mode. The virtualization technology can improve the interface density of the parent equipment, simplify the network topology and reduce the network maintenance cost with lower cost.
in an actual IRF3 networking, a parent device is typically an IRF consisting of two or more devices. In the network, if an IRF link fails, an IRF is split into two new IRFs, the two IRFs have the same three-layer configuration such as an IP (Internet Protocol), and if both the two IRFs are in an Active state, address conflict is caused, and thus the failure is expanded in the network.
therefore, in order to improve networking reliability, how to detect the IRF splitting in time becomes a technical problem to be solved urgently.
Disclosure of Invention
The invention aims to provide a method and a device for detecting the splitting of a stacking system so as to improve the networking reliability of the stacking system.
In order to achieve the above object, the present invention provides a method for detecting splitting of a stacking system, which is applied to a target parent device in a vertical stacking system, wherein the parent devices of the vertical stacking system are stacked in a chained manner through a stacking link, and a plurality of port expanders are fully connected to each other, the method comprising:
when the target parent equipment is main equipment of the stacking system, sending an MAD detection message through a PEX port of a preset port expander, wherein the MAD detection message carries a Domain identifier (Domain ID) and an Active identifier (Active ID) of the stacking system to which the target parent equipment belongs, so that the PEX equipment receiving the MAD detection message forwards the MAD detection message to other PEX ports except for the input port until the MAD detection message reaches other parent equipment in the stacking system;
When the target parent equipment receives the MAD detection message, whether the stacking system split occurs is determined according to the Domain ID and the Active ID carried in the MAD detection message.
In order to achieve the above object, the present invention further provides a stacking system apparatus applied to a target parent device of a vertical stacking system, wherein the parent devices of the vertical stacking system are stacked in a chain manner via a stacking link, and a plurality of port extenders are fully connected to each other, the apparatus comprising:
a sending unit, configured to send, when the target parent device is a master device of the stacking system, a MAD detection packet through a PEX port of a preset port expander, where the MAD detection packet carries a Domain identifier Domain ID and an Active identifier Active ID of the stacking system to which the target parent device belongs, so that the PEX device that receives the MAD detection packet forwards the MAD detection packet to other PEX ports other than the ingress port until the MAD detection packet reaches other parent devices in the stacking system;
A receiving unit, configured to receive an MAD detection packet;
And the determining unit is used for determining whether the stacking system split occurs according to the Domain ID and the Active ID carried in the MAD detection message received by the receiving unit.
In order to achieve the above object, the present invention further provides a method for detecting splitting of a stacking system, which is applied to a target port expander PEX device in a vertical stacking system, wherein parent devices of the vertical stacking system are chain-stacked through a stacking link, and a plurality of port expanders are fully connected to each other, the method including:
When a message is received, judging whether the message is an MAD detection message or not;
if the message is the MAD detection message, the MAD detection message is forwarded through other PEX ports except the input port which receives the message, so that when a parent device which is used as a main device receives the MAD detection message, whether the stacking system split occurs or not is determined according to a Domain identifier Domain ID and an Active identifier Active ID which are carried in the MAD detection message.
According to a fourth aspect of the embodiments of the present invention, there is provided a stacking system splitting detection apparatus, which is applied to a target port expander PEX device in a vertical stacking system, parent devices of the vertical stacking system are stacked in a chain manner through a stacking link, and a plurality of port expanders are fully connected to each other, the apparatus including:
A receiving unit, configured to receive a packet;
A judging unit, configured to judge whether the packet received by the receiving unit is an MAD detection packet;
A sending unit, configured to forward the MAD detection packet through other PEX ports except the ingress port that receives the packet if the packet received by the receiving unit is the MAD detection packet, so that when a parent device serving as a main device receives the MAD detection packet, it determines whether a stacking system split occurs according to a Domain identifier Domain ID and an Active identifier Active ID carried in the MAD detection packet
By applying the embodiment of the invention, when the target parent equipment is the main equipment of the stacking system, the MAD detection message carrying the Domain ID and the Active ID of the stacking system to which the target parent equipment belongs is sent through the preset PEX port, so that the PEX equipment receiving the MAD detection message forwards the MAD detection message to other PEX ports except the input port until the MAD detection message reaches other parent equipment in the stacking system, when the target parent equipment receives the MAD detection message, whether the stacking system split happens or not is determined according to the Domain ID and the Active ID carried in the MAD detection message, thereby, under the premise of not occupying special ports or links, the MAD detection message is diffused by utilizing PEX channels in the stacking system, the technical problem that the stacking system possibly generated by a plurality of main equipment is avoided because the stacking links between the chain type stacking parent equipment are disconnected and the stacking split detection message cannot be transmitted in the longitudinal stacking system, the detection of the splitting of the stacking system is realized, and the networking reliability is improved.
drawings
Fig. 1 is a schematic flow chart of a method for detecting a split of a stacking system according to an embodiment of the present invention;
FIG. 2 is a flow chart of another method for detecting the splitting of a stacking system according to an embodiment of the present invention;
fig. 3 is a schematic diagram of an architecture of a specific application scenario according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a stacking system splitting detection apparatus according to an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of another splitting detection apparatus for a stacking system according to an embodiment of the present invention;
FIG. 6 is a schematic structural diagram of a stacking system splitting detection apparatus according to an embodiment of the present invention;
Fig. 7 is a schematic structural diagram of another splitting detection apparatus for a stacking system according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions in the embodiments of the present invention better understood and make the above objects, features and advantages of the embodiments of the present invention more comprehensible, the technical solutions in the embodiments of the present invention are described in further detail below with reference to the accompanying drawings.
referring to fig. 1, a schematic flow chart of a method for detecting a splitting of a stacking system according to an embodiment of the present invention is shown in fig. 1, where the method includes the following steps:
it should be noted that, in the embodiment of the present invention, the execution main body of step 101 to step 102 may be any parent device (referred to as a target parent device) in a vertical stacking system including multiple parent devices, the multiple parent devices in the vertical stacking system are stacked in a chain manner through a stacking link, and the multiple port expanders are all connected.
step 101, when the target parent device is a main device of the stacking system, sending a MAD detection message through a preset PEX port, where the MAD detection message carries a Domain ID and an Active ID of the stacking system to which the target parent device belongs, so that the PEX device receiving the MAD detection message forwards the MAD detection message to other PEX ports except for the ingress port until the MAD detection message reaches other parent devices in the stacking system.
in the embodiment of the invention, in order to detect the occurrence of the splitting of the stacking system in time, the master device in the stacking system can send the MAD detection message to the slave device in the stacking system at regular time or periodically; meanwhile, in order to avoid the occupation of ports and links by the MAD detection, the MAD detection message may be diffused through the links between the parent device and the PEX device and the links between the PEX devices.
correspondingly, in the embodiment of the present invention, when the target parent device is a master device of the stacking system, the target parent device may send a MAD detection packet from the preset PEX port, where the MAD detection packet carries a Domain ID (Domain identifier) and an Active ID (activation identifier) of the stacking system to which the target parent device belongs.
when a plurality of PEX ports exist in the target parent device, one port can be selected from the plurality of PEX ports in advance as a preferred packet sending port (i.e., the preset PEX port), and the other PEX ports are used as standby packet sending ports; when the preferred packet sending port Down is closed, the target parent device may select one of the standby packet sending ports as a new packet sending port for sending the MAD detection packet.
in the embodiment of the present invention, when the PEX device receives the MAD detection packet from the PEX port, the PEX device may forward the MAD detection packet through another PEX port other than the ingress port that receives the MAD detection packet until the MAD detection packet reaches another parent device.
the specific implementation of the identification of the MAD detection packet by the PEX device may refer to the related description in the method flow shown in fig. 2, and the details of the embodiment of the present invention are not described herein.
it should be noted that, in the embodiment of the present invention, the PEX port includes a port connected between a parent device and a PEX device in the stacked system, and a port connected between PEX devices, but does not include a port connected to a device external to the stacked system, and the embodiment of the present invention will not be repeated in the following.
And 102, when the target parent equipment receives the MAD detection message, determining whether the stacking system split occurs according to the Domain ID and the Active ID carried in the MAD detection message.
in the embodiment of the present invention, when the target parent device receives the MAD detection packet, whether the stacking system split occurs may be determined by comparing the Domain ID and the Active ID carried in the MAD detection packet with the locally recorded Domain ID and Active ID to which the target parent device belongs.
as an optional implementation manner, in the step 102, determining whether the stacking system split occurs according to the Domain ID and the Active ID carried in the MAD detection packet may include the following steps:
11) comparing the Domain ID and the Active ID carried in the MAD detection message with the Domain ID and the Active ID of the stacking system to which the target parent equipment belongs;
12) If the Domain ID and the Active ID carried in the MAD detection message are the same as those of the stacking system to which the target parent equipment belongs, determining that no stacking system split occurs;
13) and if the Domain ID carried in the MAD detection message is the same as the Domain ID of the stacking system to which the target parent device belongs, but the Active ID carried in the MAD detection message is different from the Active ID of the stacking system to which the target parent device belongs, determining that the stacking system is split.
in this embodiment, when the target parent device receives the MAD detection packet, the target parent device may obtain the Domain ID and the Active ID carried in the MAD detection packet, and compare the Domain ID carried in the MAD detection packet with the locally recorded Domain ID of the stacking system to which the target parent device belongs.
if the Domain ID carried in the MAD detection message is the same as the Domain ID of the stacking system to which the target parent device belongs, further comparing whether the Active ID carried in the detection message is the same as the Active ID of the stacking system to which the target parent device belongs.
If the Active ID carried in the detection message is the same as the Active ID of the stacking system to which the target parent device belongs (that is, the Domain ID and the Active ID carried in the MAD detection message are the same as both the Domain ID and the Active ID of the stacking system to which the target parent device belongs), the target parent device determines that no stacking system split occurs.
If the Active ID carried in the detection message is different from the Active ID of the stacking system to which the target parent device belongs (that is, the Domain ID carried in the MAD detection message is the same as the Domain ID of the stacking system to which the target parent device belongs, but the Active ID carried in the MAD detection message is different from the Active ID of the stacking system to which the target parent device belongs), that is, the detected multiple Active conflicts, the target parent device may determine that the stacking system split has occurred.
it should be noted that, in the embodiment of the present invention, if the Domain ID carried in the MAD detection packet received by the target parent device is different from the Domain ID of the stacking system to which the target parent device belongs, the MAD detection packet is considered to be from a different stacking system, and in this case, the target parent device does not process the MAD detection packet.
In addition, the target parent device determines the processing measure after the stacking system split occurs, for example, if the stacking system with the minimum Master member number continues to work normally (maintains an Active state), other stacking systems may migrate to a Recovery state (indicating that the stacking system is in a disabled state), and close all other physical ports (usually service interfaces) on all member devices in the Recovery state stacking system except for the reserved port, so as to ensure that specific implementations such as that the stacking system cannot forward the service packet any more may refer to related implementations in the existing related flows, which is not described herein again in the embodiment of the present invention.
Referring to fig. 2, a flow chart of another method for detecting a splitting of a stacking system according to an embodiment of the present invention is shown in fig. 2, where the method includes the following steps:
It should be noted that, in the embodiment of the present invention, the execution subject of step 201 to step 202 may be any PEX device (referred to as a target PEX device herein) in a vertical stacking system including multiple parent devices, the multiple parent devices in the vertical stacking system are stacked in a chain manner through a stacking link, and the multiple PEX devices are all connected to each other, and for convenience of description, the execution subject of step 201 to step 202 is taken as an example of the target PEX device in the stacking system.
Step 201, when receiving a message, determining whether the message is an MAD detection message. If yes, go to step 202; otherwise, the current flow is ended.
In the embodiment of the invention, when the target PEX equipment receives the message, the target PEX equipment needs to identify the message so as to judge whether the message is an MAD detection message.
as an optional implementation manner, in the step 201, determining whether the packet is an MAD detection packet may include:
judging whether an input port receiving the message and an ethtype value carried in the message are matched with a matching item of a preset ACL (Access Control List); the matching item of the preset ACL list item is that the input port is a PEX port, the ethtype value is a preset value, and the action item is that the message matched with the matching item is forwarded from other PEX ports except the input port;
and if so, determining that the message is an MAD detection message.
In this embodiment, in order to enable the PEX device to identify the MAD detection packet, an ACL entry may be issued in advance in the PEX device, a matching entry of the ACL entry may be a PEX port as an ingress port, an ethtype value is a preset value (may be set according to an actual scenario), and an action entry is to forward a packet matched with the matching entry from other PEX ports other than the ingress port.
Correspondingly, when the target PEX device receives the message, the target PEX device may determine whether the ingress port of the message and the ethtype value carried in the message are matched with the matching item of the preset ACL entry, that is, determine whether the ingress port of the message is a PEX port and whether the ethtype value carried in the message is a preset value.
If the target PEX device determines that the ingress port of the received message and the ethtype value carried in the message are matched with the matching item of the preset ACL entry, that is, the ingress port of the message is a PEX port, and the ethtype value carried in the message is a preset value, the target PEX device determines that the message can be an MAD detection message.
It should be noted that, in this embodiment, if the target PEX device determines that the ingress port of the received message and the ethtype value carried in the message are not matched with the matching item of the preset ACL entry, that is, the ingress port of the message is not the PEX port, or/and the ethtype value carried in the message is not the preset value, the target PEX device may determine that the message is not the MAD detection message.
Correspondingly, in order to realize the identification of the MAD detection packet, when the parent device sends the MAD detection packet to the PEX device through the PEX port, the ethtype value carried in the MAD detection packet may be set as a preset value, so that the PEX device receiving the MAD detection packet identifies the MAD detection packet according to the ingress port of the packet and the ethtype value carried in the packet.
It should be noted that, in the embodiment of the present invention, when the parent device constructs the MAD detection packet, in addition to enabling the PEX device to identify the MAD detection packet by setting the ethtype value to the preset value, the parent device may also implement the method in other manners, for example, the PEX device identifies the MAD detection packet according to the identification field (the identification field may be a newly added field or an extension of an existing field) that is carried in the packet in advance, and specific implementation of the method is not described herein again.
step 202, forwarding the MAD detection packet through other PEX ports except the ingress port that receives the packet, so that when the parent device serving as the main device receives the MAD detection packet, it determines whether the stacking system split occurs according to the Domain ID and the Active ID carried in the MAD detection packet.
In the embodiment of the invention, when the target PEX device determines that the received message is the MAD detection message, the target PEX device can forward the MAD detection message through other PEX ports except for the input port of the message until the message reaches other father devices.
When receiving the MAD detection packet, the other parent device may determine whether the stacking system split occurs according to the Domain ID and the Active ID carried in the MAD detection packet, and the specific implementation thereof may refer to the related description in the method flow shown in fig. 1, which is not described herein again.
It should be noted that, in the embodiment of the present invention, when the target PEX device determines that the received packet is not the MAD detection packet, the target PEX device may process the received packet according to related implementations in the existing flow, which is not described herein again in the embodiment of the present invention.
It can be seen that, in the method flows shown in fig. 1 and fig. 2, the parent device sends the MAD detection packet to the PEX device through the PEX port, and the forwarding of the MAD detection packet is completed by using the PEX channel in the existing stacking system, so that the detection of the splitting of the stacking system is realized on the premise that a special port or link is not occupied, and the expandability of the splitting detection scheme of the stacking system is improved.
In order to enable those skilled in the art to better understand the technical solution provided by the embodiment of the present invention, the technical solution provided by the embodiment of the present invention is described in detail below with reference to specific application scenarios.
Referring to fig. 3, which is a schematic diagram of an architecture of a specific application scenario provided in an embodiment of the present invention, as shown in fig. 3, in the application scenario, a chain stacking is formed between a parent device 301 and a parent device 302 through a stacking link, a PEX device 401 is connected to the parent device 301, a PEX device 403 is connected to the parent device 302, and all connections are formed between the PEX device 401, the PEX device 402, and the PEX device 403.
Based on the application scenario, the implementation principle of the splitting detection scheme of the stacking system provided by the embodiment of the invention is as follows:
1. MAD detection message structure
Constructing the MAD detection packet (which may be referred to as PEX MAD detection packet herein) requires satisfying the following conditions:
1) The system can carry the Domain ID and Active of the current stacking system;
2) can be identified at the PEX device;
In this embodiment, in order to enable the PEX device to identify the MAD detection packet, a special ethtype value (0xBCCB) is used to identify the packet, the packet content is the Domain ID and the Active ID of the current stacking system, and the packet format may be as follows:
Wherein, the source MAC (Media Access Control) address is an MAC address of a parent device that sends the MAD detection packet.
2. transmit port selection
port selection needs to satisfy the following conditions:
1) Selecting a PEX port to enable the MAD detection message to be sent to other stacking system member equipment;
2) and the dynamic reselection of the port can be realized according to the state change of the PEX port.
in this embodiment, when there are multiple PEX ports connected to the PEX device on the parent device, any one PEX port may be selected as the preferred packet sending port, and when the PEX port is down, one PEX port is reselected from the other PEX ports as the packet sending port.
3. Correct diffusion of MAD detection message on PEX equipment
detecting messages are realized by hardware diffusion preferentially so as to reduce the pressure of a Central Processing Unit (CPU) of PEX equipment; and if the MAD detection message cannot be diffused through hardware, the MAD detection message is identified and forwarded through a CPU of the PEX equipment.
In this embodiment, an ACL entry may be issued on PEX equipment, where a matching entry of the ACL entry is that an ingress port is a PEX port, an ethype value in a packet is 0xBCCB, and an action entry is that a packet matched with the matching entry is forwarded through a PEX port other than the ingress port.
4. Stacking system split detection principle
When the parent equipment receives the MAD detection message, comparing the Domain ID and the Active ID carried in the MAD detection message with the Domain ID and the Active ID of the stacking system to which the parent equipment belongs:
if the Domain IDs are different, the MAD detection message is not processed;
if the Domain ID is the same and the Active ID is also the same, determining that no stacking system split occurs;
If the Domain IDs are the same but the Active IDs are different, it is determined that the stacking system split occurs.
Based on the above principle, in this embodiment, assuming that the parent device 301 is a master device of the stacking system, when the stacking system is not split, the parent device 301 may periodically send a MAD detection message to the PEX1, and when the PEX device 401 receives the MAD detection message, the PEX device 402 forwards the MAD detection message to the PEX device 402 through a PEX port other than the ingress port according to matching of the MAD detection message with a preset ACL entry, finding a match; similarly, the PEX device 402 forwards the MAD detection packet to the PEX device 403; the PEX device 403 forwards the MAD detection packet to the parent device 302; when receiving the MAD detection message, the parent device 302 acquires the Domain ID and the Active ID carried in the MAD detection message, finds that both the Domain ID and the Active ID of the stacking system to which the parent device belongs are the same, and determines that no stacking system split occurs.
If a stacking system link between the parent device 301 and the parent device 302 fails at a certain time, that is, the stacking system is split to form two new stacking systems, at this time, the parent device 301 (the parent device 302) periodically sends MAD detection messages to the PEX device 401 (the PEX device 403), and the MAD detection messages are forwarded through a PEX device channel and finally reach the parent device 302 (the parent device 301); when the parent device 301 (parent device 302) receives the MAD detection message, it acquires the Domain ID and the Active ID carried in the MAD detection message, and determines that the stacking system split occurs when the Domain ID is the same as the Domain ID of the stacking system to which the parent device belongs but the Active ID is different.
After the stacking system is split, the Active ID carried in the MAD detection packet sent by the parent device 301 is the member number of the parent device 301, and the Active ID carried in the MAD detection packet sent by the parent device 302 is the member number of the parent device 302.
As can be seen from the above description, in the technical solution provided in the embodiment of the present invention, when the target parent device is a master device of the stacking system, the MAD detection packet carrying the Domain ID and the Active ID of the stacking system to which the target parent device belongs is sent through the preset PEX port, so that the PEX device receiving the MAD detection packet forwards the MAD detection packet to other PEX ports except the ingress port until the MAD detection packet reaches other parent devices in the stacking system, and when the target parent device receives the MAD detection packet of other parent devices, it is determined whether the stacking system split occurs according to the Domain ID and the Active ID carried in the MAD detection packet, so that, on the premise that no special port or link is occupied, the MAD detection packet is diffused by using the PEX channel in the stacking system, thereby preventing the stacking system in the vertical stacking system that a plurality of stacking systems possibly generated by the stacking system are possible by the failure to transmit the stacked split detection packet due to disconnection of the stacking link between the parent devices in the chain type stacking system and the stacking link is not occupied The technical problem of the main equipment is that the detection of the splitting of the stacking system is realized, and the networking reliability is improved.
Referring to fig. 4, a schematic structural diagram of a stacking system splitting detection apparatus according to an embodiment of the present invention is provided, where the apparatus may be applied to a target parent device in the foregoing method embodiment, and as shown in fig. 4, the apparatus may include:
A sending unit 410, configured to send, when the target parent device is a master device of the stacking system, a MAD detection packet through a PEX port of a preset port extender, where the MAD detection packet carries a Domain identifier Domain ID and an Active identifier Active ID of the stacking system to which the target parent device belongs, so that a PEX device that receives the MAD detection packet forwards the MAD detection packet to other PEX ports except for an ingress port until the MAD detection packet reaches other parent devices in the stacking system;
a receiving unit 420, configured to receive an MAD detection packet;
The determining unit 430 is configured to determine whether a stacking system split occurs according to the Domain ID and the Active ID carried in the MAD detection packet received by the receiving unit 420.
In an optional embodiment, the ethypype value carried in the MAD detection packet is a preset value, so that the PEX device receiving the MAD detection packet identifies the MAD detection packet according to the ingress port of the MAD detection packet and the ethypype value carried in the MAD detection packet.
referring to fig. 5, a schematic structural diagram of another stacking system splitting detection apparatus according to an embodiment of the present invention is shown in fig. 5, and based on the embodiment shown in fig. 4, in the stacking system splitting detection apparatus shown in fig. 5, the determining unit 430 may include:
a comparing subunit 431, configured to compare the Domain ID and the Active ID carried in the MAD detection packet with the Domain ID and the Active ID of the stacking system to which the target parent device belongs;
A determining subunit 432, configured to determine that no stacking system splitting occurs if the Domain ID and the Active ID carried in the MAD detection packet are the same as the Domain ID and the Active ID of the stacking system to which the target parent device belongs; and if the Domain ID carried in the MAD detection message is the same as the Domain ID of the stacking system to which the target parent device belongs, but the Active ID carried in the MAD detection message is different from the Active ID of the stacking system to which the target parent device belongs, determining that the stacking system is split.
Referring to fig. 6, a schematic structural diagram of a stacking system splitting detection apparatus according to an embodiment of the present invention is provided, where the apparatus may be applied to a target PEX device in the foregoing method embodiment, and as shown in fig. 6, the apparatus may include:
a receiving unit 610, configured to receive a message;
a determining unit 620, configured to determine whether the packet received by the receiving unit 610 is an MAD detection packet;
A sending unit 630, configured to forward the MAD detection packet through another PEX port other than the ingress port that receives the packet if the packet received by the receiving unit 610 is the MAD detection packet, so that when a parent device serving as a main device receives the MAD detection packet, it determines whether the stacking system split occurs according to a Domain identifier Domain ID and an Active identifier Active ID carried in the MAD detection packet.
Referring to fig. 7, a schematic structural diagram of another stacking system splitting detection apparatus according to an embodiment of the present invention is shown in fig. 7, and based on the embodiment shown in fig. 6, in the stacking system splitting detection apparatus shown in fig. 7, the determining unit 620 includes:
a judging subunit 621, configured to judge whether the ingress port that receives the packet and the ethernet type ethtype value carried in the packet match a matching entry of an ACL entry in the preset access control list; the method comprises the steps that a matching item of a preset ACL table item is a PEX port at an input port, an ethtype value is a preset value, and an action item is that a message matched with the matching item is forwarded from other PEX ports except the input port;
A determining subunit 622, configured to determine, if the MAD detection packet matches the MAD detection packet, that the packet is the MAD detection packet.
the implementation process of the functions and actions of each unit in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the invention. One of ordinary skill in the art can understand and implement it without inventive effort.
It can be seen from the above embodiments that, when a target parent device is a master device of a stacking system, a preset PEX port sends a MAD detection packet carrying a Domain ID and an Active ID of the stacking system to which the target parent device belongs, so that the PEX device receiving the MAD detection packet forwards the MAD detection packet to other PEX ports other than the ingress port until the MAD detection packet reaches other parent devices in the stacking system, and when the target parent device receives the MAD detection packet, it determines whether the stacking system split occurs according to the Domain ID and the Active ID carried in the MAD detection packet, thereby, on the premise that no special port or link is occupied, diffusing the MAD detection packet by using a PEX channel in the stacking system, avoiding the technical problem that a stacking system possibly has multiple master devices due to the failure to transfer the stacking split detection packet due to the disconnection of a stacking link between parent devices of a chain type stack in a vertical stacking system, the detection of the splitting of the stacking system is realized, and the networking reliability is improved.
other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (6)

1. a method for detecting splitting of a stacking system is applied to target father devices in a vertical stacking system, chain type stacking is carried out between the father devices of the vertical stacking system through stacking links, and full connection is carried out among a plurality of port expanders, and the method is characterized by comprising the following steps:
when the target parent equipment is main equipment of a stacking system, sending an MAD detection message through a PEX port of a preset port expander, wherein the MAD detection message carries a Domain identifier (Domain ID) and an Active identifier (Active ID) of the stacking system to which the target parent equipment belongs, so that the PEX equipment receiving the MAD detection message forwards the MAD detection message to other PEX ports except an access port until the MAD detection message reaches other parent equipment in the stacking system; the method comprises the steps that an Ethernet type ethype value carried in an MAD detection message is a preset value, so that PEX equipment receiving the MAD detection message judges whether an input port receiving the MAD detection message and the Ethernet type ethype value carried in the MAD detection message are matched with a matching item of an ACL (access control list) table item, and when the Ethernet type ethype value carried in the MAD detection message is matched with the matching item, the message is determined to be the MAD detection message; the preset ACL list item takes an input port of a message as a PEX port, an ethtype value as a preset value as a matching item, and an action item is to forward the message matched with the matching item from other PEX ports except the input port; and when the target parent equipment receives the MAD detection message, determining whether the stacking system split occurs according to the Domain ID and the Active ID carried in the MAD detection message.
2. The method according to claim 1, wherein determining whether a stacking system split occurs according to a Domain ID and an Active ID carried in the MAD detection packet comprises:
Comparing the Domain ID and the Active ID carried in the MAD detection message with the Domain ID and the Active ID of the stacking system to which the target parent equipment belongs;
if the Domain ID and the Active ID carried in the MAD detection message are the same as those of the stacking system to which the target parent equipment belongs, determining that no stacking system split occurs;
and if the Domain ID carried in the MAD detection message is the same as the Domain ID of the stacking system to which the target parent device belongs, but the Active ID carried in the MAD detection message is different from the Active ID of the stacking system to which the target parent device belongs, determining that the stacking system is split.
3. A stacking system splitting detection device is applied to a target parent device of a vertical stacking system, chain type stacking is carried out between the parent devices of the vertical stacking system through stacking links, and full connection is carried out among a plurality of port expanders, and the device is characterized by comprising:
A sending unit, configured to send, when the target parent device is a master device of a stacking system, a generated MAD detection packet through a preset port extender PEX port, where the MAD detection packet carries a Domain ID and an Active ID of the stacking system to which the target parent device belongs, so that a PEX device that receives the MAD detection packet forwards the MAD detection packet to other PEX ports other than an ingress port until the MAD detection packet reaches other parent devices in the stacking system; the method comprises the steps that an Ethernet type ethype value carried in an MAD detection message is a preset value, so that PEX equipment receiving the MAD detection message judges whether an input port receiving the MAD detection message and the Ethernet type ethype value carried in the MAD detection message are matched with a matching item of an ACL (access control list) table item, and when the Ethernet type ethype value carried in the MAD detection message is matched with the matching item, the message is determined to be the MAD detection message; the preset ACL list item takes an input port of a message as a PEX port, an ethtype value as a preset value as a matching item, and an action item is to forward the message matched with the matching item from other PEX ports except the input port;
a receiving unit, configured to receive an MAD detection packet;
and the determining unit is used for determining whether the stacking system split occurs according to the Domain ID and the Active ID carried in the MAD detection message received by the receiving unit.
4. The apparatus of claim 3, wherein the determining unit comprises:
the comparison subunit is used for comparing the Domain ID and the Active ID carried in the MAD detection message with the Domain ID and the Active ID of the stacking system to which the target parent equipment belongs;
a determining subunit, configured to determine that no stacking system split occurs if the Domain ID and the Active ID carried in the MAD detection packet are the same as the Domain ID and the Active ID of the stacking system to which the target parent device belongs; and if the Domain ID carried in the MAD detection message is the same as the Domain ID of the stacking system to which the target parent device belongs, but the Active ID carried in the MAD detection message is different from the Active ID of the stacking system to which the target parent device belongs, determining that the stacking system is split.
5. A splitting detection method of a stacking system is applied to target port expander PEX devices in a vertical stacking system, parent devices of the vertical stacking system are stacked in a chain mode through stacking links, and a plurality of port expanders are fully connected, and the method is characterized by comprising the following steps:
when a message is received, judging whether the message is an MAD detection message or not;
If the message is a MAD detection message, forwarding the MAD detection message through other PEX ports except the input port for receiving the message, so that when a father device serving as a main device receives the MAD detection message, determining whether the stacking system split occurs according to a Domain identifier Domain ID and an activation identifier Active ID carried in the MAD detection message;
Wherein the determining whether the packet is an MAD detection packet includes:
judging whether the input port receiving the message and the Ethernet type ethype value carried in the message are matched with a matching item of a preset Access Control List (ACL); the preset ACL list item takes an input port of a message as a PEX port, an ethtype value as a preset value as a matching item, and an action item is to forward the message matched with the matching item from other PEX ports except the input port;
And if so, determining that the message is an MAD detection message.
6. a stacking system splitting detection device is applied to target port expander PEX equipment in a vertical stacking system, parent equipment of the vertical stacking system is subjected to chain type stacking through stacking links, and a plurality of port expanders are fully connected, and the device is characterized by comprising:
A receiving unit, configured to receive a packet;
a judging unit, configured to judge whether the packet received by the receiving unit is an MAD detection packet;
A sending unit, configured to forward the MAD detection packet through other PEX ports except for an ingress port that receives the packet if the packet received by the receiving unit is the MAD detection packet, so that when a parent device serving as a main device receives the MAD detection packet, it determines whether a stacking system split occurs according to a Domain identifier Domain ID and an Active identifier Active ID carried in the MAD detection packet;
Wherein, the judging unit comprises:
the judging subunit is used for judging whether the input port receiving the message and the Ethernet type ethype value carried in the message are matched with a matching item of an ACL (access control list) table item in a preset access control list or not; the preset ACL list item takes an input port of a message as a PEX port, an ethtype value as a preset value as a matching item, and an action item is to forward the message matched with the matching item from other PEX ports except the input port;
and the determining subunit is configured to determine, if the MAD detection packet matches the MAD detection packet, that the packet is an MAD detection packet.
CN201611069961.3A 2016-11-28 2016-11-28 Stacking system splitting detection method and device Active CN106452921B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611069961.3A CN106452921B (en) 2016-11-28 2016-11-28 Stacking system splitting detection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611069961.3A CN106452921B (en) 2016-11-28 2016-11-28 Stacking system splitting detection method and device

Publications (2)

Publication Number Publication Date
CN106452921A CN106452921A (en) 2017-02-22
CN106452921B true CN106452921B (en) 2019-12-06

Family

ID=58219866

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611069961.3A Active CN106452921B (en) 2016-11-28 2016-11-28 Stacking system splitting detection method and device

Country Status (1)

Country Link
CN (1) CN106452921B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106953750B (en) * 2017-03-09 2020-12-04 新华三技术有限公司 Detection path establishing method and device
CN108718248B (en) * 2018-04-25 2021-08-24 新华三技术有限公司 PEX equipment unplugging event processing method and device
CN109039798B (en) * 2018-06-20 2021-01-26 新华三技术有限公司 Splitting detection system and method
CN111343040B (en) * 2020-01-17 2022-12-16 新华三信息安全技术有限公司 Port expander stacking and splitting detection method and device for expansion network bridge
CN113572661B (en) * 2021-07-28 2022-12-27 迈普通信技术股份有限公司 System and method for testing multi-activation detection performance
CN114124902B (en) * 2021-11-12 2023-07-04 迈普通信技术股份有限公司 Multi-activation detection method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101594304A (en) * 2009-07-02 2009-12-02 杭州华三通信技术有限公司 Prevent that pile system from producing the method for loop and the member device in the pile system
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
CN104104596A (en) * 2014-07-28 2014-10-15 杭州华三通信技术有限公司 Intelligent resilient framework (IRF) split processing method and device
CN106161236A (en) * 2015-04-17 2016-11-23 杭州华三通信技术有限公司 Message forwarding method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7401254B2 (en) * 2003-04-23 2008-07-15 Dot Hill Systems Corporation Apparatus and method for a server deterministically killing a redundant server integrated within the same network storage appliance chassis
JP5018716B2 (en) * 2008-09-29 2012-09-05 富士通株式会社 High reliability technology for communication between applications

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101594304A (en) * 2009-07-02 2009-12-02 杭州华三通信技术有限公司 Prevent that pile system from producing the method for loop and the member device in the pile system
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
CN104104596A (en) * 2014-07-28 2014-10-15 杭州华三通信技术有限公司 Intelligent resilient framework (IRF) split processing method and device
CN106161236A (en) * 2015-04-17 2016-11-23 杭州华三通信技术有限公司 Message forwarding method and device

Also Published As

Publication number Publication date
CN106452921A (en) 2017-02-22

Similar Documents

Publication Publication Date Title
CN106452921B (en) Stacking system splitting detection method and device
CN111095869B (en) Method and system for high availability enhancement for computer networks
CN102315975B (en) Fault processing method based on intelligent resilient framework (IRF) system and equipment thereof
CN111740899B (en) ARP request message forwarding method, cross-device link aggregation group and network device
CN103460203B (en) cluster unique identifier
CN101442484B (en) Method, system and equipment for detecting stacking multi-Active
CN111865779B (en) Route synchronization method and cross-device link aggregation group
CN108173691B (en) Cross-device aggregation method and device
US9455916B2 (en) Method and system for changing path and controller thereof
CN104104570A (en) Aggregation processing method in IRF (Intelligent Resilient Framework) system and device
CN102231682B (en) Stacking conflict processing method and equipment
WO2015062479A1 (en) Method, device and system for monitoring terminal status
CN108199962B (en) Address migration method and device, network equipment and readable storage medium
CN111865704B (en) Data transmission method, system and network equipment
CN104518936A (en) Method and device for link dynamic aggregation
CN112688827B (en) Multicast stream detection method, device and system
US20140059154A1 (en) Leader Node Appointment
CN106487611B (en) Method and device for detecting SDN cluster split
WO2022217786A1 (en) Cross-network communicaton method, apparatus, and system for multi-bus network, and storage medium
US10536401B2 (en) Communication device, communication system and communication method
CN108234358B (en) Multicast message transmission method, device and machine readable storage medium
US9893979B2 (en) Network topology discovery by resolving loops
WO2016101600A1 (en) Line card determination, determination processing method and device, and line card determination system
US9137150B2 (en) Chassis type switch
CN109120520B (en) Fault processing method and equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
CB02 Change of applicant information

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Applicant after: Xinhua three Technology Co., Ltd.

Address before: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Applicant before: Huasan Communication Technology Co., Ltd.

CB02 Change of applicant information
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant