An address allocation method, apparatus and related device
By establishing a communication link between the controller and the access device's agent program, tenant information is automatically determined and target IP addresses are assigned. This solves the problem of difficult DHCP relay server configuration caused by dynamic changes in tenant network segments under the RoCE VLAN networking of the intelligent computing center, realizes fully automatic IP address allocation and management, and simplifies the operation and maintenance process.
Patent Information
- Application Number
- CN202411621069.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-13
- Publication Date
- 2025-11-04
- Estimated Expiration
- 2044-11-13
AI Technical Summary
In the RoCE VLAN networking of the intelligent computing center, the size of the tenant network segment cannot be predicted in advance, which makes it difficult to configure the DHCP relay server, making it impossible to achieve fully automatic tenant online/offline status, increasing the difficulty of operation and maintenance and the risk of errors.
By establishing a communication link between the controller and the agent program of the access device, the system automatically determines tenant information, assigns target IP addresses, and creates logical virtual interfaces, thereby achieving fully automatic IP address allocation and management.
It achieves fully automated address allocation during tenant on/off processes, ensuring the requirement for fixed IP addresses, simplifying operation and maintenance management, and avoiding the complexity caused by multi-party interaction configuration.
Smart Images

Figure CN119520480B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of intelligent computing centers, in particular to an address allocation method and device and related equipment. BACKGROUND
[0002] In the RoCE (RDMA (Remote Direct Memory Access) over Converged Ethernet) VLAN (Virtual Local Area Network) networking of an intelligent computing center, due to the large scale of server network cards, the IP address allocation and management of servers is often a complex task, and 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, and under M-LAG access, the conventional DHCP mode cannot be used, and DHCP relay technology needs to be used. In the tenant scenario, the size of the tenant network segment cannot be known in advance, and can only be specified when the tenant is created, so it is not possible to pre-configure the DHCP relay server, and thus under the RoCE VLAN networking, the configuration of the DHCP server needs to be performed manually during the process of the tenant being online or offline, which brings difficulties to the operation and maintenance of users and introduces the possibility of errors. SUMMARY
[0003] The present application provides an address allocation method, device and related equipment.
[0004] In a first aspect, the present application provides an address allocation method applied to a controller, wherein a proxy program is deployed on each access device managed by the controller, and a communication link is established between the controller and the proxy program of each access device; the method comprises the following steps:
[0005] determining tenant information of a newly created tenant, wherein the tenant information comprises target computing server information allocated to the tenant and target tenant network segment information allocated to the tenant;
[0006] indicating a target access device accessed by the target computing server to create a logical virtual interface, and setting an IP address of the logical virtual interface as a gateway address of the target tenant network segment;
[0007] allocating a target IP address for the target computing server from the target tenant network segment;
[0008] sending, to the target computing server via a communication link between the agent and the target server, an address allocation instruction carrying the target IP address, 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 for accessing the target access device.
[0009] Optionally, the target access device comprises 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.
[0010] The target computing server comprises at least one computing server, and the target network card of each target computing server comprises 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 accesses the first access device, and the second network card accesses the second access device.
[0011] Optionally, the step of determining the tenant information of the newly created tenant comprises:
[0012] receiving the tenant information of the newly created tenant sent by the cloud, wherein the tenant information comprises a tenant name of the newly created tenant, target computing server information allocated to the tenant, and target tenant network segment information allocated to the tenant;
[0013] based on the tenant information, determining the target computing server allocated to the tenant and the target tenant network segment allocated to the tenant.
[0014] Optionally, if the tenant information does not comprise tenant network segment information allocated to the newly created tenant, the step of determining the tenant network segment information of the newly created tenant comprises:
[0015] determining an available network segment that meets a preset condition from a preset address pool, and allocating the available network segment as the target tenant network segment to the newly created tenant.
[0016] Optionally, a mapping relationship between each target network card and an IP address allocated thereto is maintained; and the method further comprises:
[0017] when detecting that the target network card of the target computing server is full, determining whether the local maintains a target IP address corresponding to the target network card, if yes, allocating the target IP address to the target network card; otherwise, allocating an IP address from a tenant network segment corresponding to the target tenant corresponding to the target computing server to the target network card.
[0018] In a second aspect, the present application provides an address allocation apparatus applied to a controller, wherein the controller is provided with an agent program on each access device in a pipe, and a communication link is established between the controller and the agent program of each access device; the apparatus comprises:
[0019] a determining unit configured to determine tenant information of a newly created tenant, wherein the tenant information comprises target computing server information allocated to the tenant and target tenant network segment information allocated to the tenant;
[0020] an instructing unit configured to instruct a target access device accessed by the target computing server to create a logical virtual interface and set an IP address of the logical virtual interface as a 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 configured to send an address allocation instruction carrying the target IP address to the target computing server through the communication link between the agent program of the target server, so that the target computing server configures a target network card based on the IP address carried in the address allocation instruction, wherein the target network card is a network card accessing the target access device.
[0023] Optionally, the target access device comprises 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.
[0024] The target computing server comprises at least one computing server, and a target network card of each target computing server comprises 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 accesses the first access device, and the second network card accesses 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 a cloud, wherein the tenant information comprises a tenant name of the newly created tenant, target computing server information allocated to the tenant and target tenant network segment information allocated to the tenant;
[0027] determine the target computing server allocated to the tenant and the target tenant network segment allocated to the tenant based on the tenant information.
[0028] Optionally, if the tenant information does not comprise 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 configured to:
[0029] determining an available network segment satisfying a preset condition from a preset address pool, and allocating the available network segment as a target tenant network segment to the newly created tenant.
[0030] Optionally, a mapping relationship between each target network card and an IP address allocated thereto is maintained; the apparatus further comprises a judging unit:
[0031] Upon detecting a target network card upper limit of the target computing server, the judging unit is configured to judge whether a target IP address corresponding to the target network card is maintained locally, and if so, the allocating unit is further configured to allocate the target IP address to the target network card; otherwise, the allocating unit is further configured to allocate an IP address from a tenant network segment corresponding to a target tenant corresponding to the target computing server to the target network card.
[0032] In a third aspect, an address allocation apparatus is provided, which comprises:
[0033] a memory configured to store program instructions;
[0034] a processor configured to invoke the program instructions stored in the memory and execute the steps of the method according to any one of the first aspect.
[0035] In a fourth aspect, a computer readable storage medium is provided, which stores computer executable instructions for causing a computer to execute the steps of the method according to any one of the first aspect.
[0036] In summary, the address allocation method provided by the embodiments of the present application is applied to a controller, each access device under the control of the controller is deployed with an agent program, and a communication link is established between the controller and the agent programs of the access devices; the method comprises: determining tenant information of a newly created tenant, wherein the tenant information comprises target computing server information allocated to the tenant and target tenant network segment information allocated to the tenant; instructing a target access device accessed by the target computing server to create a logical virtual interface and setting an IP address of the logical virtual interface as a gateway address of the target tenant network segment; allocating a target IP address to 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 the communication link between the agent program of the target server and the target computing server, so that the target computing server configures a target network card based on the IP address carried in the address allocation instruction, wherein the target network card is a network card accessing the target access device.
[0037] By using the address allocation method provided in the embodiments of the present application, in the application scenario of M-LAG networking combined with tenants, full-automatic address allocation of the tenant on-line and off-line process is realized, the requirement of IP address fixation is ensured, the gateway of the network and the server address to be allocated are uniformly managed by the controller, the complexity caused by multi-party interaction configuration is avoided, and the operation and maintenance and management are facilitated. BRIEF DESCRIPTION OF DRAWINGS
[0038] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings needed to be used in the description of the embodiments of the present application or the prior art will be briefly introduced. Obviously, the drawings in the following description are only some embodiments described in the present application, and other drawings can also be obtained by those skilled in the art according to these drawings of the embodiments of the present application.
[0039] Figure 1 A detailed flowchart of an address allocation method provided in the embodiments of the present application;
[0040] Figure 2 A networking schematic diagram provided in the embodiments of the present application;
[0041] Figure 3 A structural schematic diagram of an address allocation device provided in the embodiments of the present application;
[0042] Figure 4 A hardware architecture schematic diagram of an address allocation device provided in the embodiments 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, and are not intended to limit the present application. The singular forms "a", "an" and "the" used in the present application and claims are also intended to include the plural forms, unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein means 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 in the embodiments of the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, the first information can also be referred to as the second information without departing from the scope of the present application, and similarly, the second information can also be referred to as the first information. In addition, depending on the context, the word "if" used can be interpreted as "when" or "in response to determining" or "in response to ascertaining".
[0045] Under the RoCE VLAN networking of the intelligent computing center, due to the large scale of the server network card, the IP address allocation and management of the server is often a complex work, and the system usually uses the DHCP technology to allocate addresses for the server network card. In order to support high reliability access, the storage network of the intelligent computing center needs to use M-LAG networking access, and under the M-LAG access, the conventional DHCP mode cannot be used, and the DHCP relay technology needs to be used.
[0046] Specifically, under the M-LAG networking scenario, if the DHCP mode is used, the DHCP Server is respectively deployed on the access equipment included in the M-LAG system, and the computing server double-standard access M-LAG system, which may cause address allocation error / conflict. Therefore, the DHCP relay technology needs to be used, a third-party DHCP relay Server is deployed, and then in the multi-tenant scenario, the size of the network segment required by the tenant cannot be predicted in advance, and can only be determined when the tenant is created, so it is impossible to pre-configure the DHCP relay Server, and under the RoCE VLAN networking, the configuration of the DHCP relay Server needs to be manually performed in the process of the tenant online / offline, which brings difficulties to the operation and maintenance of the user and introduces the possibility of error.
[0047] For example, the current address allocation process is as follows:
[0048] 1. Assign HOST1 and HOST2 two computing nodes to the tenant;
[0049] 2. The network card 1~network card 8 of the computing node is used as a parameter network, each network card has its own independent network segment, the DHCP server is respectively enabled on leaf1~leaf8, and the address pool of the DHCP is dynamically specified using the parameter network segment when the tenant is created;
[0050] 3. The network card 9~network card 10 on the computing node is used as a storage network card, and is used for communication with the storage service side, the network card 9 and the network card 10 form a bond port, and are respectively connected to two storage clients leafs to form an M-LAG system;
[0051] 4. Since the storage network card uses the M-LAG mode to access, if the same DHCP mode as the parameter network is used, the DHCP server is respectively enabled on leaf9 and leaf10, which will cause DHCP allocation confusion, so the DHCP relay mode is needed;
[0052] 5. The DHCP relay method requires the deployment of an additional DHCP server, and then forwards the DHCP requests of the storage network card to the DHCP server. Since this DHCP server is usually deployed independently, it cannot be dynamically operated during the tenant's online process and can only be configured manually. As a result, under RoCE VLAN networking, the server's M-LAG access network card cannot automatically complete the IP address configuration and requires manual intervention, making it impossible to complete the entire process fully automatically.
[0053] In practical applications, tenant networks are dynamically changing and can only be determined when a tenant comes online. Therefore, it is impossible to pre-configure the address pool of the tenant's storage network on the DHCP server. Manually configuring the storage network segment on the DHCP server makes it impossible to achieve fully automatic tenant online / offline status. Since the server's address is managed on a third-party DHCP server, it is not easy for the cloud side and the controller to know the specific usage of IP addresses within the network segment, which is not conducive to the overall network operation and maintenance. Storage networks usually have the requirement of fixed and unchanging IP addresses, and DHCP relay cannot guarantee that the client will be assigned the same IP address every time, which may bring abnormalities to the storage operation. DHCP relay technology requires additional server deployment, which increases the consumption of client hardware and software resources.
[0054] Based on the above points, it can be seen that DHCP relay technology is not suitable for tenant scenarios where network segments are dynamically added or deleted.
[0055] To address the aforementioned issues, this application provides a scheme for allocating addresses to the computing servers corresponding to tenants based on a controller. This scheme enables automated tenant online / offline status while ensuring that the IP addresses of each tenant's computing server are fixed, thus meeting users' requirements for fixed IP addresses.
[0056] For example, see Figure 1 The diagram shown is a detailed flowchart of an address allocation method provided in an embodiment of this application. This method is applied to a controller, where agent programs are deployed on each access device managed by the controller, and a communication link is established between the controller and the agent programs of each access device. The method includes the following steps:
[0057] Step 100: Determine 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.
[0058] In the 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 a 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 accesses the first access device, and the second network card accesses the second access device.
[0059] That is, the controller is in a pipe access device group M-LAG system, for example, see Figure 2 As shown in the figure, a networking schematic diagram provided by the 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 allocated to the target tenant are server 1 and server 2, then the network card 1 of server 1 accesses Leaf-1 (such as the downlink interface 1 of Leaf-1), the network card 2 of server 1 accesses Leaf-2 (such as the downlink interface 1 of Lefa-2), the network card 1 of server 2 accesses Leaf-1 (such as the downlink interface 2 of Leaf-1), and the network card 2 of server 2 accesses Leaf-2 (such as the downlink interface 2 of Leaf-2). The network card 1 and the network card 2 of server 1 constitute a virtual logical port 1, such as a bond port, and the virtual logical port double rules access the M-LAGA system composed of access device 1 and access device 2; similarly, the network card 1 and the network card 2 of server 2 also constitute a virtual logical port 2, and the virtual logical port double rules access the M-LAGA system composed of access device 1 and access device 2.
[0060] In the embodiment of the present application, the server can be a computing server in an intelligent computing network, the access device can be a storage client Leaf in the intelligent computing network, and the storage network of the intelligent center requires the access device to constitute an M-LAG system. When allocating IP addresses for the storage network card of the computing server, in order to avoid IP address allocation errors / conflicts, the conventional DHCP mode cannot be used. Only the DHCP relay mode can be used, and in the tenant scenario of the intelligent center, in order to realize automatic planning of the tenant network and automatic online / offline of the tenant, the DHCP relay mode no longer meets the scene requirements.
[0061] In the embodiment of the present application, when determining the tenant information of the newly created tenant, a preferred implementation manner is:
[0062] receive the tenant information of the newly created tenant sent by the cloud, wherein the tenant information comprises the tenant name of the newly created tenant, the target computing server information allocated to the tenant and the target tenant network segment information allocated to the tenant; determine the target computing server allocated to the tenant and the target tenant network segment allocated to the tenant based on the tenant information.
[0063] That is, when creating a tenant, the administrator determines the number of computing servers required by the tenant, and allocates the target computing server satisfying the requirement of the tenant to the newly created tenant. Further, the administrator can also determine the size of the tenant network segment required by the tenant according to the number information of the target computing server, so as to allocate the target network segment satisfying the requirement of the tenant to the tenant in the cloud. Finally, the cloud sends the information of the newly created tenant to the controller.
[0064] In the embodiment of the application, if the tenant information does not comprise the tenant network segment information allocated to the newly created tenant, when determining the tenant network segment information of the newly created tenant, a preferable implementation manner is:
[0065] determining an available network segment satisfying a preset condition from a preset address pool, and allocating the available network segment as the target tenant network segment to the newly created tenant.
[0066] That is, if the administrator does not allocate the target tenant network segment to the newly created tenant in the cloud, the controller can determine an available network segment satisfying the requirement of the tenant from the preset address pool in the local based on the number of the target computing server 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 accessed by the target computing server to create a logical virtual interface, and set the IP address of the logical virtual interface as the gateway address of the target tenant network segment.
[0068] After the controller determines the target computing server allocated to the newly created tenant, determines the access device accessed by the to-be-configured network card of the target computing server, and determines the tenant network segment of the tenant, the controller allocates the subnet gateway according to the tenant storage network, instructs the access device accessed by the to-be-configured network card of the target computing server to create a logical virtual interface (such as a VLAN interface), and configures the IP address of the VLAN interface as the gateway IP address of the tenant network segment of the tenant after determining that the access device creates the corresponding VLAN interface.
[0069] Step 120: allocate a target IP address to the target computing server from the target tenant network segment.
[0070] Then, the target network card of the target computing server needs to be allocated with an IP address. In actual application, two network cards of the target computing server are connected to the M-LAG system, that is, two network cards of one target computing server form a logical virtual interface, and the logical virtual interface is connected to the M-LAG system in a dual mode, so that the logical virtual interface is allocated with an IP address.
[0071] In step 130, an address allocation instruction carrying the target IP address is sent to the target computing server through a communication link between the agent program and 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 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 allocated to the target computing server, and communicates with the agent program deployed on the target computing server to send an address allocation instruction carrying the target IP address, so that the target computing server configures the target IP address carried 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 the network card 2 of the server 1 form a logical virtual interface 1, and the network card 1 and the network card 2 of the server 2 form a logical virtual interface 2, the controller allocates an available IP1 from the tenant network segment to the server 1, and allocates an available IP2 from the tenant network segment to the server 2, then the controller sends the available IP1 carried in the address allocation instruction to the agent program of the server 1 through a communication link 1 between the agent program and the server 1, and the server 1 configures the IP address of the logical virtual interface 1 as IP1; similarly, the controller sends the available IP2 carried in the address allocation instruction to the agent program of the server 2 through a communication link 2 between the agent program and the server 2, and the server 2 configures the IP address of the logical virtual interface 2 as IP2.
[0074] Further, in the embodiment of the present application, after allocating the IP address to the target network card of the target computing server corresponding to the newly created tenant, the mapping relationship between each target network card and the IP address allocated thereto is maintained; when the upper limit of the target network card of the target computing server is detected, it is judged whether the target IP address corresponding to the target network card is maintained locally, if yes, the target IP address is allocated to the target network card; otherwise, an IP address is allocated to the target network card from the tenant network segment corresponding to the target tenant corresponding to the target computing server.
[0075] That is, when the tenant is offline and then online, or the target server is recovered / restarted, and the target network card is online, first, it is judged whether the target IP address corresponding to the target network card is maintained locally. If it exists, the maintained IP address is directly allocated to the target network card. If it does not exist, the IP address is allocated to the target network card again. It is ensured that the IP of the target network card of the target computing server allocated to the tenant is fixed during the process from creation to deletion of the tenant, and the IP change caused by network abnormity is avoided, so as to affect the business operation.
[0076] Based on the same inventive concept as the above-mentioned embodiments, an exemplary structure of an address allocation device provided by the embodiments of the present application is shown in FIG. 1, which is applied to a controller. The controller is deployed with a proxy program on each access device under the control of the controller. A communication link is established between the controller and the proxy program of each access device. The device includes: Figure 3
[0077] The determining unit 30 is 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.
[0078] The indicating unit 31 is configured to instruct a target access device accessed by the target computing server to create a logical virtual interface and set an IP address of the logical virtual interface as a gateway address of the target tenant network segment.
[0079] The allocating unit 32 is configured to allocate a target IP address to the target computing server from the target tenant network segment.
[0080] The sending unit 33 is configured to send an address allocation instruction carrying the target IP address to the target computing server through a communication link between the proxy program of the target server and the target computing 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 accessing 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 constitute a cross-device link aggregation system.
[0082] The target computing server includes at least one computing server, and a 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 accesses the first access device, and the second network card accesses the second access device.
[0083] Optionally, when the tenant information of the newly created tenant is determined, the determining unit 30 is specifically configured to:
[0084] receiving tenant information of the newly created tenant sent by the cloud, wherein the tenant information comprises a tenant name of the newly created tenant, target computing server information allocated to the tenant, and target tenant network segment information allocated to the tenant;
[0085] determining, based on the tenant information, the target computing server allocated to the tenant and the target tenant network segment allocated to the tenant.
[0086] Optionally, if the tenant information does not comprise 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 configured to:
[0087] determining an available network segment that meets a preset condition from a preset address pool, and allocating the available network segment as the target tenant network segment to the newly created tenant.
[0088] Optionally, a mapping relationship between each target network card and an IP address allocated thereto is maintained; and the apparatus further comprises a judging unit:
[0089] When detecting an upper limit of a target network card of a target computing server, the judging unit is configured to judge whether a target IP address corresponding to the target network card is maintained locally, if yes, the allocating unit 32 is further configured to allocate the target IP address to the target network card; otherwise, the allocating unit 32 is further configured to allocate an IP address from a tenant network segment corresponding to the target tenant corresponding to the target computing server to the target network card.
[0090] The above units can be one or more integrated circuits configured to implement the above method, for example, one or more application specific integrated circuits (ASICs), or one or more digital signal processors (DSPs), or one or more field programmable gate arrays (FPGAs), etc. For another example, when a certain unit above is implemented in the form of a processing element scheduling program code, the processing element can be a general-purpose processor, such as a central processing unit (CPU) or other processor that can invoke program code. For another example, the units can be integrated together to be implemented in the form of a system on a chip (SOC).
[0091] Further, the address allocation apparatus provided by the embodiment of the present application is from a hardware layer, and a hardware architecture diagram of the address allocation apparatus can be referred to Figure 4As shown, the address allocation apparatus can comprise a memory 40 and a processor 41,
[0092] The memory 40 is configured to store program instructions; the processor 41 invokes the program instructions stored in the memory 40 and performs the above-mentioned method embodiments according to the obtained program instructions. The specific implementation and technical effects are similar, and will not be described here.
[0093] Optionally, the present application also provides a controller comprising at least one processing element (or chip) for executing the above-mentioned method embodiments.
[0094] Optionally, the present application also provides a program product, for example, a computer readable storage medium, which stores computer executable instructions for causing the computer to execute the above-mentioned method embodiments.
[0095] Here, the machine readable storage medium can be any electronic, magnetic, optical, or other physical storage apparatus, and can contain or store information such as executable instructions, data, etc. For example, the machine readable storage medium can be RAM (Random Access Memory), volatile memory, non-volatile memory, flash memory, storage drives (such as hard drives), solid state drives, any type of storage disk (such as optical disks, DVDs, etc.), or similar storage media, or a combination thereof.
[0096] The system, apparatus, module or unit illustrated in the above embodiments can be specifically implemented by a computer chip or entity, or by a product with certain functions. A typical implementation device is a computer, and the specific form of the computer can be 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 device, 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 apparatus is described as various units respectively according to functions in the description. Of course, the functions of each unit can be implemented in the same or multiple software and / or hardware in the implementation of the present application.
[0098] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the embodiments of the present application can take the form of a computer program product implemented on one or more computer usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer usable program code.
[0099] The computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks. Figure 1 one or more flowcharts and / or blocks Figure 1 means for functionally implementing the steps in one or more flowcharts and / or blocks
[0100] Also, these computer program instructions can be stored in a computer readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture including instructions which implement the flowchart block or blocks. Figure 1 one or more flowcharts and / or blocks Figure 1 means for functionally implementing the steps in one or more flowcharts and / or blocks
[0101] The computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks. Figure 1 one or more flowcharts and / or blocks Figure 1 means for functionally implementing the steps in one or more flowcharts and / or blocks
[0102] The above description is only preferred embodiments of the present application, and is not used to limit the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the scope of protection of the present application.
Claims
1. An address allocation method characterized by, The method is applied to a controller, the controller is provided with an agent on each access device, and a communication link is established between the controller and the agent of each access device; the method comprises the following steps: Receiving the tenant information of the newly created tenant sent by the cloud, wherein the tenant information comprises target computing server information allocated to the tenant and target tenant network segment information allocated to the tenant; Instructing a target access device accessed by the target computing server to create a logical virtual interface and set an IP address of the logical virtual interface as a gateway address of the target tenant network segment; the target access device comprises 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 comprises at least one computing server, and a target network card of each target computing server comprises 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 accesses the first access device, and the second network card accesses the second access device; 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 between the agent of the target server and the agent of the target computing server, so that the target computing server configures a target network card based on the IP address carried in the address allocation instruction, wherein the target network card is a network card accessing the target access device; Maintaining a mapping relationship between each target network card and the IP address allocated thereto, and when detecting that a target network card of a target computing server is online, judging whether the local maintains a target IP address corresponding to the target network card, and if so, allocating the target IP address to the target network card.
2. The method of claim 1, wherein, The tenant information comprises a tenant name of the newly created tenant, target computing server information allocated to the tenant, and target tenant network segment information allocated to the tenant; The method further comprises: Based on the tenant information, determining the target computing server allocated to the tenant and the target tenant network segment allocated to the tenant.
3. The method of claim 2, wherein, If the tenant information does not comprise tenant network segment information allocated to the newly created tenant, the step of determining the tenant network segment information of the newly created tenant comprises: Determining an available network segment satisfying a preset condition from a preset address pool, and allocating the available network segment as the target tenant network segment to the newly created tenant.
4. The method of claim 1, wherein, The method further comprises: If it is determined that the local does not maintain a target IP address corresponding to the target network card, allocating an IP address to the target network card from a tenant network segment corresponding to the target tenant corresponding to the target computing server.
5. An address allocation apparatus characterized by comprising: The method is applied to a controller, the controller is provided with an agent on each access device, and a communication link is established between the controller and the agent of each access device; the method comprises the following steps: A determining unit is configured to receive the tenant information of the newly created tenant sent by the cloud, wherein the tenant information comprises target computing server information allocated to the tenant and target tenant network segment information allocated to the tenant; The indication unit is configured to instruct a target access device accessed by the target computing server to create a logical virtual interface and set an IP address of the logical virtual interface as a gateway address of the target tenant network segment; the target access device comprises 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 comprises at least one computing server, and a target network card of each target computing server comprises 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 accesses the first access device, and the second network card accesses the second access device; The allocation unit is configured to allocate a target IP address for the target computing server from the target tenant network segment; The sending unit is configured to send an address allocation instruction carrying the target IP address to the target computing server through a communication link between the target server and an agent program, so that the target computing server configures a target network card based on the IP address carried in the address allocation instruction, wherein the target network card is a network card accessing the target access device; The mapping relationship between each target network card and the IP address allocated for the target network card is maintained; the device further comprises a judgment unit: When detecting that the target network card of the target computing server is up to the upper limit, the judgment unit is configured to judge whether the local maintains a target IP address corresponding to the target network card, and if so, the allocation unit is further configured to allocate the target IP address to the target network card.
6. The device of claim 5, wherein The tenant information comprises a tenant name of a newly created tenant, target computing server information allocated to the tenant, and target tenant network segment information allocated to the tenant; The determination unit is further configured to determine the target computing server allocated to the tenant and the target tenant network segment allocated to the tenant based on the tenant information.
7. The apparatus of claim 6, wherein, If the tenant information does not comprise tenant network segment information allocated to the newly created tenant, when determining the tenant network segment information of the newly created tenant, the determination unit is specifically configured to: determine an available network segment satisfying a preset condition from a preset address pool, and allocate the available network segment as the target tenant network segment to the newly created tenant.
8. The apparatus of claim 6 or 7, wherein, The mapping relationship between each target network card and the IP address allocated for the target network card is maintained; the device further comprises a judgment unit: If the judgment unit determines that the local does not maintain a target IP address corresponding to the target network card, the allocation unit is further configured to allocate an IP address to the target network card from a tenant network segment corresponding to the target tenant corresponding to the target computing server.
9. An address allocation apparatus characterized by comprising: The address allocation device comprises: a memory configured to store program instructions; a processor configured to invoke the program instructions stored in the memory and execute the steps of the method of any one of claims 1-4 according to the obtained program instructions.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions for causing the computer to execute the steps of the method of any one of claims 1-4.
Citation Information
Patent Citations
Initializing server configurations in a data center
CN111865641A
Bare metal server network configuration method and system and related equipment
CN111901177A