Internet protocol (IP) address assignment method and address assignment system
By realizing virtualization and dynamic management of IP addresses in the cloud platform, the problem of remote desktop IP virtualization in the public cloud is solved, the security and scalability of network services are improved, and the efficient use of IP resources is ensured.
Patent Information
- Application Number
- PCT/CN2024/071278
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-29
- Filing Date
- 2024-01-09
- Publication Date
- 2024-10-03
AI Technical Summary
Existing DHCP technology cannot realize remote desktop IP virtualization in public cloud mode, resulting in the failure to guarantee the security, privacy, and scalability of public cloud services.
By providing an IP address allocation method and address allocation system in the cloud platform, using the cloud platform and remote desktop session host RDSH, virtualization and dynamic management of IP addresses are achieved, allowing different clients to use different IP addresses in the same RDSH, ensuring Security and scalability of network services.
It realizes remote desktop IP virtualization in public cloud mode, improves the security, privacy and scalability of network services, manages and releases IP resources in a timely manner, and improves the efficiency of IP address allocation.
Smart Images

Figure CN2024071278_03102024_PF_FP_ABST
Abstract
Description
Network protocol IP address allocation method and address allocation system
[0001] This application claims priority to Chinese patent application No. 202310323110.0, filed on March 29, 2023, entitled “Network Protocol IP Address Allocation Method and Address Allocation System,” the entire contents of which are incorporated herein by reference. Technical Field
[0002] The present application relates to the field of network technology, and in particular to an IP address allocation method and an address allocation system. Background Art
[0003] The Remote Desktop Protocol (RDP) is a protocol that allows users to use terminal services provided by remote devices through local devices. Users access the Remote Desktop Session Host (RDSH) running on the remote device through RDP. RDSH creates a remote desktop session (RDS) for the user, and the user can run applications, save files, and access other networks in the RDSH through RDS. In order to distinguish different remote desktop sessions (RDS), the dynamic host configuration protocol (DHCP) is used in related technologies to assign different Internet Protocol (IP) addresses to different RDSs. When a user accesses the RDSH, the RDSH creates the corresponding RDS and applies for an IP address from the DHCP server (DHCP Daemon, DHCPD). This technology is also called the remote desktop IP virtualization function.
[0004] However, the above solution can only be applied to networks that support DHCP, such as local area networks or partial networks within private clouds, and cannot be applied to network platforms in the public cloud model. The reason is that in order to ensure the security of network services, the public cloud platform will use the virtual private cloud (VPC) deployed in the public cloud to uniformly manage resources such as IP addresses. This results in the server under the current DHCP architecture not having the authority to apply for and maintain IP addresses, and thus remote desktop IP virtualization cannot be achieved. Since remote desktop IP virtualization cannot be achieved in the public cloud, the security, privacy and scalability of the services cannot be guaranteed when users use various public cloud services. Therefore, there is an urgent need for a method that can achieve remote desktop IP virtualization in the public cloud model.
[0005] Summary of the Invention
[0006] This application provides an IP address allocation method, address allocation system, computing device cluster, and storage medium that can implement remote desktop IP virtualization in a public cloud model, ensuring the security, privacy, and scalability of public cloud services. The technical solution is as follows:
[0007] In a first aspect, an IP address allocation method is provided. The method is applied to an address allocation system, the address allocation system including a cloud platform and a remote desktop session host (RDSH). The cloud platform is used to provide public cloud services. The method includes:
[0008] The cloud platform receives a first creation request sent by the first client and forwards the first creation request to the target RDSH, where the first creation request is used to request to establish a first session with the target RDSH;
[0009] In response to the first creation request, the target RDSH allocates a corresponding first IP address for the first session, where the first IP address is obtained by virtualizing the IP address of the target RDSH;
[0010] The target RDSH returns the first IP address to the cloud platform;
[0011] The cloud platform returns a first access response to the first client, where the first access response indicates that the first client has established a first session with the target RDSH based on the first IP address.
[0012] The IP address allocation method provided in this application can be applied to public cloud services to implement remote desktop IP virtualization in public cloud services, so that when the client accesses the RDSH in the cloud platform, the RDSH can allocate IP addresses to the client based on multiple IP addresses obtained through virtualization. This allows different clients to obtain network services through the same RDSH based on different IP addresses, thereby ensuring the security, privacy and scalability of network services.
[0013] In one possible implementation, the method further includes:
[0014] The cloud platform receives a second creation request sent by the second client and forwards the second creation request to the target RDSH, where the second creation request is used to request to establish a second session with the target RDSH;
[0015] In response to the second creation request, the target RDSH allocates a corresponding second IP address for the second session, where the second IP address is obtained by virtualizing the IP address of the target RDSH;
[0016] The target RDSH returns the second IP address to the cloud platform;
[0017] The cloud platform returns a second access response to the second client, where the second access response indicates that the second client has established a second session with the target RDSH based on the second IP address.
[0018] The IP address allocation method provided in this application is for different clients using the same RDSH. The RDSH can allocate different virtualized IP addresses for different sessions corresponding to different clients, so that different clients can use different IP addresses to obtain network services. Therefore, when different clients obtain network services through the same RDSH, different IP addresses can be presented, thereby ensuring the security, privacy and scalability of different clients obtaining network services in the same RDSH.
[0019] In one possible implementation, the method further includes:
[0020] The cloud platform provides a target function switch in the management interface. The target function switch is used to turn on and off the IP virtualization function for the target RDSH. The IP virtualization function includes: enabling the RDSH to use multiple IP addresses obtained by virtualizing the IP address of the RDSH.
[0021] Through the above technical solution, the user is provided with a switch for the IP virtualization function on the front-end interface, so that the user can configure the IP virtualization function in the process of creating RDSH according to business needs.
[0022] In one possible implementation, the method further includes:
[0023] In response to obtaining first specification information for the target RDSH in a management interface of the cloud platform, the cloud platform obtains, during a process of creating the target RDSH, at least one IP address obtained by virtualizing the IP address of the target RDSH according to the first specification information, and sends the at least one virtualized IP address to the target RDSH, where the first specification information indicates at least one of the following: a number of IP addresses used by the target RDSH and a number of sessions supported by the target RDSH;
[0024] In response to the IP update instruction, the cloud platform obtains at least one IP address obtained by virtualization of the IP address of the target RDSH after the update according to the second specification information carried by the IP update instruction, and sends the updated IP address to the target RDSH. The second specification information indicates at least one of the following: the number of IP addresses used by the target RDSH after the update, and the number of sessions supported by the target RDSH after the update.
[0025] Based on this, the cloud platform can release redundant IP addresses in a timely manner and replenish available IP addresses for RDSH in a timely manner, thereby improving the real-time performance of IP resource management.
[0026] In one possible implementation, the cloud platform obtains the updated IP address of the target RDSH according to the second specification information carried in the IP update instruction, including:
[0027] comparing a first quantity currently available for the target RDSH with a second quantity indicated by the second specification information;
[0028] If the second number is less than the first number, determining the IP addresses released this time, and obtaining at least one IP address obtained through virtualization after the update based on the IP addresses released this time;
[0029] When the second number is greater than the first number, the newly applied virtualized IP address is determined, and based on the newly applied virtualized IP address, at least one updated virtualized IP address is obtained.
[0030] Through the above solution, in the management interface provided by the cloud platform, users can configure the number of sessions when creating RDSH, effectively integrating IP virtualization functions into actual business scenarios.
[0031] In one possible implementation, the method further includes at least one of the following:
[0032] In response to obtaining the second specification information for the target RDSH in the management interface of the cloud platform, the cloud platform triggers an IP update instruction;
[0033] In response to detecting that the usage of the target RDSH in the cloud platform meets the update conditions, the cloud platform triggers an IP update instruction.
[0034] The above technical solution, with a single RDSH as the granularity, dynamically updates the IP address source for RDSH and provides active and passive update initiation methods. It can cover scenarios such as product changes on the business side and availability maintenance on the service side, greatly improving the flexibility of RDSH-based deployment and the availability of network services.
[0035] In one possible implementation, the method further includes:
[0036] In response to a logout request from the first client for the first session, the target RDSH releases the first IP address allocated to the first session.
[0037] In one possible implementation, the method further includes:
[0038] In response to a network service request initiated by the first client through the first session, the target RDSH processes the network service request using the first IP address.
[0039] Based on this, this application can achieve session-level IP address isolation, effectively distinguish network requests from different users, and ensure the privacy of network services used by different users.
[0040] The cloud platform can maintain the IP address source assigned to each RDS, enabling each RDSH to allocate, recycle, and reuse IP addresses. When programs in different sessions within the same RDSH monitor the network card port of the RDSH host, by assigning unique virtualized IP addresses to different sessions, the port monitoring conflict caused by the network card having only one available IP address can be effectively avoided. In summary, the technical solution of this application can effectively improve the efficiency of IP address allocation and greatly improve the scalability of network services provided based on RDSH.
[0041] In a second aspect, an address allocation system is provided, the address allocation system including a cloud platform and a remote desktop session host (RDSH), the cloud platform being configured to provide public cloud services, the cloud platform being configured to receive a first creation request from a first client and forward the first creation request to a target RDSH, the first creation request being configured to request establishment of a first session with the target RDSH;
[0042] The target RDSH is configured to, in response to the first creation request, allocate a corresponding first IP address to the first session, where the first IP address is obtained by virtualizing the IP address of the target RDSH;
[0043] The target RDSH is used to return the first IP address to the cloud platform;
[0044] The cloud platform is configured to return a first access response to the first client, where the first access response indicates that the first client has established a first session with the target RDSH based on the first IP address.
[0045] In one possible implementation, the cloud platform is further configured to receive a second creation request sent by the second client, and forward the second creation request to the target RDSH, where the second creation request is used to request establishment of a second session with the target RDSH;
[0046] The target RDSH is further configured to, in response to the second creation request, allocate a corresponding second IP address to the second session, where the second IP address is obtained by virtualizing the IP address of the target RDSH;
[0047] The target RDSH is further used to return the second IP address to the cloud platform;
[0048] The cloud platform is further configured to return a second access response to the second client, where the second access response indicates that the second client has established a second session with the target RDSH based on the second IP address.
[0049] In one possible implementation, the cloud platform is also used to provide a target function switch in the management interface, where the target function switch is used to turn on and off the IP virtualization function for the target RDSH. The IP virtualization function includes enabling the RDSH to use multiple IP addresses obtained by virtualizing the IP address of the RDSH.
[0050] In one possible embodiment, the cloud platform is further configured to, in response to obtaining first specification information for the target RDSH in a management interface of the cloud platform, obtain an IP address of the target RDSH according to the first specification information during creation of the target RDSH, and send the IP address to the target RDSH, wherein the first specification information indicates at least one of the following: the number of IP addresses of the target RDSH and the number of sessions supported by the target RDSH;
[0051] The cloud platform is also used to, in response to the IP update instruction, obtain the updated IP address of the target RDSH according to the second specification information carried by the IP update instruction, and send the updated IP address to the target RDSH, where the second specification information indicates at least one of the following: the number of IP addresses of the target RDSH after the update, and the number of sessions supported by the target RDSH after the update.
[0052] In one possible implementation, the cloud platform is used to:
[0053] comparing a first quantity currently available for the target RDSH with a second quantity indicated by the second specification information;
[0054] If the second number is less than the first number, determining the IP address released this time, and obtaining an updated IP address based on the IP address released this time;
[0055] When the second number is greater than the first number, the newly applied virtualized IP address is determined, and an updated IP address is obtained based on the newly applied virtualized IP address.
[0056] In one possible implementation, the cloud platform is configured to perform at least one of the following:
[0057] In response to obtaining the second specification information for the target RDSH in the management interface of the cloud platform, the cloud platform triggers an IP update instruction;
[0058] In response to detecting that the usage of the target RDSH in the cloud platform meets the update conditions, the cloud platform triggers an IP update instruction.
[0059] In one possible implementation, the target RDSH is further configured to:
[0060] In response to a logout request from the first client for the first session, releasing the first IP address allocated to the first session.
[0061] In one possible implementation, the target RDSH is further configured to:
[0062] In response to a network service request initiated by the first client through the first session, the network service request is processed using the first IP address.
[0063] In a third aspect, a computing device cluster is provided, comprising at least one computing device, each computing device comprising a processor and a memory; the processor of the at least one computing device is used to execute instructions stored in the memory of the at least one computing device, so that the computing device cluster performs the IP address allocation method provided in the first aspect.
[0064] In a fourth aspect, a computer-readable storage medium is provided, comprising computer program instructions. When the computer program instructions are executed by a computing device cluster, the computing device cluster performs the IP address allocation method provided in the first aspect.
[0065] In a fifth aspect, a computer program product containing instructions is provided. When the instructions contained in the computer program product are executed by a computing device cluster, the computing device cluster executes the IP address allocation method provided in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0066] FIG1 is a schematic diagram of allocating an IP address for a remote desktop session based on the DHCP protocol in a related technology provided by an embodiment of the present application;
[0067] FIG2 is a schematic diagram of an implementation environment provided by an embodiment of the present application;
[0068] FIG3 is a schematic diagram of a management interface provided in an embodiment of the present application;
[0069] FIG4 is a schematic diagram of a cloud platform initialization setting provided in an embodiment of the present application;
[0070] FIG5 is a schematic diagram of a principle for creating an RDSH according to an embodiment of the present application;
[0071] FIG6 is a schematic diagram of a process for issuing an IP address when creating an RDSH according to an embodiment of the present application;
[0072] FIG7 is a schematic diagram of an IP address allocation method provided in an embodiment of the present application;
[0073] FIG8 is a schematic diagram of a client using a network service according to an embodiment of the present application;
[0074] FIG9 is a flow diagram of a session logout process provided in an embodiment of the present application;
[0075] FIG10 is a schematic diagram of an IP address update method provided in an embodiment of the present application;
[0076] FIG11 is a schematic diagram of another management interface provided in an embodiment of the present application;
[0077] FIG12 is a schematic diagram of a process of updating an IP address provided in an embodiment of the present application;
[0078] FIG13 is a schematic diagram of an address allocation system provided in an embodiment of the present application;
[0079] FIG14 is a schematic diagram of the hardware structure of a computing device provided in an embodiment of the present application;
[0080] FIG15 is a schematic diagram of a computing device cluster provided in an embodiment of the present application. DETAILED DESCRIPTION
[0081] In order to make the objectives, technical solutions and advantages of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.
[0082] Before introducing the technical solutions provided by the embodiments of the present application, the terms involved in the present application are explained below.
[0083] Internet Protocol (IP) address: An identifier assigned to a device when it connects to a network. IP addresses enable communication between devices. The IP address can be used to identify the sender and receiver.
[0084] Cloud platform is short for cloud computing platform, which can provide cloud services such as computing, networking and storage based on massive hardware and software resources. Through the network "cloud", huge amounts of data are processed and analyzed remotely and then returned to the user. It has the characteristics of large scale, distribution, virtualization, high availability, scalability, on-demand service and security. The cloud platform can quickly release and publish configurable computing resources with a low management cost or low interaction complexity between users and service providers. OpenStack is a cloud platform with an Infrastructure as a Service (IAAS) architecture, which provides a cloud operating system for managing a large number of resource pools within the entire data center. Administrators can manage the entire cloud system through the cloud platform console and provide users with available cloud resources through a web interface.
[0085] Public Cloud: A cloud infrastructure used by the general public or large industries, typically a cloud platform accessed through a public network. Organizations that own a public cloud can lease and provide users with on-demand cloud service deployment and usage capabilities. Users can access the public cloud through public networks (such as the Internet) to utilize its various network services, including but not limited to computing, storage, and networking.
[0086] Virtual private cloud (VPC): An isolated, private virtual network environment on a cloud platform. Users can freely configure sub-services within the VPC, such as IP address ranges, subnets, and security groups.
[0087] Elastic Cloud Server (ECS): A basic computing component consisting of a CPU, memory, operating system, and cloud hard disks. It is readily available and elastically scalable.
[0088] Cloud Service: A service that is available on demand and easily scalable over the Internet. This service can be related to network technology, software, and the Internet, or other services.
[0089] Network interface controller (NIC): A piece of computer hardware used to allow computers to communicate on a computer network. Also called a network interface controller.
[0090] A proxy is a specialized network service that allows one terminal to establish an indirect connection with another. Some network devices, such as gateways and routers, have proxy functionality. Proxy services are generally considered beneficial for protecting the privacy and security of network terminals and, to a certain extent, preventing network attacks.
[0091] Remote Desktop Protocol (RDP): A protocol that allows users to use terminal services provided by a remote device through a local device.
[0092] Remote Desktop Session Host (RDSH): A remote desktop session host can store applications and desktops that are shared with users through a remote desktop session (RDS).
[0093] Remote Desktop Session (RDS): When a user logs in to a Remote Desktop Session Host (RDSH), they can start a remote desktop session.
[0094] Remote Desktop IP Virtualization: After IP virtualization is enabled and configured on a Remote Desktop Session Host (RDSH), unique IP addresses are assigned and used in remote desktop sessions.
[0095] Dynamic Host Configuration Protocol (DHCP): A communications protocol that enables network administrators to centrally manage and automatically assign IP network addresses. In an IP network, every device connected to the Internet requires a unique IP address. DHCP enables network administrators to monitor and assign IP addresses from a central point. When a computer is moved to a different location on the network, it automatically receives a new IP address.
[0096] Dynamic Host Configuration Protocol Server (DHCP Daemon): A management software for network administrators that implements the Dynamic Host Configuration Protocol (DHCP) communication protocol.
[0097] DHCP Client Daemon: A client software that implements the Dynamic Host Configuration Protocol (DHCP) communication protocol for hosts.
[0098] The application scenarios of the technical solution of this application are described below.
[0099] The present application provides a method for providing an IP address for a remote desktop session, which can be applied in a cloud platform to assign different IP addresses to different remote desktop sessions running in a remote desktop session host on the cloud platform.
[0100] In the related art, DHCP is used to dynamically assign IP addresses to different sessions in the remote desktop session host. Referring to Figure 1, Figure 1 is a schematic diagram of assigning IP addresses to remote desktop sessions based on the DHCP protocol in a related art. When the client accesses a certain RDSH, taking RDSH2 as an example, the client establishes a connection with RDSH2 (indicated by RDP1), RDSH2 creates RDS1, and sends a DHCP request to the DHCP network (usually a local area network) where it is located. When DHCPD in the local area network receives the DHCP request, it assigns IP address 1 to RDS1, and RDS1 uses IP address 1 to enjoy network services. The process of assigning IP address 2 to RDS2 corresponding to another client is the same. The above process is based on the fact that DHCPD can centrally manage IP addresses within the network.
[0101] However, in the public cloud model, DHCP cannot be used to implement IP virtualization for remote desktop sessions. The reasons are as follows:
[0102] First, DHCP cannot obtain management rights for IP addresses within the cloud platform. To ensure the security of cloud services, the cloud platform's management plane, such as a virtual private cloud (VPC) deployed within a public cloud, centrally manages resources such as IP addresses. As a result, the DHCP server in the current DHCP architecture does not have the authority to apply for and maintain IP addresses.
[0103] On the other hand, DHCP is only suitable for IP management within local networks and is difficult to apply to cloud platforms. In the public cloud model, the underlying massive resources are abstracted and provided to users as cloud services. The hosts / virtual machines / containers actually used to implement cloud services may be distributed across networks, for example, in different regions, which may include a single data center network or multiple geographically close data center networks. The current DHCP architecture is only suitable for managing IP resources within a local area network and cannot guarantee the real-time dynamic allocation and release of IP addresses in a large public cloud. For example, a DHCP request sent by a client is processed after being received by the nearest DHCPD (within the network), and it is difficult to transmit it across the network to the next network, making dynamic IP allocation in the public cloud difficult.
[0104] In summary, the current DHCP technology cannot be used to implement remote desktop IP virtualization in public clouds.
[0105] In view of this, the present application provides an IP address allocation method that can be applied to a cloud platform that provides public cloud services, and implements remote desktop IP virtualization for the cloud platform. When different clients access the RDSH in the cloud platform, the RDSH allocates different virtualized IP addresses to different sessions corresponding to different clients, so that different clients can use different IP addresses to obtain network services. Therefore, when the client accesses the session in the RDSH to use various network services provided by the cloud platform, the security, privacy and scalability of the network services can be fully guaranteed.
[0106] The technical solution of this application is further introduced below.
[0107] An embodiment of the present application provides a schematic diagram of an implementation environment. See FIG2 . FIG2 is a schematic diagram of an implementation environment provided by an embodiment of the present application. The implementation environment includes a client 210 and an address allocation system 220 .
[0108] In this application, the technology of providing remote sessions in a cloud host to a client is also referred to as a cloud desktop. RDSH running in a public cloud can also be referred to as a remote desktop session host instance of a cloud desktop. Referring to FIG2 , the address allocation system 220 includes a cloud platform 221, which is used to provide IP virtualization functionality in the public cloud.
[0109] VPC 222, running within address allocation system 220, is used to manage resources such as IP addresses within the cloud platform. A VPC is a logically isolated network space defined within a public cloud. Public cloud resources, such as cloud hosts and load balancers, can be hosted within a VPC. Administrators can use VPC to customize network segmentation, IP addresses, and routing policies.
[0110] In some embodiments, the address allocation system 220 includes an elastic cloud server 223, which is used to run at least one RDSH instance, see RDSH1 to RDSH-n in FIG2 , where n is the number of RDSHs, and n is greater than or equal to 1. The elastic cloud server 223 is a basic computing component of the cloud platform, and the address allocation system 220 can provide the elastic cloud server 220 to users on demand.
[0111] The client 210 is used to access the address allocation system 220, access the RDSH in the cloud platform, and use various remote network services based on the RDS in the RDSH, such as running applications, downloading files, or accessing the network (either accessing the network within the cloud or accessing the network outside the cloud).
[0112] The above-mentioned administrator refers to a user who manages the RDSH running in the cloud platform. In some embodiments, the administrator creates a target RDSH based on the public cloud through the management interface provided by the cloud platform, and configures the IP virtualization function for the created target RDSH. The cloud platform 221 applies for one or more IP addresses from the VPC 222 according to the configuration of the administrator, and sends them to the target RDSH. When the target RDSH receives the first creation request from the first client, it creates a first session corresponding to the first client and allocates a first IP address to the first session from the multiple IP addresses maintained. Among them, the multiple IP addresses applied for by the cloud platform from the VPC are obtained based on the IP address virtualization of the RDSH. When the client 210 accesses the session in the RDSH, it can use the virtualized IP address allocated by the RDSH for the session for network communication.
[0113] In some embodiments, referring to FIG2 , the RDSH in the address allocation system 220 is installed with a standalone DHCPD, which is administrator-oriented management software that supports the Dynamic Host Configuration Protocol (DHCP). Based on this, the RDSH in the cloud platform 220 can utilize DHCPD to dynamically manage multiple IP addresses within a single machine.
[0114] Of course, the technical solution of this application can also be applied to other cloud platforms, for example, a hybrid cloud that combines private cloud and public cloud for deployment, and this application does not limit this.
[0115] In an embodiment of the present application, the address allocation system 220 can be implemented based on a computing device cluster, which includes at least one computing device. In some embodiments, the computing device cluster can be a server, a server cluster consisting of multiple physical servers, or a distributed file system, or a cloud server cluster that provides basic cloud computing services such as cloud storage and cloud services, cloud databases, cloud computing, cloud functions, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), big data and artificial intelligence platforms, etc., which are not limited in this application.
[0116] In the embodiments of the present application, client 210 runs on a computing device, which is a terminal or server. The terminal is, for example, a desktop computer, a laptop computer, or a smartphone, and the server is, for example, a central server, an edge server, or a local server in a local data center. This application does not limit this. The same applies to the client where the administrator is located. In some embodiments, the administrator's terminal and the computing device accessing the RDS can be the same or different devices, which is not limited in this application.
[0117] In some embodiments, the IP address allocation method provided in this application can be implemented in the above-mentioned address allocation system 220 in the form of a computing instance. The computing instance can run in the public cloud in the form of a virtual machine, container or process and provided to users as a cloud service.
[0118] Among them, the client 210 and the address allocation system 220 can be connected by a wired network or a wireless network. In some embodiments, the wireless network or wired network uses standard communication technology and / or protocol. The network includes but is not limited to a data center network (data center network), a storage area network (SAN), a local area network (LAN), a metropolitan area network (MAN), a wide area network (WAN), a mobile, wired or wireless network, a dedicated network or any combination of a virtual private network. In some implementations, the data exchanged through the network is represented using technologies and / or formats including hypertext markup language (HTML), extensible markup language (XML), etc. In addition, conventional encryption technologies such as secure sockets layer (SSL), transport layer security (TLS), virtual private network (VPN), and internet protocol security (IPsec) can also be used to encrypt all or part of the links. In other embodiments, customized and / or dedicated data communication technologies can be used instead of or in addition to the above-mentioned data communication technologies.
[0119] Next, based on the above application scenario and implementation environment, the IP address allocation method provided by the embodiment of the present application is described in detail in conjunction with the following Figures 3 to 12. The following description is made by taking the interaction between the client and the address allocation system as an example.
[0120] Steps 301 to 307 below describe a brief process of allocating IP addresses to different remote desktop sessions RDS used by different clients in a public cloud.
[0121] 301. The cloud platform in the address allocation system creates a target RDSH in response to the RDSH creation instruction.
[0122] In some embodiments, the cloud platform provides a target function switch in the management interface. The target function switch is used to turn on and off the IP virtualization function for the target RDSH. The IP virtualization function includes enabling the RDSH to use multiple IP addresses obtained by virtualizing the IP address of the RDSH. In some embodiments, the cloud platform management interface is also referred to as the public cloud console.
[0123] In some embodiments, the administrator creates and manages the RDSH in the cloud platform through the management interface provided by the cloud platform. The RDSH creation instruction can be triggered by the administrator. For example, the administrator logs in to the management interface provided by the cloud platform through a terminal device and chooses to create a target RDSH on the target server. Figure 3 is a schematic diagram of a management interface provided by the present application. Referring to Figure 3, the administrator logs in to the management interface provided by the public cloud platform and starts to create an RDSH (which can be one or a group). The management interface provides an input item for editing the name of the server group to be created, and supports the administrator to select the area where the target server group is located (which can be a data center divided by geographical area); the management interface provides a function for selecting an image, and the user can select the required image for creating the RDSH; the management interface provides a target function switch. As shown in the figure, if the target function switch is on, the currently created RDSH can apply the IP virtualization function. Among them, the image provides the operating system, initialization application data and pre-installed software used by the RDSH instance. As shown in Figure 3, the administrator can directly select the image pre-installed with DHCPD.
[0124] In some embodiments, the cloud platform supports presetting application rules for the IP virtualization function of the RDSH, so that when an RDSH is created and the IP virtualization function is enabled thereafter, the IP virtualization function of the target RDSH can be directly enabled according to the pre-set application rules, allowing administrators to create and manage RDSHs in a simple and efficient manner in the public cloud mode. This is described below in conjunction with Figure 4, which is a schematic diagram of the cloud platform initialization settings, and its architecture refers to the description of Figure 2.
[0125] In some embodiments, in the initial state, the cloud platform is ready, and the administrator has not yet configured the application rules for the IP virtualization function of the RDSH in the cloud platform. The administrator logs in to the public cloud console (management interface) provided by the cloud platform and configures the application rules for enabling remote desktop IP virtualization. The cloud platform saves and records the application rules configured by the administrator, and these application rules can be applied to newly created RDSHs.
[0126] In some embodiments, the application rule indicates the object to which the IP virtualization function is applied, for example, a group of servers running RDSH or a single server running RDSH. Accordingly, the application rule can instruct: enable the IP virtualization function for all servers in the group of RDSH servers, or instruct: enable the IP virtualization function for a selected single RDSH server.
[0127] Through the above technical solution, the user is provided with a switch for the IP virtualization function on the front-end interface, so that the user can configure the IP virtualization function in the process of creating RDSH according to business needs.
[0128] 302. Based on the target RDSH, the cloud platform applies to the VPC for at least one IP address virtualized based on the IP address of the target RDSH.
[0129] In some embodiments, the first specification information indicates the specifications of the IP addresses involved in the target RDSH. Exemplarily, the first specification information includes at least one of the following: the number of IP addresses used by the target RDSH, for example, 1 or 2; and the number of sessions supported by the target RDSH, for example, 2 or 3.
[0130] In some embodiments, the cloud platform, in response to obtaining the first specification information in the management interface, obtains at least one IP address obtained by virtualizing the IP address of the RDSH. For example, the cloud platform obtains one or more virtualized IP addresses based on the number of IP addresses indicated by the first specification information; or, based on the number of sessions indicated by the first specification information, the cloud platform obtains one or more virtualized IP addresses that support the number of sessions.
[0131] In some embodiments, the cloud platform can select a target physical host (such as a server) for running the created target RDSH based on a request submitted by a user. Each physical host is equipped with a network card for networking. The IP address configured by the network card when it is mounted on the physical host is the IP address of the RDSH. In this example, the cloud platform requests the VPC to virtualize the IP address corresponding to the number based on the IP address of the RDSH and the number indicated by the first specification information. Among them, the virtualized IP address will be bound to the IP address corresponding to the RDSH. For example, the multiple IP addresses obtained through virtualization will be bound to the network card corresponding to the RDSH as an IP address equivalent to the original fixed IP address of the network card, thereby completing the networking process of the virtualized IP address on the management side of the public cloud. In other embodiments, the relationship between the physical host, the network card, the IP address of the network card, and the virtualized IP address is maintained by the VPC.
[0132] Therefore, the multiple IP addresses obtained through virtualization can play the same networking function as the original fixed IP address of the network card, and provide data support for the public cloud management plane for the subsequent dynamic management of multiple IP addresses in RDSH.
[0133] In some embodiments, the cloud platform may apply for one or more virtualized IP addresses for the target RDSH. For example, the cloud platform determines the number based on the first specification information submitted by the user, or the cloud platform applies for an equal number of IP addresses based on the product specifications (e.g., number of sessions) set by the administrator when creating the target RDSH.
[0134] In some embodiments, the cloud platform's management interface provides an option to specify the region where the cloud server is located. That is, the administrator can select the region where the cloud server to be used to create the target RDSH is located. In this example, the administrator selects the server's region and submits it to the cloud platform, triggering the cloud platform to request the target RDSH's IP address from the VPC. The VPC then determines the RDSH's IP address based on the available cloud servers in the administrator's selected region and, based on the administrator's desired number of sessions, requests a corresponding number of virtualized IP addresses.
[0135] Through the above solution, the management interface provided by the cloud platform supports users to customize the number of sessions used when creating RDSH, effectively integrating IP virtualization functions into actual business scenarios.
[0136] 303. The cloud platform sends the at least one IP address obtained by virtualization to the created target RDSH.
[0137] In some embodiments, a server-side DHCPD supporting the Dynamic Host Configuration Protocol runs in the target RDSH. The cloud platform sends at least one virtualized IP address to the standalone DHCPD running in the target RDSH. The DHCPD supports the DHCP protocol and can maintain (e.g., allocate and reclaim) the multiple virtualized IP addresses. Therefore, the multiple virtualized IP addresses issued by the cloud platform to the target RDSH are equivalent to the IP address source being maintained and managed by the DHCPD.
[0138] Through the above technical solution, multiple virtualized IP addresses that can be allocated by a single machine are issued to the single-machine DHCPD running in the RDSH at the granularity of a single RDSH, so as to realize the flexible management of multiple IP addresses in a single RDSH.
[0139] It should be noted that the above process is described using the creation process of a single RDSH as an example. When the administrator creates multiple RDSHs through one configuration, the cloud platform can execute the creation of RDSH and the issuance of virtualized IP addresses based on the dimension of each RDSH, following the same process as steps 301 to 303 above.
[0140] To facilitate understanding of the process described in steps 301 to 305 above, this application further provides Figures 5 and 6. Figure 5 is a schematic diagram of the principle of creating an RDSH provided by this application, and Figure 6 is a schematic diagram of the process of issuing an IP address when creating an RDSH provided by this application. The technical solutions provided in steps 301 to 303 above are further explained below in conjunction with Figures 5 and 6.
[0141] Referring to Figure 5, when an administrator creates one or more RDSHs, they log in to the cloud platform's management interface (public cloud console), select the server group corresponding to the Remote Desktop IP virtualization rule, and purchase one or more RDSHs (corresponding to one or more physical hosts). Based on the dimensions of a single RDSH, the cloud platform applies to the VPC for one or more virtualized IP addresses during the RDSH creation process and distributes these virtualized IP addresses to the stand-alone DHCPD installed in the corresponding RDSH.
[0142] Referring to Figure 6, the administrator submits an RDSH creation task to the cloud platform through the public cloud console provided by the cloud platform. The cloud platform returns a successful task submission response to the console and submits the RDSH creation task to the Elastic Cloud Server (ECS). After receiving the response from the ECS, the cloud platform requests a virtualized IP address from the VPC to be allocated to the RDSH and sends the received virtualized IP address to the RDSH. The standalone DHCPD in the RDSH receives and stores these virtualized IP addresses as a source of IP addresses available for allocation. The standalone DHCPD in the RDSH starts DHCP protocol snooping and provides DHCP protocol support.
[0143] The above steps 301 to 303 introduce the process of creating RDSH and issuing multiple available virtualized IP addresses. The following describes the process of dynamically allocating IP addresses when a client accesses RDSH.
[0144] 304. The cloud platform receives a first creation request sent by the first client and forwards the first creation request to the target RDSH. The first creation request is used to request to establish a first session with the target RDSH.
[0145] In some embodiments, the first creation request carries host information, and the cloud platform can determine the target RDSH based on the host information, thereby forwarding the first creation request to the target RDSH. The host information can be a host name, a host IP address, a subnet address where the host is located, etc., but the present application is not limited thereto.
[0146] In other embodiments, the cloud platform determines a target RDSH host to provide RDSH services for the first client based on a load balancing strategy.
[0147] 305. The target RDSH allocates a corresponding first IP address to the first session in response to the first creation request. The first IP address is obtained by virtualizing the IP address of the target RDSH. The RDSH allocates a virtual IP address to the running remote desktop session RDS based on multiple virtual IP addresses corresponding to the IP address.
[0148] In some embodiments, a server-side DHCPD supporting the Dynamic Host Configuration Protocol runs in the target RDSH. The DHCPD supports the DHCP protocol and is capable of maintaining (e.g., allocating and reclaiming) the multiple virtualized IP addresses. In response to the first creation request, the target RDSH sends a DHCP request to the DHCPD. In response to the DHCP request, the DHCPD allocates a first IP address to the first session from the multiple virtualized IP addresses maintained. In some embodiments, each session is assigned a unique session identifier in an RDSH.
[0149] To facilitate understanding of the above steps 304 to 305, the present application provides Figure 7 based on Figure 5. Figure 7 is a flowchart of an IP address allocation method provided by an embodiment of the present application. Referring to Figure 7 and Figure 5, after the client sends the first creation request, it accesses the RDSH through RDP. The RDSH marks the connection with RDP1, creates the corresponding first session RDS1, and associates the client's connection RDP1 with the first session RDS1. The RDSH issues a DHCP request to apply for an IP address for the first session from the running DHCPD. The stand-alone DHCPD in the RDSH receives the request, responds and allocates a virtualized IP address 1. The RDSH obtains IP address 1 and associates RDS1 with IP address 1. Based on this, the first customer can use IP address 1 as the IP address for subsequent access to network services based on the first session RDS1.
[0150] 306. The target RDSH returns the first IP address to the cloud platform.
[0151] In some embodiments, based on the first IP address returned by the target RDSH, the cloud platform can determine at which time, which client used the first IP address for network communication through which session in which RDSH. Therefore, the cloud platform can effectively manage and trace the users of the remote desktop session, thereby ensuring the security of remote desktop sessions in the public cloud.
[0152] 307. The cloud platform returns a first access response to the first client, where the first access response indicates that the first client has established a first session with the target RDSH based on the first IP address.
[0153] In some embodiments, the cloud platform returns the IP address of the target RDSH (e.g., a fixed IP address configured by the network card of the physical host) to the first client, so that the first client can directly access the target RDSH based on the IP address. In other embodiments, the target RDSH can also return the first access response to the first client, so that the first client can directly interact with the accessed RDSH, thereby reducing the forwarding and interaction overhead of the cloud platform.
[0154] Similar to the above steps 304-307, for the second client using the target RDSH, the process of the address allocation system allocating an IP address includes: the cloud platform receives a second creation request issued by the second client, and forwards the second creation request to the target RDSH, the second creation request is used to request to establish a second session with the target RDSH (refer to step 304); in response to the second creation request, the target RDSH allocates a corresponding second IP address for the second session, and the second IP address is obtained by virtualizing the IP address of the target RDSH (refer to step 305); the target RDSH returns the second IP address to the cloud platform (refer to step 306); the cloud platform returns a second access response to the second client, and the second access response indicates that the second client has established a second session with the target RDSH based on the second IP address (refer to step 307).
[0155] In other embodiments, in response to a network service request initiated by the first client through the first session, the target RDSH processes the network service request using the first IP address. Exemplarily, the network service request includes accessing the network using proxy software, as described below in conjunction with FIG8 . FIG8 is a schematic diagram of a client using a network service provided by the present application.
[0156] Referring to FIG8 , in a secure Internet access scenario controlled by an enterprise proxy server, user A of the enterprise network uses proxy software to log in to the proxy server through a remote desktop session in RDSH to access the external network. The process includes the following steps (1) to (5):
[0157] (1) User A accesses RDSH via RDP through a client, labeled RDP1. RDSH creates a corresponding RDS1. RDSH sends a DHCP request to obtain an IP address.
[0158] (2) The standalone DHCPD in the RDSH receives the request, responds, and allocates virtualized IP address 1. RDSH obtains IP address 1 and associates RDS1 with IP address 1. User A can then use IP address 1 as the IP address for subsequent network communications through the client.
[0159] (3) User A uses the proxy software running in RDSH through RDS1 to request to log in to the proxy server of the enterprise network.
[0160] (4) The enterprise proxy server authenticates IP address 1 and the user credentials provided by user A. The enterprise proxy server records that IP address 1 has passed the authentication and allows IP address 1 to access network resources through the proxy server.
[0161] (5) User A uses the authenticated IP address 1 to access the proxy server to access network resources through the proxy server.
[0162] User B goes through the same process from step (1) to step (5), and then uses the authenticated IP address 2 to access the proxy server to access network resources through the proxy server.
[0163] In the above process, user A and user B can use network services based on different IP addresses without affecting each other.
[0164] Therefore, this application can at least achieve the following: a client uses a unique IP address within a specified RDSH for network access within a specified session; different clients use different IP addresses for network access within the same RDSH; and the same client uses different IP addresses in different sessions. Based on this, this application can achieve session-level IP address isolation, effectively distinguishing network requests from different users and protecting the privacy of network services used by different users.
[0165] In other embodiments, the RDSH releases the virtual IP address assigned to the RDS in response to a session logout request for the RDS. The present application provides a flow chart of session logout. Referring to FIG9 , the logout process includes: a first client requests to log out of the connection RDP1 with the RDSH. The RDSH receives the request and logs out the relevant resources of the first session RDS1 associated with RDP1. The RDSH issues a DHCP request, requesting the release of IP address 1 associated with RDS1. The stand-alone DHCPD within the RDSH receives the request, reclaims IP address 1, and uses it for subsequent reallocation to other connected RDPs. The RDSH disassociates RDS1 from IP address 1 and completes the session logout.
[0166] Through the technical solution provided by this application, the cloud platform can apply for an IP address from the management plane of the public cloud for each RDSH, and maintain the IP address source (multiple virtualized IP addresses) assigned to each RDSH; in the RDSH of the public cloud, a stand-alone DHCPD customized based on DHCP is implemented, so that each RDSH has the ability to allocate, recycle, and reuse IP addresses; for the same RDSH, when programs in different sessions monitor the network card port of the RDSH host, by allocating unique virtualized IP addresses to different sessions, the port monitoring conflict problem caused by the network card having only one available IP address can be effectively avoided. In summary, the technical solution of this application can effectively improve the efficiency of IP address allocation and greatly improve the scalability of network services based on RDSH.
[0167] Therefore, the IP address allocation method provided in this application can be applied to providing public cloud services and realizing remote desktop IP virtualization for public cloud services. When the client accesses the session in RDSH to use various network services provided by the cloud platform, the security, privacy and scalability of the network services can be fully guaranteed.
[0168] The above embodiment describes how to issue virtualized IP addresses for allocation during the creation of an RDSH, so that the RDSH can assign different IP addresses to different sessions. In other embodiments, based on the above embodiment, it is also supported to update the virtualized IP address assigned to the RDSH during the operation of the RDSH. Figure 10 is a schematic diagram of an IP address update provided by this application. Referring to Figure 10, the following description is combined with steps 1001 and 1002.
[0169] 1001. In response to the IP update instruction, the cloud platform obtains at least one IP address obtained by virtualizing the IP address of the target RDSH after the update according to the second specification information carried in the IP update instruction.
[0170] The second specification information indicates at least one of the following: the number of IP addresses used by the updated target RDSH, and the number of sessions supported by the updated target RDSH. For an example of the second specification information, refer to the introduction of the first specification information in step 302, which will not be repeated here.
[0171] In some embodiments, the cloud platform determines how to update the virtualized IP addresses allocated to the target RDSH by comparing a first quantity currently available to the RDSH with a second quantity indicated by the second specification information. The quantity may be the number of sessions or the number of IP addresses.
[0172] In some embodiments, when the second number is less than the first number, it means that the cloud platform determines the IP address released this time, and based on the IP address released this time, obtains at least one IP address obtained by virtualization after the update. Based on this, the cloud platform can release redundant IP addresses in a timely manner. In other embodiments, when the second number is greater than the first number, the virtualized IP address newly applied for this time is determined, and based on the virtualized IP address newly applied for this time, obtains at least one IP address obtained by virtualization after the update. Based on this, the cloud platform can replenish the available IP addresses in a timely manner. In summary, the real-time performance of IP resource management can be improved.
[0173] In some embodiments, the number of IP addresses obtained by virtualization after the update is greater than or equal to the number of sessions corresponding to the updated product specifications of the target RDSH.
[0174] Referring to Figure 10, the cloud platform can respond to the administrator's update request and, based on the above comparison process, determine whether to apply for a new IP address from the VPC or request the VPC to release the IP address; and then determine the IP address of the updated target RDSH based on the newly applied IP address or the released IP address.
[0175] In some embodiments, the cloud platform supports passively updating the IP address of the RDSH. In response to obtaining the second specification information for the target RDSH in the management interface of the cloud platform, the cloud platform triggers an IP update instruction.
[0176] In some embodiments, the cloud platform obtains the second specification information for the target RDSH from the management interface. In some application scenarios, due to changes in product specifications (for example, changes in the number of remote desktop sessions used), in order to improve the utilization efficiency of IP addresses and ensure that the number of IP addresses supports the business needs of the product, the administrator of the target RDSH will update the IP addresses used by the target RDSH. In this example, the administrator triggers the update process for the target RDSH in the management interface.
[0177] Figure 11 is a schematic diagram of another management interface provided by the present application. Referring to Figure 11, the administrator logs in to the public cloud console (management interface) and operates to update the IP source of the target RDSH. As shown in Figure 11, the management interface displays multiple options for configuring the IP virtualization function of the current server group. The management interface displays the name of the server group AAA used to run the target RDSH, the operating system or image information used by the server group, the specifications of the server group, the number of sessions supported, the capacity of the system hard disk, the creation time, the server status and other information. Referring to Figure 11, the server group used to run the target RDSH has turned on the IP virtualization function. Referring to the management area of the target RDSH instance, in the "More" option, an option to update the virtual IP is provided.
[0178] In other embodiments, the cloud platform supports active updating of the virtualized IP addresses assigned to the RDSH. In response to detecting that the usage of the target RDSH in the cloud platform meets the update conditions, the cloud platform triggers an IP update instruction. The update condition indicates the usage of the IP address. For example, if the number of virtualized IP addresses used on one or more RDSH hosts exceeds a first threshold, or the number of virtualized IP addresses remaining available on one or more RDSHs is less than a second threshold, the cloud platform automatically triggers the additional allocation of virtualized IP addresses. Based on this, the cloud platform can dynamically maintain the number of virtualized IP addresses used by each host according to usage, thereby improving the utilization efficiency of the IP addresses and maintaining the availability of services.
[0179] The above is a case of updating the IP address of the target RDSH. In some embodiments, the IP update instruction can be targeted at multiple RDSHs. The cloud platform can then apply for or release the virtualized IP address from the VPC at the granularity of a single RDSH in the same manner as described above.
[0180] The above technical solution dynamically updates the IP address source for RDSH from the perspective of each RDSH, providing active and passive update initiation methods. It can cover scenarios such as product changes on the business side and availability maintenance on the service side, greatly improving the flexibility of RDSH-based deployment and the availability of network services.
[0181] 1002. The cloud platform sends at least one IP address obtained through virtualization after the update to the target RDSH.
[0182] In some embodiments, a server DHCPD supporting the Dynamic Host Configuration Protocol runs in the target RDSH.
[0183] In some embodiments, the stand-alone DHCPD in the target RDSH receives and saves the at least one IP address obtained through virtualization after the update, restarts DHCP protocol monitoring, uses the at least one IP address obtained through virtualization after the update as a source of IP addresses available for allocation, and continues to provide DHCP protocol support capabilities.
[0184] In other embodiments, the stand-alone DHCPD in the target RDSH can update the maintained IP address source online based on the IP address obtained by virtualization after the update without restarting. For example, if DHCPD detects that a new IP address has been added to the IP address obtained by virtualization after the update, the new IP address will be added to the maintained IP address source; if DHCPD detects that the IP address obtained by virtualization after the update does not contain some of the maintained IP addresses, the part of the IP address will be deleted from the maintained IP address source. In some embodiments, DHCPD detects the usage of the part of the IP address. If it is detected from the lease table that the part of the IP address is not in use, the part of the IP address is directly deleted; if it is detected from the lease table that the part of the IP address is in use, the part of the IP address will be deleted after the part of the IP address is recovered.
[0185] Through the above technical solution, a stand-alone DHCPD is customized for each RDSH in the public cloud based on the DHCP protocol. DHCPD can dynamically allocate, recycle, or reuse IP addresses in a stand-alone RDSH and support dynamic updates of IP address sources. This fully guarantees the utilization efficiency of IP addresses and improves the scalability of public cloud services through dynamically allocated virtualized IP addresses when providing network services based on RDSH.
[0186] To facilitate understanding of the above update process, the present application provides a flowchart of an IP address update. Referring to FIG12 , an exemplary IP address update process includes the following steps 1 to 4:
[0187] 1. The administrator logs in to the public cloud console (management interface), selects the RDSH whose IP address needs to be updated, and submits the IP address update task.
[0188] 2. The cloud platform determines the existing virtualized IP addresses of the target RDSH based on the instructions submitted by the user, compares the number (refer to step 1001), and determines to apply to the VPC management plane to add or release redundant virtualized IP addresses.
[0189] 3. The cloud platform sends one or more IP addresses obtained through virtualization after the update to the stand-alone DHCPD installed in RDSH.
[0190] 4. The stand-alone DHCPD receives and saves the updated virtualized IP address, restarts the DHCP protocol listening, uses the updated virtualized IP address as the source of IP addresses that can be allocated, and continues to provide DHCP protocol support capabilities.
[0191] The IP address allocation method provided in this application can be applied to public cloud services to implement remote desktop IP virtualization for public clouds, so that when different clients access the RDSH in the cloud platform, the RDSH allocates different virtualized IP addresses to different sessions corresponding to different clients, so that different clients can use different IP addresses to obtain network services. Therefore, when the client accesses the session in the RDSH to use various network services provided by the cloud platform, the security, privacy and scalability of the network services can be fully guaranteed.
[0192] Furthermore, the above technical solution provides RDSH with active and passive update initiation methods for the function of updating IP addresses, which can cover scenarios such as product changes on the business side and availability maintenance on the service side, effectively improving the utilization efficiency of IP addresses and ensuring that the number of IP addresses supports the business needs of the products.
[0193] FIG13 is a schematic diagram of an address allocation system provided in an embodiment of the present application. Referring to FIG13 , the address allocation system includes a cloud platform and RDSH, wherein the cloud platform is used to provide public cloud services;
[0194] The cloud platform 1301 is configured to receive a first creation request sent by a first client and forward the first creation request to a target RDSH 1302 , where the first creation request is used to request establishment of a first session with the target RDSH 1302 ;
[0195] The target RDSH 1302 is configured to, in response to the first creation request, allocate a corresponding first IP address to the first session, where the first IP address is obtained by virtualizing the IP address of the target RDSH 1302;
[0196] The target RDSH 1302 is used to return the first IP address to the cloud platform 1301;
[0197] The cloud platform 1301 is configured to return a first access response to the first client, where the first access response indicates that the first client has established a first session with the target RDSH 1302 based on the first IP address.
[0198] In one possible implementation, the cloud platform 1301 is further configured to receive a second creation request sent by the second client and forward the second creation request to the target RDSH 1302 , where the second creation request is used to request establishment of a second session with the target RDSH 1302 .
[0199] The target RDSH 1302 is further configured to, in response to the second creation request, allocate a corresponding second IP address for the second session, where the second IP address is obtained by virtualizing the IP address of the target RDSH 1302;
[0200] The target RDSH 1302 is further configured to return the second IP address to the cloud platform 1301 ;
[0201] The cloud platform 1301 is further configured to return a second access response to the second client, where the second access response indicates that the second client has established a second session with the target RDSH 1302 based on the second IP address.
[0202] In one possible implementation, the cloud platform 1301 is also used to provide a target function switch in the management interface, where the target function switch is used to turn on and off the IP virtualization function for the target RDSH 1302. The IP virtualization function includes enabling the RDSH to use multiple IP addresses obtained by virtualizing the IP address of the RDSH.
[0203] In one possible implementation, the cloud platform 1301 is further configured to, in response to obtaining first specification information for the target RDSH 1302 in a management interface of the cloud platform 1301, obtain, during creation of the target RDSH 1302, at least one IP address obtained by virtualizing the IP address of the target RDSH 1302 according to the first specification information, and send the at least one virtualized IP address to the target RDSH 1302, where the first specification information indicates at least one of the following: the number of IP addresses used by the target RDSH 1302 and the number of sessions supported by the target RDSH 1302;
[0204] The cloud platform 1301 is also used to, in response to the IP update instruction, obtain at least one IP address obtained by virtualization after the target RDSH 1302 is updated according to the second specification information carried by the IP update instruction, and send the at least one IP address obtained by virtualization after the update to the target RDSH 1302, where the second specification information indicates at least one of the following: the number of IP addresses used by the target RDSH 1302 after the update, and the number of sessions supported by the target RDSH 1302 after the update.
[0205] In one possible implementation, the cloud platform 1301 is used to:
[0206] comparing a first quantity currently available to the target RDSH 1302 with a second quantity indicated by the second specification information;
[0207] If the second number is less than the first number, determine the IP addresses released this time, and obtain at least one updated IP address obtained by IP address virtualization based on the RDSH based on the IP addresses released this time;
[0208] When the second number is greater than the first number, the newly applied virtualized IP address is determined, and based on the newly applied virtualized IP address, at least one updated virtualized IP address is obtained.
[0209] In one possible implementation, the cloud platform 1301 is configured to perform at least one of the following:
[0210] In response to obtaining the second specification information for the target RDSH 1302 in the management interface of the cloud platform 1301 , the cloud platform 1301 triggers an IP update instruction;
[0211] In response to detecting that the usage of the target RDSH 1302 in the cloud platform 1301 meets the update condition, the cloud platform 1301 triggers an IP update instruction.
[0212] In one possible implementation, the target RDSH 1302 is further configured to:
[0213] In response to a logout request from the first client for the first session, releasing the first IP address allocated to the first session.
[0214] In one possible implementation, the target RDSH 1302 is further configured to:
[0215] In response to a network service request initiated by the first client through the first session, the network service request is processed using the first IP address.
[0216] Cloud platform 1301 and target RDSH 1302 are equivalent to functional modules deployed in the address allocation system, and both can be implemented via software or hardware. For example, the implementation of cloud platform 1301 will be described below using cloud platform 1301 as an example. Similarly, the implementation of target RDSH 1302 can refer to the implementation of cloud platform 1301.
[0217] Through the above technical solution, remote desktop IP virtualization is realized in the public cloud service, so that when the client accesses the RDSH in the cloud platform, the RDSH can allocate IP addresses to the client based on multiple IP addresses obtained through virtualization. This allows different clients to obtain network services through the same RDSH based on different IP addresses, thereby ensuring the security, privacy and scalability of network services.
[0218] Furthermore, the above technical solution provides RDSH with active and passive update initiation methods for the function of updating IP addresses, which can cover scenarios such as product changes on the business side and availability maintenance on the service side, effectively improving the utilization efficiency of IP addresses and ensuring that the number of IP addresses supports the business needs of the products.
[0219] As an example of a software functional unit, the cloud platform 1301 may include a code running on a computing instance. The computing instance may include at least one of a physical host (computing device), a virtual machine, and a container. Furthermore, the computing instance may be one or more. For example, the cloud platform 1301 may include code running on multiple hosts / virtual machines / containers. It should be noted that the multiple hosts / virtual machines / containers used to run the code may be distributed in the same region or in different regions. Furthermore, the multiple hosts / virtual machines / containers used to run the code may be distributed in the same availability zone (AZ) or in different AZs, each AZ including one data center or multiple geographically close data centers. Typically, a region may include multiple AZs.
[0220] Similarly, multiple hosts / virtual machines / containers running the code can be distributed within the same virtual private cloud (VPC) or across multiple VPCs. Typically, a VPC is set up within a region. Cross-region communication between two VPCs within the same region, or between VPCs in different regions, requires a communication gateway within each VPC to interconnect the VPCs.
[0221] As an example of a hardware functional unit, a module can include at least one computing device, such as a server. Alternatively, cloud platform 1301 can be implemented using an application-specific integrated circuit (ASIC) or a programmable logic device (PLD). The PLD can be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.
[0222] The multiple computing devices included in cloud platform 1301 can be distributed in the same region or in different regions. The multiple computing devices included in cloud platform 1301 can be distributed in the same AZ or in different AZs. Similarly, the multiple computing devices included in cloud platform 1301 can be distributed in the same VPC or in multiple VPCs. The multiple computing devices can be any combination of servers, ASICs, PLDs, CPLDs, FPGAs, GALs, and other computing devices.
[0223] It should be noted that, in other embodiments, the cloud platform 1301 and the target RDSH 1302 can be used to execute any step in the IP address allocation method, and the steps that the cloud platform 1301 and the target RDSH 1302 are responsible for implementing can be specified as needed. The cloud platform 1301 and the target RDSH 1302 respectively implement different steps in the IP address allocation method to implement all the functions of the address allocation system. That is, when implementing the corresponding steps, the address allocation system provided in the above embodiment is only illustrated by the division of the above functional modules. In actual applications, the above functional allocation can be completed by different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the address allocation system provided in the above embodiment and the IP address allocation method embodiment belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0224] The following is an introduction to the hardware structure of the computing device involved in the embodiments of the present application.
[0225] An embodiment of the present application provides a computing device cluster comprising at least one computing device. The computing device may be a server, such as a central server, an edge server, or a local server in a local data center. In some embodiments, the computing device may also be a terminal device such as a desktop computer, a laptop computer, or a smartphone.
[0226] An embodiment of the present application provides a computing device that can be configured as a computing device included in the above-mentioned computing device cluster. Schematically, referring to Figure 14, Figure 14 is a schematic diagram of the hardware structure of a computing device provided in an embodiment of the present application. As shown in Figure 14, the computing device 1400 includes a memory 1401, a processor 1402, a communication interface 1403, and a bus 1404. Among them, the memory 1401, the processor 1402, and the communication interface 1403 are connected to each other via the bus 1404.
[0227] The memory 1401 may be a read-only memory (ROM) or other static storage device capable of storing static information and instructions, a random access memory (RAM) or other dynamic storage device capable of storing information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compact disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but not limited thereto. The processor 1402 implements the method in the above or following embodiments by reading the program code stored in the memory 1401, or the processor 1402 implements the IP address allocation method in the above or following embodiments by using the program code stored internally. When the processor 1402 implements the IP address allocation method in the above or following embodiments by reading the program code stored in the memory 1401, the memory 1401 stores the program code for implementing the IP address allocation method provided in the embodiment of the present application.
[0228] The processor 1402 may be a network processor (NP), a central processing unit (CPU), an application-specific integrated circuit (ASIC), or an integrated circuit for controlling the execution of the program of the present application. The processor 1402 may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. The number of processors 1402 may be one or more. The communication interface 1403 uses a transceiver module such as a transceiver to implement communication between the computing device 1400 and other devices or a communication network. For example, a request sent by a client may be obtained through the communication interface 1403.
[0229] The memory 1401 and the processor 1402 may be separately provided or integrated together.
[0230] The bus 1404 may include a path for transmitting information between various components of the computing device 1400 (eg, the memory 1401 , the processor 1402 , and the communication interface 1403 ).
[0231] The memory of one or more computing devices in the computing device cluster may store the same instructions for executing the IP address allocation method provided in this application. In some possible implementations, the memory of one or more computing devices in the computing device cluster may also store partial instructions for executing the IP address allocation method provided in this application. In other words, the combination of one or more computing devices can jointly execute the instructions for executing the IP address allocation method provided in this application.
[0232] In some possible implementations, one or more computing devices in a computing device cluster may be connected via a network. The network may be a wide area network (WAN) or a local area network (LAN). FIG. 15 is a schematic diagram of a computing device cluster provided in an embodiment of the present application. Referring to FIG. 15 , one or more computing devices 1400 in the computing device cluster are connected via a network. The description of computing device 1400 is provided above and will not be repeated here.
[0233] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.), and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use, and processing of relevant data must comply with the relevant laws, regulations, and standards of the relevant countries and regions. For example, the IP addresses, user credentials, and other information involved in this application are all obtained with full authorization.
[0234] In this application, the terms "first", "second", etc. are used to distinguish between identical or similar items having substantially the same effects and functions. It should be understood that there is no logical or temporal dependency between "first", "second", and "nth", nor is the quantity and execution order limited. It should also be understood that although the following description uses the terms first, second, etc. to describe various elements, these elements should not be limited by the terms. These terms are only used to distinguish one element from another. For example, without departing from the scope of the various described examples, the first IP address can be referred to as the second IP address, and similarly, the second IP address can be referred to as the first IP address. The first IP address and the second IP address can both be IP addresses, and in some cases, can be separate and different IP addresses.
[0235] In this application, the term "at least one" means one or more, and the term "plurality" means two or more. For example, a plurality of IP addresses means two or more IP addresses.
[0236] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and such modifications or substitutions should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.
[0237] In the above embodiments, all or part of the embodiments may be implemented using software, hardware, firmware, or any combination thereof. When implemented using software, all or part of the embodiments may be implemented in the form of a program product. The program product includes one or more program instructions. When the program instructions are loaded and executed on a computing device, all or part of the processes or functions described in the embodiments of the present application are generated.
[0238] Those skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware, or may be accomplished by a program to instruct the relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0239] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for allocating network protocol IP addresses, It is characterized in that The method is applied to an address allocation system, the address allocation system includes a cloud platform and a remote desktop session host RDSH, the cloud platform is used to provide public cloud services, and the method includes: The cloud platform receives a first creation request sent by a first client, and forwards the first creation request to a target RDSH, where the first creation request is used to request to establish a first session with the target RDSH; In response to the first creation request, the target RDSH allocates a corresponding first IP address for the first session, where the first IP address is obtained by virtualizing the IP address of the target RDSH; The target RDSH returns the first IP address to the cloud platform; The cloud platform returns a first access response to the first client, where the first access response indicates that the first client has established the first session with the target RDSH based on the first IP address.
2. The method according to claim 1, It is characterized in that The method further comprises: The cloud platform receives a second creation request sent by a second client, and forwards the second creation request to the target RDSH, where the second creation request is used to request to establish a second session with the target RDSH; In response to the second creation request, the target RDSH allocates a corresponding second IP address for the second session, where the second IP address is obtained by virtualizing the IP address of the target RDSH; The target RDSH returns the second IP address to the cloud platform; The cloud platform returns a second access response to the second client, where the second access response indicates that the second client has established the second session with the target RDSH based on the second IP address.
3. The method according to claim 1 or 2, It is characterized in that The method further comprises: The cloud platform provides a target function switch in the management interface, and the target function switch is used to turn on and off the IP virtualization function for the target RDSH. The IP virtualization function includes: enabling the RDSH to use multiple IP addresses obtained by virtualizing the IP address of the RDSH.
4. The method according to any one of claims 1 to 3, It is characterized in that The method further comprises: In response to obtaining first specification information for the target RDSH in the management interface of the cloud platform, the cloud platform obtains at least one IP address obtained by virtualizing the IP address of the target RDSH according to the first specification information during the process of creating the target RDSH, and sends the at least one virtualized IP address to the target RDSH, wherein the first specification information indicates at least one of the following: the number of IP addresses used by the target RDSH and the number of sessions supported by the target RDSH; In response to the IP update instruction, the cloud platform obtains at least one IP address obtained based on the target RDSH virtualization after the update according to the second specification information carried by the IP update instruction, and sends the at least one IP address obtained by the virtualization after the update to the target RDSH, wherein the second specification information indicates at least one of the following: the number of IP addresses used by the target RDSH after the update, and the number of sessions supported by the target RDSH after the update.
5. The method according to claim 4, It is characterized in that The cloud platform obtains the updated IP address of the target RDSH according to the second specification information carried by the IP update instruction, including: Comparing a first quantity currently available for use by the target RDSH with a second quantity indicated by the second specification information; When the second number is less than the first number, determining the IP address released this time, and acquiring at least one IP address obtained by virtualization after the update based on the IP address released this time; When the second number is greater than the first number, the newly applied virtualized IP address is determined, and based on the newly applied virtualized IP address, at least one IP address obtained by the updated virtualization is acquired.
6. The method according to claim 4 or 5, It is characterized in that The method further comprises at least one of the following: In response to obtaining second specification information for the target RDSH in the management interface of the cloud platform, the cloud platform triggers the IP update instruction; In response to detecting that the usage of the target RDSH in the cloud platform meets the update condition, the cloud platform triggers the IP update instruction.
7. The method according to any one of claims 1 to 6, It is characterized in that The method further comprises: In response to a logout request from the first client for the first session, the target RDSH releases the first IP address allocated to the first session.
8. The method according to any one of claims 1 to 7, It is characterized in that The method further comprises: In response to a network service request initiated by the first client through the first session, the target RDSH processes the network service request using the first IP address.
9. An address allocation system, It is characterized in that The address allocation system includes a cloud platform and a remote desktop session host RDSH, wherein the cloud platform is used to provide public cloud services; The cloud platform is configured to receive a first creation request sent by a first client, and forward the first creation request to a target RDSH, wherein the first creation request is used to request to establish a first session with the target RDSH; The target RDSH is used to allocate a corresponding first IP address to the first session in response to the first creation request, where the first IP address is obtained by virtualizing the IP address of the target RDSH; The target RDSH is used to return the first IP address to the cloud platform; The cloud platform is used to return a first access response to the first client, where the first access response indicates that the first client has established the first session with the target RDSH based on the first IP address.
10. The system according to claim 9, It is characterized in that The cloud platform is further configured to receive a second creation request sent by a second client, and forward the second creation request to the target RDSH, wherein the second creation request is used to request to establish a second session with the target RDSH; The target RDSH is further configured to, in response to the second creation request, allocate a corresponding second IP address to the second session, where the second IP address is obtained by virtualizing the IP address of the target RDSH; The target RDSH is further used to return the second IP address to the cloud platform; The cloud platform is also used to return a second access response to the second client, where the second access response indicates that the second client has established the second session with the target RDSH based on the second IP address.
11. The system according to claim 9 or 10, It is characterized in that The cloud platform is also used to provide a target function switch in the management interface, and the target function switch is used to turn on and off the IP virtualization function for the target RDSH. The IP virtualization function includes: enabling the RDSH to use multiple IP addresses obtained by virtualizing the IP address of the RDSH.
12. A system according to any one of claims 9 to 11, It is characterized in that The cloud platform is further configured to, in response to obtaining first specification information for the target RDSH in a management interface of the cloud platform, obtain at least one IP address obtained by virtualizing the IP address of the target RDSH according to the first specification information during the process of creating the target RDSH, and send the at least one virtualized IP address to the target RDSH, wherein the first specification information indicates at least one of the following: the number of IP addresses used by the target RDSH, and the number of sessions supported by the target RDSH; The cloud platform is also used to, in response to an IP update instruction, obtain at least one IP address obtained based on the target RDSH virtualization after the update according to second specification information carried by the IP update instruction, and send the at least one IP address obtained by the virtualization after the update to the target RDSH, wherein the second specification information indicates at least one of the following: the number of IP addresses used by the target RDSH after the update, and the number of sessions supported by the target RDSH after the update.
13. The system according to claim 12, It is characterized in that The cloud platform obtains the updated IP address of the target RDSH according to the second specification information carried by the IP update instruction, including: Comparing a first quantity currently available for use by the target RDSH with a second quantity indicated by the second specification information; When the second number is less than the first number, determining the IP address released this time, and acquiring at least one IP address obtained by virtualization after the update based on the IP address released this time; When the second number is greater than the first number, the newly applied virtualized IP address is determined, and based on the newly applied virtualized IP address, at least one IP address obtained by the updated virtualization is acquired.
14. The system according to claim 12 or 13, It is characterized in that The cloud platform is also used to perform at least one of the following: In response to obtaining second specification information for the target RDSH in the management interface of the cloud platform, triggering the IP update instruction; In response to detecting that the usage of the target RDSH in the cloud platform meets the update conditions, the IP update instruction is triggered.
15. The system according to any one of claims 9 to 14, It is characterized in that The target RDSH is also used to: In response to a logout request from the first client for the first session, the target RDSH releases the first IP address allocated to the first session.
16. The system according to any one of claims 9 to 15, It is characterized in that The target RDSH is also used to: In response to a network service request initiated by the first client through the first session, the target RDSH processes the network service request using the first IP address.
17. A computing device cluster, It is characterized in that comprising at least one computing device, each computing device comprising a processor and a memory; The processor of the at least one computing device is configured to execute instructions stored in the memory of the at least one computing device, so that the computing device cluster executes the IP address allocation method according to any one of claims 1 to 8.
18. A computer-readable storage medium, It is characterized in that The method comprises computer program instructions. When the computer program instructions are executed by a computing device cluster, the computing device cluster performs the IP address allocation method according to any one of claims 1 to 8.
19. A computer program product comprising instructions, It is characterized in that When the instructions are executed by a computing device cluster, the computing device cluster executes the IP address allocation method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Network protocol IP address distribution method and network protocol IP address distribution system
CN118784618A
Cloud virtual desktop applied control system and method for web service level and function
CN102820999A
Virtual machine remote desktop safety access system and method
CN103618752A
Data access method and device, electronic equipment and storage medium
CN113032805A
Device and media redirection technique for a browser-based remote desktop client
US20200053162A1
