Address allocation method and device and related equipment

By deploying agents on the controller and automatically allocating the IP address of the tenant computing server under the RoCE VLAN network in the Intelligent Computing Center, the DHCP configuration complexity caused by dynamic changes in the tenant network segment under M-LAG access is solved, and tenant automation up-and-down and IP address solidification is realized.

CN119520480AActive Publication Date: 2025-02-25NEW H3C TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202411621069.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-13
Publication Date
2025-02-25
Estimated Expiration
2044-11-13

AI Technical Summary

Technical Problem

Under the RoCE VLAN network of the Intelligent Computing Center, the network segment size of the tenant changes dynamically, resulting in the inability to use the conventional DHCP method under M-LAG access, and DHCP relay technology is required. However, due to the inability to pre-configure the network segment address pool of the tenant storage network, the tenant needs to manually configure the DHCP relay Server during the process of going online and offline, which increases the complexity of operation and maintenance and error risks.

Method used

By deploying an agent on the controller, establishing a communication link with the access device, determining the tenant information of the newly created tenant, instructing the target computing server access device to create a logical virtual interface, and assigning the target IP address from the target tenant network segment, sending address allocation instructions through the communication link, so that the target computing server can configure the target network card.

Benefits of technology

It realizes the automation of tenant up and down in the M-LAG networking and tenant application scenarios, ensures the IP address of each tenant computing server is solidified, simplifies the operation and maintenance process, reduces the risk of errors, and avoids the shortcomings of DHCP relay technology in dynamic network segment changes scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119520480A_ABST
    Figure CN119520480A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of intelligent computing centers, in particular to an address allocation method and device and related equipment. The method comprises the steps that tenant information of a newly-created tenant is determined, and the tenant information comprises target computing server information distributed to the tenant and target tenant network segment information distributed to the tenant; indicating a target access device accessed by the target computing server to create a logic virtual interface, and setting an IP address of the logic virtual interface as a gateway address of the target tenant network segment; distributing a target IP address for the target computing server from the target tenant network segment; and sending an address allocation instruction carrying the target IP address to the target computing server through a communication link with an agent program of the target server, so that the target computing server configures a target network card based on the IP address carried by the address allocation instruction, the target network card is a network card accessed to the target access device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of intelligent computing centers, and in particular to an address allocation method, device and related equipment. Background Art

[0002] In the RoCE (RDMA (Remote Direct Memory Access) over Converged Ethernet) VLAN (Virtual Local Area Network) networking of the Intelligent Computing Center, the allocation and management of server IP addresses is often a complex task due to the large scale of server network cards. The system usually uses DHCP (Dynamic Host Configuration Protocol) technology to allocate addresses for server network cards. In order to support high-reliability access, the storage network of the Intelligent Computing Center needs to use M-LAG (Multichassis Link Aggregation Group) networking access. However, the conventional DHCP method cannot be used under M-LAG access, and DHCP relay technology needs to be used. In the tenant scenario, the size of the tenant's network segment cannot be predicted in advance and can only be specified when the tenant is created, so it cannot be pre-configured on the DHCP relayServer. In this way, in the RoCE VLAN networking, the DHCP server needs to be manually configured during the tenant's online and offline process, which brings operational difficulties to users and introduces the possibility of errors. Summary of the invention

[0003] The present application provides an address allocation method, apparatus and related equipment.

[0004] In a first aspect, the present application provides an address allocation method, which is applied to a controller, wherein an agent program is deployed on each access device managed by the controller, and a communication link is established between the controller and the agent program of each access device; the method comprises:

[0005] Determine tenant information of a newly created tenant, wherein the tenant information includes target computing server information assigned to the tenant and target tenant network segment information assigned to the tenant;

[0006] Instruct the target access device to which the target computing server is connected to create a logical virtual interface, and set the IP address of the logical virtual interface to the gateway address of the target tenant network segment;

[0007] Allocate a target IP address for the target computing server from the target tenant network segment;

[0008] An address allocation instruction carrying the target IP address is sent to the target computing server through a communication link with the agent program of the target server, so that the target computing server configures a target network card based on the IP address carried by the address allocation instruction, wherein the target network card is a network card connected to the target access device.

[0009] Optionally, the target access device includes a first access device and a second access device, and the first access device and the second access device form an inter-device link aggregation system;

[0010] The target computing server includes at least one computing server, and the target network card of each target computing server includes a first network card and a second network card, wherein the first network card and the second network card form a logical virtual interface, the first network card is connected to the first access device, and the second network card is connected to the second access device.

[0011] Optionally, the step of determining tenant information of a newly created tenant includes:

[0012] Receive tenant information of a newly created tenant sent by the cloud, wherein the tenant information includes the tenant name of the newly created tenant, target computing server information assigned to the tenant, and target tenant network segment information assigned to the tenant;

[0013] Based on the tenant information, a target computing server allocated to the tenant and a target tenant network segment allocated to the tenant are determined.

[0014] Optionally, if the tenant information does not include tenant network segment information allocated to the newly created tenant, the step of determining the tenant network segment information of the newly created tenant includes:

[0015] An available network segment that meets the preset conditions is determined from the preset address pool, and the available network segment is allocated to the newly created tenant as the target tenant network segment.

[0016] Optionally, maintaining a mapping relationship between each target network card and the IP address allocated thereto; the method further comprises:

[0017] When the target network card upper limit of the target computing server is detected, determine whether the target IP address corresponding to the target network card is maintained locally. If so, assign the target IP address to the target network card; otherwise, assign an IP address to the target network card from the tenant network segment corresponding to the target tenant corresponding to the target computing server.

[0018] In a second aspect, the present application provides an address allocation device, which is applied to a controller, wherein an agent program is deployed on each access device managed by the controller, and a communication link is established between the controller and the agent program of each access device; the device includes:

[0019] A determination unit, configured to determine tenant information of a newly created tenant, wherein the tenant information includes target computing server information allocated to the tenant and target tenant network segment information allocated to the tenant;

[0020] An instructing unit, used to instruct a target access device to which the target computing server is connected to create a logical virtual interface, and set the IP address of the logical virtual interface to the gateway address of the target tenant network segment;

[0021] an allocating unit, configured to allocate a target IP address to the target computing server from the target tenant network segment;

[0022] A sending unit is used to send an address allocation instruction carrying the target IP address to the target computing server through a communication link with the agent program of the target server, so that the target computing server configures a target network card based on the IP address carried by the address allocation instruction, wherein the target network card is a network card connected to the target access device.

[0023] Optionally, the target access device includes a first access device and a second access device, and the first access device and the second access device form an inter-device link aggregation system;

[0024] The target computing server includes at least one computing server, and the target network card of each target computing server includes a first network card and a second network card, wherein the first network card and the second network card form a logical virtual interface, the first network card is connected to the first access device, and the second network card is connected to the second access device.

[0025] Optionally, when determining the tenant information of the newly created tenant, the determining unit is specifically configured to:

[0026] Receive tenant information of a newly created tenant sent by the cloud, wherein the tenant information includes the tenant name of the newly created tenant, target computing server information assigned to the tenant, and target tenant network segment information assigned to the tenant;

[0027] Based on the tenant information, a target computing server allocated to the tenant and a target tenant network segment allocated to the tenant are determined.

[0028] Optionally, if the tenant information does not include tenant network segment information allocated to the newly created tenant, when determining the tenant network segment information of the newly created tenant, the determining unit is specifically used to:

[0029] An available network segment that meets the preset conditions is determined from the preset address pool, and the available network segment is allocated to the newly created tenant as the target tenant network segment.

[0030] Optionally, a mapping relationship between each target network card and the IP address allocated thereto is maintained; the device further comprises a judging unit:

[0031] When the target network card upper limit of the target computing server is detected, the judgment unit is used to judge whether the target IP address corresponding to the target network card is maintained locally. If so, the allocation unit is also used to allocate the target IP address to the target network card; otherwise, the allocation unit is also used to allocate an IP address to the target network card from the tenant network segment corresponding to the target tenant corresponding to the target computing server.

[0032] In a third aspect, an embodiment of the present application provides an address allocation device, the address allocation device comprising:

[0033] A memory for storing program instructions;

[0034] The processor is used to call the program instructions stored in the memory, and execute the steps of the method as described in any one of the first aspects above according to the obtained program instructions.

[0035] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable the computer to execute the steps of the method described in any one of the first aspects above.

[0036] In summary, the address allocation method provided in the embodiment of the present application is applied to a controller, and an agent program is deployed on each access device managed by the controller, and a communication link is established between the controller and the agent program of each access device; the method includes: determining the tenant information of the newly created tenant, wherein the tenant information includes the target computing server information assigned to the tenant and the target tenant network segment information assigned to the tenant; instructing the target access device to which the target computing server is connected to create a logical virtual interface, and setting the IP address of the logical virtual interface to the gateway address of the target tenant network segment; allocating a target IP address to the target computing server from the target tenant network segment; sending an address allocation instruction carrying the target IP address to the target computing server through the communication link with the agent program of the target server, so that the target computing server configures the target network card based on the IP address carried by the address allocation instruction, wherein the target network card is the network card connected to the target access device.

[0037] By adopting the address allocation method provided in the embodiment of the present application, in the M-LAG networking combined with the application scenario of the tenant, the fully automatic address allocation of the tenant's online and offline process is realized, and the demand for IP address solidification is guaranteed. The network gateway and the server address to be allocated are uniformly managed by the controller, avoiding the complexity caused by multi-party interactive configuration, which is beneficial to operation and maintenance and management. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments of the present application or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this application. For ordinary technicians in this field, other drawings can also be obtained based on these drawings of the embodiments of the present application.

[0039] Figure 1 A detailed flow chart of an address allocation method provided in an embodiment of the present application;

[0040] Figure 2 A network diagram provided for an embodiment of the present application;

[0041] Figure 3 A schematic diagram of the structure of an address allocation device provided in an embodiment of the present application;

[0042] Figure 4 A schematic diagram of the hardware architecture of an address allocation device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0043] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, rather than limiting the present application. The singular forms of "a", "said" and "the" used in the present application and claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to any or all possible combinations of one or more associated listed items.

[0044] It should be understood that, although the terms first, second, third, etc. may be used to describe various information in the embodiments of the present application, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, in addition, the word "if" used may be interpreted as "at..." or "when..." or "in response to determination".

[0045] In the RoCE VLAN networking of the intelligent computing center, due to the large scale of server network cards, the allocation and management of server IP addresses is often a complex task. The system usually uses DHCP technology to allocate addresses for server network cards. In order to support high-reliability access, the storage network of the intelligent computing center needs to use M-LAG networking access. However, the conventional DHCP method cannot be used under M-LAG access, and DHCP relay technology needs to be used.

[0046] Specifically, in the M-LAG networking scenario, if the DHCP method is used, DHCP servers are deployed on the access devices included in the M-LAG system respectively, and the computing server is dual-regularly connected to the M-LAG system, it may cause errors / conflicts in address allocation. Therefore, it is necessary to adopt DHCP relay technology and deploy a third-party DHCP relay server. Then, in the multi-tenant scenario, the network segment size required by the tenant cannot be predicted in advance and can only be specified when the tenant is created, and it cannot be pre-configured on the DHCP relay server. In this way, in the RoCE VLAN networking, the DHCP relay server needs to be manually configured during the process of tenants going online and offline, which brings operational difficulties to users and introduces the possibility of errors.

[0047] For example, the current address allocation process is as follows:

[0048] 1. Allocate two computing nodes, HOST1 and HOST2, to the tenant;

[0049] 2. Network cards 1 to 8 of the computing nodes are used as parameter networks. Each network card has its own independent network segment. The DHCP server is enabled on leaf1 to leaf8 respectively. The DHCP address pool is dynamically specified using the parameter network segment when the tenant is created.

[0050] 3. NICs 9 and 10 on the computing node are used as storage network NICs to communicate with the storage service side. NICs 9 and 10 form a bond port and are connected to the two storage client leafs that form the M-LAG system.

[0051] 4. Since the storage network card is connected in M-LAG mode, if the DHCP mode is the same as that of the parameter network, enabling the DHCP server on leaf9 and leaf10 respectively will cause confusion in DHCP allocation, so the DHCP relay mode is required;

[0052] 5. The DHCP relay method requires the deployment of an additional DHCP server, and then forwards the DHCP request of the storage network card to the DHCP server. Since this DHCP server is usually deployed independently, it is impossible to dynamically operate this DHCP server during the tenant online process. It can only be manually configured. As a result, under the RoCE VLAN networking, the M-LAG access network card of the server cannot automatically complete the IP address configuration, and manual participation is required, and the overall process cannot be fully automated.

[0053] In actual applications, since the tenant's network is dynamically changing and can only be determined when the tenant goes online, it is impossible to pre-configure the network segment address pool of the tenant's storage network on the DHCP server; then, manually configuring the storage network segment on the DHCP server makes it impossible to complete the tenant's automatic online and offline; since the server address is managed on a third-party DHCP server, it is not easy for the cloud side and the controller to clearly understand the specific usage of the IP address in the network segment, which is not conducive to the operation and maintenance of the entire network; the storage network usually requires fixed IP addresses, and the DHCP relay cannot guarantee that the client is assigned the same IP address every time, which may cause abnormal storage operation; the DHCP relay technology requires additional server deployment, which increases the client's software and hardware resource consumption.

[0054] Based on the above points, we can see that DHCP relay technology is not suitable for tenant scenarios where network segments are dynamically added or deleted.

[0055] In order to solve the above problems, the present application provides a solution for allocating addresses to computing servers corresponding to tenants based on a controller, which can realize automatic logging on and off of tenants while ensuring that the IP addresses of the computing servers of each tenant are solidified to meet the user's needs for solidified IPs.

[0056] For example, see Figure 1 FIG. 1 is a detailed flow chart of an address allocation method provided in an embodiment of the present application. The method is applied to a controller. An agent program is deployed on each access device managed by the controller. A communication link is established between the controller and the agent program of each access device. The method includes the following steps:

[0057] Step 100: Determine tenant information of a newly created tenant, wherein the tenant information includes target computing server information allocated to the tenant and target tenant network segment information allocated to the tenant.

[0058] In an embodiment of the present application, the target access device includes a first access device and a second access device, and the first access device and the second access device constitute a cross-device link aggregation system; the target computing server includes at least one computing server, and the target network card of each target computing server includes a first network card and a second network card, wherein the first network card and the second network card constitute a logical virtual interface, the first network card is connected to the first access device, and the second network card is connected to the second access device.

[0059] That is, the access devices managed by the controller constitute an M-LAG system. For example, see Figure 2 As shown, a networking diagram provided in an embodiment of the present application, the target access device includes access device 1 (such as Leaf-1) and access device 2 (such as Leaf-2), Leaf-1 and Leaf-2 constitute an M-LAG system, assuming that the target computing servers assigned to the target tenant are server 1 and server 2, then, the network card 1 of server 1 is connected to Leaf-1 (such as, downstream interface 1 of Leaf-1), the network card 2 of server 1 is connected to Leaf-2 (such as, downstream interface 1 of Lefa-2), the network card 1 of server 2 is connected to Leaf-1 (such as, downstream interface 2 of Leaf-1), and the network card 2 of server 2 is connected to Leaf-2 (such as, downstream interface 2 of Leaf-2). The network card 1 and the network card 2 of the server 1 form a virtual logical port 1, such as a bond port, which is dual-standardly connected to the M-LAGA system composed of the access device 1 and the access device 2; similarly, the network card 1 and the network card 2 of the server 2 also form a virtual logical port 2, which is dual-standardly connected to the M-LAGA system composed of the access device 1 and the access device 2.

[0060] In the embodiment of the present application, the server can be a computing server in the intelligent computing network, and the access device can be a storage client Leaf in the intelligent computing network. The storage network of the intelligent computing center requires the access devices to form an M-LAG system. When allocating IP addresses to the storage network cards of the computing servers, in order to avoid IP address allocation errors / conflicts, the conventional DHCP method cannot be used. Only the DHCP relay method can be used. In the scenario where there are tenants in the intelligent computing center, in order to realize the automatic planning of the tenant network and the automatic online and offline of tenants, the DHCP relay method no longer meets the scenario requirements.

[0061] In the embodiment of the present application, when determining the tenant information of the newly created tenant, a preferred implementation method is:

[0062] Receive tenant information of a newly created tenant sent by the cloud, wherein the tenant information includes the tenant name of the newly created tenant, the target computing server information assigned to the tenant, and the target tenant network segment information assigned to the tenant; based on the tenant information, determine the target computing server assigned to the tenant and the target tenant network segment assigned to the tenant.

[0063] That is, when the administrator creates a tenant, he determines the number of computing servers required by the tenant and allocates a target computing server that meets the tenant's needs to the newly created tenant. Furthermore, the administrator can also determine the size of the tenant network segment required by the tenant based on the number of target computing servers, thereby allocating a target network segment that meets the tenant's needs to the tenant in the cloud. Finally, the cloud sends the newly created tenant information to the controller.

[0064] In the embodiment of the present application, if the tenant information does not include the tenant network segment information assigned to the newly created tenant, when determining the tenant network segment information of the newly created tenant, a preferred implementation method is:

[0065] An available network segment that meets the preset conditions is determined from the preset address pool, and the available network segment is allocated to the newly created tenant as the target tenant network segment.

[0066] That is to say, if the administrator does not allocate a target tenant network segment for the newly created tenant in the cloud, the controller can determine an available network segment that meets the tenant's needs from the local preset address pool based on the number of target computing servers allocated to the tenant, and determine the available network segment as the target tenant network segment allocated to the tenant.

[0067] Step 110: Instruct the target access device to which the target computing server is connected to create a logical virtual interface, and set the IP address of the logical virtual interface to the gateway address of the target tenant network segment.

[0068] The controller determines the target computing server assigned to the newly created tenant, determines the access device to which the network card to be configured of the target computing server is connected, and after determining the tenant network segment of the tenant, allocates a subnet gateway according to the tenant storage network, instructs the access device to which the network card to be configured of the target computing server is connected to create a logical virtual interface (e.g., VLAN interface), and after determining that the access device has created the corresponding VLAN interface, configures the IP address of the VLAN interface to be the gateway IP address of the tenant network segment of the tenant.

[0069] Step 120: Allocate a target IP address for the target computing server from the target tenant network segment.

[0070] Next, it is necessary to allocate IP addresses to the target network cards of the target computing server. In actual applications, the two network cards of the target computing server are respectively connected to the M-LAG system, that is, the two network cards of a target computing server form a logical virtual interface, and the logical virtual interface is dual-regularly connected to the M-LAG system. Therefore, when allocating IP addresses, it is sufficient to allocate IP addresses to the logical virtual interfaces.

[0071] Step 130: Send an address allocation instruction carrying the target IP address to the target computing server through a communication link with the agent program of the target server, so that the target computing server configures a target network card based on the IP address carried by the address allocation instruction, wherein the target network card is a network card connected to the target access device.

[0072] Specifically, the controller selects an available IP address from the tenant network segment as the target IP address assigned to the target computing server, and communicates with the agent program deployed on the target computing server to carry the address allocation instruction of the target IP address, so that the target computing server configures the carried target IP address as the IP address of the logical virtual interface after receiving the address allocation instruction.

[0073] For example, assuming that the target computing server includes server 1 and server 2, the network card 1 and network card 2 of server 1 form a logical virtual interface 1, and the network card 1 and network card 2 of server 2 form a logical virtual interface 2. The controller allocates available IP1 from the tenant network segment for server 1, and allocates available IP2 from the tenant network segment for server 2. Then, the controller carries the available IP1 in the address configuration instruction and sends it to the agent program of server 1 through the communication link 1 between the controller and the agent program of server 1, and server 1 configures the IP address of logical virtual interface 1 to IP1; similarly, the controller carries the available IP2 in the address configuration instruction and sends it to the agent program of server 2 through the communication link 2 between the controller and the agent program of server 2, and server 2 configures the IP address of logical virtual interface 2 to IP2.

[0074] Furthermore, in an embodiment of the present application, after an IP address is assigned to a target network card of a target computing server corresponding to a newly created tenant, a mapping relationship between each target network card and the IP address assigned to it is maintained; when the upper limit of the target network card of the target computing server is detected, it is determined whether a target IP address corresponding to the target network card is maintained locally; if so, the target IP address is assigned to the target network card; otherwise, an IP address is assigned to the target network card from the tenant network segment corresponding to the target tenant corresponding to the target computing server.

[0075] That is to say, when a tenant goes offline and then comes online again, or the target server fails and is restored / restarted, and the target network card comes online again, first determine whether the target IP address corresponding to the target network card is maintained locally. If it exists, directly assign the maintained IP address to the target network card. If it does not exist, reassign the IP address to the target network card. This ensures that the IP address of the target network card of the target computing server assigned to the tenant is fixed during the process from tenant creation to deletion, avoiding IP changes caused by network anomalies, which may affect business operations.

[0076] Based on the same inventive concept as the above-mentioned embodiment of the invention, for example, refer to Figure 3 FIG. 1 is a schematic diagram of the structure of an address allocation device provided in an embodiment of the present application. The device is applied to a controller. An agent program is deployed on each access device managed by the controller. A communication link is established between the controller and the agent program of each access device. The device includes:

[0077] A determination unit 30, configured to determine tenant information of a newly created tenant, wherein the tenant information includes target computing server information assigned to the tenant and target tenant network segment information assigned to the tenant;

[0078] An instructing unit 31 is used to instruct a target access device to which the target computing server is connected to create a logical virtual interface, and to set the IP address of the logical virtual interface to the gateway address of the target tenant network segment;

[0079] An allocating unit 32, configured to allocate a target IP address to the target computing server from the target tenant network segment;

[0080] The sending unit 33 is used to send an address allocation instruction carrying the target IP address to the target computing server through a communication link with the agent program of the target server, so that the target computing server configures a target network card based on the IP address carried by the address allocation instruction, wherein the target network card is a network card connected to the target access device.

[0081] Optionally, the target access device includes a first access device and a second access device, and the first access device and the second access device form an inter-device link aggregation system;

[0082] The target computing server includes at least one computing server, and the target network card of each target computing server includes a first network card and a second network card, wherein the first network card and the second network card form a logical virtual interface, the first network card is connected to the first access device, and the second network card is connected to the second access device.

[0083] Optionally, when determining the tenant information of the newly created tenant, the determining unit 30 is specifically configured to:

[0084] Receive tenant information of a newly created tenant sent by the cloud, wherein the tenant information includes the tenant name of the newly created tenant, target computing server information assigned to the tenant, and target tenant network segment information assigned to the tenant;

[0085] Based on the tenant information, a target computing server allocated to the tenant and a target tenant network segment allocated to the tenant are determined.

[0086] Optionally, if the tenant information does not include the tenant network segment information allocated to the newly created tenant, when determining the tenant network segment information of the newly created tenant, the determining unit 30 is specifically used to:

[0087] An available network segment that meets the preset conditions is determined from the preset address pool, and the available network segment is allocated to the newly created tenant as the target tenant network segment.

[0088] Optionally, a mapping relationship between each target network card and the IP address allocated thereto is maintained; the device further comprises a judging unit:

[0089] When the target network card upper limit of the target computing server is detected, the judgment unit is used to determine whether the target IP address corresponding to the target network card is maintained locally. If so, the allocation unit 32 is also used to allocate the target IP address to the target network card; otherwise, the allocation unit 32 is also used to allocate an IP address to the target network card from the tenant network segment corresponding to the target tenant corresponding to the target computing server.

[0090] The above units may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASIC), or one or more digital signal processors (DSP), or one or more field programmable gate arrays (FPGA). For another example, when a certain unit is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these units may be integrated together and implemented in the form of a system-on-a-chip (SOC).

[0091] Furthermore, the address allocation device provided in the embodiment of the present application, from the hardware level, the hardware architecture diagram of the address allocation device can be seen in Figure 4As shown, the address allocation device may include: a memory 40 and a processor 41,

[0092] The memory 40 is used to store program instructions; the processor 41 calls the program instructions stored in the memory 40 and executes the above method embodiment according to the obtained program instructions. The specific implementation method and technical effect are similar and will not be repeated here.

[0093] Optionally, the present application also provides a controller, comprising at least one processing element (or chip) for executing the above method embodiment.

[0094] Optionally, the present application also provides a program product, such as a computer-readable storage medium, which stores computer-executable instructions, and the computer-executable instructions are used to enable the computer to execute the above method embodiments.

[0095] Here, the machine-readable storage medium may be any electronic, magnetic, optical or other physical storage device that may contain or store information, such as executable instructions, data, etc. For example, the machine-readable storage medium may be: RAM (RadomAccess Memory), volatile memory, non-volatile memory, flash memory, storage drive (such as hard disk drive), solid state drive, any type of storage disk (such as CD, DVD, etc.), or similar storage medium, or a combination thereof.

[0096] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer, which may be in the form of a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email transceiver, a game console, a tablet computer, a wearable device or a combination of any of these devices.

[0097] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0098] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the embodiments of the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0099] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0100] Moreover, these computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.

[0101] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0102] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.

Claims

1. An address allocation method, characterized in that: Applied to a controller, an agent program is deployed on each access device managed by the controller, and a communication link is established between the controller and the agent program of each access device; the method includes: Determine tenant information of a newly created tenant, wherein the tenant information includes target computing server information assigned to the tenant and target tenant network segment information assigned to the tenant; Instruct the target access device to which the target computing server is connected to create a logical virtual interface, and set the IP address of the logical virtual interface to the gateway address of the target tenant network segment; Allocate a target IP address for the target computing server from the target tenant network segment; An address allocation instruction carrying the target IP address is sent to the target computing server through a communication link with the agent program of the target server, so that the target computing server configures a target network card based on the IP address carried by the address allocation instruction, wherein the target network card is a network card connected to the target access device.

2. The method according to claim 1, characterized in that The target access device includes a first access device and a second access device, and the first access device and the second access device form an inter-device link aggregation system; The target computing server includes at least one computing server, and the target network card of each target computing server includes a first network card and a second network card, wherein the first network card and the second network card form a logical virtual interface, the first network card is connected to the first access device, and the second network card is connected to the second access device.

3. The method according to claim 1 or 2, characterized in that The steps to determine the tenant information for a newly created tenant include: Receive tenant information of a newly created tenant sent by the cloud, wherein the tenant information includes the tenant name of the newly created tenant, target computing server information assigned to the tenant, and target tenant network segment information assigned to the tenant; Based on the tenant information, a target computing server allocated to the tenant and a target tenant network segment allocated to the tenant are determined.

4. The method according to claim 3, characterized in that If the tenant information does not include the tenant network segment information allocated to the newly created tenant, the step of determining the tenant network segment information of the newly created tenant includes: An available network segment that meets the preset conditions is determined from the preset address pool, and the available network segment is allocated to the newly created tenant as the target tenant network segment.

5. The method according to claim 1 or 2, characterized in that: Maintaining a mapping relationship between each target network card and the IP address assigned thereto; the method further comprises: When the target network card upper limit of the target computing server is detected, determine whether the target IP address corresponding to the target network card is maintained locally. If so, assign the target IP address to the target network card; otherwise, assign an IP address to the target network card from the tenant network segment corresponding to the target tenant corresponding to the target computing server.

6. An address allocation device, characterized in that: Applied to a controller, an agent program is deployed on each access device managed by the controller, and a communication link is established between the controller and the agent program of each access device; the device includes: A determination unit, configured to determine tenant information of a newly created tenant, wherein the tenant information includes target computing server information allocated to the tenant and target tenant network segment information allocated to the tenant; An instructing unit, used to instruct a target access device to which the target computing server is connected to create a logical virtual interface, and set the IP address of the logical virtual interface to the gateway address of the target tenant network segment; an allocating unit, configured to allocate a target IP address to the target computing server from the target tenant network segment; A sending unit is used to send an address allocation instruction carrying the target IP address to the target computing server through a communication link with the agent program of the target server, so that the target computing server configures a target network card based on the IP address carried by the address allocation instruction, wherein the target network card is a network card connected to the target access device.

7. The device according to claim 6, characterized in that The target access device includes a first access device and a second access device, and the first access device and the second access device form an inter-device link aggregation system; The target computing server includes at least one computing server, and the target network card of each target computing server includes a first network card and a second network card, wherein the first network card and the second network card form a logical virtual interface, the first network card is connected to the first access device, and the second network card is connected to the second access device.

8. The device according to claim 6 or 7, characterized in that When determining the tenant information of the newly created tenant, the determining unit is specifically used to: Receive tenant information of a newly created tenant sent by the cloud, wherein the tenant information includes the tenant name of the newly created tenant, target computing server information assigned to the tenant, and target tenant network segment information assigned to the tenant; Based on the tenant information, a target computing server allocated to the tenant and a target tenant network segment allocated to the tenant are determined.

9. The device according to claim 8, characterized in that If the tenant information does not include the tenant network segment information allocated to the newly created tenant, when determining the tenant network segment information of the newly created tenant, the determining unit is specifically used to: An available network segment that meets the preset conditions is determined from the preset address pool, and the available network segment is allocated to the newly created tenant as the target tenant network segment.

10. The device according to claim 6 or 7, characterized in that Maintaining the mapping relationship between each target network card and the IP address assigned to it; the device also includes a judgment unit: When the target network card upper limit of the target computing server is detected, the judgment unit is used to judge whether the target IP address corresponding to the target network card is maintained locally. If so, the allocation unit is also used to allocate the target IP address to the target network card; otherwise, the allocation unit is also used to allocate an IP address to the target network card from the tenant network segment corresponding to the target tenant corresponding to the target computing server.

11. An address allocation device, characterized in that: The address allocation device comprises: A memory for storing program instructions; A processor is used to call the program instructions stored in the memory, and execute the steps of the method according to any one of claims 1 to 5 according to the obtained program instructions.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable the computer to execute the steps of the method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Initializing server configurations in a data center

    CN111865641A

  • Bare metal server network configuration method and system and related equipment

    CN111901177A

  • IP address allocation method and device

    CN112291382A

  • Method and device for docking MLAG networking with container network

    CN114726826A

  • Equipment networking method and device, medium and equipment

    CN116347487A