CN108667509B - Cluster joining method and device and cluster equipment - Google Patents
Cluster joining method and device and cluster equipment Download PDFInfo
- Publication number
- CN108667509B CN108667509B CN201810242646.9A CN201810242646A CN108667509B CN 108667509 B CN108667509 B CN 108667509B CN 201810242646 A CN201810242646 A CN 201810242646A CN 108667509 B CN108667509 B CN 108667509B
- Authority
- CN
- China
- Prior art keywords
- slave
- master
- cluster
- board
- equipment
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/51—Discovery or management thereof, e.g. service location protocol [SLP] or web services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B10/00—Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
- H04B10/03—Arrangements for fault recovery
- H04B10/032—Arrangements for fault recovery using working and protection systems
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
- H04L41/0668—Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- Electromagnetism (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention provides a cluster joining method, a device and cluster equipment, and relates to the technical field of communication, wherein the cluster joining method comprises the following steps: firstly, the master control board of the master device receives and responds to the join event of the slave device, and then the master control board of the master device performs the smoothing processing on each switching plane one by one until all the switching planes complete the smoothing processing, wherein one switching plane comprises one master network board in the master device and one slave network board in the slave device, and the specific smoothing processing steps are as follows: the method comprises the steps of firstly setting the working mode of a master network board to be an inter-frame exchange mode, then opening an optical fiber interface between the master network board and a corresponding slave network board, solving the technical problem that the process of rejoining and recovering after the slave equipment is powered on and started can affect the cluster operation service through the processing process, and achieving the technical effect of rapid fault recovery without manual operation.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a cluster joining method and apparatus, and a cluster device.
Background
At present, a cluster is composed of at least two cluster devices, and according to the difference of member roles played in the cluster, the two cluster devices are divided into a master device and a slave device, that is, one of the cluster devices is the master device, and the master device is responsible for managing and controlling the cluster while processing services; and the other cluster device is a slave device which is used as a backup device while processing the service. In the using process, when the master device fails, the slave device needs to be able to quickly take over the master device to process data, so as to avoid great influence on services.
Therefore, when one cluster device in the cluster fails due to a failure or other reasons, another cluster device may respond to the change and start to operate alone (as the active device). When the cluster device with power failure is restarted, it needs to be added to the cluster again. Different from the situation that new cluster equipment is added in the cluster and the network board and the service line card board need to be confirmed one by one, the restarted cluster equipment only needs to be connected again. However, in the existing processing procedure, both the process of slave device rejoining and the process of recovery can affect the service of the running cluster.
Disclosure of Invention
In view of this, an object of the present invention is to provide a cluster joining method, an apparatus and a cluster device, which reduce the influence of the process of rejoining and recovering after the slave device is powered on and started on the operation service of the cluster.
In a first aspect, an embodiment of the present invention provides a cluster joining method, which is applied to a cluster including at least two cluster devices, where the at least two cluster devices include a master device and a slave device, each cluster device includes a master control board, a plurality of network boards, and a plurality of service line card boards, and the method includes:
the master control board of the master device receives and responds to the joining event of the slave device;
the main control board of the main equipment performs smoothing treatment on each switching plane one by one until all the switching planes finish the smoothing treatment, wherein one switching plane comprises one main network board in the main equipment and one slave network board in the slave equipment;
the smoothing process includes the following steps:
setting the working mode of the main screen plate as an inter-frame exchange mode;
and opening the optical fiber interface between the master screen plate and the corresponding slave screen plate.
With reference to the first aspect, an embodiment of the present invention provides a first possible implementation manner of the first aspect, where before the performing, by the main control board of the active device, a smoothing process on each switch plane individually, the method further includes:
the master equipment closes interfaces between all slave network boards and the service line card board in the slave equipment by sending a first IPC message to the slave equipment;
after the main control board of the main device performs the smoothing process on each switching plane one by one, the method further includes:
and the master equipment sends a second IPC message to the slave equipment to open the interfaces between all slave network boards and the service line card board in the slave equipment.
With reference to the first aspect, an embodiment of the present invention provides a second possible implementation manner of the first aspect, where before the setting the operating mode of the master board to the inter-frame exchange mode, the method further includes:
closing the flow between the service line card board of the main equipment and the main network board in the current switching plane;
after the optical fiber interface between the master network board and the corresponding slave network board is opened, the method further comprises the following steps:
and opening the flow between the service line card board and the main network board of the main equipment.
With reference to the first aspect, an embodiment of the present invention provides a third possible implementation manner of the first aspect, where after opening a fiber interface between a master screen board and a corresponding slave screen board, the method further includes:
the master network board obtains the network board number and the interface number of the slave network board through a link layer protocol;
comparing the acquired screen plate number and interface number with preset connection data;
and if the comparison result is inconsistent, sending out a connection error prompt message.
With reference to the first aspect, an embodiment of the present invention provides a fourth possible implementation manner of the first aspect, where the join event is a power-on restart event of the slave device or a capacity expansion join event of the slave device.
In a second aspect, an embodiment of the present invention further provides a cluster smoothing device, which is applied to a main control board in a cluster device, where the cluster device further includes a plurality of network boards and a plurality of service line cards;
the main control board includes:
the communication module is used for receiving and responding to a joining event of the slave equipment;
a smoothing module, configured to perform smoothing on each switching plane one by one individually until all switching planes complete smoothing, where a switching plane includes a master network board in the master device and a slave network board in the slave device;
the smoothing process includes the following steps:
setting the working mode of the main screen plate as an inter-frame exchange mode;
and opening the optical fiber interface between the master screen plate and the corresponding slave screen plate.
With reference to the second aspect, an embodiment of the present invention provides a first possible implementation manner of the second aspect, where the method further includes:
the interface closing module is used for the master equipment to close the interfaces between all slave network boards and the service line card board in the slave equipment by sending a first IPC message to the slave equipment;
and the interface opening module is used for opening the interfaces between all the slave network boards and the service line card boards in the slave equipment by the master equipment sending a second IPC message to the slave equipment.
With reference to the second aspect, an embodiment of the present invention provides a second possible implementation manner of the second aspect, where the method further includes:
the data acquisition module is used for acquiring the screen plate number and the interface number of the slave screen plate by the master screen plate through a link layer protocol;
the data comparison module is used for comparing the acquired screen plate number and the interface number with preset connection data;
and the prompt module is used for sending out a connection error prompt message when the comparison result is inconsistent.
In a third aspect, an embodiment of the present invention further provides a cluster device, which is applied to a system including a main control board, a plurality of network boards, and a plurality of service line cards, where the main control board includes a memory and a processor, and a computer program that can run on the processor is stored in the memory, and is characterized in that when the processor executes the computer program, any one of the methods is implemented.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable medium having non-volatile program code executable by a processor, including: the program code causes the processor to perform the method of any of the above.
The embodiment of the invention has the following beneficial effects:
the present application provides a cluster joining method, apparatus and cluster device, which are mainly applied to a cluster including at least two cluster devices, where the at least two cluster devices include a master device and a slave device, each cluster device includes a master control board, a plurality of network boards and a plurality of service line cards, and specifically, after the master control board of the master device receives and responds to a joining event of the slave device, the master control board of the master device performs a smoothing process on each switching plane one by one, until all switching planes complete the smoothing process, where it needs to be explained that one switching plane includes one master network board in the master device and one slave network board in the slave device, a plurality of switching planes are disposed between the master device and the slave device, and the smoothing process of each switching plane includes the following steps on the master control board side of the master device: firstly, the working mode of the master network board is set to be an inter-frame exchange mode, namely, in a cluster, slave equipment is powered off, only when the master equipment is in a working state, the working mode of the master network board of the master equipment is already switched to be an intra-frame forwarding mode, and after the working mode of the master network board is switched, an optical fiber interface between the master network board and a corresponding slave network board is opened, and a communication channel between the master equipment and the slave equipment is reestablished. Therefore, in the process of rejoining the slave devices in the cluster, each switching plane is subjected to smoothing processing one by one until all the switching planes finish the smoothing processing process, and only one switching plane is subjected to smoothing processing each time.
Additional features and advantages of the disclosure will be set forth in the description which follows, or in part may be learned by the practice of the above-described techniques of the disclosure, or may be learned by practice of the disclosure.
In order to make the aforementioned objects, features and advantages of the present disclosure more comprehensible, preferred embodiments accompanied with figures are described in detail below.
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, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a prior art networking diagram of a cluster;
fig. 2 is a flowchart of each switch plane in the cluster adding method according to the embodiment of the present invention;
FIG. 3 is a flowchart illustrating an overall method for adding clusters according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a cluster adding apparatus according to an embodiment of the present invention.
Icon: 1-a communication module; 2-smoothing module.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some, but not all embodiments of the present invention. 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 cluster may be composed of two cluster devices to form a back-to-back cluster, one cluster device operating as a master device and the other cluster device operating as a slave device. When one of the cluster devices fails due to a failure or other reasons, the other cluster device responds to the change and starts to operate alone (as the active device). When the cluster device with power failure is restarted, the slave device needs to be added to the cluster again. In the existing processing process, both a rejoining process and a recovering process of the slave device may affect a service of the running cluster (for example, cause a service interruption of the current cluster or cause a large amount of packet loss of a service flow of the current cluster, etc.).
To facilitate understanding of the embodiment, a cluster joining method disclosed in the embodiment of the present invention is first described in detail.
Example 1
The embodiment of the invention provides a cluster joining method.
In accordance with an embodiment of the present invention, a more detailed embodiment of a cluster joining method is provided, it being noted that the steps illustrated in the flowchart of the figure may be performed in a computer system such as a set of computer-executable instructions, and that while a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than here.
Referring to fig. 1 and fig. 2, the cluster adding method provided in this embodiment specifically includes the following steps:
first, a description is given of a cluster composition situation with reference to fig. 1, where a cluster is composed of multiple cluster devices (also referred to as a cluster Line Card frame, Line Card sessions, abbreviated as LCC), and in this embodiment, taking a cluster composed of two cluster devices as an example, each cluster device includes a main control board, multiple service Line Card boards (LPUs), and multiple network boards (also referred to as Line Card frame Switch network boards, abbreviated as SFUs). According to the difference of cluster device roles in the cluster, the two cluster devices can be mutually used as a master device and a slave device, the master device is responsible for managing and controlling the cluster while processing services, and the slave device is used as a backup device while processing services. When the master device fails, the slave device needs to be able to quickly take over the master device to process data, so as to avoid that the service in the cluster is greatly affected. Therefore, when one cluster device in the cluster fails due to a fault or other reasons, another cluster device may respond to the change and start to operate alone, and after the cluster device that has failed to fail is restarted, the restarted cluster device needs to be added to the cluster.
Step S101: and the master control board of the master device receives and responds to the joining event of the slave device.
It should be noted that the join event is a power-on restart event of the slave device or a capacity expansion join event of the slave device. The difference between the two is that the timing of the start-up is different. When the slave device is powered on and restarted, because the slave device works in the cluster mode before, after the slave device is restarted, a restart notification is sent to the master device through a control channel between the slave device and the master device, so that the original cluster is recovered with the master device. And if the two cluster devices do not form a cluster before, the two cluster devices can independently work in an in-frame forwarding mode, at the moment, workers respectively issue cluster forming instructions to the two cluster devices, the two cluster devices form a cluster, election is carried out, and the master device and the slave device are determined so as to construct a new cluster. No matter in the process of restarting or adding capacity expansion, the problem of traffic interruption or a large amount of packet loss is caused due to the smooth processing between the two cluster devices. Here, the join event is described as an example of power-on restart.
When one cluster device (for example, a slave device) fails due to a fault or other reasons, the master device responds to the change, notifies the master board to switch to the intra-frame forwarding mode through its own master control board, and starts to operate alone (that is, the service line card board of the master device receives traffic and forwards the traffic to another service line card board of its own through its own network board), at this time, the traffic received by the service line card board of the master device is not forwarded to the cluster device (that is, the slave device) that has failed, and it is ensured that the traffic can be forwarded normally.
In the process, the slave device performs power-on restart and sends a power-on restart event to the master device after the power-on restart.
The cluster comprises two cluster devices (LCC1 and LCC2) for explanation, wherein, LCC1 is used as a master device, and LCC2 is used as a slave device, when one of the cluster devices is powered down (assuming that LCC2 is powered down), only LCC1 in the cluster is still working, and the master device is LCC 1. When LCC2 is powered on and restarted, the connection with LCC1 needs to be established again.
At this time, the master control board of the LCC1 receives and responds to the power-on restart event of the LCC2, and the master control board of the LCC1 controls the smoothing process flow.
Step S102: the main control board of the main device performs the smoothing processing on each switching plane one by one until all the switching planes complete the smoothing processing.
It should be noted that, for two cluster devices forming a cluster, a switch plane and a control plane are included. One switching plane includes one screen board in the master device (also called master screen board), one screen board in the slave device (slave screen board), and a data channel formed between the master screen board and the slave screen board. One control plane includes one master control board of the master device (also referred to as master board), one master control board of the slave device (slave master board), and a control channel formed between the master control board and the slave master control board.
In view of the existence of multiple switching planes between the two LCCs (i.e., the master device and the slave device), in order to avoid traffic interruption of the cluster, the master control board of the LCC1 needs to perform smoothing on each switching plane one by one, and after the smoothing on the current switching plane is completed, perform smoothing on the next switching plane until all switching planes are completed.
The steps of the smoothing process in each switching plane are as follows:
step S1021: and setting the working mode of the main screen plate as an inter-frame exchange mode.
After the LCC2 sends a power-on restart event to the LCC1, the LCC1 switches the working mode of the master network board from the intra-frame forwarding mode to the inter-frame switching mode, so that the working modes of the slave network board and the master network board are unified and connected.
Step S1022: and opening the optical fiber interface between the master screen plate and the corresponding slave screen plate.
After the working mode conversion of the main network board is completed, the main network board automatically opens the optical fiber interface connected with the opposite-end slave network board, so that a data channel between the LCC1 and the LCC2 is communicated, the main network board and the slave network board form a switching plane through the data channel, and the flow is forwarded in a cluster mode again.
In order to effectively determine whether the connection of the optical fiber interface is correct, after the optical fiber interface between the master network board and the corresponding slave network board is opened, the method further includes:
(1) firstly, a master network board acquires a network board number and an interface number of a slave network board through a link layer protocol; and step two, comparing the screen plate number and the interface number acquired in the step one with preset connection data, judging whether the optical fiber connection is correct or not according to whether the connection data are consistent, and judging that the plane inspection state is a pass state when the comparison result is consistent.
(2) If not, namely the comparison result is inconsistent, sending out a connection error prompt message. Namely, when the comparison result is inconsistent, a connection error prompt message is given, and the plane check state is forced to be set to pass, so that the smooth processing flow of the cluster is not interrupted, and the user can perform connection adjustment after selection. Typically, for the case of LCC2 failure recovery, the link will not typically change and the link, if any, may not be resolved in a smooth process flow due to the need for fast recovery and uninterrupted recovery flow. Different from the above situation, in the smoothing process flow of adding a new cluster device into the cluster and expanding the new cluster device into the cluster, the connection line must be correct to perform the next operation.
Heretofore, when the LCC1 receives a power-on restart event of the LCC2, the LCC1 smoothes the switching planes between the LCC2 one by one, so that the planes that are not smoothed by the LCC1 can continue to operate in an intra-frame forwarding mode (that is, traffic is forwarded along another service line card of the service line card-the main network board-of the LCC 1), and the traffic is forwarded, so that the smoothing of all the switching planes is completed in this way, and the problem of traffic interruption or a large amount of packet loss caused by the fact that all the switching planes are smoothed at the same time in the prior art is avoided.
In addition, it should be noted that, no matter power-on restart or capacity expansion join is performed, the active device finally controls the cluster to perform smoothing processing. For example, in the case of power-on restart, when one cluster device loses power, another cluster device will automatically be upgraded to be the master device, and the cluster device that is power-on restarted will be considered as the slave device. Under the condition of capacity expansion joining, when two cluster devices work independently, both the two cluster devices can be regarded as main devices, when a cluster forming instruction issued by a worker is received, the two cluster devices carry out negotiation election, one cluster device is determined to be a main device according to a preset strategy, the other cluster device is determined to be a slave device, and the main device responds to a capacity expansion joining event sent by the slave device to carry out smooth processing.
Example 2
The embodiment of the invention provides a cluster joining method.
In accordance with an embodiment of the present invention, a more detailed embodiment of a cluster joining method is provided, it being noted that the steps illustrated in the flowchart of the figure may be performed in a computer system such as a set of computer-executable instructions, and that while a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than here.
Referring to fig. 3, the cluster adding method provided in this embodiment specifically includes the following steps:
step S201: and the master control board of the master device receives and responds to the joining event of the slave device.
In this embodiment, the LCC1 is still acting as the master device and the LCC2 is acting as the slave device. This step is the same as step S101, and is not described again.
Step S202: the master device sends a first IPC message to the slave device to close all interfaces between the slave network board and the service line card board in the slave device.
Before determining the switching plane to be smoothed and starting smoothing, LCC1 sends a first Internet Process Connection (IPC) message to LCC2, and closes the interface between the slave network board and the service line card board. In implementation, the main control board of LCC1 may send the first IPC message in a multicast format. The first IPC message described above contains the destination box number (i.e., the box number of LCC2), the destination slot number (i.e., the slot numbers of all the service line cards in LCC2), and the message content. Through the first IPC message, the interfaces between all the service line cards of the LCC2 and their corresponding slave network boards are closed, so as to break down the possible problems of traffic forwarding and interruption and packet loss caused by the routing issue. Thereafter, the master board of LCC1 performs smoothing of the respective switch planes.
Step S203: the main control board of the main device performs the smoothing processing on each switching plane one by one until all the switching planes complete the smoothing processing.
The main control board of LCC1 performs smoothing on each switching plane as follows:
step S2031: and closing the flow between the service line card board of the main equipment and the main network board in the current switching plane.
The traffic interaction relationship exists between the service line card board of the LCC1 and the main board, and the specific service functions include that the main board is responsible for exchanging data, and the service line card board is responsible for data traffic processing, that is, for the LCC1, in the smoothing process, there may still be a network board where traffic passes through the smoothing process, which may also cause a problem of packet loss.
After the LCC2 joins the cluster, the master control board of the LCC1 closes the traffic between its own service line card and the master network board in the current switching plane, so as to effectively reduce the influence that the step S2032 process or the step S2033 process of the LCC2 may have on the traffic of the LCC1 when joining. The flow closing may be implemented by closing an interface on a service line card of the LCC1 or closing a main network card interface on the LCC1, which is not limited herein.
Step S2032: and setting the working mode of the main screen plate as an inter-frame exchange mode.
Step S2033: and opening the optical fiber interface between the master screen plate and the corresponding slave screen plate.
Step S2032 and step 2033 are the same as step S1021 and step S1022 described above and will not be described again.
Step S2034: and opening the flow between the service line card board and the main network board of the main equipment.
In the implementation process, after the switch plane check passes, the main control board of the LCC1 reopens the traffic between the service line card board and the main board, and the traffic can be normally forwarded between the service line card board and the main board.
Step S204: and the master equipment sends a second IPC message to the slave equipment to open the interfaces between all slave network boards and the service line card board in the slave equipment.
After all the switching planes between the LCC1 and the LCC2 are smoothed, the main control board of the LCC1 sends a second IPC message to notify all the service line cards of the LCC2 to open the interfaces to all the slave network boards, so as to open the routing issue of the LCC2, thereby realizing the normal forwarding of the cross-frame traffic, and at this point, the cluster recovery is completed, and the smoothing process flow is finished.
As can be seen from the above description, the master control board of the master device can reduce packet loss of traffic in the process of adding the slave device into the cluster by controlling the timing of closing/opening the traffic between the service line card board and the network board of the master device itself and between the service line card board and the network board of the slave device, thereby improving the reliability in the cluster forming process. The method can be suitable for the condition that the cluster equipment is added again after power failure, and the condition that new cluster equipment is added into the cluster in an expansion mode.
Example 3
The embodiment of the invention provides a cluster smoothing device. The cluster smoothing device is mainly used for executing the cluster adding method provided by the above-mentioned content of the embodiment of the present invention, and the following specifically introduces the cluster smoothing device provided by the embodiment of the present invention.
Referring to fig. 4, this embodiment provides a cluster smoothing device applied to a main control board in a cluster device, where the cluster device further includes a plurality of network boards and a plurality of service line cards;
the main control board includes:
the communication module 1 is used for receiving and responding to a joining event of the slave equipment;
a smoothing module 2, configured to perform smoothing on each switching plane one by one individually until all switching planes complete smoothing, where a switching plane includes a master network board in the master device and a slave network board in the slave device;
the smoothing process includes the following steps:
setting the working mode of the main screen plate as an inter-frame exchange mode;
and opening the optical fiber interface between the master screen plate and the corresponding slave screen plate.
In addition, the cluster smoothing apparatus further includes:
and the data acquisition module is used for acquiring the screen plate number and the interface number of the slave screen plate by the master screen plate through a link layer protocol.
And the data comparison module is used for comparing the acquired screen plate number and the acquired interface number with preset connection data.
In addition, the cluster smoothing apparatus further includes:
and the data acquisition module is used for acquiring the screen plate number and the interface number of the slave screen plate by the master screen plate through a link layer protocol.
And the data comparison module is used for comparing the acquired screen plate number and the acquired interface number with preset connection data.
And the prompt module is used for sending out a connection error prompt message when the comparison result is inconsistent.
The cluster smoothing device provided by the embodiment of the invention has the same technical characteristics as the cluster adding method provided by the embodiment, so that the same technical problems can be solved, and the same technical effects can be achieved.
Example 4
A cluster device is applied to a main control board, a plurality of network boards and a plurality of service line card boards, wherein the main control board comprises a memory and a processor, and a computer program which can run on the processor is stored in the memory.
Furthermore, the present embodiments also provide a computer-readable medium having non-volatile program code executable by a processor, the program code causing the processor to perform any of the methods described above.
In addition, in the description of the embodiments of the present invention, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
The method, the apparatus, and the computer program product for processing a residual table entry provided in the embodiments of the present invention include a computer-readable storage medium storing a non-volatile program code executable by a processor, where instructions included in the program code may be used to execute the method described in the foregoing method embodiments, and specific implementation may refer to the method embodiments, and will not be described herein again.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and 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 units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present invention, which are used for illustrating the technical solutions of the present invention and not for limiting the same, and the protection scope of the present invention is not limited thereto, although the present invention is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (10)
1. A cluster joining method is applied to a cluster comprising at least two cluster devices, wherein the at least two cluster devices comprise a master device and a slave device, each cluster device comprises a master control board, a plurality of network boards and a plurality of service line card boards, and the method comprises the following steps:
the master control board of the master device receives and responds to the join event of the slave device;
the main control board of the main equipment performs smoothing treatment on each switching plane one by one until all the switching planes finish smoothing treatment, wherein one switching plane comprises a main network board in the main equipment and a slave network board in the slave equipment;
the smoothing process comprises the following steps:
setting the working mode of the main screen plate as an inter-frame exchange mode;
and opening the optical fiber interface between the master screen plate and the corresponding slave screen plate.
2. The method of claim 1, before the main control board of the active device performs the smoothing process on each switching plane one by one, the method further comprises:
the master equipment closes interfaces between all slave network boards and the service line card board in the slave equipment by sending a first IPC message to the slave equipment;
after the main control board of the main device performs the smoothing process on each switching plane one by one, the method further includes:
and the master equipment sends a second IPC message to the slave equipment to open the interfaces between all slave network boards and the service line card board in the slave equipment.
3. The method according to claim 1, wherein before the setting the operation mode of the master web board to the inter-frame exchange mode, further comprising:
closing the flow between the service line card board of the main equipment and the main network board in the current switching plane;
after the opening of the optical fiber interface between the master network board and the corresponding slave network board, the method further comprises the following steps:
and opening the flow between the service line card board of the main equipment and the main network board.
4. The method of claim 1, wherein after opening the fiber optic interface between the master web panel and the corresponding slave web panel, further comprising:
the master network board obtains the network board number and the interface number of the slave network board through a link layer protocol;
comparing the acquired screen plate number and the interface number with preset connection data;
and if the comparison result is inconsistent, sending out a connection error prompt message.
5. The method of claim 1, wherein the join event is a power-on restart event of the slave device or a capacity-expansion join event of the slave device.
6. A cluster joining device is characterized in that the device is applied to a main control board in cluster equipment, and the cluster equipment further comprises a plurality of network boards and a plurality of service line clamping boards;
the main control board includes:
the communication module is used for receiving and responding to a joining event of the slave equipment;
a smoothing module, configured to perform smoothing on each switching plane one by one individually until all the switching planes complete smoothing, where one switching plane includes one master network board in the master device and one slave network board in the slave device;
the smoothing process comprises the following steps:
setting the working mode of the main screen plate as an inter-frame exchange mode;
and opening the optical fiber interface between the master screen plate and the corresponding slave screen plate.
7. The apparatus of claim 6, further comprising:
the interface closing module is used for the master equipment to close the interfaces between all slave network boards and the service line card board in the slave equipment by sending a first IPC message to the slave equipment;
and the interface opening module is used for opening the interfaces between all the slave network boards and the service line card boards in the slave equipment by the master equipment sending a second IPC message to the slave equipment.
8. The apparatus of claim 6, further comprising:
the data acquisition module is used for acquiring the screen plate number and the interface number of the slave screen plate by the master screen plate through a link layer protocol;
the data comparison module is used for comparing the acquired screen plate number and the acquired interface number with preset connection data;
and the prompt module is used for sending out a connection error prompt message when the comparison result is inconsistent.
9. A cluster device, which is applied to a host board, a plurality of network boards and a plurality of service line card boards, wherein the host board comprises a memory and a processor, and the memory stores a computer program that can run on the processor, and the processor implements the method of any one of claims 1 to 5 when executing the computer program.
10. A computer-readable medium having non-volatile program code executable by a processor, wherein the program code causes the processor to perform the method of any of claims 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810242646.9A CN108667509B (en) | 2018-03-22 | 2018-03-22 | Cluster joining method and device and cluster equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810242646.9A CN108667509B (en) | 2018-03-22 | 2018-03-22 | Cluster joining method and device and cluster equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108667509A CN108667509A (en) | 2018-10-16 |
CN108667509B true CN108667509B (en) | 2020-04-14 |
Family
ID=63782351
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810242646.9A Active CN108667509B (en) | 2018-03-22 | 2018-03-22 | Cluster joining method and device and cluster equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108667509B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110502470A (en) * | 2019-09-09 | 2019-11-26 | 中山市天启智能科技有限公司 | A kind of cluster server mainboard |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101917337A (en) * | 2010-08-09 | 2010-12-15 | 中兴通讯股份有限公司 | Device and method for interconnecting router cluster middle plates |
CN103152266A (en) * | 2011-12-07 | 2013-06-12 | 华为技术有限公司 | Synchronization method among network equipment, network equipment and system |
CN106850724A (en) * | 2015-12-07 | 2017-06-13 | 中兴通讯股份有限公司 | Data push method and device |
CN107426635A (en) * | 2017-06-29 | 2017-12-01 | 北京华为数字技术有限公司 | A kind of optical interconnection system |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7804769B1 (en) * | 2005-12-01 | 2010-09-28 | Juniper Networks, Inc. | Non-stop forwarding in a multi-chassis router |
CN101394309A (en) * | 2008-10-29 | 2009-03-25 | 华为技术有限公司 | Cluster system expanding method, apparatus and cluster system |
US8547825B2 (en) * | 2011-07-07 | 2013-10-01 | International Business Machines Corporation | Switch fabric management |
CN102893564B (en) * | 2012-06-21 | 2016-03-09 | 华为技术有限公司 | A kind of router supporting multi-groove |
CN105245454B (en) * | 2014-07-10 | 2018-10-19 | 华为技术有限公司 | The flow forwarding method and device of exchange system |
CN107547255B (en) * | 2017-06-30 | 2020-12-01 | 新华三技术有限公司 | Cluster system upgrading method, main control board and cluster system |
CN107547254B (en) * | 2017-06-30 | 2021-03-26 | 新华三技术有限公司 | Method for processing network board event, service line card board and cluster system |
CN107294790A (en) * | 2017-07-21 | 2017-10-24 | 郑州云海信息技术有限公司 | Controller node fault recovery method in a kind of group system |
-
2018
- 2018-03-22 CN CN201810242646.9A patent/CN108667509B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101917337A (en) * | 2010-08-09 | 2010-12-15 | 中兴通讯股份有限公司 | Device and method for interconnecting router cluster middle plates |
CN103152266A (en) * | 2011-12-07 | 2013-06-12 | 华为技术有限公司 | Synchronization method among network equipment, network equipment and system |
CN106850724A (en) * | 2015-12-07 | 2017-06-13 | 中兴通讯股份有限公司 | Data push method and device |
CN107426635A (en) * | 2017-06-29 | 2017-12-01 | 北京华为数字技术有限公司 | A kind of optical interconnection system |
Also Published As
Publication number | Publication date |
---|---|
CN108667509A (en) | 2018-10-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110912780B (en) | High-availability cluster detection method, system and controlled terminal | |
CN102439903B (en) | Method, device and system for realizing disaster-tolerant backup | |
CN102137017B (en) | Working method and device used for virtual network unit | |
CN102916825A (en) | Management equipment of dual-computer hot standby system, management method and dual-computer hot standby system | |
CN106060088B (en) | Service management method and device | |
CN106533736B (en) | Network equipment restarting method and device | |
CN101702663A (en) | Method for updating ring network topology information, device and system thereof | |
CN103117876B (en) | The synchronous method and device of user state information | |
CN107404394B (en) | IPTV system disaster tolerance method and IPTV disaster tolerance system | |
CN104486128B (en) | A kind of system and method for realizing redundancy heartbeat between dual controller node | |
US9960993B2 (en) | Packet network linear protection systems and methods in a dual home or multi-home configuration | |
CN102006189A (en) | Primary access server determination method and device for dual-machine redundancy backup | |
WO2012174893A1 (en) | Dual-center disaster recovery-based switching method and device in iptv system | |
US10037253B2 (en) | Fault handling methods in a home service system, and associated household appliances and servers | |
CN109218232B (en) | Method, equipment and system for realizing Mux machine | |
CN109842526B (en) | Disaster recovery method and device | |
CN112583708B (en) | Connection relation control method and device and electronic equipment | |
CN105577444A (en) | Wireless controller management method and wireless controller | |
CN106941424B (en) | Redundancy switching method and device based on TTDP protocol | |
CN111343019A (en) | Reconnection method, reconnection device and storage medium | |
CN111371680B (en) | Route management method, device, equipment and storage medium for dual-computer hot standby | |
CN108667509B (en) | Cluster joining method and device and cluster equipment | |
CN101951303B (en) | A kind of method and node device realizing bidirectional linear protection switch of multiplex section | |
CN109150709B (en) | Method, equipment and system for realizing Mux machine | |
CN105763442A (en) | PON system and method avoiding interruption of LACP aggregation link in main-standby switching process |
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 |