Cloud application use method and device, electronic device and storage medium

By judging and processing login requests from different computer rooms in cloud applications and converting IP addresses using VPN services, the frequent verification problems caused by cloud applications being logged in remotely, and the user experience and efficiency are improved.

CN118869693BActive Publication Date: 2024-12-17HAIMA CLOUD TIANJIN INFORMATION TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411340686.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-25
Publication Date
2024-12-17
Estimated Expiration
2044-09-25

Smart Images

  • Figure CN118869693B_ABST
    Figure CN118869693B_ABST
Patent Text Reader

Abstract

The present application provides a method and device for using a cloud application, an electronic device and a storage medium, the method comprising: after a first user is routed to a first cloud server, if it is determined that the computer room to which the first cloud server belongs is different from the computer room to which a second cloud server belongs, after the application in the first cloud server is started, a login request is generated according to the account archive information of the second user, and the login request is forwarded to the application server after being processed by a target VPN service, wherein the second user last used the application using the second cloud server, and the target VPN service is the VPN service of the computer room where the second cloud server is located, the processing comprises converting the source IP address carried in the received login request into the IP address of the computer room to which the second cloud server belongs; after successfully logging into the account of the second user, the application screen rendered during the running of the application is pushed to the first user terminal, which can improve the use experience and efficiency of the cloud application.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of cloud applications, and in particular to a cloud application use method and device, electronic equipment and storage medium. Background Art

[0002] Cloud applications (such as cloud games) are an emerging online application model that places application rendering and encoding on cloud servers and transmits application images to user terminals. This eliminates the need for high-performance hardware support, and users can enjoy high-quality application experience on a variety of terminal devices.

[0003] Cloud application data centers are located in various provinces. Cloud application servers will dispatch users to the data center closest to them based on their location to achieve lower streaming latency. When users frequently change locations or share accounts with friends and family in different provinces, they will often be routed to different cloud application data centers when using cloud applications, which will cause the application to identify the login as remote or the account is at risk of being stolen, requiring re-login or facial recognition verification. This requires frequent operations by the cloud application account owner, greatly affecting the user experience and efficiency.

[0004] Therefore, how to provide a cloud application usage solution to improve the user experience and efficiency of cloud applications has become a technical problem that needs to be solved urgently. Summary of the invention

[0005] In order to solve the technical problems existing in the prior art, the embodiments of the present application provide a cloud application using method and device, an electronic device and a storage medium.

[0006] In a first aspect, an embodiment of the present application provides a method for using a cloud application, including:

[0007] After the first user is routed to the first cloud server, if it is determined that the computer room to which the first cloud server belongs is different from the computer room to which the second cloud server belongs, after the application in the first cloud server is started, a login request is generated according to the account archive information of the second user, and the login request is forwarded to the application server after being processed by the target VPN service, wherein the second user last used the application using the second cloud server, and the target VPN service is the VPN service of the computer room where the second cloud server is located, and the processing includes converting the source IP address carried in the received login request into the IP address of the computer room to which the second cloud server belongs;

[0008] After successfully logging into the second user's account, the application screen rendered during the running of the application is pushed to the first user terminal.

[0009] In a second aspect, an embodiment of the present application further provides a cloud application using device, including:

[0010] A generating unit, for generating a login request according to the account archive information of the second user after the application in the first cloud server is started, if it is determined that the computer room to which the first cloud server belongs is different from the computer room to which the second cloud server belongs after the first user is routed to the first cloud server, and forwarding the login request to the application server after processing by the target VPN service, wherein the second user last used the application using the second cloud server, the target VPN service is the VPN service of the computer room where the second cloud server is located, and the processing includes converting the source IP address carried in the received login request into the IP address of the computer room to which the second cloud server belongs;

[0011] The streaming unit is used to stream the application screen rendered during the running of the application to the first user terminal after successfully logging into the second user's account.

[0012] In a third aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the cloud application use method described in the first aspect are executed.

[0013] In a fourth aspect, an embodiment of the present application further provides an electronic device, comprising: a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium through the bus, and the processor executes the machine-readable instructions to perform the steps of the cloud application usage method as described in the first aspect.

[0014] In summary, the cloud application usage method and device, electronic device and storage medium provided in the embodiments of the present application, after routing the first user to the first cloud server, if it is determined that the computer room to which the first cloud server belongs is different from the computer room to which the second cloud server belongs, then after the application in the first cloud server is started, a login request is generated according to the account archive information of the second user, and the login request is forwarded to the application server after being processed by the target VPN service. In the entire scheme, because the account information in the login request is the account information of the second user, and the source IP address in the login request is the IP address of the computer room to which the second cloud server used by the second user for the last time using the application belongs, the application server will consider that the login request is issued by the second user terminal, thereby passing the security verification, thereby reducing the need for re-login or face recognition verification in cloud application services, thereby improving the usage experience and efficiency of cloud applications. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 A flowchart of an embodiment of a method for using a cloud application provided in an embodiment of the present application;

[0016] Figure 2 A schematic diagram of the structure of an embodiment of a cloud application using device provided in an embodiment of the present application;

[0017] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0018] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of explanation and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart under the guidance of the content of the present application, or remove one or more operations from the flowchart.

[0019] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0020] It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the existence of the features declared thereafter, but does not exclude the addition of other features.

[0021] Reference Figure 1 As shown, an embodiment of the present application provides a flow chart of a method for using a cloud application, and the method for using a cloud application includes:

[0022] S10. After the first user is routed to the first cloud server, if it is determined that the computer room to which the first cloud server belongs is different from the computer room to which the second cloud server belongs, after the application in the first cloud server is started, a login request is generated according to the account archive information of the second user, and the login request is forwarded to the application server after being processed by the target VPN service, wherein the second user last used the application using the second cloud server, and the target VPN service is the VPN service of the computer room where the second cloud server is located, and the processing includes converting the source IP address carried in the received login request into the IP address of the computer room to which the second cloud server belongs;

[0023] In this embodiment, it should be noted that when the second user applies to use the application once, the central cloud server routes the second user to the third cloud server. Then, the files generated after the installation package of the application on the storage server is installed are mounted on the third cloud server to implement the application on the third cloud server without installation. Then, the application is started on the third cloud server, the application server is accessed, the video stream is obtained and pushed to the second user terminal for display of the login interface. Then, the second user enters the user name and password to log in. After the login is successful, the second user can use the application, and the account information of the second user will be archived by the central cloud server. At the same time, the central cloud server will also record the corresponding relationship between the second user and the third cloud server / the computer room where the third cloud server is located. The second user's use of the application this time is the second user's last or non-last use of the application. When using the application this time, a login operation is required (for example, the second user uses the application for the first time or the second user has not used the application for a long time or the second user logs in remotely, etc., and the application server requires the second user to log in). Every time the second user uses the application, the central cloud server will update the corresponding relationship to the corresponding relationship between the second user and the cloud server to which the second user is routed / the computer room where the cloud server is located. The cloud server to which the second user was routed when using the application for the last time is the second cloud server.

[0024] The first user and the second user may be the same or different. When the first user applies to use the application, the central cloud server routes the first user to the first cloud server, and sends the recorded correspondence between the second user and the second cloud server / the computer room where the second cloud server is located to the first cloud server. The first cloud server downloads the account archive information of the second user, and determines whether the computer room to which the first cloud server belongs and the computer room to which the second cloud server belongs are the same according to the correspondence. If they are not the same, a VPN tunnel is established between the VPN services (i.e., the target VPN service) in the computer rooms where the first cloud server and the second cloud server are located. After that, the application is started on the first cloud server. After the startup is completed, a login request is generated according to the account archive information of the second user, and the login request is sent to the target VPN service through the VPN tunnel. The target VPN service converts the source IP address in the login request to the IP address of the computer room to which the second cloud server belongs and then sends it to the application server. Converting the source IP address to the IP address of the computer room to which the second cloud server belongs may include: converting the source IP address to the egress IP address of the second cloud server or converting the source IP address to one of all the egress IP addresses of the computer room to which the second cloud server belongs. It should be noted that at least one VPN service is deployed in each computer room. After the login verification of the application server is passed, the first user can successfully log in to the second user account. In addition, it should be noted that if it is determined based on the corresponding relationship that the computer room to which the first cloud server belongs is the same as the computer room to which the second cloud server belongs, the first server does not establish a connection with the target VPN service, and the subsequent application in the first server directly accesses the application server.

[0025] S11. After successfully logging into the second user's account, streaming the application screen rendered during the running of the application to the first user terminal.

[0026] In this embodiment, it should be noted that after successfully logging into the second user account, the first user can use the application. The application in the first cloud server renders the audio and video data and pushes the stream to the first user terminal.

[0027] The cloud application usage method provided in the embodiment of the present application, after routing the first user to the first cloud server, if it is determined that the computer room to which the first cloud server belongs is different from the computer room to which the second cloud server belongs, then after the application in the first cloud server is started, a login request is generated according to the account archive information of the second user, and the login request is forwarded to the application server after being processed by the target VPN service. In the entire scheme, because the account information in the login request is the account information of the second user, and the source IP address in the login request is the IP address of the computer room to which the second cloud server used by the second user for the last time using the application belongs, the application server will consider that the login request is issued by the second user terminal, thereby passing the security verification, thereby reducing the need for re-login or face recognition verification in cloud application services, thereby improving the usage experience and efficiency of cloud applications.

[0028] Based on the foregoing method embodiment, the method may further include:

[0029] Before the application is started, obtaining information about the computer room to which the second cloud server belongs, and determining whether the computer room to which the first cloud server belongs is the same as the computer room to which the second cloud server belongs;

[0030] If the computer room to which the first cloud server belongs is different from the computer room to which the second cloud server belongs, information of the target VPN service is obtained, and a VPN tunnel is established between the first cloud server and the target VPN service according to the information of the target VPN service.

[0031] In this embodiment, it should be noted that the first cloud server determines the information of the computer room to which the second cloud server belongs and the information of the target VPN service according to the corresponding relationship between the second user and the second cloud server / the computer room where the second cloud server is located.

[0032] Based on the foregoing method embodiment, the method may further include:

[0033] If it is determined that the login to the second user's account is successful, the connection between the first cloud server and the target VPN service is disconnected.

[0034] In this embodiment, it should be noted that after the first user successfully logs in to the second user account, the connection between the first cloud server and the target VPN service can be disconnected or not. Specifically, it can be determined whether the first user successfully logs in to the second user account. If the first user successfully logs in, the connection between the first cloud server and the target VPN service can be disconnected. In addition, the first cloud server can always maintain an external connectivity test. If the test result shows that the connection is disconnected multiple times, the connection between the first cloud server and the target VPN service is disconnected to ensure that the first user can use the application normally.

[0035] Based on the foregoing method embodiment, the method may further include:

[0036] If it is determined that the computer room to which the first cloud server belongs is the same as the computer room to which the second cloud server belongs, after the application in the first cloud server is started, a login request is generated according to the account archive information of the second user, and the login request is directly sent to the application server.

[0037] Reference Figure 2 FIG. 1 is a schematic diagram of a cloud application using device provided in an embodiment of the present application, the device comprising:

[0038] The generating unit 20 is used for, after the first user is routed to the first cloud server, if it is determined that the computer room to which the first cloud server belongs is different from the computer room to which the second cloud server belongs, generating a login request according to the account archive information of the second user after the application in the first cloud server is started, and forwarding the login request to the application server after processing by the target VPN service, wherein the second user last used the application using the second cloud server, the target VPN service is the VPN service of the computer room where the second cloud server is located, and the processing includes converting the source IP address carried in the received login request into the IP address of the computer room to which the second cloud server belongs;

[0039] The streaming unit 21 is used to stream the application screen rendered during the running of the application to the first user terminal after successfully logging into the second user's account.

[0040] The cloud application usage device provided in the embodiment of the present application, after routing the first user to the first cloud server, if it is determined that the computer room to which the first cloud server belongs is different from the computer room to which the second cloud server belongs, then after the application in the first cloud server is started, a login request is generated according to the account archive information of the second user, and the login request is forwarded to the application server after being processed by the target VPN service. In the entire scheme, because the account information in the login request is the account information of the second user, and the source IP address in the login request is the IP address of the computer room to which the second cloud server used by the second user for the last time using the application belongs, the application server will consider that the login request is issued by the second user terminal, thereby passing the security verification, thereby reducing the need for re-login or face recognition verification in cloud application services, thereby improving the usage experience and efficiency of cloud applications.

[0041] Based on the above device embodiment, the device may further include:

[0042] a judgment unit, configured to obtain information about a computer room to which the second cloud server belongs before the application is started, and to judge whether the computer room to which the first cloud server belongs is the same as the computer room to which the second cloud server belongs;

[0043] The establishing unit is used to obtain information of a target VPN service if the computer room to which the first cloud server belongs is different from the computer room to which the second cloud server belongs, and to establish a VPN tunnel between the first cloud server and the target VPN service according to the information of the target VPN service.

[0044] Based on the above device embodiment, the device may further include:

[0045] The disconnection unit is used to disconnect the connection between the first cloud server and the target VPN service if it is determined that the login to the second user's account is successful.

[0046] Based on the above device embodiment, the generating unit may also be used for:

[0047] If it is determined that the computer room to which the first cloud server belongs is the same as the computer room to which the second cloud server belongs, after the application in the first cloud server is started, a login request is generated according to the account archive information of the second user, and the login request is directly sent to the application server.

[0048] The cloud application usage device provided in the embodiment of the present application has an implementation process that is consistent with the cloud application usage method provided in the embodiment of the present application, and the effects that can be achieved are also the same as those of the cloud application usage method provided in the embodiment of the present application, and will not be repeated here.

[0049] like Figure 3 As shown, an electronic device provided by an embodiment of the present application includes: a processor 30, a memory 31 and a bus 32, wherein the memory 31 stores machine-readable instructions executable by the processor 30, and when the electronic device is running, the processor 30 communicates with the memory 31 through the bus 32, and the processor 30 executes the machine-readable instructions to perform the steps of the above-mentioned cloud application usage method.

[0050] Specifically, the above-mentioned memory 31 and processor 30 can be general-purpose memory and processor, which are not specifically limited here. When the processor 30 runs the computer program stored in the memory 31, the above-mentioned cloud application usage method can be executed.

[0051] Corresponding to the above-mentioned cloud application use method, an embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned cloud application use method are executed.

[0052] The above are only specific implementations 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 changes or substitutions within the technical scope disclosed in the present application, which 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.

Claims

1. A method for using a cloud application, characterized in that: include: After the first user is routed to the first cloud server, if it is determined that the computer room to which the first cloud server belongs is different from the computer room to which the second cloud server belongs, after the application in the first cloud server is started, a login request is generated according to the account archive information of the second user, and the login request is forwarded to the application server after being processed by the target VPN service, wherein the second user last used the application using the second cloud server, and the target VPN service is the VPN service of the computer room where the second cloud server is located, and the processing includes converting the source IP address carried in the received login request into the IP address of the computer room to which the second cloud server belongs; After successfully logging into the second user's account, the application screen rendered during the running of the application is pushed to the first user terminal.

2. The method according to claim 1, characterized in that Also includes: Before the application is started, obtaining information about the computer room to which the second cloud server belongs, and determining whether the computer room to which the first cloud server belongs is the same as the computer room to which the second cloud server belongs; If the computer room to which the first cloud server belongs is different from the computer room to which the second cloud server belongs, information of the target VPN service is obtained, and a VPN tunnel is established between the first cloud server and the target VPN service according to the information of the target VPN service.

3. The method according to claim 1 or 2, characterized in that Also includes: If it is determined that the login to the second user's account is successful, the connection between the first cloud server and the target VPN service is disconnected.

4. The method according to claim 1, characterized in that Also includes: If it is determined that the computer room to which the first cloud server belongs is the same as the computer room to which the second cloud server belongs, after the application in the first cloud server is started, a login request is generated according to the account archive information of the second user, and the login request is directly sent to the application server.

5. A cloud application using device, characterized in that: include: A generating unit, for generating a login request according to the account archive information of the second user after the application in the first cloud server is started, if it is determined that the computer room to which the first cloud server belongs is different from the computer room to which the second cloud server belongs after the first user is routed to the first cloud server, and forwarding the login request to the application server after processing by the target VPN service, wherein the second user last used the application using the second cloud server, the target VPN service is the VPN service of the computer room where the second cloud server is located, and the processing includes converting the source IP address carried in the received login request into the IP address of the computer room to which the second cloud server belongs; The streaming unit is used to stream the application screen rendered during the running of the application to the first user terminal after successfully logging into the second user's account.

6. The device according to claim 5, characterized in that Also includes: a judgment unit, configured to obtain information about a computer room to which the second cloud server belongs before the application is started, and to judge whether the computer room to which the first cloud server belongs is the same as the computer room to which the second cloud server belongs; The establishing unit is used to obtain information of a target VPN service if the computer room to which the first cloud server belongs is different from the computer room to which the second cloud server belongs, and to establish a VPN tunnel between the first cloud server and the target VPN service according to the information of the target VPN service.

7. The device according to claim 5 or 6, characterized in that Also includes: The disconnection unit is used to disconnect the connection between the first cloud server and the target VPN service if it is determined that the login to the second user's account is successful.

8. The device according to claim 5, characterized in that The generating unit is further used for: If it is determined that the computer room to which the first cloud server belongs is the same as the computer room to which the second cloud server belongs, after the application in the first cloud server is started, a login request is generated according to the account archive information of the second user, and the login request is directly sent to the application server.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the cloud application use method according to any one of claims 1 to 4 are executed.

10. An electronic device, characterized in that: include: A processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor. When the electronic device is running, the processor communicates with the storage medium via the bus, and the processor executes the machine-readable instructions to perform the steps of the cloud application use method as described in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Login method and system based on cloud application instance, and related equipment

    CN113595968A

  • Synchronization method and device of login account, equipment and medium

    CN113676528A

  • Cloud application instance sharing method and system, equipment and storage medium

    CN115134348A

  • Cloud access acceleration method, device and system, electronic equipment and storage medium

    CN116233216A

  • Cloud game security verification method, device and equipment

    CN116421977A