Method and device for dynamically switching network segments of computing power resource container network of intelligent computing center

By creating layer 2 access points and layer 2 bridge equipment for the computing power resource container cluster in the intelligent computing center, dynamic switching of container network segments is realized, and the problems of poor network scalability and insufficient elasticity in the existing technology are solved, and the cluster expansion efficiency and elastic performance are improved.

CN120223675APending Publication Date: 2025-06-27DATACANVAS LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510454820.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-11
Publication Date
2025-06-27

AI Technical Summary

Technical Problem

The network segments of the computing power resource container cluster in the intelligent computing center cannot be switched dynamically, resulting in poor network scalability, insufficient elasticity and low capacity expansion efficiency.

Method used

By creating a layer 2 access point and a layer 2 bridge device, an independent subnet resource is associated with each container, and dynamically switched using the tag value of the layer 2 access point to realize dynamic replacement of the container network segment.

Benefits of technology

Dynamic switching of computing resource container network segments is realized, improving the elastic performance and capacity expansion efficiency of the cluster, and avoiding the need for rebuilding the network architecture or downtime and reconfiguring.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120223675A_ABST
    Figure CN120223675A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of intelligent computing centers, intelligent computing centers and computing power infrastructures, and provides an intelligent computing center computing power resource container network segment dynamic switching method and device, and the method comprises the steps: creating at least one two-layer access point; creating at least one two-layer network bridge device; configuring at least one container, associating a two-layer network bridge device to a namespace of the container, determining a target container in the at least one container, and determining a target two-layer access point associated with the target container; modifying the tag value of the target two-layer access point; and configuring the gateway of the new subnet resource and the target IP address in the IP resource pool to the virtual network card of the target container so as to realize dynamic switching of network segments of the computing power resource container network. Therefore, the dynamic switching of the network segments of the computing power resource container network can be realized, the network flow topology of the computing power resource container cluster can be quickly adjusted, the elastic performance of the computing power resource container cluster can be integrally improved, and the scale expansion efficiency of the computing power resource container cluster can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of intelligent computing centers, smart computing centers and computing power infrastructure, and specifically to a method and device for dynamically switching network segments of computing power resource containers in intelligent computing centers. Background Art

[0002] With the rapid development of artificial intelligence technology, "intelligent computing centers" and "intelligent computing centers" have come into being.

[0003] "Intelligent computing center" refers to a facility that provides the required computing power, data and algorithms for artificial intelligence applications (such as artificial intelligence deep learning model development, model training and model reasoning) by using large-scale heterogeneous computing resources, including general computing power and intelligent computing power. The intelligent computing center covers facilities, hardware, and software, and can provide full-stack capabilities from bottom-level computing power to top-level application enablement.

[0004] “Intelligent Computing Center” includes but is not limited to “Smart Computing Center”.

[0005] "Intelligent Computing Center" refers to an artificial intelligence computing center. It is a type of computing infrastructure that is based on artificial intelligence theory, adopts artificial intelligence computing architecture, and provides computing power services, data services, and algorithm services required for artificial intelligence applications.

[0006] "Computing power" is the core of "intelligent computing center" and "intelligent computing center". It is the ability of computer equipment or computing / data center to process information. It is the ability of computer hardware and software to work together to execute certain computing needs. It is the computing power to process information data and achieve target result output. It is a new type of productivity that integrates information computing power, network carrying capacity, and data storage capacity. It mainly provides services to society through computing power infrastructure.

[0007] The current network configuration of computing resource container clusters is usually set once based on a fixed network segment when the computing resource container cluster is created. This static design leads to the following problems: poor network scalability. If the business scale grows beyond the initial network segment capacity (for example, IP exhaustion), the configuration needs to be modified or even the computing resource container cluster needs to be rebuilt, which seriously affects the expansion efficiency of the computing resource container cluster; insufficient elasticity and inability to dynamically adapt to different network environments, resulting in rigid computing resource scheduling.

[0008] Since the emergence of intelligent computing centers, the network segments of computing resource container clusters have been deployed and configured when the computing resource container clusters were created and cannot be expanded dynamically. The problems of low elasticity and low efficiency of computing resource container cluster scale expansion have become technical issues that need to be solved urgently. Summary of the invention

[0009] The present invention provides a method and device for dynamically switching the network segment of computing power resource containers in an intelligent computing center, so as to solve the problems that since the emergence of intelligent computing centers, the network segment of the computing power resource container cluster has been deployed and configured at the time of creating the computing power resource container cluster, and cannot be dynamically expanded, resulting in very little elasticity of the computing power resource container cluster and low efficiency in expanding the scale of the computing power resource container cluster.

[0010] To solve the above technical problems, the present invention is implemented as follows:

[0011] In a first aspect, the present invention provides a method for dynamically switching the network segment of computing power resource containers in an intelligent computing center, the method comprising:

[0012] Step S1: Create at least one layer-2 access point; wherein, each layer-2 access point corresponds to a tag value, the tag values of each layer-2 access point are different, and each layer-2 access point is associated with a subnet resource, and the subnet resources associated with each layer-2 access point are different;

[0013] Step S2: Create at least one layer-2 bridge device, wherein each layer-2 bridge device is associated with a layer-2 access point, and is also associated with the subnet resource associated with the associated layer-2 access point;

[0014] Step S3: Configure at least one container, and associate the layer-2 bridge device to the namespace of the container, wherein each container is associated with a layer-2 bridge device;

[0015] Step S4: Determine a target container among the at least one container, and determine the target layer-2 access point associated with the target container; wherein, the target container is the container for which the network segment of the computing power resource container needs to be dynamically switched;

[0016] Step S5: Modify the tag value of the target layer-2 access point; wherein, the target layer-2 access point with the modified tag value is associated with a new subnet resource, and the new subnet resource is the target subnet resource to which the target container needs to be switched;

[0017] Step S6: Configure the gateway of the new subnet resource and the target IP address in the IP resource pool on the virtual network card of the target container, so as to realize the dynamic switching of the network segment of the computing power resource container, wherein the target IP address is the IP address to which the target container needs to be switched.

[0018] Optionally, step S1 further includes:

[0019] Step S11: Create virtual resources to carry the at least one layer-2 access point;

[0020] Step S12: Create subnet resources and set the attributes of the subnet resources, where the attributes include: gateway, IP resource pool;

[0021] Step S13: Associate the subnet resources to the at least one layer-2 access point.

[0022] Optionally, step S4 includes:

[0023] Step S41: Determine a target container and, according to the namespace of the target container, determine a target layer-2 bridge device associated with the target container;

[0024] Step S42: According to the target layer-2 bridge device, determine a layer-2 access point associated with the target layer-2 bridge device;

[0025] Step S43: Determine the layer-2 access point associated with the target layer-2 bridge device as the target layer-2 access point.

[0026] Optionally, step S5 includes:

[0027] Step S51: Create a new subnet resource and set the attributes of the new subnet resource;

[0028] Step S52: Re-associate the new subnet resource to the target layer-2 access point.

[0029] In a second aspect, the present invention provides an intelligent computing center computing power resource container network segment dynamic switching device, the device includes:

[0030] A creation module, configured to execute step S1: Create at least one layer-2 access point; where each layer-2 access point corresponds to a tag value respectively, the tag values of each layer-2 access point are different, and each layer-2 access point is associated with a subnet resource, and the subnet resources associated with each layer-2 access point are different;

[0031] Step S2: Create at least one layer-2 bridge device, where each layer-2 bridge device is associated with a layer-2 access point, and is also associated with the subnet resource associated with the associated layer-2 access point;

[0032] An execution module, configured to execute step S3: Configure at least one container, and associate the layer-2 bridge device to the namespace of the container, where each container is associated with a layer-2 bridge device;

[0033] Step S4: Determine a target container among the at least one container and determine the target layer-2 access point associated with the target container; where the target container is the container that needs to perform the dynamic switching of the computing power resource container network segment;

[0034] Step S5: Modify the tag value of the target layer-2 access point; wherein, the target layer-2 access point with the modified tag value is associated with a new subnet resource, and the new subnet resource is the target subnet resource to which the target container needs to be switched;

[0035] Step S6: Configure the gateway of the new subnet resource and the target IP address in the IP resource pool onto the virtual network card of the target container, so as to implement dynamic switching of the computing power resource container network network segment, wherein the target IP address is the IP address to which the target container needs to be switched.

[0036] Optionally, step S1 further includes:

[0037] Step S11: Create virtual resources to carry the at least one layer-2 access point;

[0038] Step S12: Create subnet resources and set the attributes of the subnet resources, wherein the attributes include: gateway, IP resource pool;

[0039] Step S13: Associate the subnet resources to the at least one layer-2 access point.

[0040] Optionally, step S4 includes:

[0041] Step S41: Determine the target container, and determine the target layer-2 bridge device associated with the target container according to the namespace of the target container;

[0042] Step S42: Determine the layer-2 access point associated with the target layer-2 bridge device according to the target layer-2 bridge device;

[0043] Step S43: Determine the layer-2 access point associated with the target layer-2 bridge device as the target layer-2 access point.

[0044] Optionally, step S5 includes:

[0045] Step S51: Create a new subnet resource and set the attributes of the new subnet resource;

[0046] Step S52: Re-associate the new subnet resource to the target layer-2 access point.

[0047] In a third aspect, the present invention provides a server, including: a processor, a memory, and a program stored on the memory and executable on the processor, and when the program is executed by the processor, the steps of a method for dynamically switching the computing power resource container network network segment of an intelligent computing center as described in the first aspect above are implemented.

[0048] Fourthly, the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of a method for dynamically switching the network segment of a computing power resource container in an intelligent computing center as described in the first aspect above are implemented.

[0049] Fifthly, the present invention provides a computer program product, including computer instructions. When the computer instructions are executed by a processor, the steps of a method for dynamically switching the network segment of a computing power resource container in an intelligent computing center as described in the first aspect above are implemented.

[0050] In the present invention, by binding independent subnet resources to each layer-2 access point and allowing the container to be dynamically associated with the layer-2 access point through a layer-2 bridge device, when the target container needs to switch the network segment of the computing power resource container, only the tag value of the associated layer-2 access point needs to be modified, so that the layer-2 access point can be redirected to the new subnet resource. Subsequently, the IP and gateway of the new subnet are configured on the virtual network card of the target container to achieve the dynamic switching of the network segment of the computing power resource container.

[0051] This mechanism enables the switching of the network segment of the computing power resource container to be completely controlled by the logic layer, without the need to rebuild the underlying network architecture or stop the machine for reconfiguration. Thus, the dynamic switching of the network segment of the computing power resource container can be realized, and the network segment of the computing power resource container can be quickly adjusted, and the network traffic topology of the computing power resource container cluster can be quickly adjusted, overall improving the elastic performance of the computing power resource container cluster and the efficiency of expanding the scale of the computing power resource container cluster. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] By reading the detailed description of the preferred embodiments below, various other advantages and benefits will become clear to those of ordinary skill in the art. The drawings are only for the purpose of showing the preferred embodiments and are not considered to be a limitation of the present invention. Moreover, throughout the drawings, the same reference numerals are used to represent the same components. In the drawings:

[0053] Figure 1 is a flowchart of a method for dynamically switching the network segment of a computing power resource container in an intelligent computing center provided by the present invention;

[0054] Figure 2 is a schematic diagram of modifying the tag value of a layer-2 access point provided by the present invention;

[0055] Figure 3 is a schematic diagram of realizing the expansion of the computing power resource container cluster by modifying the tag value of a layer-2 access point provided by the present invention;

[0056] Figure 4 is a structural block diagram of a device for dynamically switching the network segment of a computing power resource container in an intelligent computing center provided by the present invention;

[0057] Figure 5 This is a schematic structural diagram of the electronic device of the present invention. Specific embodiments

[0058] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without making creative efforts shall fall within the protection scope of the present invention.

[0059] First, the technical terms related to the present invention will be briefly described below.

[0060] The "computing power" referred to in the present invention means: the ability of a computer device or a computing / data center to process information, the ability of computer hardware and software to cooperate to jointly execute a certain computing requirement, the computing ability to achieve the output of a target result by processing information data, a new type of productive force integrating information computing power, network carrying capacity, and data storage capacity, and mainly providing services to society through computing power infrastructure.

[0061] The "computational power" (Computational Power, CP) referred to in the present invention means: the ability of a data center server to process data and achieve result output, a comprehensive index to measure the computing ability of a data center, including general computing ability, supercomputing ability, and intelligent computing ability. The commonly used measurement unit is the number of floating-point operations per second (FLOPS, 1EFLOPS = 10^18 FLOPS), and the larger the value, the stronger the comprehensive computing ability. It is estimated that 1EFLOPS is approximately the computing power output of 5 Tianhe-2A or 500,000 mainstream server CPUs or 2 million mainstream laptops. The calculation formula is: CP = CP_general + CP_intelligent + CP_super

[0062] The "carrying capacity" (Network Power, NP) referred to in the present invention means: the manifestation of the data transmission ability of computing power facilities, a comprehensive ability including network architecture, network bandwidth, transmission delay, intelligent management and scheduling, etc., involving network transmission inside and between data centers, and a comprehensive index to measure network transmission scheduling ability.

[0063] The "Storage Power" (SP) described in the present invention refers to the comprehensive ability of a data center in four aspects: data storage capacity, performance, security and reliability, and green and low-carbon. It is a comprehensive indicator for measuring the data storage capacity of a data center and includes external storage devices such as storage arrays and internal storage devices of servers. The commonly used measurement unit for storage capacity is exabyte (EB, 1EB = 2^60 bytes), the commonly used measurement unit for performance is the number of read and write operations per second per unit capacity (IOPS / TB, Input / Output Operations Per Second / TB), and the disaster recovery ratio is an important manifestation of security and reliability.

[0064] The "computing power infrastructure" described in the present invention refers to a new type of information infrastructure that integrates information computing power, network carrying capacity, and data storage power, and can realize the centralized computing, storage, transmission, and application of information.

[0065] The "new type of information infrastructure" described in the present invention mainly includes network infrastructures such as 5G networks, fiber broadband networks, backbone networks, international communication networks, and satellite Internet, computing power infrastructures such as data centers, general computing power centers, intelligent computing centers, and supercomputing centers, and new technology facilities such as artificial intelligence, blockchain, and quantum computing.

[0066] The "computing power" described in the present invention includes general computing power, intelligent computing power, and super computing power.

[0067] The "general computing power" described in the present invention refers to the computing power provided by servers based on CPU (Central Processing Unit) chips, which is used to support basic general computing such as cloud computing and edge computing.

[0068] The "intelligent computing power" described in the present invention refers to a computing platform that is scaled up for various artificial intelligence innovation applications based on dedicated chips such as GPU (Graphics Processing Unit), FPGA (Field Programmable Gate Array), and ASIC (Application Specific Integrated Circuit), such as natural language processing and machine vision.

[0069] The "super computing power" described in the present invention mainly refers to the computing power provided by high-performance computing clusters such as supercomputers. It utilizes the centralized computing resources of multiple computer systems working in parallel and processes extremely complex or data-intensive problems through a dedicated operating system. It is mainly used for computing in cutting-edge scientific fields, such as planetary simulation, drug molecule design, and gene analysis.

[0070] The "Intelligent Computing Center" described in the present invention refers to a facility that uses large-scale heterogeneous computing power resources, including general computing power (CPU) and intelligent computing power (GPU, FPGA, ASIC, etc.), and mainly provides the required computing power, data, and algorithms for artificial intelligence applications (such as scenarios like artificial intelligence deep learning model development, model training, and model inference). The intelligent computing center covers facilities, hardware, and software, and can provide full-stack capabilities from underlying computing power to top-level application enabling.

[0071] The "Intelligent Computing Center" described in the present invention includes, but is not limited to, the "Intelligent Computing Center".

[0072] The "Intelligent Computing Center" described in the present invention, that is, the artificial intelligence computing center, is a type of computing power infrastructure based on artificial intelligence theory, adopting an artificial intelligence computing architecture, and providing computing power services, data services, and algorithm services required for artificial intelligence applications.

[0073] The "Computing Power Center" described in the present invention refers to a facility mainly composed of infrastructure such as wind, fire, water, and electricity and IT software and hardware devices, and having computing power, carrying capacity, and storage capacity, including general data centers, intelligent computing centers, supercomputing centers, etc.

[0074] The "Supercomputing Center" described in the present invention refers to, that is, the supercomputing data center, which is a data center based on supercomputers or large-scale computing clusters, and can provide functions such as large-scale computing, storage, and network services, and is widely used in application scenarios such as aerospace, national defense, oil exploration, climate modeling, and genome sequencing.

[0075] The "Computing Power Resources" described in the present invention refers to technologies and facilities with information computing, transmission, storage, and application capabilities required for the development of the digital society, including, but not limited to, computing resources such as CPU and GPU, network resources such as switches and routers, storage resources such as storage arrays and distributed storage, security resources such as firewalls and intrusion detection systems, and support and guarantee resources such as wind, fire, water, and electricity.

[0076] The "Container Network" described in the present invention refers to the network used when the computing power resource container cluster assigns container network IP addresses.

[0077] The "Container Network Network Segment" described in the present invention refers to different network segments included in the container network. Containers can assign IP addresses from different network segments. Containers in the same network segment can communicate at the second layer, and containers in different network segments need to be connected through routing to communicate.

[0078] "Dynamic switching of container network network segments" as described in the present invention refers to: a method for dynamically switching the container network network segments of computing power resources during the operation of a computing power resource container cluster without affecting existing calculations through the method described in the present invention. After the container network network segments of the computing power resources are switched, the computing power resource container cluster can quickly achieve expansion or traffic migration, and new containers can be quickly created and put into operation.

[0079] Figure 1 Figure 4 shows a method for dynamically switching the container network network segments of computing power resources in an intelligent computing center provided by the present invention. As Figure 1 shown, the method includes:

[0080] Step S1: Create at least one layer-2 access point;

[0081] Step S2: Create at least one layer-2 bridge device;

[0082] Step S3: Configure at least one container to associate the layer-2 bridge device with the container's namespace;

[0083] Step S4: Determine the target container in at least one container and determine the target layer-2 access point associated with the target container;

[0084] Step S5: Modify the tag value of the target layer-2 access point;

[0085] Step S6: Configure the gateway of the new subnet resource and the target IP address in the IP resource pool on the virtual network card of the target container to achieve dynamic switching of the container network network segments of the computing power resources.

[0086] It should be noted that the computing power resources of the intelligent computing center run in containers to isolate, allocate, and manage the computing power resources using containerization technologies (such as Kubernetes, etc.).

[0087] It should be noted that in Step S1, each layer-2 access point corresponds to a tag value, the tag values of each layer-2 access point are different, and each layer-2 access point is associated with a subnet resource, and the subnet resources associated with each layer-2 access point are different. Step S1 further includes: Step S11: Create virtual resources to carry at least one layer-2 access point; Step S12: Create subnet resources and set the attributes of the subnet resources, where the attributes include: gateway, IP resource pool; Step S13: Associate the subnet resources with at least one layer-2 access point.

[0088] It should be noted that first, a virtual resource is created as the carrier of the layer-2 access point, and the subnet resources are predefined, including setting the gateway address and the allocable IP address range of the subnet resources. Finally, the subnet resources are bound to the corresponding layer-2 access point. This process independently configures complete network rules (such as IP allocation policies, traffic outlets) for each layer-2 access point, forming multiple "network units" that can be called at any time, providing technical support for the dynamic switching of the network segments of the computing power resource containers in the future.

[0089] In step S2, each layer-2 bridge device (such as: vbridge) is associated with a layer-2 access point, and the subnet resources associated with the layer-2 access point it is associated with are also related.

[0090] It should be noted that each layer-2 bridge device is like a "connector". It is bound to a specific layer-2 access point, and this layer-2 access point itself has been pre-configured with subnet resources (such as IP address range, gateway, etc.). Simply put, the layer-2 bridge device also obtains the corresponding subnet configuration through the layer-2 access point, ensuring that the containers connected to this layer-2 bridge device can directly use the network rules of this subnet (such as IP allocation, communication path). This binding relationship enables the flexible switching of the network segments of the computing power resource containers in the future. When switching the network segments of the computing power resource containers, only the configuration of the layer-2 access point needs to be adjusted, without changing the layer-2 bridge device or the containers themselves.

[0091] In step S3, each container is associated with a layer-2 bridge device.

[0092] It should be noted that each container is connected to a dedicated layer-2 bridge device. Through this layer-2 bridge device, the container can access the corresponding layer-2 access point, thereby obtaining the network connection ability. This one-to-one binding relationship ensures that each container has an independent network channel and will not interfere with each other. When the network configuration of the container needs to be adjusted, only the layer-2 access point connected to this layer-2 bridge device needs to be operated to achieve flexible control of the network connection of this container without affecting the network connections of other containers.

[0093] In step S4, the target container is the container that needs to perform dynamic switching of the network segments of the computing power resource containers. And step S4 includes: step S41: Determine the target container, and determine the target layer-2 bridge device associated with the target container according to the namespace of the target container; step S42: Determine the layer-2 access point associated with the target layer-2 bridge device according to the target layer-2 bridge device; step S43: Determine the layer-2 access point associated with the target layer-2 bridge device as the target layer-2 access point.

[0094] It should be noted that after determining the containers that need to switch the computing power resource container network network segment, the associated layer 2 bridge device will be found through the namespace of the container, and then the corresponding layer 2 access point will be located based on the layer 2 bridge device, and finally this layer 2 access point will be locked as the modification target.

[0095] In step S5, the target layer 2 access point with the modified tag value is associated with a new subnet resource, and the new subnet resource is the target subnet resource to which the target container needs to be switched. Step S5 includes: Step S51: Create a new subnet resource and set the attributes of the new subnet resource; Step S52: Re-associate the new subnet resource to the target layer 2 access point.

[0096] It should be noted that when a container needs to switch the computing power resource container network network segment, a new subnet resource (including attributes such as gateway and IP address pool) will be created and associated with the target layer 2 access point. By modifying the tag value of the target layer 2 access point (such as Figure 2 shown), it releases the originally associated subnet resource and points to this new subnet resource, so as to complete the switching of the computing power resource container network network segment without interrupting the container operation.

[0097] In step S6, the target IP address is the IP address to which the target container needs to be switched.

[0098] It should be noted that the gateway of the new subnet and the allocated IP address can be directly configured on the virtual network card of the target container, so that the container can immediately use the new network configuration for communication, and the entire process can achieve seamless dynamic switching of the computing power resource container network network segment without restarting the container.

[0099] In summary, first, a unique layer 2 access point can be assigned to different subnets, and a bridge device can be created to bind these layer 2 access points. Then, the container can be associated with the specified layer 2 access point through the bridge device to obtain the IP of the initial subnet; when the container needs to switch the computing power resource container network network segment, only the identifier (tag value) of the associated layer 2 access point needs to be modified, so that the layer 2 access point points to the new subnet, and the IP and gateway of the new subnet are configured on the virtual network card of the container that needs to switch the computing power resource container network network segment.

[0100] Thus, without restarting the container or the computing power resource container cluster, only by modifying the identifier (tag) can the subnet to which the container belongs be changed; when adding a new subnet, only a new layer 2 access point and a layer 2 bridge device need to be created, and the container can be bound at any time. And the computing power resource container network network segment can be quickly adjusted, and the computing power resource container cluster network traffic topology can be quickly adjusted, overall improving the elastic performance of the computing power resource container cluster and improving the scale expansion of the computing power resource container cluster (such as Figure 3As shown, through the method shown in the present invention, the efficiency of rapid expansion of the computing power resource container cluster can be achieved.

[0101] Figure 4 The figure shows a dynamic switching device for the network segment of the computing power resource container of an intelligent computing center provided according to the present invention. As Figure 4 shown, the device 40 includes:

[0102] A creation module 401, configured to execute step S1: create at least one layer-2 access point; wherein, each layer-2 access point corresponds to a tag value respectively, the tag values of each layer-2 access point are different, and each layer-2 access point is associated with a subnet resource, and the subnet resources associated with each layer-2 access point are different;

[0103] Step S2: create at least one layer-2 bridge device, wherein each layer-2 bridge device is associated with a layer-2 access point, and is also associated with the subnet resource associated with the associated layer-2 access point;

[0104] An execution module 402, configured to execute step S3: configure at least one container, and associate the layer-2 bridge device with the container's namespace, wherein each container is associated with a layer-2 bridge device;

[0105] Step S4: determine a target container in at least one container, and determine the target layer-2 access point associated with the target container; wherein, the target container is the container that needs to perform dynamic switching of the computing power resource container network segment;

[0106] Step S5: modify the tag value of the target layer-2 access point; wherein, the target layer-2 access point with the modified tag value is associated with a new subnet resource, and the new subnet resource is the target subnet resource to which the target container needs to be switched;

[0107] Step S6: configure the gateway of the new subnet resource and the target IP address in the IP resource pool on the virtual network card of the target container, so as to achieve dynamic switching of the computing power resource container network segment, wherein the target IP address is the IP address to which the target container needs to be switched.

[0108] In a possible implementation manner, step S1 further includes:

[0109] Step S11: create virtual resources to carry at least one layer-2 access point;

[0110] Step S12: create subnet resources, and set the attributes of the subnet resources, wherein the attributes include: gateway, IP resource pool;

[0111] Step S13: associate the subnet resources with at least one layer-2 access point.

[0112] In a possible implementation, step S4 includes:

[0113] Step S41: Determine the target container, and determine the target layer-2 bridge device associated with the target container according to the namespace of the target container;

[0114] Step S42: Determine the layer-2 access point associated with the target layer-2 bridge device according to the target layer-2 bridge device;

[0115] Step S43: Determine the layer-2 access point associated with the target layer-2 bridge device as the target layer-2 access point.

[0116] In a possible implementation, step S5 includes:

[0117] Step S51: Create a new subnet resource and set the attributes of the new subnet resource;

[0118] Step S52: Re-associate the new subnet resource to the target layer-2 access point.

[0119] In summary, by binding an independent subnet resource to each layer-2 access point and allowing the container to be dynamically associated with the layer-2 access point through the layer-2 bridge device, when the target container needs to switch the computing power resource container network network segment, only the tag value of the associated layer-2 access point needs to be modified to redirect the layer-2 access point to the new subnet resource, and then the IP and gateway of the new subnet are configured on the virtual network card of the target container to achieve the dynamic switching of the computing power resource container network network segment.

[0120] This mechanism enables the switching of the computing power resource container network network segment to be completely controlled by the logic layer, without the need to rebuild the underlying network architecture or stop the machine for reconfiguration. Thus, the dynamic switching of the computing power resource container network network segment can be achieved, and the computing power resource container network network segment can be quickly adjusted, and the traffic topology of the computing power resource container cluster can be quickly adjusted, overall improving the elastic performance of the computing power resource container cluster and the efficiency of expanding the scale of the computing power resource container cluster.

[0121] Please refer to Figure 5 , the present invention also provides an electronic device 50, including a processor 501, a memory 502, and a computer program stored on the memory 502 and executable on the processor 501. When the computer program is executed by the processor 501, it implements the steps of the above-mentioned method for dynamically switching the computing power resource container network network segment of an intelligent computing center and can achieve the same technical effects. To avoid repetition, it will not be elaborated here.

[0122] The present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements the steps of a method for dynamically switching the network segment of the computing power resource container in an intelligent computing center, and can achieve the same technical effects. To avoid repetition, it will not be elaborated here. Among them, the computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disc, etc.

[0123] The present invention also provides a computer program product, including computer instructions. When the computer instructions are executed by a processor, they implement the steps of the above-mentioned method for dynamically switching the network segment of the computing power resource container in an intelligent computing center, and can achieve the same technical effects. To avoid repetition, it will not be elaborated here.

[0124] It should be noted that in this article, the terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including a..." does not exclude the existence of additional identical elements in the process, method, article or device including that element.

[0125] Through the description of the above embodiments, those skilled in the art can clearly understand that the above method can be implemented by means of software plus a necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is a better embodiment. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disc), and includes several instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the method described in the present invention.

[0126] The present invention has been described above in conjunction with the accompanying drawings. However, the present invention is not limited to the above specific embodiments. The above specific embodiments are merely illustrative and not restrictive. Under the inspiration of the present invention, those of ordinary skill in the art can also make many forms without departing from the spirit and scope protected by the present invention and the claims, and all of them belong to the protection scope of the present invention.

Claims

1. A method for dynamically switching network segments of computing resource containers in an intelligent computing center, characterized in that: The method comprises: Step S1: creating at least one layer 2 access point; wherein each layer 2 access point corresponds to a tag value, the tag value of each layer 2 access point is different, and each layer 2 access point is associated with a subnet resource, and the subnet resources associated with each layer 2 access point are different; Step S2: creating at least one layer 2 bridge device, wherein each layer 2 bridge device is associated with a layer 2 access point, and the subnet resources associated with the associated layer 2 access point are also associated; Step S3: configuring at least one container, associating the layer 2 bridge device with the namespace of the container, wherein each container is associated with a layer 2 bridge device; Step S4: determining a target container in the at least one container, and determining a target layer 2 access point associated with the target container; wherein the target container is a container that needs to dynamically switch the network segment of the computing power resource container; Step S5: modifying the tag value of the target layer 2 access point; wherein the target layer 2 access point after the tag value is modified is associated with a new subnet resource, and the new subnet resource is the target subnet resource to which the target container needs to switch; Step S6: Configure the gateway of the new subnet resource and the target IP address in the IP resource pool to the virtual network card of the target container to realize dynamic switching of the network segment of the computing resource container, wherein the target IP address is the IP address to which the target container needs to switch.

2. The method according to claim 1, characterized in that The step S1 further comprises: Step S11: creating virtual resources to carry the at least one layer 2 access point; Step S12: creating a subnet resource and setting the attributes of the subnet resource, wherein the attributes include: a gateway and an IP resource pool; Step S13: Associating the subnet resource with the at least one layer 2 access point.

3. The method according to claim 1, characterized in that The step S4 comprises: Step S41: determining a target container, and determining a target layer 2 bridge device associated with the target container according to a namespace of the target container; Step S42: determining a layer 2 access point associated with the target layer 2 bridge device according to the target layer 2 bridge device; Step S43: Determine the layer 2 access point associated with the target layer 2 bridge device as the target layer 2 access point.

4. The method according to claim 1, characterized in that: The step S5 comprises: Step S51: Create a new subnet resource and set the attributes of the new subnet resource; Step S52: re-associate the new subnet resource to the target layer 2 access point.

5. A device for dynamically switching network segments of computing resource containers in an intelligent computing center, characterized in that: The device comprises: A creation module, used to execute step S1: create at least one layer 2 access point; wherein each layer 2 access point corresponds to a tag value, the tag value of each layer 2 access point is different, and each layer 2 access point is associated with a subnet resource, and the subnet resources associated with each layer 2 access point are different; Step S2: creating at least one layer 2 bridge device, wherein each layer 2 bridge device is associated with a layer 2 access point, and the subnet resources associated with the associated layer 2 access point are also associated; An execution module, configured to execute step S3: configuring at least one container, associating the layer 2 bridge device with the namespace of the container, wherein each container is associated with a layer 2 bridge device; Step S4: determining a target container in the at least one container, and determining a target layer 2 access point associated with the target container; wherein the target container is a container that needs to dynamically switch the network segment of the computing power resource container; Step S5: modifying the tag value of the target layer 2 access point; wherein the target layer 2 access point after the tag value is modified is associated with a new subnet resource, and the new subnet resource is the target subnet resource to which the target container needs to switch; Step S6: Configure the gateway of the new subnet resource and the target IP address in the IP resource pool to the virtual network card of the target container to realize dynamic switching of the network segment of the computing resource container, wherein the target IP address is the IP address to which the target container needs to switch.

6. The device according to claim 5, characterized in that The step S1 further comprises: Step S11: creating virtual resources to carry the at least one layer 2 access point; Step S12: creating a subnet resource and setting the attributes of the subnet resource, wherein the attributes include: a gateway and an IP resource pool; Step S13: Associating the subnet resource with the at least one layer 2 access point.

7. The device according to claim 5, characterized in that The step S4 comprises: Step S41: determining a target container, and determining a target layer 2 bridge device associated with the target container according to a namespace of the target container; Step S42: determining a layer 2 access point associated with the target layer 2 bridge device according to the target layer 2 bridge device; Step S43: Determine the layer 2 access point associated with the target layer 2 bridge device as the target layer 2 access point.

8. A server, characterized in that: include: A processor, a memory, and a program stored in the memory and executable on the processor, wherein when the program is executed by the processor, the steps of a method for dynamically switching network segments of computing power resource containers in an intelligent computing center are implemented as described in any one of claims 1 to 4.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of a method for dynamically switching network segments of computing power resource containers in an intelligent computing center as described in any one of claims 1-4.

10. A computer program product, characterized in that It includes computer instructions, which, when executed by a processor, implement the steps of a method for dynamically switching network segments of computing power resource containers in an intelligent computing center as described in any one of claims 1-4.