Container arrangement system and method based on rack-mounted router and switch
By introducing the main container orchestration management module and the forwarding container orchestration management module on rack routers and switches, the problem of difficulty in orchestration at the main control level and forwarding level in the existing technology is solved, and flexible container management and performance optimization are achieved.
Patent Information
- Application Number
- CN202510476917.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-16
- Publication Date
- 2025-07-18
AI Technical Summary
The prior art is difficult to manage container orchestration at the main control level and forwarding level simultaneously on rack routers and switches, resulting in increased performance loss of forwarding planes and increased user operation complexity.
The collaborative work plan of the main control container orchestration management module and the forwarding container orchestration management module is adopted, and the container is managed and orchestrated through the user interface, container mirroring interface, container orchestration interface and forwarding interface, supporting batch and one-click operations.
It realizes flexible and independent container orchestration of rack-mounted devices, reduces performance impact on the forwarding plane, simplifies user operations, and supports on-demand expansion and dynamic network requirements.
Smart Images

Figure CN120342861A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of container orchestration of rack-mounted devices, and specifically relates to a container orchestration system and method based on rack-mounted routers and switches. Background Art
[0002] With the continuous expansion of the network scale and the rapid change of business requirements, traditional fixed-function rack-mounted routers are not flexible enough to cope with new network services and application deployments. Container orchestration technology allows different network function modules to be quickly deployed and updated on routers, enabling on-demand expansion to meet dynamic network requirements. The current sonic (Software for Open Networking in the Cloud) provides a complete set of solutions, enabling users to freely customize the functions of router and switch devices. And container orchestration tools provide methods for resource management of router software containers. However, the sonic system does not yet support a container orchestration management solution for both the master control layer and the forwarding layer on rack-mounted devices.
[0003] Existing container orchestration tools are difficult to meet the function of container orchestration for rack-mounted devices. Container orchestration tools that support cluster orchestration can manage multiple nodes, but the nodes need to download container images first before container orchestration management can be carried out. It is more applied to large servers or data centers. It is not suitable to use container cluster orchestration tools on a specific device such as a rack-mounted router.
[0004] Existing container orchestration technologies such as kubernetes, etc., can achieve distributed container deployment and orchestration, seemingly applicable to simultaneous orchestration and deployment of the forwarding plane and the control plane of rack-mounted devices. However, in actual operation, kubernetes suites need to be installed on the master control plane and the forwarding plane to make them become a node of kubernetes before they can be managed. This causes a great loss to the performance of the forwarding plane, and the forwarding plane should be used as much as possible for high-speed data forwarding. Kubernetes is more applied to scenarios such as data centers and cloud computing. Servers in these scenarios have high performance and are easy to expand, and can support kubernetes suites and can be flexibly expanded when the computing power is insufficient. Summary of the Invention
[0005] The purpose of the present invention is to provide a container orchestration system and method based on rack-mounted routers and switches for the above deficiencies in the prior art, so as to solve the problem that the existing support for container orchestration management cannot be carried out simultaneously on the master control layer and the forwarding layer of rack-mounted devices.
[0006] To achieve the above object, the technical solution adopted by the present invention is as follows:
[0007] In a first aspect, a container orchestration system based on a rack-mounted router and a switch includes a master container orchestration management module running on a main control board and a plurality of forwarding container orchestration management modules; a single one of the forwarding container orchestration management modules runs on a single forwarding board, and the plurality of forwarding container orchestration management modules are respectively communicatively connected to the master container orchestration management module and are managed by the master container orchestration module.
[0008] Further, the master container orchestration management module includes:
[0009] A user interface for receiving user configurations, converting the user configurations into internal instructions, and then sending the internal instructions to a container image interface, a container orchestration interface 1, or a forwarding interface;
[0010] A container image interface for downloading a container image according to the internal instructions;
[0011] A container orchestration interface 1 for invoking a container orchestration tool to orchestrate containers according to the internal instructions;
[0012] A forwarding interface for establishing a connection with the forwarding container orchestration management module, communicating with the forwarding container orchestration management module, and managing the forwarding container orchestration module.
[0013] Further, the user configurations include master container commands and forwarding container commands.
[0014] Further, the forwarding container orchestration management module includes:
[0015] A master interface for establishing a connection with the master container orchestration management module and performing information interaction with the master container orchestration management module;
[0016] A container orchestration interface 2 for invoking a container orchestration tool and performing container orchestration operations on the forwarding plane.
[0017] In a second aspect, a method for downloading a master container image of a container orchestration system based on a rack-mounted router and a switch specifically includes the following steps:
[0018] A1. A user inputs a master container download command;
[0019] A2. The user interface converts the master container download command into an internal instruction and notifies the container image interface;
[0020] A3. The container image interface sends a download message to an image server according to the internal instruction;
[0021] A4. The mirror server transmits the container image to the container image interface according to the download message.
[0022] Thirdly, a main control container orchestration method for a container orchestration system based on a rack-mounted router and a switch specifically includes the following steps:
[0023] B1. The user inputs a main control container orchestration command, which includes commands for starting and stopping a single container, and batch starting and stopping containers according to the address family; it also includes a command for modifying container startup parameters.
[0024] B2. The user interface converts the main control container orchestration command into an internal instruction and notifies the container orchestration interface 1.
[0025] B3. The container orchestration interface 1 modifies the container orchestration parameters according to the internal instruction, calls the container orchestration tool to execute the container orchestration task, and finally returns the execution result to the user interface.
[0026] Fourthly, a method for downloading a forwarding container image in a container orchestration system based on a rack-mounted router and a switch. After the device starts, each forwarding container orchestration management module establishes a connection with the main control container orchestration management module, and the main control container orchestration module records the connection information. The method specifically includes the following steps:
[0027] C1. The user inputs a forwarding container download command.
[0028] C2. The user interface converts the forwarding container download command into an internal instruction and notifies the container image interface.
[0029] C3. The container image interface sends a download message to the mirror server according to the internal instruction.
[0030] C4. The mirror server transmits the container image to the container image interface according to the download message.
[0031] C5. The container image interface notifies the forwarding interface that the forwarding image has been downloaded.
[0032] C6. The forwarding interface notifies the main control interfaces of all established connection forwarding container orchestration management modules that the forwarding image has been downloaded.
[0033] C7. Each main control interface requests to download the forwarding image from the forwarding interface.
[0034] C8. The forwarding interface transmits the forwarding image to each main control interface.
[0035] Fifth aspect, a forwarding container orchestration method for a container orchestration system based on rack-mounted routers and switches. After the device starts up, each forwarding container orchestration management module establishes a connection with the master container orchestration management module, and the master container orchestration module records the connection information. The specific steps are as follows:
[0036] D1. The user inputs a forwarding container orchestration command, which includes commands for starting, stopping forwarding containers, and modifying container parameters.
[0037] D2. The user interface converts the forwarding container orchestration command into an internal instruction and notifies the forwarding interface.
[0038] D3. The forwarding interface notifies the internal instruction to the master interfaces of all connected forwarding container orchestration management modules.
[0039] D4. The master interface notifies the forwarding container orchestration instruction to the container orchestration interface 2.
[0040] D5. The container orchestration interface 2 modifies the container orchestration parameters according to the forwarding container orchestration instruction, and then calls the container orchestration tool to execute container start, stop, and parameter modification orchestration operations.
[0041] The container orchestration system and method based on rack-mounted routers and switches provided by the present invention have the following beneficial effects:
[0042] 1. The present invention proposes a container orchestration method for rack-mounted routers and switches. Currently, the functions of other open network operating systems focus on the dynamic customization and management of the control plane software of box-type devices, lacking a solution for coordinating and managing the control plane and forwarding plane of rack-mounted devices.
[0043] 2. The container orchestration method of the present invention minimizes the impact on the performance of the forwarding plane while meeting the function of container orchestration for the forwarding plane and control plane.
[0044] 3. The present invention proposes a method for batch and one-key container management based on address families or service scenarios, simplifying user operations. Description of the Drawings
[0045] Figure 1 It is the block diagram structure one of the container orchestration system based on rack-mounted routers and switches in Embodiment 1 of the present invention.
[0046] Figure 2 It is the block diagram structure two of the container orchestration system based on rack-mounted routers and switches in Embodiment 1 of the present invention.
[0047] Figure 3 It is the timing diagram of the master container image download command in Embodiment 2 of the present invention.
[0048] Figure 4 This is the execution timing diagram of the master container orchestration command in Embodiment 2 of the present invention.
[0049] Figure 5 This is the execution timing diagram of the forwarding container image download command in Embodiment 3 of the present invention.
[0050] Figure 6 This is the execution timing diagram of the forwarding container orchestration command in Embodiment 3 of the present invention. Detailed implementation manners
[0051] The following describes the detailed implementation manners of the present invention to facilitate those skilled in the art of the present technology to understand the present invention. However, it should be clear that the present invention is not limited to the scope of the detailed implementation manners. For those of ordinary skill in the art of the present technology, as long as various changes are within the spirit and scope of the present invention defined and determined by the appended claims, these changes are obvious, and all inventions created using the concept of the present invention are within the scope of protection.
[0052] Embodiment 1
[0053] A container orchestration system based on a rack-mounted router and a switch in this embodiment is applicable to the container orchestration and management of rack-mounted network devices. Through the collaborative work of the master container orchestration management module and the forwarding container orchestration management module, flexible and independent orchestration of the forwarding plane and the control plane is performed. Refer to Figure 1 and Figure 2 , and specifically includes:
[0054] One master container orchestration management module and multiple forwarding container orchestration management modules;
[0055] Among them, the master container orchestration management module runs on the master board, and multiple forwarding container orchestration management modules run on different forwarding boards respectively. The multiple forwarding container orchestration management modules are respectively communicatively connected to the master container orchestration management module and are managed by the master container orchestration module.
[0056] Specifically, the master container orchestration management module of this embodiment includes:
[0057] A user interface for receiving user configurations, converting the user configurations into internal instructions, and then sending the internal instructions to the container image interface, the container orchestration interface 1, or the forwarding interface according to corresponding rules; among them, the user configurations include commands related to the master container and commands related to the forwarding container.
[0058] A container image interface for downloading container images according to internal instructions;
[0059] A container orchestration interface 1 for invoking container orchestration tools to orchestrate containers according to internal instructions;
[0060] A forwarding interface for establishing a connection with a forwarding container orchestration management module, communicating with the forwarding container orchestration management module, and managing the forwarding container orchestration module.
[0061] The forwarding container orchestration management module includes:
[0062] A main control interface for establishing a connection with a main control container orchestration management module and performing information interaction with the main control container orchestration management module;
[0063] A container orchestration interface 2 for invoking a container orchestration tool and performing container orchestration operations on the forwarding plane.
[0064] In this embodiment, the containers that can be managed by the main control container orchestration management module include, but are not limited to, protocol containers related to router switches such as OSPFv2, OSPFv3, BGP4, BGP4+, ISIS, SNMP, DNS, etc. The forwarding container orchestration management module is mainly used to manage forwarding containers.
[0065] This embodiment does not limit the specific types of the main control container and the forwarding container. That is, the containers running on the main control board include, but are not limited to, protocol containers such as BGP, SNMP, SSH, DHCP, etc. that can run on a router; the containers running on the forwarding board are containers used to implement the forwarding function, and no specific restrictions are made here.
[0066] Embodiment 2
[0067] Commands related to the main control container will be executed in the main control container orchestration management module. The commands related to the main control container mainly include main control container image download and commands related to main control container orchestration. Based on Embodiment 1, this embodiment provides a method for downloading the main control container image of a container orchestration system based on a rack-mounted router and switch. Refer to Figure 3 , which specifically includes the following steps:
[0068] A1. The user inputs a main control container download command;
[0069] A2. The user interface converts the main control container download command into an internal instruction and notifies the container image interface;
[0070] A3. The container image interface sends a download message to the image server according to the internal instruction;
[0071] A4. The image server transmits the container image to the container image interface according to the download message.
[0072] Meanwhile, this embodiment provides a method for orchestrating the main control container of a container orchestration system based on a rack-mounted router and switch. Refer to Figure 4 , which specifically includes the following steps:
[0073] B1. The user inputs the master container orchestration commands, which include commands for starting and stopping a single container, as well as batch starting and stopping containers according to the address family (or business scenario), and also include commands for modifying container startup parameters, etc.;
[0074] B2. The user interface converts the master container orchestration commands into internal instructions and notifies the container orchestration interface 1;
[0075] B3. The container orchestration interface 1 modifies the container orchestration parameters according to the internal instructions, calls the container orchestration tool to execute the container orchestration task, and finally returns the execution result to the user interface.
[0076] Embodiment 3
[0077] The commands related to forwarding containers can be executed only through the collaborative work of the master container orchestration management module and the forwarding container orchestration management module. The commands related to forwarding containers mainly include forwarding container image download and commands related to forwarding container orchestration. Based on Embodiment 1, this embodiment provides a method for downloading forwarding container images in a container orchestration system based on a rack-mounted router and a switch. After the device is started, each forwarding container orchestration management module establishes a connection with the master container orchestration management module, and the master container orchestration module records this connection information. Refer to Figure 5 , and it specifically includes the following steps:
[0078] C1. The user inputs the forwarding container download command;
[0079] C2. The user interface converts the forwarding container download command into internal instructions and notifies the container image interface;
[0080] C3. The container image interface sends a download message to the image server according to the internal instructions;
[0081] C4. The image server transmits the container image to the container image interface according to the download message;
[0082] C5. The container image interface notifies the forwarding interface that the forwarding image has been downloaded;
[0083] C6. The forwarding interface notifies the master interfaces of all the forwarding container orchestration management modules that have established connections that the forwarding image has been downloaded;
[0084] C7. Each master interface requests to download the forwarding image from the forwarding interface;
[0085] C8. The forwarding interface transmits the forwarding image to each master interface.
[0086] Meanwhile, this embodiment provides a forwarding container orchestration method for a container orchestration system based on a rack-mounted router and a switch. After the device starts up, each forwarding container orchestration management module establishes a connection with the master container orchestration management module, and the master container orchestration module records this connection information. Refer to Figure 6 , and it specifically includes the following steps:
[0087] D1. The user inputs a forwarding container orchestration command, which includes commands such as starting, stopping a forwarding container, and modifying container parameters;
[0088] D2. The user interface converts the forwarding container orchestration command into an internal instruction and notifies the forwarding interface;
[0089] D3. The forwarding interface notifies the internal instruction to the master interfaces of all the established connection forwarding container orchestration management modules;
[0090] D4. The master interface notifies the forwarding container orchestration instruction to the container orchestration interface 2;
[0091] D5. The container orchestration interface 2 modifies the container orchestration parameters according to the forwarding container orchestration instruction, and then calls the container orchestration tool to perform container orchestration operations such as starting, stopping, and parameter modification.
[0092] Although the specific implementation mode of the invention has been described in detail with reference to the drawings, it should not be construed as a limitation on the protection scope of this patent. Within the scope described in the claims, various modifications and deformations that can be made by those skilled in the art without creative work still fall within the protection scope of this patent.
Claims
1. A container orchestration system based on rack-mounted routers and switches, characterized in that: It includes a master container orchestration and management module and multiple forwarding container orchestration and management modules running on the master control board; A single one of the forwarding container orchestration and management modules runs on a single forwarding board. The multiple forwarding container orchestration and management modules are respectively communicatively connected to the master container orchestration and management module and are managed by the master container orchestration module.
2. The container orchestration system based on a rack-mounted router and a switch according to claim 1, wherein The master container orchestration and management module includes: A user interface, which is used to receive user configurations, convert the user configurations into internal instructions, and then send the internal instructions to the container image interface, the container orchestration interface 1, or the forwarding interface; A container image interface, which is used to download container images according to the internal instructions; A container orchestration interface 1, which is used to call container orchestration tools to orchestrate containers according to the internal instructions; A forwarding interface, which is used to establish a connection with the forwarding container orchestration and management module, communicate with the forwarding container orchestration and management module, and manage the forwarding container orchestration module.
3. The container orchestration system based on rack-mounted routers and switches according to claim 2, wherein: The user configurations include master container commands and forwarding container commands.
4. The container orchestration system based on rack-mounted routers and switches according to claim 1, wherein The forwarding container orchestration and management module includes: A master interface, which is used to establish a connection with the master container orchestration and management module and perform information interaction with the master container orchestration and management module; A container orchestration interface 2, which is used to call container orchestration tools and execute container orchestration operations on the forwarding plane.
5. A method for downloading a master container image of a container orchestration system based on a rack-mounted router and a switch according to any one of claims 1 to 3, characterized in that, Specifically, it includes the following steps: A1. The user inputs a master container download command; A2. The user interface converts the master container download command into an internal instruction and notifies the container image interface; A3. The container image interface sends a download message to the image server according to the internal instruction; A4. The image server transmits the container image to the container image interface according to the download message.
6. A master container orchestration method for a container orchestration system based on a rack-mounted router and a switch according to any one of claims 1 to 3, characterized in that, Specifically, it includes the following steps: B1. The user inputs a master container orchestration command, and the container orchestration command includes commands for starting and stopping a single container, as well as batch starting and stopping containers according to address families; it also includes a command for modifying container start parameters; B2. The user interface converts the master container orchestration command into an internal instruction and notifies the container orchestration interface 1; B3. The container orchestration interface 1 modifies the container orchestration parameters according to the internal instruction, calls the container orchestration tool to execute the container orchestration task, and finally returns the execution result to the user interface.
7. A method for forwarding container image download of the container orchestration system based on a rack-mounted router and a switch according to any one of claims 1 to 4, characterized in that, After the device is started, each forwarding container orchestration and management module establishes a connection with the master container orchestration and management module, and the master container orchestration module records the connection information. Specifically, it includes the following steps: C1. The user inputs a forwarding container download command; C2. The user interface converts the forwarding container download command into an internal instruction and notifies the container image interface; C3. The container image interface sends a download message to the image server according to the internal instruction; C4. The image server transmits the container image to the container image interface according to the download message; C5. The container image interface notifies the forwarding interface that the forwarding image has been downloaded; C6. The forwarding interface notifies the master interfaces of all the connected forwarding container orchestration and management modules that the forwarding image has been downloaded; C7. Each master interface requests to download the forwarding image from the forwarding interface; C8. The forwarding interface transmits the forwarding image to each master interface.
8. A forwarding container orchestration method for the container orchestration system based on rack-mounted routers and switches according to any one of claims 1 to 4, characterized in that, After the device starts up, each forwarding container orchestration management module establishes a connection with the master container orchestration management module, and the master container orchestration module records the connection information. The specific steps are as follows: D1. The user inputs a forwarding container orchestration command, which includes commands to start, stop a forwarding container, and modify container parameters; D2. The user interface converts the forwarding container orchestration command into an internal instruction and notifies the forwarding interface; D3. The forwarding interface notifies the internal instruction to the master interfaces of all the established-connection forwarding container orchestration management modules; D4. The master interface notifies the forwarding container orchestration instruction to the container orchestration interface 2; D5. The container orchestration interface 2 modifies the container orchestration parameters according to the forwarding container orchestration instruction, and then calls the container orchestration tool to execute container start-up, stop, and parameter modification orchestration operations.