Computing power task network access method of intelligent computing center and related equipment

The method of allocating unused IP addresses to virtual objects within intelligent computing centers addresses inefficiencies in data interaction and network flexibility, enhancing computing task performance by enabling direct data exchange and dynamic network management.

CN119254753APending Publication Date: 2025-01-03DATACANVAS LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411296305.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-14
Publication Date
2025-01-03

AI Technical Summary

Technical Problem

Existing intelligent computing centers face inefficiencies in data interaction and inflexible network topology due to local data storage and management, leading to suboptimal performance in computing tasks.

Method used

Implementing a method that allocates unused IP addresses to virtual objects (containers or virtual machines) within a target virtual subnet, utilizing a target virtual switch and virtual router to facilitate efficient data interaction and dynamic network topology management.

Benefits of technology

Enhances data interaction efficiency and flexibility of network topology by allowing virtual objects to exchange data directly using allocated IP addresses, reducing the need for local data storage and forwarding, thereby improving overall computing task performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119254753A_ABST
    Figure CN119254753A_ABST
Patent Text Reader

Abstract

The invention provides a computing power task network access method of an intelligent computing center and related equipment, and relates to the technical field of computing power of the intelligent computing center, the method comprises the following steps: step S1, obtaining an Internet protocol (IP) address network segment and an IP address set, the IP address network segment being an IP address network segment maintained by a target virtual switch, and the IP address set being an IP address network segment maintained by the target virtual switch; the IP address set comprises used IP addresses in the IP address network segment; s2, under the condition that the target virtual subnet creates a target object, a target IP address is allocated to the target object based on the IP address network segment and the IP address set, the target IP address is an unused IP address in the IP address network segment, the target object is a container or a virtual machine of an intelligent computing center, and the target object is used for bearing a computing power task; and S3, performing data interaction with the target object based on the target IP address. According to the invention, the efficiency of computing power task data interaction and the flexibility of network topology 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 computing power infrastructure, and in particular to a computing power task network access method and related equipment for an intelligent computing center. Background Art

[0002] "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.

[0003] Containers (pods) or virtual machines (VMs) are set up in the intelligent computing center to carry and execute different computing tasks.

[0004] Currently, when containers or virtual machines carry and execute different computing tasks, the data is stored locally, and the intelligent computing center reads the local data before performing data interaction, resulting in low efficiency in data interaction for computing tasks and low flexibility in the network topology.

[0005] It can be seen that the existing technology has the problem of low efficiency of data interaction of computing tasks and the problem of inflexible network topology structure. Summary of the invention

[0006] The embodiment of the present invention provides a computing task network access method and related equipment for an intelligent computing center to solve the problems of low efficiency of data interaction of computing tasks and insufficient flexibility of network topology existing in related technologies.

[0007] To solve the above problems, the present invention is achieved as follows:

[0008] In a first aspect, an embodiment of the present invention provides a computing task network access method for an intelligent computing center, wherein the intelligent computing center includes a target virtual switch and a target virtual subnet, and the target virtual switch and the target virtual subnet are communicatively connected, and the method includes:

[0009] Step S1, obtaining an Internet Protocol IP address segment and an IP address set, wherein the IP address segment is an IP address segment maintained by the target virtual switch, and the IP address set includes IP addresses that have been used in the IP address segment;

[0010] Step S2: when the target object is created in the target virtual subnet, a target IP address is allocated to the target object based on the IP address network segment and the IP address set, wherein the target IP address is an unused IP address in the IP address network segment, and the target object is a container or a virtual machine of the intelligent computing center, and the target object is used to carry the computing task;

[0011] Step S3: performing data interaction with the target object based on the target IP address.

[0012] In one embodiment, step S3 includes at least one of the following:

[0013] Step S31: receiving data sent by the target object based on the target IP address through the target virtual switch, and forwarding the data sent by the target virtual subnet to the object in the target virtual subnet;

[0014] Step S32: Receive data sent by the first object in the target virtual subnet through the target virtual switch, and perform domain name resolution on the data sent by the first object. When the resolved domain name corresponds to the target IP address, forward the data sent by the first object to the target object through the target IP address.

[0015] In one embodiment, the intelligent computing center further comprises a virtual router, the virtual router is communicatively connected with at least one virtual switch, and the at least one virtual switch comprises the target virtual switch;

[0016] The step S3 includes at least one of the following:

[0017] Step S33: receiving data sent by the target object based on the target IP address through the target virtual switch, and forwarding the data sent by the target virtual subnet to an object in a second virtual subnet or an external network through the virtual router, where the second virtual subnet is a virtual subnet in the at least one virtual subnet;

[0018] Step S34: receiving data sent by the second object or the external network through the virtual router, and performing domain name resolution on the data sent by the second object or the external network through the target virtual switch; when the resolved domain name corresponds to the target IP address, forwarding the data sent by the second object or the external network to the target object based on the target IP address through the target virtual switch.

[0019] In one embodiment, the method further comprises:

[0020] Step S4, obtaining the IP address network segment maintained by the first virtual switch to be connected to the virtual router, and the IP address network segments of all virtual switches that have been connected to the virtual router;

[0021] Step S5: When the IP address network segment maintained by the first virtual switch does not overlap with the IP address network segments of all virtual switches, the first virtual switch is connected to the virtual router.

[0022] In one embodiment, step S5 includes:

[0023] Step S51: generating gateway configuration information of the first virtual switch when the IP address network segment maintained by the first virtual switch does not overlap with the IP address network segments of all virtual switches;

[0024] Step S52: Connect the first virtual switch to the virtual router based on the gateway configuration information.

[0025] In one embodiment, after step S2, the method further includes:

[0026] Step S6, adding the target IP address to the IP address set;

[0027] After step S3, the method further includes:

[0028] Step S7: When the target object is deregistered, delete the target IP address from the IP address set.

[0029] In a second aspect, an embodiment of the present invention further provides a computing task network access device for an intelligent computing center, wherein the intelligent computing center includes a target virtual switch and a target virtual subnet, wherein the target virtual switch and the target virtual subnet are communicatively connected, and the device includes:

[0030] A first acquisition module is used to acquire an Internet Protocol IP address segment and an IP address set, wherein the IP address segment is an IP address segment maintained by the target virtual switch, and the IP address set includes IP addresses that have been used in the IP address segment;

[0031] An allocation module, configured to allocate a target IP address to the target object based on the IP address network segment and the IP address set when the target object is created in the target virtual subnet, wherein the target IP address is an unused IP address in the IP address network segment, the target object is a container or a virtual machine of the intelligent computing center, and the target object is used to carry the computing task;

[0032] An interaction module is used to perform data interaction with the target object based on the target IP address.

[0033] In a third aspect, an embodiment of the present invention further provides an electronic device comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, the steps in the method for network access of computing power tasks of an intelligent computing center as described in the first aspect above are implemented.

[0034] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps in the method for network access of computing power tasks of an intelligent computing center as described in the first aspect above are implemented.

[0035] In a fifth aspect, an embodiment of the present invention further provides a computer program product, comprising computer instructions, which, when executed by a processor, implement the steps in the computing power task network access method of the intelligent computing center as described in the first aspect above.

[0036] In an embodiment of the present invention, an Internet Protocol IP address segment and an IP address set are obtained, the IP address segment is an IP address segment maintained by the target virtual switch, and the IP address set includes IP addresses that have been used in the IP address segment; when the target object is created in the target virtual subnet, a target IP address is allocated to the target object based on the IP address segment and the IP address set, the target IP address is an unused IP address in the IP address segment, the target object is a container or a virtual machine in the intelligent computing center, and the target object is used to carry computing tasks; data is interacted with the target object based on the target IP address. In this way, by allocating an unused IP address to the target object, the target object can exchange data with other containers, virtual machines or external networks based on the allocated unused IP address, and there is no need to store data and then forward it by the intelligent computing center, thereby improving the data interaction efficiency of virtual tasks and improving the flexibility of network topology. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.

[0038] Figure 1 It is a flow chart of a computing task network access method for an intelligent computing center provided by an embodiment of the present invention;

[0039] Figure 2 is a schematic diagram of a virtual router, a virtual switch, and a virtual subnet provided in an embodiment of the present invention;

[0040] Figure 3 It is a structural diagram of a computing task network access device for an intelligent computing center provided by an embodiment of the present invention;

[0041] Figure 4 It is a structural diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0042] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0043] The "computing power" mentioned in the present invention 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 requirements. It is the computing power to achieve target result output by processing information data. It is a new type of productivity that integrates information computing power, network carrying capacity, and data storage capacity. It mainly provides services to the society through computing power infrastructure.

[0044] The "computing power" (Computational Power, CP) described in the present invention is the ability of a data center server to process data and output results. It is a comprehensive indicator to measure the computing power of a data center, including general computing power, super computing power and intelligent computing power. The commonly used unit of measurement is the number of floating point operations performed per second (FLOPS: Floating Point Operations Per Second, 1EFLOPS = 10^18FLOPS). The larger the value, the stronger the comprehensive computing power. According to calculations, 1EFLOPS is approximately the computing power output of 5 Tianhe-2A or 500,000 mainstream server CPUs or 2 million mainstream notebooks. The calculation formula is: CP = CP 通用 +CP 智能 +CP 超级 .

[0045] The "Network Power" (NP) described in the present invention is a manifestation of the data transmission capability of computing facilities, including comprehensive capabilities such as network architecture, network bandwidth, transmission latency, intelligent management and scheduling, etc. The carrying capacity involves network transmission within and between data centers, and is a comprehensive indicator for measuring network transmission scheduling capabilities. In the embodiment of the present invention, the carrying capacity uses the memory bandwidth.

[0046] The "Storage Power" (SP) described in the present invention is the comprehensive ability of a data center in terms of data storage capacity, performance, safety and reliability, and green and low-carbon. It is a comprehensive indicator for measuring the data storage capacity of a data center, including external storage devices such as storage arrays and server built-in storage devices. The commonly used unit of measurement for storage capacity is exabyte (EB, 1EB = 2^60bytes), and the commonly used unit of measurement for performance is the number of reads and writes per second per unit capacity (IOPS / TB, Input / Output Operations Per Second / TB). The disaster recovery ratio is an important manifestation of safety and reliability.

[0047] The "computing power infrastructure" described in the present invention is a new type of information infrastructure that integrates information computing power, network carrying capacity, and data storage capacity. It can realize centralized computing, storage, transmission and application of information, and presents characteristics such as diversity and ubiquity, intelligence and agility, safety and reliability, green and low-carbon. It is of great significance to promote industrial transformation and upgrading, enable my country's scientific and technological innovation, meet people's better life and realize high-efficiency social governance.

[0048] The “computing power” mentioned in the present invention includes general computing power, intelligent computing power and super computing power.

[0049] The “general computing power” mentioned in the present invention refers to the computing power provided by a server based on a central processing unit (CPU) chip, which is used to support basic general computing such as cloud computing and edge computing.

[0050] The "intelligent computing power" described in the present invention is a computing platform for large-scale deployment of special chips such as graphics processing units (GPUs), field programmable gate arrays (FPGAs), and application-specific integrated circuits (ASICs) for various innovative applications of artificial intelligence, such as natural language processing and machine vision.

[0051] The "super computing power" mentioned in the present invention is mainly 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 uses a dedicated operating system to handle extremely complex or data-intensive problems. It is mainly used for calculations in cutting-edge scientific fields, such as planetary simulation, drug molecule design, and gene analysis.

[0052] The "intelligent computing center" mentioned in the present invention 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 (CPU) and intelligent computing power (GPU, FPGA, etc.). 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.

[0053] The "computing resources" mentioned in the present invention refer to the technologies and facilities with information calculation, transmission, storage and application capabilities required for the development of the digital society, including but not limited to computing resources such as CPUs and GPUs, 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 supporting and guarantee resources such as wind, fire, water and electricity.

[0054] The "virtual subnet" described in the present invention refers to a network composed of terminal nodes that are physically distributed in different subnets and logically connected to each other. A virtual subnet is not just a fictitious network, but a logical subnet formed by connecting terminal nodes distributed in different physical locations through logical connections. Data transmission is allowed between interconnected virtual subnets. The concept of virtual subnets is very important in computer network architecture, especially in scenarios where it is necessary to integrate dispersed resources and improve network flexibility and scalability.

[0055] The "pod" described in the present invention refers to a series of processes or tasks that are isolated from the rest of the system. All files required to run these processes or tasks are provided by another image, that is, the container is portable and consistent throughout the entire process from development to testing to production. Containers provide isolation between processes or tasks, and can divide the resources managed by computers, servers, or intelligent computing centers into isolated groups, resolving conflicts in resource usage between isolated groups.

[0056] The "virtual machine" described in the present invention is a computer system with complete hardware system functions simulated by software, which runs in a completely isolated environment. A virtual machine (VM) can be created on a physical computer, server or intelligent computing center, and a part of the hard disk and memory capacity of the physical computer, server or intelligent computing center is allocated to the virtual machine as its hard disk and memory capacity. Each virtual machine can perform the same operations as a physical computer. Virtual machine technology allows multiple operating systems to run simultaneously on a physical computer without interfering with each other.

[0057] The "virtual switch" described in the present invention is a network device that works at the data link layer. The virtual switch is mainly used to forward messages according to the Media Access Control (MAC) address in the data frame. Compared with the traditional hub, the virtual switch can more intelligently selectively forward the data packet to the target device according to the target MAC address, thereby improving the transmission efficiency and security of the network. When the virtual switch receives a data packet, the virtual switch looks up the target MAC address and queries the MAC address table to determine which port the data packet should be forwarded to. At the same time, the virtual switch can forward the broadcast message to all interfaces in the data link layer to realize the broadcast of the message. By using a virtual switch, data transmission in the network can be more efficient and reliable, conflicts, collisions and broadcast storms can be reduced, and the bandwidth utilization of the network can be improved.

[0058] It should be noted that in the embodiment of the present invention, the virtual switch can be constructed by tools such as linux bridge (linuxbridge), virtual local area network (Virtual Local Area Network, VLAN) or open virtual switch (OpenvSwitch, OVS). After the virtual switch is constructed, the container or virtual machine can be mounted to the virtual switch.

[0059] The "virtual router" described in the present invention is a logical device that implements routing functions through software, and is used to be deployed on a virtual machine instance of server hardware to provide cloud-based network services. The virtual router can provide multiple functions such as routing, switching and security on a virtualized platform, allowing users to easily configure and manage networks in a cloud environment and achieve high flexibility.

[0060] In the embodiment of the present invention, the virtual router is constructed by using OVS flow table, or tools such as Linux protocol stack and independent namespace.

[0061] See also Figure 1 , Figure 1 : is a flow chart of a method for accessing a computing task network of an intelligent computing center provided by an embodiment of the present invention. Figure 1 As shown, the intelligent computing center includes a target virtual switch and a target virtual subnet, the target virtual switch and the target virtual subnet are in communication connection, and the method includes the following steps:

[0062] Step S1, obtaining an Internet Protocol (IP) address segment and an IP address set, wherein the IP address segment is an IP address segment maintained by the target virtual switch, and the IP address set includes IP addresses that have been used in the IP address segment;

[0063] Step S2: when the target object is created in the target virtual subnet, a target IP address is allocated to the target object based on the IP address network segment and the IP address set, wherein the target IP address is an unused IP address in the IP address network segment, and the target object is a container or a virtual machine of the intelligent computing center, and the target object is used to carry the computing task;

[0064] Step S3: performing data interaction with the target object based on the target IP address.

[0065] In an embodiment of the present invention, an Internet Protocol IP address segment and an IP address set are obtained, the IP address segment is an IP address segment maintained by the target virtual switch, and the IP address set includes IP addresses that have been used in the IP address segment; when the target object is created in the target virtual subnet, a target IP address is allocated to the target object based on the IP address segment and the IP address set, the target IP address is an unused IP address in the IP address segment, the target object is a container or a virtual machine in the intelligent computing center, and the target object is used to carry computing tasks; data is interacted with the target object based on the target IP address. In this way, by allocating an unused IP address to the target object, the target object can exchange data with other containers, virtual machines or external networks based on the allocated unused IP address, and there is no need to store data and then forward it by the intelligent computing center, thereby improving the data interaction efficiency of virtual tasks and improving the flexibility of network topology.

[0066] In an embodiment of the present invention, the IP address segment maintained by the target virtual switch includes multiple IP addresses. The target virtual switch can assign different IP addresses to different containers or virtual machines in the target virtual subnet, so that each container or virtual machine can achieve data interaction through a different IP address, thereby avoiding data transmission errors during data interaction due to duplication of IP addresses.

[0067] Furthermore, an IP address management (IP Address Management, IPAM) service is configured on the target virtual switch, so that the target virtual switch maintains the IP network segment based on the IP address management service.

[0068] Furthermore, a Dynamic Host Configuration Protocol (DHCP) service is configured on the target virtual switch, so that when the target object is created in the target virtual subnet, the target virtual switch allocates a target IP address to the target object at the data link layer through the DHCP service. Specifically, DHCP adopts a client / server mode, where the client is the target object and the server is the virtual switch. When the target object is created in the target virtual subnet, the target object requests the target virtual switch to configure an IP address. At this time, the target virtual switch responds to the request and allocates the required target IP address to the target object, so that the target object can perform data exchange through the target IP address.

[0069] In one embodiment, step S3 includes at least one of the following:

[0070] Step S31: receiving data sent by the target object based on the target IP address through the target virtual switch, and forwarding the data sent by the target virtual subnet to the object in the target virtual subnet;

[0071] Step S32: Receive data sent by the first object in the target virtual subnet through the target virtual switch, and perform domain name resolution on the data sent by the first object. When the resolved domain name corresponds to the target IP address, forward the data sent by the first object to the target object through the target IP address.

[0072] In an embodiment of the present invention, data sent by a target object is received through a target IP address, and data sent by a target virtual subnet is forwarded to an object in the target virtual subnet, thereby realizing data reception by a computing task carried by the target object; data sent by a first object in the target virtual subnet is received, and a domain name resolution is performed on the data sent by the first object, and when the resolved domain name corresponds to the target IP address, the data sent by the first object is forwarded to the target object through the target IP address, thereby realizing sending the data of the computing task carried by the target object to the first object, thereby realizing data interaction between the target object and the first object.

[0073] It should be noted that if Figure 2 As shown, the first object and the target object are both containers or virtual machines in the target virtual subnet. In this case, the data interaction between the first object and the target object only needs to forward the data through the target virtual switch to realize the data interaction between different computing tasks in the same virtual subnet.

[0074] Furthermore, a Domain Name System (DNS) service is configured on the target virtual switch, so that the target virtual switch performs domain name resolution for data sent or received by different containers or virtual machines in the target virtual subnet, thereby realizing data interaction of computing tasks.

[0075] In one embodiment, the intelligent computing center further comprises a virtual router, the virtual router is communicatively connected with at least one virtual switch, and the at least one virtual switch comprises the target virtual switch;

[0076] The step S3 includes at least one of the following:

[0077] Step S33: receiving data sent by the target object based on the target IP address through the target virtual switch, and forwarding the data sent by the target virtual subnet to an object in a second virtual subnet or an external network through the virtual router, where the second virtual subnet is a virtual subnet in the at least one virtual subnet;

[0078] Step S34: receiving data sent by the second object or the external network through the virtual router, and performing domain name resolution on the data sent by the second object or the external network through the target virtual switch; when the resolved domain name corresponds to the target IP address, forwarding the data sent by the second object or the external network to the target object based on the target IP address through the target virtual switch.

[0079] In an embodiment of the present invention, data sent by a target object is received through a virtual switch based on a target IP address, and data sent by the target virtual subnet is forwarded to an object in a second virtual subnet or an external network through a virtual router, where the second virtual subnet is a virtual subnet in at least one virtual subnet, thereby realizing that data of a computing task carried by the target object is sent to a container or a virtual machine in the second virtual subnet; data sent by a second object or an external network is received through a virtual router, and domain name resolution is performed on the data sent by the second object or the external network through a virtual switch, and when the resolved domain name corresponds to the target IP address, the data sent by the second object or the external network is forwarded to the target object through the virtual switch based on the target IP address, thereby realizing a container or a virtual machine in the second virtual subnet.

[0080] It should be noted that if Figure 2As shown, each virtual subnet corresponds to a virtual switch, and the target object and the second object are containers or virtual machines in different virtual subnets. In the case of data interaction between the target object and the second object, data forwarding between virtual switches corresponding to different virtual subnets needs to be achieved through a virtual router, thereby achieving data interaction between containers or virtual machines in different virtual subnets.

[0081] Among them, the virtual router forwards messages or data according to the three-layer IP address. The three-layer IP address can be expressed as a network (net) identification (identify, ID) - subnet (subnet) ID - host (host) ID. The first level defines the address of the network; the second level defines the subnet; the third level defines the host and router, and the data transmission between different virtual subnets is realized through the three-level IP address.

[0082] Furthermore, if Figure 2 As shown, the intelligent computing center also has a host service subnet, and the virtual router can also communicate with the external network through the host service subnet, thereby enabling the data of the computing tasks in the virtual subnet to interact with the external network.

[0083] In one embodiment, the method further comprises:

[0084] Step S4, obtaining the IP address network segment maintained by the first virtual switch to be connected to the virtual router, and the IP address network segments of all virtual switches that have been connected to the virtual router;

[0085] Step S5: When the IP address network segment maintained by the first virtual switch does not overlap with the IP address network segments of all virtual switches, the first virtual switch is connected to the virtual router.

[0086] In the embodiment of the present invention, an IP address segment maintained by a first virtual switch to be connected to a virtual router and IP address segments of all virtual switches connected to the virtual router are obtained; when there is no duplication between the IP address segment maintained by the first virtual switch and the IP address segments of all virtual switches, the first virtual switch is connected to the virtual router, thereby connecting the virtual subnet corresponding to the first virtual switch to the virtual router, thereby realizing communication connection between the virtual router and different virtual subnets.

[0087] Among them, since the virtual router needs to realize data transmission between different virtual subnets, the IP address segments maintained by the virtual subnets connected to the virtual router cannot be repeated. In the case of duplication, there is a risk of data being transmitted to the wrong virtual subnet. That is, when the IP address segment maintained by the first virtual switch is repeated with the IP address segment of all virtual switches, the first virtual switch is prohibited from accessing the virtual router, thereby ensuring the accuracy of the virtual router when transmitting data.

[0088] In one embodiment, step S5 includes:

[0089] Step S51: generating gateway configuration information of the first virtual switch when the IP address network segment maintained by the first virtual switch does not overlap with the IP address network segments of all virtual switches;

[0090] Step S52: Connect the first virtual switch to the virtual router based on the gateway configuration information.

[0091] In the embodiment of the present invention, when the IP address segment maintained by the first virtual switch does not overlap with the IP address segments of all virtual switches, gateway configuration information of the first virtual switch is generated; based on the gateway configuration information, the first virtual switch is connected to the virtual router, thereby realizing the communication connection between the virtual router and the first virtual switch.

[0092] Among them, the gateway configuration information includes the IP address segment and routing information corresponding to the first virtual switch. The virtual router can determine whether to send the data packet to the first virtual switch according to the IP address and routing information to which the data packet needs to be sent, thereby realizing data transmission.

[0093] In one embodiment, after step S2, the method further includes:

[0094] Step S6, adding the target IP address to the IP address set;

[0095] After step S3, the method further includes:

[0096] Step S7: When the target object is deregistered, delete the target IP address from the IP address set.

[0097] In an embodiment of the present invention, the target IP address is added to the IP address set, so that when the address is subsequently allocated based on the IP address network segment and the IP address set, the target IP address is identified as an IP address that has been used and is not allocated, thereby ensuring the uniqueness of the IP address corresponding to each container or virtual machine in the virtual subnet, thereby improving the accuracy of data transmission.

[0098] Furthermore, when the target object is deregistered, the target IP address is deleted from the IP address set, thereby recovering the target IP address, so that the target IP address can be allocated again when the address is subsequently allocated based on the IP address network segment and the IP address set.

[0099] See also Figure 3 , Figure 3 is a structural diagram of a computing task network access device for an intelligent computing center provided by an embodiment of the present invention, such as Figure 3 As shown, the intelligent computing center includes a target virtual switch and a target virtual subnet, the target virtual switch and the target virtual subnet are communicatively connected, and the device 300 includes:

[0100] A first acquisition module 301 is used to acquire an Internet Protocol IP address segment and an IP address set, wherein the IP address segment is an IP address segment maintained by the target virtual switch, and the IP address set includes IP addresses that have been used in the IP address segment;

[0101] An allocation module 302 is used for allocating a target IP address to the target object based on the IP address network segment and the IP address set when the target object is created in the target virtual subnet, wherein the target IP address is an unused IP address in the IP address network segment, and the target object is a container or a virtual machine of the intelligent computing center, and the target object is used to carry the computing task;

[0102] The interaction module 303 is used to perform data interaction with the target object based on the target IP address.

[0103] In one embodiment, the interaction module 303 includes at least one of the following:

[0104] A first interaction unit, configured to receive data sent by the target object based on the target IP address through the target virtual switch, and forward the data sent by the target virtual subnet to the object in the target virtual subnet;

[0105] The second interaction unit is used to receive data sent by the first object in the target virtual subnet through the target virtual switch, and perform domain name resolution on the data sent by the first object. When the resolved domain name corresponds to the target IP address, the data sent by the first object is forwarded to the target object through the target IP address.

[0106] In one embodiment, the intelligent computing center further comprises a virtual router, the virtual router is communicatively connected with at least one virtual switch, and the at least one virtual switch comprises the target virtual switch;

[0107] The interaction module 303 includes at least one of the following:

[0108] A third interaction unit is used to receive data sent by the target object based on the target IP address through the target virtual switch, and forward the data sent by the target virtual subnet to an object in a second virtual subnet or an external network through the virtual router, where the second virtual subnet is a virtual subnet in the at least one virtual subnet;

[0109] The fourth interaction unit is used to receive data sent by the second object or the external network through the virtual router, and perform domain name resolution on the data sent by the second object or the external network through the target virtual switch. When the resolved domain name corresponds to the target IP address, the data sent by the second object or the external network is forwarded to the target object based on the target IP address through the target virtual switch.

[0110] In one embodiment, the apparatus 300 further includes:

[0111] A second acquisition module is used to acquire the IP address network segment maintained by the first virtual switch to be connected to the virtual router, and the IP address network segments of all virtual switches that have been connected to the virtual router;

[0112] The access module is used to connect the first virtual switch to the virtual router when the IP address network segment maintained by the first virtual switch does not overlap with the IP address network segments of all virtual switches.

[0113] In one embodiment, the access module includes:

[0114] A generating unit, configured to generate gateway configuration information of the first virtual switch when the IP address network segment maintained by the first virtual switch does not overlap with the IP address network segments of all the virtual switches;

[0115] An access unit is used to connect the first virtual switch to the virtual router based on the gateway configuration information.

[0116] In one embodiment, after the allocation module 302, the apparatus 300 further includes:

[0117] An adding module, used for adding the target IP address to the IP address set;

[0118] After the interaction module 303, the device 300 further includes:

[0119] The deleting module is used to delete the target IP address from the IP address set when the target object is deregistered.

[0120] The computing power task network access device of the intelligent computing center provided in the embodiment of the present invention is capable of implementing the various processes of the various embodiments of the computing power task network access method of the above-mentioned intelligent computing center. The technical features correspond one to one and can achieve the same technical effect. To avoid repetition, they will not be repeated here.

[0121] It should be noted that the computing task network access device of the intelligent computing center in the embodiment of the present invention can be a device, or a component, integrated circuit, or chip in an electronic device.

[0122] The embodiment of the present invention further provides an electronic device, see Figure 4 , Figure 4 4 is a schematic diagram of a structure of an electronic device provided by the present invention, the electronic device includes a memory 401, a processor 402 and a program or instruction stored in the memory 401 and running thereon, and when the program or instruction is executed by the processor 402, it can be realized Figure 1 Any steps in the corresponding embodiment of the computing power task network access method of the intelligent computing center and the same beneficial effects achieved will not be repeated here.

[0123] The processor 402 may be a CPU, an ASIC, an FPGA or a GPU.

[0124] A person skilled in the art can understand that all or part of the steps of the embodiment of the computing task network access method for the intelligent computing center can be completed by hardware related to program instructions, and the program can be stored in a readable medium.

[0125] The embodiment of the present invention further provides a computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the above-mentioned Figure 1 The corresponding steps in the embodiment of the computing power task network access method of the intelligent computing center can achieve the same technical effect. To avoid repetition, they are not repeated here. The storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0126] The embodiment of the present invention also provides a computer program product, including computer instructions, which can achieve the above-mentioned Figure 1 Any step in the corresponding intelligent computing center computing power task network access method embodiment can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0127] The terms "first", "second" etc. in the embodiments of the present invention are used to distinguish similar objects, and need not be used to describe a specific order or sequential order. In addition, the terms "include" and "have" and any variation thereof are intended to cover non-exclusive inclusions, for example, the process, method, system, product or equipment comprising a series of steps or units need not be limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or equipment. In addition, "and / or" is used in the present application to represent at least one of the connected objects, such as A and / or B and / or C, indicating that A alone, B alone, C alone, and A and B all exist, B and C all exist, A and C all exist, and 7 situations in which A, B and C all exist.

[0128] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0129] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a second terminal device, etc.) to execute the methods of each embodiment of the present application.

[0130] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A method for accessing a computing task network of an intelligent computing center, wherein the intelligent computing center comprises a target virtual switch and a target virtual subnet, wherein the target virtual switch and the target virtual subnet are communicatively connected, and wherein: The method comprises: Step S1, obtaining an Internet Protocol IP address segment and an IP address set, wherein the IP address segment is an IP address segment maintained by the target virtual switch, and the IP address set includes IP addresses that have been used in the IP address segment; Step S2: when the target object is created in the target virtual subnet, a target IP address is allocated to the target object based on the IP address network segment and the IP address set, wherein the target IP address is an unused IP address in the IP address network segment, and the target object is a container or a virtual machine of the intelligent computing center, and the target object is used to carry the computing task; Step S3: performing data interaction with the target object based on the target IP address.

2. The method according to claim 1, characterized in that The step S3 includes at least one of the following: Step S31: receiving data sent by the target object based on the target IP address through the target virtual switch, and forwarding the data sent by the target virtual subnet to the object in the target virtual subnet; Step S32: Receive data sent by the first object in the target virtual subnet through the target virtual switch, and perform domain name resolution on the data sent by the first object. When the resolved domain name corresponds to the target IP address, forward the data sent by the first object to the target object through the target IP address.

3. The method according to claim 1, characterized in that The intelligent computing center further comprises a virtual router, wherein the virtual router is communicatively connected with at least one virtual switch, and the at least one virtual switch comprises the target virtual switch; The step S3 includes at least one of the following: Step S33: receiving data sent by the target object based on the target IP address through the target virtual switch, and forwarding the data sent by the target virtual subnet to an object in a second virtual subnet or an external network through the virtual router, where the second virtual subnet is a virtual subnet in the at least one virtual subnet; Step S34: receiving data sent by the second object or the external network through the virtual router, and performing domain name resolution on the data sent by the second object or the external network through the target virtual switch; when the resolved domain name corresponds to the target IP address, forwarding the data sent by the second object or the external network to the target object based on the target IP address through the target virtual switch.

4. The method according to claim 3, characterized in that The method further comprises: Step S4, obtaining the IP address network segment maintained by the first virtual switch to be connected to the virtual router, and the IP address network segments of all virtual switches that have been connected to the virtual router; Step S5: When the IP address network segment maintained by the first virtual switch does not overlap with the IP address network segments of all virtual switches, the first virtual switch is connected to the virtual router.

5. The method according to claim 4, characterized in that The step S5 comprises: Step S51: generating gateway configuration information of the first virtual switch when the IP address network segment maintained by the first virtual switch does not overlap with the IP address network segments of all virtual switches; Step S52: Connect the first virtual switch to the virtual router based on the gateway configuration information.

6. The method according to any one of claims 1 to 5, characterized in that After step S2, the method further includes: Step S6, adding the target IP address to the IP address set; After step S3, the method further includes: Step S7: When the target object is deregistered, delete the target IP address from the IP address set.

7. A computing task network access device for an intelligent computing center, the intelligent computing center comprising a target virtual switch and a target virtual subnet, the target virtual switch and the target virtual subnet are communicatively connected, characterized in that: The device comprises: A first acquisition module is used to acquire an Internet Protocol IP address segment and an IP address set, wherein the IP address segment is an IP address segment maintained by the target virtual switch, and the IP address set includes IP addresses that have been used in the IP address segment; An allocation module, configured to allocate a target IP address to the target object based on the IP address network segment and the IP address set when the target object is created in the target virtual subnet, wherein the target IP address is an unused IP address in the IP address network segment, the target object is a container or a virtual machine of the intelligent computing center, and the target object is used to carry the computing task; An interaction module is used to perform data interaction with the target object based on the target IP address.

8. An electronic device, 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 the computing power task network access method of the intelligent computing center as described in any one of claims 1 to 6 are implemented.

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 the computing task network access method of the intelligent computing center according to any one of claims 1 to 6.

10. A computer program product, characterized in that It includes computer instructions, which, when executed by a processor, implement the steps of the computing task network access method of the intelligent computing center as described in any one of claims 1 to 6.

Citation Information

Cited By

  • Intelligent computing center model development method and device oriented to popularity

    CN119902904A