A method, apparatus, device and medium for stacking system assembly

CN118069235BActive Publication Date: 2026-09-11RUIJIE NETWORKS CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310458303.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-25
Publication Date
2026-09-11
Estimated Expiration
2043-04-25

AI Technical Summary

Technical Problem

[0005]为了解决相关技术中在组建堆叠系统时要求运维人员在不同的阶段在控制器和设备的CLI上分别进行操作,较为繁琐且容易出错的问题,本申请实施例提供了堆叠系统组建方法、装置、设备及介质

Benefits of technology

[0047] After the controller obtains the configuration information of the stacking system to be created, it can send the configuration information of the stacking system to the first member device (i.e. the member device directly connected to the controller) to complete the rapid assembly of the stacking system. This method does not rely on the controller sending configuration to each member device. As long as the first member device in the stacking system receives the configuration information, the stacking system can be assembled even if the local topology connection is complex. Moreover, the entire process does not require maintenance personnel to perform CLI operations locally, which reduces the complexity of stacking system assembly and the probability of errors, thereby improving stacking efficiency. Therefore, it can complete the rapid assembly of a large number of stacking systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118069235B_ABST
    Figure CN118069235B_ABST
Patent Text Reader

Abstract

The application discloses a stack system assembly method and device, equipment and medium, and relates to the technical field of stack virtualization. The method comprises the following steps: a controller acquires configuration information corresponding to a target stack system to be assembled, and the configuration information comprises device information of a plurality of member devices constituting the target stack system; when a first member device in the plurality of member devices establishes a connection with the controller, the controller sends an assembly instruction of the target stack system to the first member device, the assembly instruction carries the configuration information, the first member device determines a second member device from adjacent devices according to the configuration information, sends the configuration information to the second member device, and configures the first member device based on the second member device and the device configuration information. The method reduces the complexity and error probability of stack system assembly, and improves the stacking efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of stacked virtualization technology, and in particular to a method, apparatus, device and medium for assembling a stacked system. Background Technology

[0002] Stacked virtualization technology is a widely used technology that can virtualize multiple member devices into one device for management, improving device reliability and ease of use.

[0003] In the traditional approach, setting up a stacking system and bringing the controller online requires maintenance personnel to configure port information for designated devices on the controller, and to configure device number, device priority, stacking port, and other information for each member device via the command-line interface (CLI) on the member devices to be stacked. After completing the corresponding configuration, the member devices are restarted and switched to stacking mode. Then, construction personnel install the devices on the rack, enabling the stacking system to automatically come online on the controller and obtain the pre-configured settings from the controller.

[0004] When there are many stacked devices in the network, this method requires maintenance personnel to operate on the CLI of the controller and the device at different stages, which is cumbersome and prone to errors. Summary of the Invention

[0005] To address the problem in related technologies that require maintenance personnel to perform separate operations on the CLI of the controller and the device at different stages when building a stacked system, which is cumbersome and prone to errors, this application provides a method, apparatus, device and medium for building a stacked system.

[0006] In a first aspect, embodiments of this application provide a method for assembling a stacked system, applied to a controller, the method comprising:

[0007] Obtain the configuration information corresponding to the target stacking system to be assembled. The configuration information includes the device information of multiple member devices constituting the target stacking system.

[0008] When it is confirmed that the first member device among the above-mentioned multiple member devices has established a connection with the controller, the assembly instruction of the target stacking system is sent to the first member device. The assembly instruction carries the configuration information so that the first member device can determine the second member device from the adjacent devices according to the configuration information, send the configuration information to the second member device, and configure the first member device based on the second member device and the device configuration information.

[0009] In one possible implementation, after sending the assembly instruction of the target stacking system to the first member device, the method further includes:

[0010] Receive a go-on request, which is sent by the first member device after all member devices in the target stacking system have been configured.

[0011] Configure all member devices in the target stack system to be online.

[0012] In one possible implementation, the above method further includes:

[0013] Receive an addition instruction to add a member device to the target stacking system, wherein the addition instruction carries device information of the member device to be added;

[0014] An update instruction for the target stack system is sent to the first member device of the target stack system. The update instruction carries updated configuration information, which includes the device information of the member device to be added. This enables the first member device to determine the member device to be added from the neighboring devices of the target stack system to be updated based on the updated configuration information, send the updated configuration information to the member device to be added, and configure the target stack system to be updated based on the member device to be added and the updated device configuration information.

[0015] Secondly, embodiments of this application provide a stacking system assembly apparatus applied to a controller, the apparatus comprising:

[0016] The acquisition unit is used to acquire configuration information corresponding to the target stacking system to be assembled. The configuration information includes device information of multiple member devices constituting the target stacking system.

[0017] When the sending unit confirms that the first member device among the plurality of member devices has established a connection with the controller, it sends the assembly instruction of the target stacking system to the first member device. The assembly instruction carries the configuration information so that the first member device can determine the second member device from the adjacent devices according to the configuration information, send the configuration information to the second member device, and configure the first member device based on the second member device and the device configuration information.

[0018] Thirdly, embodiments of this application provide a method for assembling a stacked system, applied to a first member device connected to a controller, the method comprising:

[0019] Receive a component assembly instruction for a target stack system, wherein the component assembly instruction includes configuration information of the target stack system, wherein the configuration information includes device information of multiple member devices constituting the target stack system, and the component assembly instruction is sent by the controller;

[0020] Based on the above configuration information, a second member device is determined from the neighboring devices, and the above configuration information is sent to the second member device.

[0021] The first member device is configured based on the second member device and the configuration information described above.

[0022] In one possible implementation, after configuring the first member device based on the second member device and configuration information, the method further includes:

[0023] Receive the update instruction for the target stacking system sent by the controller. The update instruction carries updated configuration information, including device information of the member device to be added.

[0024] Based on the updated configuration information, the member device to be added is determined from the adjacent devices of the target stacking system to be updated, and the updated configuration information is sent to the member device to be added so that the member device to be added can be configured based on the updated configuration information.

[0025] Based on the aforementioned member devices to be added and the updated configuration information, the aforementioned target stacking system to be updated is configured.

[0026] In one possible implementation, the device information of the aforementioned member device includes the characteristic information of the aforementioned member device;

[0027] The above-mentioned determination of the second member device from the neighboring devices based on the above configuration information includes:

[0028] The feature information corresponding to each adjacent device is matched with the feature information in the above configuration information to determine the second member device from the adjacent devices.

[0029] In one possible implementation, the device information of the aforementioned member device includes the characteristic information, device number, and stacking port configuration information of the aforementioned member device;

[0030] The above-mentioned configuration of the first member device based on the second member device and the above-mentioned configuration information includes:

[0031] The feature information of the first member device is matched with the feature information in the configuration information, and the target device number and target stacking port configuration information corresponding to the first member device are obtained from the configuration information.

[0032] Configure the device number of the first member device to the target device number;

[0033] The port connected to the second member device is identified as the stacking port. Based on the stacking port and the target stacking port configuration information, the stacking port in the first member device is configured.

[0034] In one possible implementation, the device information of the aforementioned member device also includes the priority configuration information of the aforementioned member device;

[0035] After obtaining the target device information corresponding to the first member device from the configuration information, the method further includes:

[0036] Based on the priority configuration information in the target device information, the first member device is determined to be the primary or backup device in the target stacking system.

[0037] In one possible implementation, after configuring the first member device based on the second member device and the configuration information, the method further includes:

[0038] Upon receiving a readiness notification from the second member device, and determining that all member devices in the target stack system have been configured based on the received readiness notification, a go-on request is sent to the controller.

[0039] Fourthly, embodiments of this application provide a stacking system assembly apparatus applied to a first member device connected to a controller, the apparatus comprising:

[0040] The receiving unit is configured to receive a component instruction for a target stacking system, wherein the component instruction includes configuration information of the target stacking system, and the configuration information includes device information of multiple member devices constituting the target stacking system, and the component instruction is sent by the controller.

[0041] The determining unit is configured to determine the second member device from the adjacent devices based on the above configuration information, and send the above configuration information to the second member device;

[0042] The configuration unit is used to configure the first member device based on the second member device and the configuration information.

[0043] Fifthly, embodiments of this application provide an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, it implements the stacked system assembly method described above.

[0044] In a sixth aspect, embodiments of this application provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps in the stacked system assembly method described above.

[0045] In a seventh aspect, embodiments of this application provide a computer program product, including a computer program stored in a computer-readable storage medium; when a processor of a memory access device reads the computer program from the computer-readable storage medium, the processor executes the computer program, causing the memory access device to perform the steps in the stacked system assembly method described above.

[0046] The beneficial effects of this application are as follows:

[0047] After the controller obtains the configuration information of the stacking system to be created, it can send the configuration information of the stacking system to the first member device (i.e. the member device directly connected to the controller) to complete the rapid assembly of the stacking system. This method does not rely on the controller sending configuration to each member device. As long as the first member device in the stacking system receives the configuration information, the stacking system can be assembled even if the local topology connection is complex. Moreover, the entire process does not require maintenance personnel to perform CLI operations locally, which reduces the complexity of stacking system assembly and the probability of errors, thereby improving stacking efficiency. Therefore, it can complete the rapid assembly of a large number of stacking systems.

[0048] Other features and advantages of this application will be set forth in the description which follows, and will be apparent in part from the description, or may be learned by practicing the application. The objectives and other advantages of this application may be realized and obtained by means of the structures particularly pointed out in the written description, claims, and drawings. Attached Figure Description

[0049] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:

[0050] Figure 1 A schematic diagram illustrating an application scenario of the stacking system assembly method provided in this application embodiment;

[0051] Figure 2 A schematic diagram illustrating the implementation flow of the stacking system assembly method provided in this application embodiment;

[0052] Figure 3 A schematic diagram illustrating the implementation process of a stacked system assembly method for a controller, provided in an embodiment of this application;

[0053] Figure 4 A schematic diagram of a stacking system assembly device for a controller provided in this application embodiment;

[0054] Figure 5A schematic diagram illustrating the implementation process of a stacking system assembly method applied to a first member device, provided in an embodiment of this application;

[0055] Figure 6 A schematic diagram of a stacking system assembly device applied to a first member device is provided in an embodiment of this application;

[0056] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0057] To address the problem in related technologies that require maintenance personnel to perform separate operations on the CLI of the controller and the device at different stages when building a stacked system, which is cumbersome and prone to errors, this application provides a method, apparatus, device, and medium for building a stacked system.

[0058] The embodiments of this application are described below with reference to the accompanying drawings. It should be understood that the embodiments described herein are for illustration and explanation only and are not intended to limit this application. Furthermore, the embodiments and features in the embodiments of this application can be combined with each other without conflict.

[0059] Stacked virtualization technology is a widely used technology that can virtualize multiple member devices into one device for management, improving the reliability and ease of use of the device.

[0060] Traditional methods of building stacked systems require maintenance personnel to configure each member device in the stack via CLI, specifying device number, priority, stacking port, and other configuration information. Then, each member device must be restarted and switched to stacking mode. Finally, the stacking links connecting the member devices are established. This method becomes cumbersome when there are many member devices in the stack. Especially in automated deployment solutions, maintenance personnel are required to pre-configure port information for designated devices on the controller and perform stacking configuration on the member devices to be stacked via CLI or other methods. Then, installation personnel install the devices, and finally, the stacked system automatically goes online on the controller and obtains the pre-configured settings. This process is prone to errors and requires maintenance personnel to perform separate operations on the controller and device CLIs at different stages, which is cumbersome and reduces the effectiveness of automated deployment.

[0061] In addition, the following two types of stacking system construction methods also exist in related technologies:

[0062] One approach involves configuring a stacking port for any member device in the stacking system. Based on this configured stacking port, all other member devices in the system are automatically configured. Specifically, the member device sends a stacking notification message to other member devices connected via the stacking port. Upon receiving the message, each member device configures its stacking-capable port as a second stacking port and repeats the process. However, because this method identifies member devices based on their stacking-capable ports, it prevents the connection of non-member devices (i.e., devices not involved in the target stacking system setup) to ports that support stacking capabilities. Otherwise, incorrect stacking configurations will occur. This approach has limited applicability and is not suitable for fully automated network deployment.

[0063] The second method involves building a stacking system through role recognition among member devices. Member devices obtain their corresponding roles from the controller and then stack with other member devices that share the same role from among their neighbors. This method is highly dependent on device roles and has requirements regarding the order in which devices come online. For example, when aggregation devices and core devices (which are roles assigned to devices according to their hierarchical structure in the network) are of the same model and both need to be stacked, the member device corresponding to the core device must come online first and obtain its role from the controller before the member device corresponding to the aggregation device can come online. Otherwise, it will cause the aggregation and core devices to be incorrectly stacked.

[0064] This application addresses the aforementioned problems by proposing a method for assembling a stacked system. It utilizes a controller (e.g., a Software Defined Network (SDN) controller) to manage the creation of stacked devices and the maintenance of member devices. Once a member device comes online, it automatically obtains the stack configuration from the controller and automatically completes the stack assembly and switchover of all member devices locally, thereby achieving automated online deployment of each member device in the stacked system. Since the member devices in this method are determined based on received configuration information, there are no restrictions on the connection topology between member devices and other non-member adjacent devices. It allows connection of other non-member devices to ports that support stacking capabilities and does not require a specific online order for each member device, making it highly adaptable.

[0065] Figure 1 This is a schematic diagram illustrating an application scenario of the stacking system assembly method provided in the embodiments of this application, such as... Figure 1As shown, a user (e.g., an operations and maintenance personnel) sends a command to the controller to build a stacked system. This command carries the configuration information of the target stacked system to be built. After receiving the configuration information and detecting that member device 2 in the target stacked system has established a connection with it, the controller sends the configuration information to member device 2. Member device 2 determines member device 1 and member device 3 belonging to the target stacked system from its connected adjacent devices (i.e., member device 1, member device 3, device 5, and device 6, where device 5 and device 6 are devices other than member devices, i.e., devices that do not participate in the construction of the target stacked system), and sends the configuration information to member device 1 and member device 3 respectively. At the same time, it performs local configuration based on member device 1, member device 3, and the configuration information. After each member device in the target stacked system completes its configuration in the above manner, it sends a ready notification to each other. When all member devices are ready, each member device will synchronously restart and switch to stacking mode, completing the construction of the stacked system.

[0066] It should be noted that, for ease of description, in this application, the member device directly connected to the controller among the multiple member devices constituting the target stacking system will be named the first member device (e.g., Figure 1 Member device 2) is not directly connected to the controller, but is directly (e.g.) Figure 1 Member devices 1 and 3) or indirectly (i.e., connected to the first member device via other second member devices, and then connected to the controller, such as...) Figure 1 Member device 4) The member device that connects to the controller through the first member device is named the second member device.

[0067] Based on the above application scenarios, the following will refer to the appendix. Figures 2-7 The exemplary embodiments of this application are described in more detail below. It should be noted that the above application scenarios are shown only to facilitate understanding of the spirit and principles of this application, and the implementation methods of this application are not limited in any way. On the contrary, the implementation methods of this application can be applied to any applicable scenario.

[0068] like Figure 2 The diagram shown illustrates the implementation flow of the stacking system assembly method provided in this application embodiment, which may specifically include the following steps:

[0069] S21. The controller obtains the configuration information corresponding to the target stacking system to be assembled.

[0070] In practical implementation, physical links between member devices are pre-connected locally. When connecting links, multiple stacked links can be connected simultaneously between member devices (i.e., links from multiple stacked systems can be pre-connected), and member devices can also connect to upstream and downstream devices. When member devices are powered on, a loop topology is formed between multiple member devices. Member devices have built-in anti-loop functions when unconfigured to ensure that the loop does not affect the path between member devices and the controller. This application does not limit the specific implementation of the anti-loop function. In one possible implementation, it can be implemented through an anti-loop protocol such as the built-in Spanning Tree Protocol (STP).

[0071] After the physical link connection between each member device is completed, when a user has a need to build a stacked system, in one possible implementation, the user sends a command to the controller to build the stacked system, and carries relevant information about the target stacked system to be built in the command, such as the identifier and configuration information of the target stacked system. In another possible implementation, when the device information of each member device is pre-configured in the controller, the member devices required to build the target stacked system can also be selected from the pre-configured member devices, and the device number of each member device can be configured respectively. At this time, since the controller has already obtained the characteristic information of each member device, the administrator can be exempted from manually entering the characteristics, which is more convenient.

[0072] When the controller determines that the user has instructed the assembly of a target stacked device, it acquires the configuration information corresponding to the target stacked system to be assembled. The configuration information includes device information for multiple member devices constituting the target stacked system. This device information includes the member devices' characteristic information, device number, and stacking port configuration information. In some embodiments, the characteristic information of the member devices can be represented using the device's serial number, Media Access Control Address (MAC address), or other unique characteristics. Optionally, the device information may also include device priority configuration information or the device identifier of the master device specified by the user.

[0073] S22. When the controller confirms that the first member device among multiple member devices has established a connection with the controller, it sends a target stacking system assembly instruction to the first member device.

[0074] In practice, after obtaining the configuration information corresponding to the target stacking system to be assembled, the controller monitors the status of multiple member devices in the target stacking system to be assembled. When it determines that the first member device among the multiple member devices has established a connection with it, it sends a component assembly instruction of the target stacking system to it, so that it can execute the component assembly steps of the target stacking system. The component assembly instruction carries the configuration information of the target stacking system to be created.

[0075] S23. The first member device receives the assembly instruction of the target stacking system and determines the second member device from the adjacent devices according to the configuration information;

[0076] In practice, the assembly instruction received by the first member device includes the configuration information of the target stacking system, which includes device information of multiple member devices constituting the target stacking system.

[0077] After receiving the assembly instruction from the target stacking system, the first member device can determine member devices from its connected neighboring devices using the Link Layer Discovery Protocol (LLDP). Specifically, it matches the characteristic information corresponding to the neighboring devices with the characteristic information in the configuration information to determine at least one second member device from the neighboring devices.

[0078] In some embodiments, after matching the feature information corresponding to the adjacent devices with the feature information in the configuration information, it is also necessary to further determine whether the connection port between the matched device and the first member device meets the requirements (e.g., whether it is a 10 Gigabit or higher optical port). If so, it is determined as the second member device; otherwise, it is not determined as the second member device. At least one member device is determined from the adjacent devices in the above manner. It should be noted that if it is determined that the connection port between the matched device and the first member device does not meet the requirements, a stacking failure message is reported, and the port information of the connection port that does not meet the requirements is carried in the stacking failure message so that the user can locate the cause of the failure.

[0079] S24. The first member device sends configuration information to the second member device;

[0080] In implementation, after at least one second member device is identified from adjacent devices, the configuration information of the target stacking system, i.e., the device information of all member devices constituting the target stacking system, is sent to the identified at least one second member device via a Layer 2 protocol (or other means), instructing it to perform the operation of assembling the target stacking system. This configuration information can be sent by including it in the assembly instruction.

[0081] S25. The first member device configures itself based on the second member device and the configuration information;

[0082] In specific implementation, the first member device matches its own feature information with the feature information in the configuration information, obtains the target device number and target stacking port configuration information corresponding to itself from the configuration information, configures the device number of the first member device as the target device number, and at the same time, determines the ports connected to each second member device as stacking ports, and configures the stacking ports in the first member device based on the stacking port and target stacking port configuration information.

[0083] In some embodiments, when the device information of a member device also includes priority configuration information of the member device, after the first member device obtains the target device information corresponding to itself from the configuration information, it further includes: determining whether the first member device is a primary device or a backup device in the target stacking system based on the priority configuration information in the target device information, and performing corresponding configuration.

[0084] S26, a second member device directly connected to the first member device (for ease of description, this second member device will be referred to as a type of member device, such as...) Figure 1 Member devices 1 and 2 in the process determine at least one second member device from the neighboring devices based on the received configuration information, and perform configuration based on the determined at least one second member device and the configuration information;

[0085] In specific implementation, after receiving the configuration information sent by the first member device, a type of member device matches the feature information corresponding to the adjacent devices with the feature information in the configuration information, and determines at least one second member device from the adjacent devices. The determined at least one second member device is a member device that is not directly connected to the first member device, but is connected to the first member device through other second member devices. For ease of description, this type of second member device will be referred to as a type II member device (e.g., Figure 1 The specific process for determining at least one second member device (4) is similar to step S22 above, and will not be repeated here.

[0086] In some embodiments, after determining at least one second member device from the adjacent devices in step S26 above, the second member device directly connected to the first member device further performs the following operation:

[0087] The configuration information of the target stacking system, namely the device information of all member devices constituting the target stacking system, is sent to at least one identified second member device (class II member device) via a Layer 2 protocol (or other means), instructing them to perform the operation of assembling the target stacking system. This configuration information can be sent by including it in the assembly instruction.

[0088] After receiving the configuration information, each of the aforementioned Class II member devices performs the operation described in step S26 above: determining at least one Class II member device from the neighboring devices, sending the configuration information to the determined at least one Class II member device, and performing configuration based on the determined at least one Class II member device and the configuration information. In specific implementation, when the Class II member device completes the configuration, it sends a ready notification to each member device in the neighboring devices (which may include only Class I member devices, Class II member devices, or both Class I and Class II member devices).

[0089] S27, After the second member device has determined that its own configuration is complete, it sends a ready notification to the first member device;

[0090] Specifically, after determining the configuration, a type of member device sends a ready notification to the first member device. At the same time, after receiving a ready notification from a type of member device in an adjacent device, it forwards the ready notification to other member devices in the connected device (including the first member device and other type-two member devices except the one that sent the ready notification), so that the first member device can determine the configuration of the member devices in the target stacking system.

[0091] S28, the first member device receives a readiness notification sent by the second member device, and determines that all member devices in the target stack system have been configured based on the received readiness notification;

[0092] S29, the first member device sends an online request to the controller.

[0093] Specifically, when the received readiness notification determines that all member devices in the target stack system have completed configuration, each member device in the target stack system automatically restarts synchronously and switches to stack mode. After restarting, the target stack system sends an online instruction to the controller to ensure that the target stack system is online with the controller.

[0094] S210, when the controller determines that the device that sent the online request is a member device constituting the target stack system, the target stack system is configured to be online.

[0095] In practice, the online request is sent by the first member device in the target stack system after all member devices in the target stack system have been configured. Specifically, the online request is sent by the first member device directly connected to the controller after all member devices in the target stack system have been configured, synchronously restarted, and switched modes.

[0096] When the controller determines that the device sending the online request is a member device constituting the target stack system, it configures all member devices in the target stack system to be online, that is, it configures the target stack system to be online.

[0097] The above method, by creating a stacking system on the controller and specifying its configuration information, can quickly assemble the stacking system by distributing the configuration information to member devices. This method does not rely on the controller distributing configurations to each member device; as long as any member device in the stacking system (i.e., the first member device) receives the configuration information, the stacking system can be assembled even with complex local topology connections. Furthermore, the entire process does not require local CLI operations from the user, reducing the complexity and error probability of stacking system assembly. Therefore, it can quickly assemble a large number of stacking systems. Simultaneously, this method is highly scalable, supporting multi-machine stacking (supporting the maximum number of stacks allowed by the devices themselves), and has no requirements for other non-member devices in the network (e.g., no requirements for the version of uplink devices), making it highly versatile.

[0098] After the target stacking system is assembled, the user can hot-add member devices to the target stacking system through the controller. In specific implementation, when the user has a need to add a new member device to the stacking system, the user sends an addition instruction to add a member device to the target stacking system to the controller, and carries the device information of the member device to be added in the addition instruction.

[0099] In one possible implementation, after receiving an instruction from a user to add a member device to a target stacking system, the controller sends an update instruction for the target stacking system to the first member device of the target stacking system connected to the controller; wherein the update instruction carries updated configuration information, and the updated configuration information includes device information of the member device to be added.

[0100] The first member device receives an update instruction from the controller for the target stack system. The target stack system to which it belongs determines the member device to be added from the neighboring devices of the target stack system to be updated based on the updated configuration information, and sends the updated configuration information to the member device to be added so that the member device to be added can be configured based on the updated configuration information. At the same time, the target stack system to be updated is configured based on the member device to be added and the updated configuration information.

[0101] It should be noted that the steps described above, namely, determining the member device to be added from the adjacent devices of the target stacking system to be updated, and configuring the target stacking system to be updated based on the member device to be added and the updated configuration information, are similar to the specific implementation of steps S23-S25 above, and will not be repeated here.

[0102] In another possible implementation, the controller receives an instruction from the user to add a member device to the target stacking system, and when it determines that the member device to be added has established a connection with the controller, it can also send an update instruction for the target stacking system to the member device to be added; wherein, the update instruction carries updated configuration information, and the updated configuration information includes the device information of the member device to be added.

[0103] When the device to be added receives the update instruction for the target stacking system sent by the controller, it determines any member device belonging to the target stacking system from the neighboring devices and sends the updated configuration information to the member device so that the target stacking system to be updated can be configured based on the updated configuration information; at the same time, it performs local configuration based on the member device and the updated configuration information.

[0104] It should be noted that the steps of determining any member device belonging to the target stacking system from adjacent devices and performing local configuration based on any member device and the updated configuration information are similar to the specific implementation of steps S23-S25 above, and will not be repeated here.

[0105] Once the aforementioned member device to be added has been configured based on the updated configuration information, a ready notification is sent to the target stacking system, and the system switches to stacking mode to complete the hot addition of the member device to the target stacking system. This method only requires the user to input the device information of the device to be added in the controller, without the need for local CLI operations, which simplifies the user's operation.

[0106] This application also provides a method for assembling a stacked system, applied to a controller, such as... Figure 3 As shown, the method specifically includes the following steps:

[0107] S31, Obtain the configuration information corresponding to the target stacking system to be assembled, wherein the configuration information includes the device information of multiple member devices constituting the target stacking system;

[0108] S32, when it is confirmed that the first member device among the plurality of member devices has established a connection with the controller, a target stacking system assembly instruction is sent to the first member device; the assembly instruction carries the configuration information; so that the first member device determines the second member device from the adjacent devices according to the configuration information, sends the configuration information to the second member device, and configures the first member device based on the second member device and the device configuration information.

[0109] The specific implementation process of the controller executing the stacking system assembly has been described in detail in steps S21-S210, and will not be repeated here.

[0110] Based on the same inventive concept, this application also provides a stacking system assembly apparatus. Since the principle of the stacking system assembly apparatus in solving the problem is similar to that of the stacking system assembly method, the implementation of the stacking system assembly apparatus can refer to the implementation of the method, and the repeated parts will not be described again.

[0111] like Figure 4 As shown, this is a structural schematic diagram of a stacking system assembly device provided in an embodiment of this application, applied to a controller. The device includes:

[0112] The acquisition unit 41 is used to acquire configuration information corresponding to the target stacking system to be assembled. The configuration information includes device information of multiple member devices constituting the target stacking system.

[0113] The sending unit 42 is used to send the assembly instruction of the target stacking system to the first member device when it confirms that the first member device among the plurality of member devices has established a connection with the controller. The assembly instruction carries the configuration information so that the first member device can determine the second member device from the adjacent devices according to the configuration information, send the configuration information to the second member device, and configure the first member device based on the second member device and the device configuration information.

[0114] In one possible implementation, after sending the assembly instruction of the target stacking system to the first member device, the sending unit 42 is further configured to:

[0115] Receive a go-on request, which is sent by the first member device after all member devices in the target stacking system have been configured.

[0116] Configure all member devices in the target stack system to be online.

[0117] In one possible implementation, the above-described apparatus further includes an updating unit, specifically used for:

[0118] Receive an addition instruction to add a member device to the target stacking system, wherein the addition instruction carries device information of the member device to be added;

[0119] An update instruction for the target stack system is sent to the first member device of the target stack system. The update instruction carries updated configuration information, which includes the device information of the member device to be added. This enables the first member device to determine the member device to be added from the neighboring devices of the target stack system to be updated based on the updated configuration information, send the updated configuration information to the member device to be added, and configure the target stack system to be updated based on the member device to be added and the updated device configuration information.

[0120] This application also provides a method for assembling a stacked system, applied to a first member device connected to a controller, such as... Figure 5 As shown, the method specifically includes the following steps:

[0121] S51, Receive a component assembly instruction for a target stacking system. The component assembly instruction includes configuration information of the target stacking system. The configuration information includes device information of multiple member devices constituting the target stacking system. The component assembly instruction is sent by the controller.

[0122] S52, determine the second member device from the neighboring devices according to the configuration information, and send the configuration information to the second member device;

[0123] S53 configures the first member device based on the second member device and configuration information.

[0124] The specific implementation process of the first member device performing the stacking system assembly has been described in detail in steps S21-S210, and will not be repeated here.

[0125] Based on the same inventive concept, this application also provides another stacking system assembly device, which is applied to a first member device connected to a controller. Since the principle of solving the problem by the above stacking system assembly device is similar to that of the above stacking system assembly method, the implementation of the above stacking system assembly device can refer to the implementation of the above method, and the repeated parts will not be described again.

[0126] like Figure 6 As shown, this is a structural schematic diagram of a stacking system assembly device provided in an embodiment of this application. The device is applied to a first member device connected to a controller and includes:

[0127] The receiving unit 61 is used to receive a component instruction for a target stacking system. The component instruction includes configuration information of the target stacking system. The configuration information includes device information of multiple member devices constituting the target stacking system. The component instruction is sent by the controller.

[0128] The determining unit 62 is configured to determine the second member device from the adjacent devices according to the above configuration information, and send the above configuration information to the second member device;

[0129] Configuration unit 63 is used to configure the first member device based on the second member device and the configuration information.

[0130] In one possible implementation, the above-described stacking system assembly apparatus further includes an update unit, specifically used for:

[0131] Receive the update instruction for the target stacking system sent by the controller. The update instruction carries updated configuration information, including device information of the member device to be added.

[0132] Based on the updated configuration information, the member device to be added is determined from the adjacent devices of the target stacking system to be updated, and the updated configuration information is sent to the member device to be added so that the member device to be added can be configured based on the updated configuration information.

[0133] Based on the aforementioned member devices to be added and the updated configuration information, the aforementioned target stacking system to be updated is configured.

[0134] In one possible implementation, the device information of the aforementioned member device includes the characteristic information of the aforementioned member device;

[0135] The aforementioned determining unit 62 is specifically used for:

[0136] The feature information corresponding to each adjacent device is matched with the feature information in the above configuration information to determine the second member device from the adjacent devices.

[0137] In one possible implementation, the device information of the aforementioned member device includes the characteristic information, device number, and stacking port configuration information of the aforementioned member device;

[0138] The aforementioned configuration unit 63 is specifically used for:

[0139] The feature information of the first member device is matched with the feature information in the configuration information, and the target device number and target stacking port configuration information corresponding to the first member device are obtained from the configuration information.

[0140] Configure the device number of the first member device to the target device number;

[0141] The port connected to the second member device is identified as the stacking port. Based on the stacking port and the target stacking port configuration information, the stacking port in the first member device is configured.

[0142] In one possible implementation, the device information of the aforementioned member device also includes the priority configuration information of the aforementioned member device;

[0143] After obtaining the target device information corresponding to the first member device from the configuration information, the configuration unit 63 is further configured to:

[0144] Based on the priority configuration information in the target device information, the first member device is determined to be the primary or backup device in the target stacking system.

[0145] In one possible implementation, after configuring the first member device based on the second member device and the configuration information, the configuration unit 63 is further configured to:

[0146] Upon receiving a readiness notification from the second member device, and determining that all member devices in the target stack system have been configured based on the received readiness notification, a go-on request is sent to the controller.

[0147] Based on the same technical concept, this application also provides an electronic device 700, referring to... Figure 7 As shown, the electronic device 700 is used to implement the stacked system assembly method described in the above method embodiments. The electronic device 700 in this embodiment may include: a memory 701, a processor 702, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the steps in the various stacked system assembly method embodiments described above.

[0148] This application embodiment does not limit the specific connection medium between the memory 701 and the processor 702 described above. This application embodiment... Figure 7 The memory 701 and the processor 702 are connected via a bus 703, and the bus 703 is in Figure 7 The connections between other components are indicated by thick lines and are for illustrative purposes only, not as limiting information. The aforementioned bus 703 can be divided into address bus, data bus, control bus, etc. For ease of illustration, Figure 7 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.

[0149] Memory 701 may be volatile memory, such as random-access memory (RAM); memory 701 may also be non-volatile memory, such as read-only memory, flash memory, hard disk drive (HDD), or solid-state drive (SSD); or memory 701 may be any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but is not limited thereto. Memory 701 may be a combination of the above-described memories.

[0150] Processor 702 is used to implement the stacked system assembly method of various exemplary embodiments of this application.

[0151] This application also provides a computer-readable storage medium storing computer-executable instructions required to execute the processor, including a program required to execute the processor.

[0152] In some possible implementations, various aspects of the stacking system assembly method provided in this application can also be implemented as a program product, which includes program code. When the program product is run on an electronic device, the program code is used to cause the electronic device to perform the steps in the stacking system assembly method according to various exemplary embodiments of this application described above.

[0153] Those skilled in the art will understand that embodiments of this application can be provided as methods, apparatus, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0154] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (devices), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the process. Figure 1One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0155] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0156] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0157] Although embodiments of this application have been described, those skilled in the art, upon learning the basic inventive concept, can make further changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the embodiments as well as all changes and modifications falling within the scope of this application.

[0158] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.

Claims

1. A method of assembling a stack system, characterized by, Applied to a controller, the method includes: Obtain configuration information corresponding to the target stacking system to be assembled. The configuration information includes device information of multiple member devices constituting the target stacking system. The device information includes characteristic information and stacking port configuration information of the member devices. The characteristic information is the unique identification information of the member devices. When it is confirmed that the first member device among the plurality of member devices has established a connection with the controller, a component assembly instruction of the target stacking system is sent to the first member device. The component assembly instruction carries the configuration information so that the first member device can successfully match with the adjacent devices according to the feature information of the plurality of member devices. After determining that the connection port of the adjacent device and the first member device meets the preset requirements, the adjacent device is regarded as a type of member device, the configuration information is sent to the type of member device, and the port connected to the type of member device is configured as a stacking port. The stacking port is configured based on the stacking port configuration information corresponding to the first member device in the configuration information. The adjacent devices corresponding to the first member device include a type of member device and non-member devices. The configuration information is used by the type of member device to determine a type of member device from the adjacent devices, send the configuration information to the type of member device, and configure based on the determined type of member device and the configuration information.

2. The method of claim 1, wherein, After sending the assembly instruction of the target stacking system to the first member device, the method further includes: Receive an online request, which is sent by the first member device after determining that all member devices in the target stacking system have been configured; Configure all member devices in the target stack system to be online.

3. The method of claim 1, wherein, The method further includes: Receive an addition instruction for adding a member device to the target stacking system, the addition instruction carrying device information of the member device to be added; An update instruction for the target stacking system is sent to the first member device of the target stacking system. The update instruction carries updated configuration information, which includes device information of the member device to be added. This enables the first member device to determine the member device to be added from the neighboring devices of the target stacking system to be updated based on the updated configuration information, send the updated configuration information to the member device to be added, and configure the target stacking system to be updated based on the member device to be added and the updated device configuration information.

4. A method of assembling a stack system, characterized by The method, applied to a first member device connected to a controller, includes: The system receives a component assembly instruction for a target stacking system. The component assembly instruction includes configuration information of the target stacking system. The configuration information includes device information of multiple member devices constituting the target stacking system. The component assembly instruction is sent by the controller. The device information includes characteristic information and stacking port configuration information of the member devices. The characteristic information is the unique identification information of the member devices. After successfully matching the feature information of the multiple member devices with the adjacent devices, and determining that the connection port between the adjacent device and the first member device meets the preset requirements, the adjacent device is regarded as a type of member device. The adjacent devices corresponding to the first member device include a type of member device and non-member devices. The configuration information is sent to the first type of member device. The configuration information is used by the first type of member device to determine the second type of member device from the neighboring devices, send the configuration information to the second type of member device, and perform configuration based on the determined second type of member device and the configuration information. Configure the port connected to the first type of member device as a stacking port, and configure the stacking port based on the stacking port configuration information corresponding to the first member device in the configuration information.

5. The method of claim 4, wherein, After configuring the stacking port based on the stacking port configuration information corresponding to the first member device in the configuration information, the method further includes: Receive an update instruction for the target stacking system sent by the controller. The update instruction carries updated configuration information, including device information of the member device to be added. The member device to be added is determined from the neighboring devices of the target stacking system to be updated based on the updated configuration information, and the updated configuration information is sent to the member device to be added so that the member device to be added can be configured based on the updated configuration information; Based on the member devices to be added and the updated configuration information, the target stacking system to be updated is configured.

6. The method of claim 4, wherein, The device information of the member device includes the characteristic information of the member device; Matching adjacent devices based on the device information of the multiple member devices includes: The feature information corresponding to each adjacent device is matched with the feature information in the configuration information to determine a type of member device from the adjacent devices.

7. The method of claim 4, wherein, The device information of the member device includes the characteristic information, device number, and stacking port configuration information of the member device; The method further includes: The feature information of the first member device is matched with the feature information in the configuration information, and the target device number and target stacking port configuration information corresponding to the first member device are obtained from the configuration information. Configure the device number of the first member device as the target device number; The port connected to the first type of member device is identified as a stacking port, and the stacking port in the first member device is configured based on the stacking port and the target stacking port configuration information.

8. The method of claim 7, wherein, The device information of the member device also includes the priority configuration information of the member device; After obtaining the target device number and target stacking port configuration information corresponding to the first member device from the configuration information, the method further includes: Based on the priority configuration information in the target device information, the first member device is determined to be either the primary device or the backup device in the target stacking system.

9. The method of any one of claims 4-8, wherein, After configuring the stacking port, the method further includes: Upon receiving a readiness notification from one type of member device, and determining that all member devices in the target stack system have been configured based on the received readiness notification, a go-on request is sent to the controller.

10. A stacking system assembly apparatus, characterized by, Applied to a controller, the device includes: The acquisition unit is used to acquire configuration information corresponding to the target stacking system to be assembled. The configuration information includes device information of multiple member devices constituting the target stacking system. The device information includes characteristic information and stacking port configuration information of the member devices. The characteristic information is the unique identification information of the member devices. The sending unit, upon confirming that the first member device among the plurality of member devices has established a connection with the controller, sends a component instruction of the target stacking system to the first member device. The component instruction carries the configuration information so that the first member device can successfully match with neighboring devices based on the feature information of the plurality of member devices. After determining that the connection port between the neighboring device and the first member device meets the preset requirements, the neighboring device is regarded as a type of member device, the configuration information is sent to the type of member device, and the port connected to the type of member device is configured as a stacking port. The stacking port is configured based on the stacking port configuration corresponding to the first member device in the configuration information. The neighboring devices corresponding to the first member device include a type of member device and non-member devices. The configuration information is used by the type of member device to determine a type of member device from the neighboring devices, send the configuration information to the type of member device, and perform configuration based on the determined type of member device and the configuration information.

11. A stacking system assembly apparatus, characterized by, The device, applied to a first member device directly connected to a controller, comprises: A receiving unit is configured to receive a component instruction for a target stacking system. The component instruction includes configuration information of the target stacking system. The configuration information includes device information of multiple member devices constituting the target stacking system. The component instruction is sent by the controller. The device information includes characteristic information and stacking port configuration information of the member devices. The characteristic information is unique identification information of the member devices. The determining unit is configured to successfully match the multiple member devices with adjacent devices based on their feature information, and after determining that the connection port between the adjacent device and the first member device meets the preset requirements, classify the adjacent device as a type of member device. The adjacent devices corresponding to the first member device include a type of member device and non-member devices. A configuration unit is configured to configure a port connected to the first type of member device as a stacking port, configure the stacking port based on the stacking port configuration information corresponding to the first member device in the configuration information, and send the configuration information to the first type of member device. The configuration information is used by the first type of member device to determine a second type of member device from neighboring devices, send the configuration information to the second type of member device, and configure based on the determined second type of member device and the configuration information.

12. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, The processor implements the method for assembling a stack system according to any one of claims 1-9 when executing the program.

13. A computer readable storage medium having stored thereon a computer program, characterized in that The program is executed by the processor to implement the steps in the method for assembling a stack system according to any one of claims 1-9.

Citation Information

Patent Citations

  • System management piling method used for Ethernet switchboard

    CN101110782A

  • Secure Stacking Setup

    US20100257283A1