Network protocol IP address distribution method and network protocol IP address distribution system
By virtualizing the IP address for the remote desktop session host in the public cloud, we solve the problem of remote desktop IP virtualization in the public cloud and achieve the security and scalability of network services.
Patent Information
- Application Number
- CN202310323110.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-29
- Publication Date
- 2024-10-15
AI Technical Summary
Existing remote desktop IP virtualization technology cannot be implemented in public cloud mode, resulting in the security, privacy and scalability of public cloud services not being guaranteed.
By providing an IP address allocation method in the cloud platform, Remote Desktop Session Host (RDSH) is allowed to virtualize IP addresses in the public cloud, and these virtualized IP addresses are managed through the cloud platform, ensuring that different clients can obtain them on the same RDSH Different IP addresses to achieve security, privacy and scalability of network services.
It realizes remote desktop IP virtualization in public cloud mode, improves the security, privacy and scalability of network services, and ensures the isolation of network requests from different clients and efficient allocation of IP addresses.
Smart Images

Figure CN118784618A_ABST
Abstract
Description
Technical Field
[0001] 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
[0002] Remote desktop protocol (RDP) is a protocol that supports users to use terminal services provided by remote devices through local devices. Users access the remote desktop session host (RDSH) running in the remote device through RDP. RDSH creates a remote desktop session (RDS) for the user. The user can run applications, save files, and access other networks in 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 RDS. When the user accesses RDSH, 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.
[0003] 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 public cloud mode. 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 mode. Summary of the invention
[0004] This application provides an IP address allocation method, an address allocation system, a computing device cluster and a storage medium, which can realize remote desktop IP virtualization in a public cloud mode and ensure the security, privacy and scalability of public cloud services. The technical solution is as follows:
[0005] In a first aspect, an IP address allocation method is provided. 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 a public cloud service. The method includes:
[0006] 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;
[0007] In response to the first creation request, the target RDSH allocates 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;
[0008] The target RDSH returns the first IP address to the cloud platform;
[0009] 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.
[0010] The IP address allocation method provided in the present application can be applied to public cloud services to implement remote desktop IP virtualization in public cloud services, so that when a 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.
[0011] In one possible implementation, the method further includes:
[0012] 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;
[0013] 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;
[0014] The target RDSH returns the second IP address to the cloud platform;
[0015] 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.
[0016] The IP address allocation method provided in the present 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.
[0017] In one possible implementation, the method further includes:
[0018] 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.
[0019] Through the above technical solution, a switch for the IP virtualization function is provided to the user 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.
[0020] In one possible implementation, the method further includes:
[0021] 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;
[0022] 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.
[0023] 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.
[0024] In a 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:
[0025] Compare a first quantity currently available to the target RDSH with a second quantity indicated by the second specification information;
[0026] When the second number is less than the first number, determining the IP address released this time, and acquiring at least one IP address virtualized after the update based on the IP address released this time;
[0027] 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 virtualized IP address after the update is acquired.
[0028] 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 the IP virtualization function into actual business scenarios.
[0029] In one possible implementation, the method further includes at least one of the following:
[0030] 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;
[0031] In response to detecting that usage of the target RDSH in the cloud platform meets the update conditions, the cloud platform triggers an IP update instruction.
[0032] The above technical solution uses a single RDSH as the granularity to dynamically update the IP address source for RDSH, and provides active and passive update initiation methods, which 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.
[0033] In one possible implementation, the method further includes:
[0034] 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.
[0035] In one possible implementation, the method further includes:
[0036] 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.
[0037] Based on this, the present 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.
[0038] The cloud platform can maintain the IP address source assigned to each RDS, 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 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.
[0039] In a second aspect, an address allocation system is provided, the address allocation system comprising a cloud platform and a remote desktop session host RDSH, the cloud platform is used to provide a public cloud service, the cloud platform is used to receive a first creation request sent by a first client, and forward the first creation request to a target RDSH, the first creation request is used to request to establish a first session with the target RDSH;
[0040] The target RDSH is used 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;
[0041] The target RDSH is used to return the first IP address to the cloud platform;
[0042] 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 a first session with the target RDSH based on the first IP address.
[0043] In a possible implementation manner, the cloud platform is further used to receive a second creation request sent by a second client, and forward 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;
[0044] The target RDSH is further used 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;
[0045] The target RDSH is also used to return the second IP address to the cloud platform;
[0046] 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 a second session with the target RDSH based on the second IP address.
[0047] 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, where the IP virtualization function includes enabling the RDSH to use multiple IP addresses obtained based on the IP address virtualization of the RDSH.
[0048] In one possible implementation, the cloud platform is further configured to, in response to obtaining first specification information for a 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;
[0049] The cloud platform is also used to, in response to an 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, wherein 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.
[0050] In one possible implementation, the cloud platform is used to:
[0051] Compare a first quantity currently available to the target RDSH with a second quantity indicated by the second specification information;
[0052] When the second number is less than the first number, determining the IP address released this time, and acquiring an updated IP address based on the IP address released this time;
[0053] 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, an updated IP address is obtained.
[0054] In one possible implementation, the cloud platform is used to perform at least one of the following:
[0055] 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;
[0056] In response to detecting that usage of the target RDSH in the cloud platform meets the update conditions, the cloud platform triggers an IP update instruction.
[0057] In one possible implementation, the target RDSH is also used to:
[0058] In response to a logout request from the first client for the first session, a first IP address allocated to the first session is released.
[0059] In one possible implementation, the target RDSH is also used to:
[0060] 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.
[0061] 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.
[0062] 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 executes the IP address allocation method provided in the first aspect.
[0063] In a fifth aspect, a computer program product comprising instructions is provided. When the instructions comprised 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
[0064] Figure 1 It 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;
[0065] Figure 2 It is a schematic diagram of an implementation environment provided by an embodiment of the present application;
[0066] Figure 3 is a schematic diagram of a management interface provided in an embodiment of the present application;
[0067] Figure 4 It is a schematic diagram of a cloud platform initialization setting provided in an embodiment of the present application;
[0068] Figure 5 This is a schematic diagram of the principle of creating an RDSH provided in an embodiment of the present application;
[0069] Figure 6 This is a flow chart of issuing an IP address when creating an RDSH, provided in an embodiment of the present application;
[0070] Figure 7 It is a schematic diagram of an IP address allocation method provided in an embodiment of the present application;
[0071] Figure 8 This is a schematic diagram of a client using a network service provided by an embodiment of the present application;
[0072] Fig. 9 This is a flow chart of a session logout provided in an embodiment of the present application;
[0073] Fig.10 It is a schematic diagram of updating an IP address provided in an embodiment of the present application;
[0074] Fig.11 is a schematic diagram of another management interface provided in an embodiment of the present application;
[0075] Fig.12 This is a schematic diagram of a flow chart of an IP address update provided in an embodiment of the present application;
[0076] Fig.13 is a schematic diagram of an address allocation system provided in an embodiment of the present application;
[0077] Fig.14 is a schematic diagram of the hardware structure of a computing device provided in an embodiment of the present application;
[0078] Fig.15 It is a schematic diagram of a computing device cluster provided in an embodiment of the present application. DETAILED DESCRIPTION
[0079] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0080] Before introducing the technical solutions provided by the embodiments of the present application, the terms involved in the present application are explained below.
[0081] Internet protocol address (IP) address: An identifier assigned to a device when it is connected to the network. Through the IP address, devices can communicate with each other. Based on the IP address, it can be determined which device is the sender and which is the receiver.
[0082] Cloud platform is the abbreviation of cloud computing platform, which can provide cloud services such as computing, network and storage based on massive hardware resources and software resources. Through the network "cloud", huge data computing is processed and analyzed remotely and then returned to the user. It has the characteristics of large-scale, distributed, virtualized, high availability, scalability, on-demand service and security. The cloud platform can quickly issue and release configurable computing resources with a small management cost or low interaction complexity between users and service providers. OpenStack is an infrastructure as a service (IAAS) cloud platform that provides a cloud operating system for managing a large number of resource pools in the entire data center. Administrators can manage the entire cloud system through the cloud platform console and provide users with available cloud resources through the web interface.
[0083] Public Cloud: Cloud infrastructure used by the general public or large industries, that is, a cloud platform accessed through a public network. Organizations that own public clouds can provide users with the ability to deploy and use cloud services on demand through leasing. Users can access public clouds through public networks (such as the Internet) to use the various network services it provides, including but not limited to computing, storage, and networking.
[0084] Virtual private cloud (VPC): An isolated, private virtual network environment on a cloud platform. Users can freely configure sub-services such as IP address segments, subnets, and security groups within a virtual private cloud.
[0085] Elastic cloud server (ECS): A basic computing component consisting of CPU, memory, operating system, and cloud hard disk, which is available at any time and elastically scalable.
[0086] Cloud Service: A service that is obtained through the Internet in an on-demand and easily scalable manner. This service can be related to network technology, software, and the Internet, or other services.
[0087] Network card (NIC): A piece of computer hardware used to allow computers to communicate on a computer network. It is also called a network interface controller.
[0088] Proxy: A special network service that allows a terminal to connect indirectly to another terminal through this service. Some network devices such as gateways and routers have network proxy functions. It is generally believed that proxy services are conducive to protecting the privacy or security of network terminals and can prevent network attacks to a certain extent.
[0089] Remote desktop protocol (RDP): A protocol that allows users to use terminal services provided by a remote device through a local device.
[0090] Remote desktop session host (RDSH): A remote desktop session host can store applications and desktops that are shared with users based on a remote desktop session (RDS).
[0091] Remote Desktop Session (RDS): When a user logs on to a Remote Desktop Session Host (RDSH), they can start a remote desktop session.
[0092] Remote desktop IP virtualization: After IP virtualization is enabled and configured on the Remote Desktop Session Host (RDSH), a unique IP address is assigned and used in the remote desktop session.
[0093] Dynamic Host Configuration Protocol (DHCP): A communication protocol that enables network administrators to centrally manage and automatically assign IP network addresses. In an IP network, each device connected to the Internet needs to be assigned a unique IP address. DHCP enables network administrators to monitor and assign IP addresses from a central node. When a computer is moved to another location on the network, it can automatically receive a new IP address.
[0094] Dynamic Host Configuration Protocol Server (DHCP Daemon): A management software for network administrators that implements the Dynamic Host Configuration Protocol (DHCP) communication protocol.
[0095] DHCP Client Daemon: A client software for hosts that implements the Dynamic Host Configuration Protocol (DHCP) communication protocol.
[0096] The application scenarios of the technical solution of this application are described below.
[0097] 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 allocate different IP addresses to different remote desktop sessions in a remote desktop session host running on the cloud platform.
[0098] In the related technology, DHCP is used to dynamically allocate IP addresses for different sessions in the remote desktop session host. Figure 1 , Figure 1 This is a schematic diagram of assigning IP addresses to remote desktop sessions based on the DHCP protocol in related technologies. When a client accesses a certain RDSH, for example RDSH2, 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) in which 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 similar. The above process is based on the fact that DHCPD can centrally manage IP addresses in the network.
[0099] In the public cloud model, DHCP cannot be used to implement IP virtualization of remote desktop sessions. The reasons are as follows:
[0100] On the one hand, DHCP cannot obtain the management authority of IP addresses in the cloud platform. In order to ensure the security of cloud services, the management side of the cloud platform, such as the virtual private cloud (VPC) deployed in the public cloud, will uniformly manage the IP addresses and other resources of the cloud platform, resulting in the DHCP server under the current DHCP architecture not having the authority to apply for and maintain IP addresses.
[0101] On the other hand, DHCP is only applicable to IP management in local networks and is difficult to apply in cloud platforms. In the public cloud model, the underlying massive resources are abstracted and provided to users in the form of cloud services. The hosts / virtual machines / containers actually used to implement cloud services may be distributed across networks, for example, in different regions, and different regions may include a data center network or multiple data center networks with similar geographical locations. The current DHCP architecture is only applicable to the management of IP resources within the local area network, and cannot guarantee the real-time dynamic allocation and release of IP addresses in the huge public cloud. For example, after the DHCP request sent by the client is received by the nearest DHCPD (in the network), it will be processed, and it is difficult to transmit it across the network to the next network, making it difficult to implement dynamic IP allocation in the public cloud.
[0102] In summary, the current DHCP technology cannot be used to implement remote desktop IP virtualization in the public cloud.
[0103] 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.
[0104] The technical solution of this application is further introduced below.
[0105] The present application embodiment provides a schematic diagram of an implementation environment, see Figure 2 , Figure 2 2 is a schematic diagram of an implementation environment provided by an embodiment of the present application, wherein the implementation environment includes a client 210 and an address allocation system 220.
[0106] In this application, the technology of providing remote sessions in the cloud host to the client is also called cloud desktop, and the RDSH running in the public cloud can also be called the remote desktop session host instance of the cloud desktop. Figure 2 The address allocation system 220 includes a cloud platform 221, which is used to provide an IP virtualization function in a public cloud.
[0107] The VPC 222 running in the address allocation system 220 is used to maintain resources such as IP addresses in the cloud platform. VPC is a logically isolated network space defined on a public cloud. Resources on the public cloud, such as cloud hosts, load balancing, etc., can all be hosted in the VPC. Administrators can customize network segmentation, IP addresses, and routing policies through VPC.
[0108] In some embodiments, the address allocation system 220 includes an elastic cloud server 223, which is used to run at least one RDSH instance. Figure 2 RDSH1 to RDSH-n in the address allocation system 220, wherein 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 the user on demand.
[0109] 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, for example, running applications, downloading files, or accessing the network (either the network within the cloud or the network outside the cloud).
[0110] 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 by the cloud platform from the VPC are obtained based on the virtualization of the IP address of the RDSH. When the client 210 accesses a session in the RDSH, the virtualized IP address allocated by the RDSH for the session can be used for network communication.
[0111] In some embodiments, reference Figure 2 , the RDSH in the address allocation system 220 is installed with a stand-alone DHCPD, which is a management software for administrators that supports the Dynamic Host Configuration Protocol (DHCP). Based on this, the RDSH in the cloud platform 220 can use DHCPD to achieve dynamic management of multiple IP addresses in a single machine.
[0112] Of course, the technical solution of the present application can also be applied to other cloud platform models, for example, a hybrid cloud that combines private cloud and public cloud for deployment, and the present application does not limit this.
[0113] 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 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 (CDN), big data and artificial intelligence platforms, and other basic cloud computing services, which are not limited in this application.
[0114] In an embodiment of the present application, the client 210 runs in a computing device, which is a terminal or a server. The terminal is, for example, a desktop, a laptop, or a smart phone, and the server is, for example, a central server, an edge server, or a local server in a local data center, which is not limited in the present application. The same is true for the client where the administrator is located. In some embodiments, the terminal where the administrator is located and the computing device accessing the RDS can be the same or different devices, which is not limited in the present application.
[0115] In some embodiments, the IP address allocation method provided in the present application can be implemented in the above-mentioned address allocation system 220 in the form of a computing instance. Among them, 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.
[0116] Among them, between the above-mentioned client 210 and the address allocation system 220, a wired network or wireless network mode communication connection can be used. In some embodiments, the wireless network or wired network uses standard communication technology and / or protocol. The network includes but is not limited to any combination of a 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 a virtual private network. In some implementations, the data exchanged by the network is represented by the technology and / or format including hypertext markup language (HTML), extensible markup language (XML), etc. In addition, conventional encryption technologies such as secure socketslayer (SSL), transport layer security (TLS), virtual private network (VPN), and network protocol security (IPsec) can be used to encrypt all or part of the links. In other embodiments, customized and / or dedicated data communication technologies can be used to replace or supplement the above-mentioned data communication technologies.
[0117] Next, based on the above application scenarios and implementation environment, combined with the following Figure 3-Figure 12The IP address allocation method provided in the embodiment of the present application is described in detail. The interaction between the client and the address allocation system is used as an example for description.
[0118] The following steps 301 to 307 introduce a brief process of allocating IP addresses for different remote desktop sessions RDS used by different clients in a public cloud.
[0119] 301. The cloud platform in the address allocation system creates a target RDSH in response to the RDSH creation instruction.
[0120] In some embodiments, 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, and 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 management interface of the cloud platform is also called the console of the public cloud.
[0121] 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. Exemplarily, 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 This is a schematic diagram of a management interface provided by this application, see Figure 3 , the administrator logs in to the management interface provided by the public cloud platform and starts to create RDSH (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 region where the target server group is located (can be a data center divided by geographical regions); the management interface provides the function of selecting an image, and the user can select the required image to create 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, Figure 3 As shown, the administrator can directly select the image with DHCPD pre-installed.
[0122] In some embodiments, the cloud platform supports presetting the application rules of the IP virtualization function of the RDSH, so that when the RDSH is created and the IP virtualization function is enabled thereafter, the IP virtualization function of the target RDSH can be enabled directly according to the preset application rules, so that the administrator can create and manage the RDSH in the public cloud mode in a simple and efficient manner. Figure 4 Make an introduction, Figure 4 It is a schematic diagram of the initialization settings of the cloud platform. Its architecture reference Figure 2Introduction in.
[0123] In some embodiments, in the initial state, the cloud platform is ready, and the administrator has not yet set the application rules of 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 sets the application rules for enabling remote desktop IP virtualization. The cloud platform saves and records the application rules set by the administrator, and the application rules can be applied to the newly created RDSH in the future.
[0124] In some embodiments, the above application rules indicate the object to which the IP virtualization function is applied, for example, a group of servers for running RDSH, or a single server for running RDSH. Accordingly, the application rules may indicate: enable the IP virtualization function for all of a group of RDSH servers, or may indicate that the IP virtualization function is enabled for a selected single RDSH server.
[0125] Through the above technical solution, a switch for the IP virtualization function is provided to the user 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.
[0126] 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.
[0127] In some embodiments, the first specification information indicates the specification of the IP address 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; the number of sessions supported by the target RDSH, for example, 2 or 3.
[0128] In some embodiments, the cloud platform obtains at least one IP address obtained by virtualizing the IP address of the RDSH in response to obtaining the first specification information in the management interface. Exemplarily, the cloud platform obtains one or more virtualized IP addresses according to the number of IP addresses indicated by the first specification information; or, the cloud platform obtains one or more virtualized IP addresses that support the number of sessions according to the number of sessions indicated by the first specification information.
[0129] 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, and the IP address configured when the network card is mounted on the physical host is the IP address of the RDSH. In this example, the cloud platform requests the VPC to obtain 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 by 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 plane 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.
[0130] 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.
[0131] In some embodiments, the cloud platform may apply for one or more virtualized IP addresses for the target RDSH. Exemplarily, the cloud platform determines the number of IP addresses based on the first specification information submitted by the user, or the cloud platform applies for the same number of IP addresses based on the product specification (e.g., number of sessions) set by the administrator when creating the target RDSH.
[0132] In some embodiments, the management interface of the cloud platform 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 used to create the target RDSH is located. In this example, the administrator selects the region where the server is located and submits it to the cloud platform, triggering the cloud platform to apply for the IP address of the target RDSH from the VPC. The VPC determines the IP address of the RDSH based on the cloud servers available in the region selected by the administrator, and then applies for the corresponding number of virtualized IP addresses based on the administrator's demand for the number of sessions.
[0133] 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 the IP virtualization function into actual business scenarios.
[0134] 303. The cloud platform sends at least one IP address obtained by virtualization to the created target RDSH.
[0135] In some embodiments, a server-side DHCPD supporting the Dynamic Host Configuration Protocol is running in the target RDSH, and the cloud platform sends at least one virtualized IP address to the stand-alone DHCPD running in the target RDSH, and the DHCPD supports the DHCP protocol and can maintain (e.g., allocate and recycle) the multiple virtualized IP addresses. Therefore, the multiple virtualized IP addresses sent by the cloud platform to the target RDSH are equivalent to the IP address source being maintained and managed by the DHCPD.
[0136] Through the above technical solution, multiple virtualized IP addresses that can be allocated by a single machine are issued to a single DHCPD running in the RDSH at the granularity of a single RDSH, so as to realize flexible management of multiple IP addresses in a single RDSH.
[0137] 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 in the dimension of each RDSH according to the same process as steps 301 to 303 above.
[0138] To facilitate understanding of the process described in the above steps 301 to 305, the present application further provides Figure 5 and Figure 6 , Figure 5 This is a schematic diagram of the principle of creating RDSH provided by this application. Figure 6 This is a flow chart of issuing IP addresses when creating RDSH provided by this application. Figure 5 and Figure 6 , the technical solutions provided in the above steps 301 to 303 are further explained.
[0139] refer to Figure 5 In the scenario where the administrator creates one or more RDSHs, the administrator logs in to the management interface (public cloud console) provided by the cloud platform, selects the server group corresponding to the remote desktop IP virtualization rule that has been set to enable, and purchases one or more RDSHs (corresponding to one or more physical hosts). Based on the dimension of a single RDSH, the cloud platform applies to the VPC for one or more virtualized IP addresses during the creation of the RDSH, and sends these virtualized IP addresses to the stand-alone DHCPD installed in the corresponding RDSH.
[0140] refer to Figure 6, the administrator submits the task of creating RDSH to the cloud platform through the public cloud console provided by the cloud platform; the cloud platform returns a successful response to the console and submits the task of creating RDSH to the Elastic Cloud Server (ECS); after receiving the response returned by ECS, the cloud platform applies to VPC for the virtualized IP address assigned to RDSH, and sends the received virtualized IP address to RDSH; the stand-alone DHCPD in RDSH receives and saves these virtualized IP addresses as the source of IP addresses that can be allocated. The stand-alone DHCPD in RDSH starts DHCP protocol monitoring and provides DHCP protocol support capabilities.
[0141] The above steps 301 to 303 introduce the process of creating RDSH and the process of issuing multiple available virtualized IP addresses. The following introduces the process of dynamically allocating IP addresses when a client accesses RDSH.
[0142] 304. 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.
[0143] In some embodiments, the first creation request carries host information, and the cloud platform can determine the target RDSH according to the host information, thereby forwarding the first creation request to the target RDSH. The host information may 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.
[0144] In other embodiments, the cloud platform determines a target RDSH host for providing RDSH services for the first client based on a load balancing strategy.
[0145] 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.
[0146] In some embodiments, a server DHCPD supporting the Dynamic Host Configuration Protocol is running in the target RDSH, and the DHCPD supports the DHCP protocol and can maintain (e.g., allocate and reclaim) 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.
[0147] In order to facilitate understanding of the above steps 304 to 305, the present application Figure 5 Provided on the basis of Figure 7 , Figure 7 This is a flowchart of an IP address allocation method provided in an embodiment of the present application, refer to Figure 7 and Figure 5 After the client sends the first creation request, it accesses RDSH through RDP. RDSH marks the connection with RDP1, creates the corresponding first session RDS1, and associates the client's connection RDP1 with the first session RDS1. RDSH sends a DHCP request to apply for an IP address for the first session from the running DHCPD. The stand-alone DHCPD in RDSH receives the request, responds and allocates virtualized IP address 1. 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.
[0148] 306. The target RDSH returns the first IP address to the cloud platform.
[0149] In some embodiments, based on the first IP address returned by the target RDSH, the cloud platform can determine at which time, which client, and which session in which RDSH used the first IP address for network communication. Therefore, the cloud platform can effectively manage and trace the users of the remote desktop sessions, thereby ensuring the security of remote desktop sessions in the public cloud.
[0150] 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.
[0151] In some embodiments, the cloud platform returns the IP address of the target RDSH (for example, 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, reducing the forwarding and interaction overhead of the cloud platform.
[0152] Similar to the above steps 304-307, for the second client using the target RDSH, the process of allocating an IP address by the address allocation system 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).
[0153] In some 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. Figure 8 Make an introduction. Figure 8 This is a schematic diagram of a client using a network service provided by the present application.
[0154] refer to Figure 8 In a secure Internet access scenario controlled by an enterprise proxy server, user A of the enterprise network uses a remote desktop session in RDSH to log in to the proxy server using proxy software to access the external network, including the following steps (1) to (5):
[0155] (1) User A accesses RDSH through RDP via the client, marked as RDP1, and RDSH creates the corresponding RDS1; RDSH sends a DHCP request to apply for an IP address.
[0156] (2) The stand-alone DHCPD in the RDSH receives the request, responds, and allocates virtualized IP address 1. The RDSH obtains IP address 1 and associates RDS1 with IP address 1. User A can use IP address 1 as the IP address for subsequent network communications through the client.
[0157] (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.
[0158] (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.
[0159] (5) User A uses the authenticated IP address 1 to access the proxy server to access network resources through the proxy server.
[0160] User B goes through the same process from step (1) to step (5), and then uses the authenticated IP address 2 to access the network resources through the proxy server.
[0161] In the above process, user A and user B can use network services based on different IP addresses without affecting each other.
[0162] Therefore, this application can at least achieve: the client uses the unique IP address in the RDSH for network access in a specified session of the specified RDSH; different clients use different IP addresses for network access in the same RDSH; the same client uses different IP addresses in different sessions. 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.
[0163] In some other embodiments, the RDSH releases the virtual IP address assigned to the RDS in response to the session logout request for the RDS. Fig. 9 The deregistration process includes: the first client requests to deregister the connection RDP1 with the RDSH. The RDSH receives the request and deregisters the related resources of the first session RDS1 associated with RDP1. The RDSH issues a DHCP request to request the release of IP address 1 associated with RDS1. The stand-alone DHCPD in the RDSH receives the request, reclaims IP address 1, and uses it for subsequent redistribution to other connected RDPs. The RDSH disassociates RDS1 from IP address 1 and completes the deregistration of the session.
[0164] 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 based on DHCP customization 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.
[0165] Therefore, the IP address allocation method provided in the present 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.
[0166] The above embodiment introduces the principle of how to issue virtualized IP addresses available for allocation during the process of creating RDSH so that RDSH can allocate different IP addresses to different sessions. In other embodiments, based on the above embodiment, it is also supported to update the virtualized IP addresses allocated to RDSH during the operation of RDSH. Fig.10 This is a schematic diagram of updating the IP address provided by this application. Fig.10 , which is introduced in combination with step 1001 and step 1002.
[0167] 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.
[0168] 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. 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.
[0169] In some embodiments, the cloud platform determines a method for updating the virtualized IP address allocated to the target RDSH by comparing the first quantity currently available to the RDSH with the second quantity indicated by the second specification information. The quantity may be the number of sessions or the number of IP addresses.
[0170] 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 obtains at least one IP address virtualized after the update based on the IP address released this time. Based on this, the cloud platform can release redundant IP addresses in time. 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 at least one IP address virtualized after the update is obtained based on the virtualized IP address newly applied for this time. Based on this, the cloud platform can replenish the available IP addresses in time. In summary, the real-time performance of IP resource management can be improved.
[0171] In some embodiments, the number of IP addresses obtained through virtualization after the update is greater than or equal to the number of sessions corresponding to the target RDSH updated product specification.
[0172] refer to Fig.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 an 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.
[0173] 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.
[0174] 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 address used by the target RDSH. In this example, the administrator triggers the update process for the target RDSH in the management interface.
[0175] Fig.11 This is a schematic diagram of another management interface provided by this application, refer to Fig.11 , the administrator logs in to the public cloud console (management interface) and updates the IP source of the target RDSH. Fig.11 As shown, 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. Fig.11 The server group used to run the target RDSH instance has the IP virtualization function enabled. See the management area of the target RDSH instance. In the "More" option, you can update the virtual IP.
[0176] 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 for 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 the service.
[0177] The above is a case where the IP address of the target RDSH is updated. In some embodiments, the IP update instruction can be for multiple RDSHs. The cloud platform can apply for or release the virtualized IP address from the VPC at the granularity of a single RDSH in the same manner as above.
[0178] The above technical solution provides active and passive update initiation methods for dynamically updating the IP address source of RDSH from the dimension of each RDSH, which 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.
[0179] 1002. The cloud platform sends at least one IP address obtained through virtualization after the update to the target RDSH.
[0180] In some embodiments, a server DHCPD supporting the Dynamic Host Configuration Protocol runs in the target RDSH.
[0181] In some embodiments, the stand-alone DHCPD in the target RDSH receives and saves the at least one IP address obtained by virtualization after the update, and restarts the DHCP protocol monitoring, using the at least one IP address obtained by virtualization after the update as a source of IP addresses available for allocation, and continuing to provide DHCP protocol support capabilities.
[0182] In other embodiments, the stand-alone DHCPD in the target RDSH can update the maintained IP address source online according to the IP address obtained by virtualization after the update without restarting. Exemplarily, if DHCPD detects that a new IP address is added to the IP address obtained by virtualization after the update, the new IP address is 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 is 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 is deleted after the part of the IP address is recovered.
[0183] Through the above technical solution, a stand-alone DHCPD is customized for each RDSH based on the DHCP protocol in the public cloud. DHCPD can dynamically allocate, recycle or reuse IP addresses in a stand-alone RDSH, and supports dynamic updating of IP address sources. Based on this, the utilization efficiency of IP addresses can be fully guaranteed. When providing network services based on RDSH, the scalability of public cloud services can be improved through dynamically allocated virtualized IP addresses.
[0184] In order to facilitate the understanding of the above update process, this application provides a flowchart of IP address update, refer to Fig.12 An exemplary IP address update process includes the following steps 1 to 4:
[0185] 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.
[0186] 2. The cloud platform determines the existing virtualized IP addresses of the target RDSH based on the instructions submitted by the user, and compares the numbers (refer to step 1001), and determines to apply to the VPC management plane to add or release redundant virtualized IP addresses.
[0187] 3. The cloud platform sends one or more IP addresses obtained through virtualization after the update to the stand-alone DHCPD installed in the RDSH.
[0188] 4. The stand-alone DHCPD receives and saves the updated virtualized IP address, restarts the DHCP protocol monitoring, uses the updated virtualized IP address as the source of IP addresses that can be allocated, and continues to provide DHCP protocol support capabilities.
[0189] The IP address allocation method provided in the present 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 the various network services provided by the cloud platform, the security, privacy and scalability of the network services can be fully guaranteed.
[0190] 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 improve the utilization efficiency of IP addresses, and ensure that the number of IP addresses supports the business needs of the products.
[0191] Fig.13 is a schematic diagram of an address allocation system provided in an embodiment of the present application. Fig.13 ,The address allocation system includes a cloud platform and RDSH, where the cloud platform is used to provide public cloud services;
[0192] The cloud platform 1301 is used 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 to establish a first session with the target RDSH 1302;
[0193] The target RDSH 1302 is used 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;
[0194] The target RDSH 1302 is used to return the first IP address to the cloud platform 1301;
[0195] The cloud platform 1301 is used 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.
[0196] In a possible implementation manner, the cloud platform 1301 is further used to receive a second creation request sent by a second client, and forward the second creation request to the target RDSH 1302, where the second creation request is used to request to establish a second session with the target RDSH 1302;
[0197] The target RDSH 1302 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 1302;
[0198] The target RDSH 1302 is also used to return the second IP address to the cloud platform 1301;
[0199] 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.
[0200] In one possible implementation, the cloud platform 1301 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 1302. The IP virtualization function includes: enabling the RDSH to use multiple IP addresses obtained by virtualizing the IP address of the RDSH.
[0201] 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 the management interface of the cloud platform 1301, obtain at least one IP address obtained by virtualizing the IP address of the target RDSH 1302 according to the first specification information during the process of creating the target RDSH 1302, and send the at least one virtualized IP address to the target RDSH 1302, wherein 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;
[0202] 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, wherein 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.
[0203] In one possible implementation, the cloud platform 1301 is used to:
[0204] Comparing a first quantity currently available to the target RDSH 1302 with a second quantity indicated by the second specification information;
[0205] When the second number is less than the first number, determine the IP address released this time, and based on the IP address released this time, obtain at least one IP address obtained by IP address virtualization based on the RDSH after update;
[0206] 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 virtualized IP address after the update is acquired.
[0207] In one possible implementation, the cloud platform 1301 is used to perform at least one of the following:
[0208] 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;
[0209] In response to detecting that the usage of the target RDSH 1302 in the cloud platform 1301 meets the update conditions, the cloud platform 1301 triggers an IP update instruction.
[0210] In one possible implementation, the target RDSH 1302 is further configured to:
[0211] In response to a logout request from the first client for the first session, a first IP address allocated to the first session is released.
[0212] In one possible implementation, the target RDSH 1302 is further configured to:
[0213] 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.
[0214] Among them, the cloud platform 1301 and the target RDSH 1302 are equivalent to the functional modules deployed in the address allocation system, and can be implemented by software or hardware. Exemplarily, the implementation method of the cloud platform 1301 is introduced below by taking the cloud platform 1301 as an example. Similarly, the implementation method of the target RDSH 1302 can refer to the implementation method of the cloud platform 1301.
[0215] Through the above technical solution, remote desktop IP virtualization is implemented 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.
[0216] 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 improve the utilization efficiency of IP addresses, and ensure that the number of IP addresses supports the business needs of the products.
[0217] Functional module As an example of a software functional unit, cloud platform 1301 may include code running on a computing instance. Among them, the computing instance may include at least one of a physical host (computing device), a virtual machine, and a container. Further, the above-mentioned computing instance may be one or more. For example, 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 can be distributed in the same region (region) or in different regions. Furthermore, the multiple hosts / virtual machines / containers used to run the code can be distributed in the same availability zone (AZ) or in different AZs, each AZ including one data center or multiple data centers with close geographical locations. Among them, usually a region can include multiple AZs.
[0218] Similarly, multiple hosts / virtual machines / containers used to run the code can be distributed in the same virtual private cloud (VPC) or in multiple VPCs. Usually, a VPC is set up in a region. For cross-region communication between two VPCs in the same region and between VPCs in different regions, a communication gateway needs to be set up in each VPC to achieve interconnection between VPCs through the communication gateway.
[0219] As an example of a hardware functional unit, the cloud platform 1301 may include at least one computing device, such as a server, etc. Alternatively, the cloud platform 1301 may also be a device implemented using an application-specific integrated circuit (ASIC) or a programmable logic device (PLD). The PLD may be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.
[0220] The multiple computing devices included in the cloud platform 1301 can be distributed in the same region or in different regions. The multiple computing devices included in the cloud platform 1301 can be distributed in the same AZ or in different AZs. Similarly, the multiple computing devices included in the cloud platform 1301 can be distributed in the same VPC or in multiple VPCs. The multiple computing devices can be any combination of computing devices such as servers, ASICs, PLDs, CPLDs, FPGAs, and GALs.
[0221] 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 realize all the functions of the address allocation system. That is, when the address allocation system provided in the above embodiment implements the corresponding steps, it only uses the division of the above functional modules as an example. 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 belongs to the same concept as the IP address allocation method embodiment. The specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0222] The following is an introduction to the hardware structure of the computing device involved in the embodiments of the present application.
[0223] The embodiment of the present application provides a computing device cluster, which includes at least one computing device. The computing device can 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 can also be a terminal device such as a desktop computer, a laptop computer, or a smart phone.
[0224] The present application embodiment provides a computing device that can be configured as a computing device included in the computing device cluster. Fig.14 , Fig.14 14 is a schematic diagram of the hardware structure of a computing device provided in an embodiment of the present application. As shown in FIG14, the computing device 1400 includes a memory 1401, a processor 1402, a communication interface 1403 and a bus 1404. The memory 1401, the processor 1402 and the communication interface 1403 are connected to each other through the bus 1404.
[0225] The memory 1401 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store 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 compressed optical 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 that can be used to carry or store the desired program code in the form of an instruction or data structure and can be accessed by a computer, but is 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 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.
[0226] 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-CPU processor or a 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 communication networks. For example, a request sent by a client may be obtained through the communication interface 1403.
[0227] The memory 1401 and the processor 1402 may be separately provided or integrated together.
[0228] 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 ).
[0229] The same instructions for executing the IP address allocation method provided in the present application may be stored in the memory of one or more computing devices in the computing device cluster. In some possible implementations, partial instructions for executing the IP address allocation method provided in the present application may also be stored in the memory of one or more computing devices in the computing device cluster. In other words, a combination of one or more computing devices can jointly execute instructions for executing the IP address allocation method provided in the present application.
[0230] In some possible implementations, one or more computing devices in the computing device cluster may be connected via a network, which may be a wide area network or a local area network, etc. Fig.15 is a schematic diagram of a computing device cluster provided in an embodiment of the present application, see Fig.15 One or more computing devices 1400 in the computing device cluster are connected via a network. For the introduction of the computing device 1400, please refer to the previous text and will not be repeated here.
[0231] 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 relevant countries and regions. For example, the IP address, user credentials and other information involved in this application are all obtained with full authorization.
[0232] In this application, the words such as the term "first", "second", etc. are used to distinguish the same or similar items with substantially the same effects and functions. It should be understood that there is no logical or temporal dependency between "first", "second", and "nth", and the quantity and execution order are not 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 examples described, 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. Both the first IP address and the second IP address can be IP addresses, and in some cases, can be separate and different IP addresses.
[0233] In this application, the term "at least one" means one or more, and the term "multiple" means two or more. For example, multiple IP addresses means two or more IP addresses.
[0234] The above description is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0235] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware, or any combination thereof. When implemented by 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 in the embodiments of the present application are generated.
[0236] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, 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.
[0237] 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 aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned 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, 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, 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, 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, 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, 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, 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 usage of the target RDSH in the cloud platform meets update conditions, the cloud platform triggers the IP update instruction.
7. The method according to any one of claims 1 to 6, 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, 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, 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, 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, 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 based on the IP address virtualization of the RDSH.
12. The system according to any one of claims 9 to 11, 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, 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, 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, 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, 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, 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, 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, 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
Cited By
Internet protocol (IP) address assignment method and address assignment system
EP4683300A1
Internet protocol (IP) address assignment method and address assignment system
WO2024198619A1
