Business processing method, apparatus, and storage medium
By using a multi-dimensional scoring and candidate set mechanism for edge servers in cloud gaming terminals, the problem of uneven edge server resources in cloud gaming is solved, improving user experience and server resource utilization.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- TENCENT TECHNOLOGY (SHENZHEN) CO LTD
- Filing Date
- 2021-04-19
- Publication Date
- 2026-05-19
AI Technical Summary
In cloud gaming scenarios, existing technologies often address the issue of how to rationally allocate edge servers to user terminals to ensure low latency and high stability, resulting in uneven server resource allocation and impacting user experience.
By acquiring multi-dimensional reference information from edge servers and terminals, a connection reference score is calculated to form a candidate set. The terminal selects a suitable edge server for connection, ensuring a balanced allocation of server resources.
This enabled the rational allocation of edge servers, improved the user experience of cloud gaming, and avoided the waste of server resources and user waiting time.
Smart Images

Figure CN113018871B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to an information processing method, apparatus, related equipment and storage medium. Background Technology
[0002] Cloud applications refer to a new type of application that transforms the traditional method of local software installation and computation into an on-demand service. It connects to and controls remote server clusters via the internet or local area network to complete logical or computational tasks. Simply put, a cloud application means that the operation and computation of an application rely on cloud servers, while the terminal is only responsible for displaying the visuals. Cloud gaming, a typical example of a cloud application, is an online gaming technology based on cloud computing. Cloud gaming technology enables lightweight devices with relatively limited graphics processing and data processing capabilities to run high-quality games. In a cloud gaming scenario, the game does not run on the player's terminal but on a cloud server. The cloud server renders the game scene as a video and audio stream, which is then transmitted to the player's terminal via the network. The player's terminal does not need powerful graphics processing and data processing capabilities; it only needs basic streaming media playback capabilities and the ability to receive player input commands and send them to the cloud server.
[0003] Cloud applications require extremely low network latency and high network stability. Traditional network environments clearly cannot meet these requirements. Therefore, cloud applications typically deploy edge servers to provide users with stable network quality. This involves deploying edge servers in locations closer to users, even further down the network. These edge servers can provide cloud application services, and their physical proximity to users results in lower and more stable network latency. To allow as many users as possible to access the network from nearby locations, numerous edge servers are deployed. Therefore, in practical applications, how to allocate appropriate edge server access to users has become a hot research topic. Summary of the Invention
[0004] This invention provides a business processing method, apparatus, and storage medium that can achieve balanced allocation of connectable edge servers to terminals.
[0005] On one hand, embodiments of the present invention provide a business processing method, including:
[0006] When an allocation request is received from the target terminal, N selection reference information related to the target terminal and the running reference information required to run the target cloud application are obtained from any edge server. N is an integer greater than or equal to 2. The allocation request is sent when the target cloud application starts running in the target terminal.
[0007] If, based on the N selection reference information and the operation reference information, it is determined that any edge server meets the requirement of providing the target cloud application operation services for the target terminal, then the connection reference score corresponding to any edge server is determined based on the N selection reference information and the connection reference score determination rule.
[0008] Store the connection reference score corresponding to any edge server and the identification information of any edge server into a candidate set. The candidate set includes the identification information of M edge servers and the connection reference scores corresponding to M edge servers, where M is an integer greater than 1 and less than or equal to P.
[0009] The candidate set is sent to the target terminal so that the target terminal selects a target edge server based on the connection reference score corresponding to the M edge servers, and establishes a connection with the target edge server based on the identification information corresponding to the target edge server, so that the target edge server provides the target cloud application operation service to the target terminal.
[0010] On the one hand, embodiments of the present invention provide another business processing method, including:
[0011] When the target cloud application starts running on the target terminal, an allocation request is sent to the cloud application management server. The cloud application management server is connected to P edge servers, and each of the P edge servers can provide the running services of the target cloud application. The allocation request is used to instruct the cloud application management server to return a candidate set. The candidate set includes the connection reference scores of M edge servers that meet the requirements for providing the running services of the target cloud application to the target terminal, and the identification information of the M edge servers. The connection reference score of any edge server among the M edge servers is determined based on N selection reference information related to the target terminal and the connection reference score determination rules; N is an integer greater than or equal to 2, and M is an integer greater than or equal to 1 and less than or equal to P.
[0012] Receive the candidate set sent by the cloud application management server, and select the target edge server from the M edge servers according to the connection reference score corresponding to the M candidate edge servers;
[0013] A connection is established with the target edge server based on the identification information of the target edge server, so that the target edge server can provide the target terminal with the operation services of the target cloud application.
[0014] On one hand, embodiments of the present invention also provide a business processing device, which is configured in a cloud application management server. The cloud application management server is connected to P edge servers, each of which is used to provide the operational services of a target cloud application. The device includes:
[0015] The acquisition unit is used to acquire, when receiving an allocation request sent by the target terminal, N selection reference information related to the target terminal corresponding to any edge server and the running reference information required to run the target cloud application, where N is an integer greater than or equal to 2, and the allocation request is sent when the target cloud application in the target terminal starts running.
[0016] The determining unit is configured to determine the connection reference score corresponding to any edge server based on the N selection reference information and the connection reference score determination rule if it is determined based on the N selection reference information and the operation reference information that any edge server meets the requirement of providing the target cloud application operation service for the target terminal.
[0017] The processing unit is configured to store the connection reference score corresponding to any edge server and the identification information of any edge server into a candidate set, wherein the candidate set includes the identification information of M edge servers and the connection reference scores corresponding to M edge servers, where M is an integer greater than 1 and less than or equal to P.
[0018] The sending unit is configured to send the candidate set to the target terminal, so that the target terminal selects a target edge server according to the connection reference score corresponding to the M edge servers, and establishes a connection with the target edge server based on the identification information corresponding to the target edge server, so that the target edge server provides the target cloud application operation service to the target terminal.
[0019] On one hand, embodiments of the present invention provide a business processing apparatus, characterized in that it includes:
[0020] The sending unit is configured to send an allocation request to a cloud application management server when the target cloud application starts running on the target terminal. The cloud application management server is connected to P edge servers, and each of the P edge servers can provide the running services of the target cloud application. The allocation request is used to instruct the cloud application management server to return a candidate set. The candidate set includes the connection reference scores of M edge servers that meet the requirements for providing the running services of the target cloud application to the target terminal, and the identification information of the M edge servers. The connection reference score of any edge server among the M edge servers is determined based on N selection reference information related to the target terminal and the connection reference score determination rules; N is an integer greater than or equal to 2, and M is an integer greater than or equal to 1 and less than or equal to P.
[0021] The receiving unit is configured to receive the candidate set sent by the cloud application management server, and select a target edge server from the M edge servers according to the connection reference scores corresponding to the M candidate edge servers.
[0022] The processing unit is configured to establish a connection with the target edge server based on the identification information of the target edge server, so that the target edge server can provide the target terminal with the operation services of the target cloud application.
[0023] On one hand, embodiments of the present invention provide a server, characterized in that it includes:
[0024] A processor, suitable for implementing one or more computer programs; and a computer storage medium storing one or more computer programs adapted to be loaded and executed by the processor:
[0025] When an allocation request is received from the target terminal, N selection reference information related to the target terminal and the running reference information required to run the target cloud application are obtained from any edge server. N is an integer greater than or equal to 2. The allocation request is sent when the target cloud application starts running in the target terminal.
[0026] If, based on the N selection reference information and the operation reference information, it is determined that any edge server meets the requirement of providing the target cloud application operation services for the target terminal, then the connection reference score corresponding to any edge server is determined based on the N selection reference information and the connection reference score determination rule.
[0027] Store the connection reference score corresponding to any edge server and the identification information of any edge server into a candidate set. The candidate set includes the identification information of M edge servers and the connection reference scores corresponding to M edge servers, where M is an integer greater than 1 and less than or equal to P.
[0028] The candidate set is sent to the target terminal so that the target terminal selects a target edge server based on the connection reference score corresponding to the M edge servers, and establishes a connection with the target edge server based on the identification information corresponding to the target edge server, so that the target edge server provides the target cloud application operation service to the target terminal.
[0029] On one hand, embodiments of the present invention provide a terminal, characterized in that it includes:
[0030] A processor, suitable for implementing one or more computer programs; and a computer storage medium storing one or more computer programs adapted to be loaded and executed by the processor:
[0031] When the target cloud application starts running on the target terminal, an allocation request is sent to the cloud application management server. The cloud application management server is connected to P edge servers, and each of the P edge servers can provide the running services of the target cloud application. The allocation request is used to instruct the cloud application management server to return a candidate set. The candidate set includes the connection reference scores of M edge servers that meet the requirements for providing the running services of the target cloud application to the target terminal, and the identification information of the M edge servers. The connection reference score of any edge server among the M edge servers is determined based on N selection reference information related to the target terminal and the connection reference score determination rules; N is an integer greater than or equal to 2, and M is an integer greater than or equal to 1 and less than or equal to P.
[0032] Receive the candidate set sent by the cloud application management server, and select the target edge server from the M edge servers according to the connection reference score corresponding to the M candidate edge servers;
[0033] A connection is established with the target edge server based on the identification information of the target edge server, so that the target edge server can provide the target terminal with the operation services of the target cloud application.
[0034] On one hand, embodiments of the present invention provide a computer storage medium storing a first computer program, which, when executed by a processor, is used to perform:
[0035] When an allocation request is received from the target terminal, N selection reference information related to the target terminal and the running reference information required to run the target cloud application are obtained from any edge server. N is an integer greater than or equal to 2. The allocation request is sent when the target cloud application starts running in the target terminal.
[0036] If, based on the N selection reference information and the operation reference information, it is determined that any edge server meets the requirement of providing the target cloud application operation services for the target terminal, then the connection reference score corresponding to any edge server is determined based on the N selection reference information and the connection reference score determination rule.
[0037] Store the connection reference score corresponding to any edge server and the identification information of any edge server into a candidate set. The candidate set includes the identification information of M edge servers and the connection reference scores corresponding to M edge servers, where M is an integer greater than 1 and less than or equal to P.
[0038] The candidate set is sent to the target terminal so that the target terminal selects a target edge server based on the connection reference score corresponding to the M edge servers, and establishes a connection with the target edge server based on the identification information corresponding to the target edge server, so that the target edge server provides the target cloud application operation service to the target terminal.
[0039] Alternatively, the computer storage medium stores a second computer program, which, when executed by the processor, is used to perform:
[0040] When the target cloud application starts running on the target terminal, the target terminal sends an allocation request to the cloud application management server. The cloud application management server is connected to P edge servers, and each of the P edge servers can provide the running services of the target cloud application. The allocation request is used to instruct the cloud application management server to return a candidate set. The candidate set includes the connection reference scores of M edge servers that meet the requirements for providing the running services of the target cloud application to the target terminal, and the identification information of the M edge servers. The connection reference score of any edge server among the M edge servers is determined based on N selection reference information related to the target terminal and the connection reference score determination rules; N is an integer greater than or equal to 2, and M is an integer greater than or equal to 1 and less than or equal to P.
[0041] The target terminal receives the candidate set sent by the cloud application management server, and selects the target edge server from the M edge servers according to the connection reference score corresponding to the M candidate edge servers;
[0042] The target terminal establishes a connection with the target edge server based on the identification information of the target edge server, so that the target edge server provides the target terminal with the operation services of the target cloud application.
[0043] On one hand, embodiments of the present invention provide a computer program product or a computer program, the computer program product including a computer program, which may refer to a first computer program or a second computer program, the first computer program or the second computer program being stored in a computer storage medium; the server's processor reads the first computer program from the computer storage medium, the processor executes the first computer program, causing the server to perform:
[0044] When an allocation request is received from the target terminal, N selection reference information related to the target terminal and the running reference information required to run the target cloud application are obtained from any edge server. N is an integer greater than or equal to 2. The allocation request is sent when the target cloud application starts running in the target terminal.
[0045] If, based on the N selection reference information and the operation reference information, it is determined that any edge server meets the requirement of providing the target cloud application operation services for the target terminal, then the connection reference score corresponding to any edge server is determined based on the N selection reference information and the connection reference score determination rule.
[0046] Store the connection reference score corresponding to any edge server and the identification information of any edge server into a candidate set. The candidate set includes the identification information of M edge servers and the connection reference scores corresponding to M edge servers, where M is an integer greater than 1 and less than or equal to P.
[0047] The candidate set is sent to the target terminal so that the target terminal selects a target edge server based on the connection reference score corresponding to the M edge servers, and establishes a connection with the target edge server based on the identification information corresponding to the target edge server, so that the target edge server provides the target cloud application operation service to the target terminal.
[0048] Alternatively, the terminal's processor reads a second computer program from the computer's storage medium, executes the second computer program, and causes the terminal to perform:
[0049] When the target cloud application starts running on the target terminal, an allocation request is sent to the cloud application management server. The cloud application management server is connected to P edge servers, and each of the P edge servers can provide the running services of the target cloud application. The allocation request is used to instruct the cloud application management server to return a candidate set. The candidate set includes the connection reference scores of M edge servers that meet the requirements for providing the running services of the target cloud application to the target terminal, and the identification information of the M edge servers. The connection reference score of any edge server among the M edge servers is determined based on N selection reference information related to the target terminal and the connection reference score determination rules; N is an integer greater than or equal to 2, and M is an integer greater than or equal to 1 and less than or equal to P.
[0050] The system receives the candidate set sent by the cloud application management server and selects a target edge server from the M candidate edge servers based on the connection reference scores corresponding to the M candidate edge servers. The system establishes a connection with the target edge server based on the identification information of the target edge server, so that the target edge server can provide the target cloud application's operation services to the target terminal.
[0051] In this embodiment of the invention, when the target cloud application starts running on the target terminal, the target terminal can send an allocation request to the cloud application management server. Upon receiving the allocation request, the cloud application management server obtains N selection reference information related to the target terminal for any edge server, as well as the running reference information required to run the target cloud application on the target terminal. If, based on the N selection reference information and the running reference information, it is determined that any edge server meets the requirements for providing the target cloud application's running services to the target terminal, then a connection reference score corresponding to that edge server is determined based on the N selection reference information and the connection reference scoring rule. This connection reference score and the identification information of any edge server are stored in a candidate set, which includes the connection reference scores and identification information of M edge servers. This candidate set is then sent to the target terminal, and the target terminal selects an edge server from the candidate set to provide the target cloud application's running services to the target terminal.
[0052] As mentioned above, any edge server can only be added to the candidate set if it meets the candidate conditions for providing the target cloud application's runtime services to the target terminal. In other words, all M edge servers in the candidate set must meet the requirement of providing the target cloud application's runtime services to the target terminal. The fact that any edge server meets the requirement of providing the target cloud application's runtime services to the target terminal can be understood as ensuring a better user experience when that edge server provides the target cloud application's runtime services. Providing this candidate set to the target terminal so that it can select the edge server it needs to connect to achieves on-demand allocation of edge servers, ensuring a balanced allocation of edge servers. Simply put, this embodiment of the invention adheres to the allocation strategy of "not allocating the optimal, but only the suitable" to provide edge servers to the target terminal. In addition, each of these M edge servers corresponds to a connection reference score. The target terminal can select one edge server from the M edge servers based on the connection reference score to provide the target cloud application running services for the target terminal. It should be understood that selecting an edge server based on the connection reference score can select the optimal edge server from the "suitable edge servers". When the selected edge server provides the target cloud application running services for the target terminal, it can ensure that the target cloud application runs at a high quality on the target terminal, thereby improving the user's application experience. Attached Figure Description
[0053] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the following description of the embodiments will be briefly introduced. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0054] Figure 1 This is a schematic diagram of the structure of a cloud application management system provided in an embodiment of the present invention;
[0055] Figure 2 This is a flowchart illustrating a business processing method provided in an embodiment of the present invention;
[0056] Figure 3 This is a flowchart illustrating another business processing method provided in an embodiment of the present invention;
[0057] Figure 4 This is a business processing architecture diagram provided by an embodiment of the present invention;
[0058] Figure 5 This is a schematic diagram of another business processing method provided by an embodiment of the present invention;
[0059] Figure 6This is a schematic diagram of the structure of a business processing device provided in an embodiment of the present invention;
[0060] Figure 7 This is a schematic diagram of another business processing device provided in an embodiment of the present invention;
[0061] Figure 8 This is a schematic diagram of the structure of a server provided in an embodiment of the present invention;
[0062] Figure 9 This is a schematic diagram of the structure of a terminal provided in an embodiment of the present invention. Detailed Implementation
[0063] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
[0064] Research on cloud applications, especially the most common cloud gaming, has revealed a growing trend of deploying edge servers closer to users in cities and even more remote locations to provide cloud application services to various user terminals. However, when multiple edge servers are deployed around a user, determining which one to select to provide cloud application services to that user's terminal presents a new challenge. This application investigates several schemes for allocating edge servers to terminals. Assuming the target terminal is running a target cloud application, and the target terminal is any type of cloud application, the following examples illustrate several allocation schemes studied in this invention:
[0065] The first method involves selecting the edge server with the closest physical distance. Specifically, this involves obtaining the distances between multiple edge servers and the target terminal; assigning the edge server with the smallest distance to the target terminal; and then connecting the target terminal to this edge server to provide the target cloud application with its services.
[0066] The second approach is to select the edge server with the best network quality. As mentioned earlier, the rendering of cloud applications by the cloud server is mainly transmitted to the cloud application user's terminal via the network. Therefore, the edge server with the best network quality can be assigned to the target terminal for connection. In specific implementation, the network quality of communication between each edge server and the target terminal at the current moment is obtained; the edge server with the best network quality is then selected and assigned to the target terminal.
[0067] The third approach involves first selecting a subset of edge servers from a pool of edge servers. These edge servers must have network quality that meets the requirements for running the target cloud application on the target terminal. For example, they must meet the reference network quality or the reference resource requirements for running the target cloud application. Then, based on multiple dimensions of information related to each edge server and the target terminal (such as network quality, available resources, and operating costs), a connection reference score is determined for each edge server. Finally, the target terminal selects a target edge server from the pool of edge servers to connect to based on the connection reference scores of each edge server.
[0068] Comparing the above-mentioned allocation schemes proposed in this application, the first and second allocation schemes are based on a single dimension. Although they can provide users with a better cloud application experience, they are very likely to cause some edge servers to be overloaded and others to be idle during peak user periods.
[0069] Furthermore, the first allocation scheme, when assigning edge servers to the target terminal, does not consider the reference network quality for the target terminal to run the target cloud application. This could result in a situation where, although an edge server is closest to the target terminal, its network quality is lower than the reference network quality. Using this edge server to provide services for the target cloud application to the target terminal would degrade the user experience. The second allocation scheme only considers assigning users to edge servers with the best network quality, but does not consider the available resources of that edge server or other information such as operating costs. This could lead to the edge server being overloaded, causing some users to have to wait in queues. However, in reality, other edge servers may also be able to provide services for these waiting users to run the target cloud application.
[0070] The third allocation scheme solves the problems of the above two schemes. Based on multiple dimensions of information of each edge server, the third scheme calculates the connection reference score of multiple edge servers that meet the business requirements of running target cloud applications for the target terminal. The target terminal selects any edge server to connect to according to the connection reference score of each edge server. Any edge server can provide users with a better cloud application experience, thus providing the target terminal with a more suitable edge server that meets the requirements, realizing the rationality and balance of edge server allocation.
[0071] Based on the third allocation scheme, this invention provides a cloud application management system, see [link to relevant documentation]. Figure 1 This is a schematic diagram of the structure of a cloud application management system provided in an embodiment of the present invention. Figure 1The cloud application management system shown may include a cloud application management server 101, multiple edge servers 102, an application server 103, and at least one terminal 104. The edge servers 102 can be connected to the application server 103 and the terminal 104 respectively. The application server 103 can provide the edge server 102 with cloud application runtime data. The edge server 102 performs screen rendering and other calculations based on the runtime data provided by the application server 103, and transmits the rendered screen to the terminal 104 for display, thus providing the terminal 104 with cloud application runtime services.
[0072] The cloud application management server 101 can connect to the terminal 104 and the edge server 102 respectively. The cloud application management server 101 is mainly used for scheduling multiple edge servers 103 to allocate suitable edge servers to the terminal 104. In specific implementation, a cloud application client runs on terminal 104. When the target cloud application starts running in the cloud application client of terminal 104, terminal 104 sends an allocation request to cloud application management server 101. After receiving the allocation request, cloud application management server 101 obtains N selection reference information related to terminal 104 from each edge server 102, such as the network quality (including real-time network quality and historical network quality) between each edge server and terminal 104, the available resources of each edge server, and the operating cost of each edge server, etc. Further, cloud application management server 101 determines whether any edge server 102 meets the requirements for providing the target cloud application to the target terminal based on the N selection reference information of any edge server 102 and the running reference information required to run the target cloud application on terminal 104. Then, it calculates the connection reference score of any edge server 102 based on the N reference selection information corresponding to the edge server 102 and stores the connection reference score and identification information of any edge server 102 into the candidate set.
[0073] The above only illustrates the processing procedure of the cloud application management server 101 for a single edge server. In practical applications, the cloud application management server 101 will handle... Figure 1 Each edge server in the cloud application management server 101 performs the same processing steps described above, resulting in a candidate set. This candidate set stores connection reference scores for M edge servers 102 and identification information for each edge server 102. The cloud application management server 101 sends this candidate set to the terminal 104. The terminal 104 selects any one of the M edge servers to establish a connection, so that the edge server connected to the terminal 104 provides cloud application services to the terminal 104.
[0074] Based on the aforementioned cloud application management system, this embodiment of the invention provides a business processing method, see [link to relevant documentation]. Figure 2 This is a flowchart illustrating a business processing method provided in an embodiment of the present invention. Figure 2 The business processing method shown can be executed by the cloud application management server, specifically by the processor of the cloud application management server. Figure 2 The business processing method shown may include the following steps:
[0075] Step S201: When receiving an allocation request sent by the target terminal, obtain N selection reference information related to any edge server and the target terminal, as well as the running reference information required to run the target cloud application on the target terminal.
[0076] In one embodiment, the target terminal can refer to any terminal device with screen display function, such as a smartphone, tablet computer, laptop computer, desktop computer, smart speaker, smartwatch, smart car, etc.
[0077] In one embodiment, a cloud application client may be running on the target terminal. The allocation request may be sent by the target terminal when the target cloud application starts running within the cloud application client. The target cloud application can refer to any one of the multiple cloud applications supported by the cloud application client. For example, if the cloud application client is a cloud gaming client, then the target cloud application refers to any one of the cloud games included in the cloud gaming client; similarly, if the cloud application client is a cloud education client, then the target cloud application refers to any one of the multiple educational content items in the cloud education client. The allocation request may carry the terminal identifier of the target terminal. When the target cloud application management server receives the allocation request, it can obtain N selection reference information related to the target terminal for any edge server based on the terminal identifier.
[0078] Optionally, the cloud application management server obtains N selection reference information related to the target terminal from any edge server based on the terminal identifier. This may include: sending a selection reference information retrieval request carrying the terminal identifier of the target terminal to any edge server; after receiving the selection reference information retrieval request, any edge server obtains the N selection reference information related to the target terminal from that edge server and returns the N selection reference information to the cloud application management server. The N selection reference information may include two or three of the following: real-time network quality, historical network quality, available resource quantity, and operating costs for providing the target cloud application's services. The determination of these types of information is described below.
[0079] (1) The operating cost is calculated based on the various resources required to provide the operation services of the target cloud application and the unit resource cost of each resource. In the specific implementation, the bandwidth cost and resource cost required for any edge server to provide the operation services of the target cloud application are obtained; the data center rental cost of any edge server is obtained; the bandwidth cost, resource cost and data center rental cost are added together to obtain the operating cost of any edge server to provide the operation services of the target cloud application.
[0080] Bandwidth cost is calculated by multiplying the unit bandwidth cost of any edge server by the bandwidth required to run the target cloud application. For example, if the unit bandwidth cost of any edge server is denoted as W, and the bandwidth required to run the target cloud application is denoted as G, then the bandwidth cost of any edge server running the target cloud application is G*W. Resource cost is calculated by multiplying the resources required to run the target cloud application by the unit cost of those resources. Resources can include CPU resources and GPU resources. Unit resource cost includes unit CPU resource cost and unit GPU resource cost. The resources required to run the target cloud application include CPU resources and GPU resources. Therefore, resource cost can be expressed as: unit CPU resource cost * required CPU resources + unit GPU resource cost * required GPU resources.
[0081] Data center rental cost is calculated by dividing the total cost of renting a data center to deploy any edge server by the maximum number of users that edge server can support. Let resource cost be denoted as F, and data center rental cost as Z. The operating cost of any edge server providing services for a target cloud application can be represented as C, then C = G*W + Z + F.
[0082] (2) The available resource quantity is determined based on the total resource quantity and the used resource quantity of any edge server. In a specific implementation, the available resource quantity of any edge server is obtained by subtracting the used resource quantity from the total resource quantity. In one embodiment, a cloud application client may include multiple different cloud applications, such as a cloud game client running multiple different cloud games. The resource quantity required to run each cloud application is known, and the cloud application management server can determine the used resource quantity based on the number of cloud applications currently being hosted. For example, if the cloud application client is a cloud game client, the cloud game client may include cloud game A and cloud game B. The resource quantity required to run cloud game A is M, and the resource quantity required to run game B is W. Assuming that any edge server currently hosts one cloud game A and one cloud game B, then the available resource quantity of any edge server is expressed as: total resource quantity - MW.
[0083] The resources mentioned here can include any one or more of the following: central processing unit (CPU) resources, graphics processing unit (GPU) resources, and memory resources. The available resource quantity for each resource is calculated using the same method described above.
[0084] (3) Real-time network quality, also known as instant network quality, reflects the network quality of communication between any edge server and the target terminal at the current time. Real-time network quality can be calculated by any edge server based on the current communication data between the target terminal and any edge server. Current communication data can refer to the data packet transmission situation within the current time period, such as how any edge server sends data packets, when the target terminal receives the data packets, etc. The current time period can refer to the period most recent, such as the last few minutes, the last hour, etc. Real-time network quality can also be carried by the target terminal in the allocation request sent to the cloud application management server.
[0085] Real-time network quality can refer to any one or more metrics such as average latency, jitter rate, and packet loss rate. Packet loss rate is calculated by dividing the number of packets lost at the current time by the total number of packets sent. To calculate the jitter rate at the current time, the current time is sampled to divide it into multiple time intervals. The sampling rate can be 1 second, so the length of each time interval is 1 second. The network latency of each time interval is calculated. The network latency of multiple time intervals is averaged to obtain the average latency. The variance is calculated based on the average latency and the variance of each time interval, and the variance is used as the jitter rate.
[0086] For example, sampling the current time yields H time intervals, X i The network latency for the i-th time interval is represented by μ, where i ranges from 1 to H; μ represents the average network latency, and σ represents the average network latency. 2 This represents the jitter rate, which can be calculated using the following formula:
[0087]
[0088] The network latency for each time interval is calculated based on the time it takes to send a data packet and the time it takes to receive an acknowledgment message for that data packet within that time interval. If a time interval includes multiple data packets, the network latency for that time interval is the average of the network latency for transmitting each data packet.
[0089] Historical network quality reflects the network quality of communication between any edge server and the target terminal over a historical period. Historical time can refer to the past month, the past year, or even longer.
[0090] As an optional implementation, historical network quality is calculated by any edge server based on historical communication data between the target terminal and that edge server. Historical network quality may include any one or more metrics such as average latency, jitter rate, and packet loss rate. The calculation methods for each metric in the historical network are the same as those for the metrics in the aforementioned real-time network, and will not be repeated here. In a specific implementation, the cloud application management server can obtain all historical communication data between any edge server and the target terminal; and statistically analyze the historical network quality between any edge server and the target terminal based on this historical communication data.
[0091] It should be understood that, historically, the target terminal may have established connections and communicated with any edge server based on different connection information. This connection information may include the access method, the target terminal's operator, and the region where the target terminal is located. The access method may include data traffic access and wireless access. Different connection information may have different impacts on the network quality of communication. Since this embodiment of the invention selects a suitable edge server for the target terminal based on the current connection information used for communication between the target terminal and any edge server, historical communication data using the same connection information as the current connection information is more meaningful. For example, if the current connection information refers to data traffic access, a specific operator, and the target terminal being located in region A, then historical communication data between any edge server and the target terminal, specifically those using data traffic access, the specific operator, and region A, is more valuable for reference.
[0092] Based on this, in another specific implementation, the cloud application management server can obtain all historical communication data between any edge server and the target terminal; filter historical communication data from all historical communication data whose connection information is the same as the current connection information; and calculate the historical network quality based on the filtered historical communication data.
[0093] As another optional implementation, historical network quality can be calculated by any edge server based on historical communication data between other terminals and any edge server. Other terminals refer to at least one terminal located in the same area as the target terminal, using the same access method to establish a connection with any edge server, and located within the same operator. It should be understood that in practical applications, the target terminal and any edge server may not have communicated in the past, thus there is no historical communication data between them. In this case, to obtain historical network quality, embodiments of the present invention can acquire a specific set of historical communication data to measure the historical network quality between any edge server and the target terminal. This specific set of historical communication data includes historical communication data between other terminals and any edge server. Other terminals refer to at least one terminal that has the same access method, the same operator, and the same area as the target terminal.
[0094] Optionally, if there are multiple other terminals, the historical network quality between each other terminal and any edge server can be calculated separately when calculating the historical network quality. Finally, the average of all the calculated historical network quality is calculated, and the result is used as the historical network quality between the target terminal and any edge server.
[0095] In practical use, even if there is historical communication data between the target terminal and any edge server, the historical network quality can be calculated based on the historical communication data between other terminals and any edge server; or, the historical communication data between the target terminal and any edge server, as well as the historical communication data between other terminals and any edge server, can be used to statistically analyze the historical network quality.
[0096] Optionally, the allocation request sent by the target terminal to the cloud application management server may also include the application identifier of the target cloud application. The cloud application management server can obtain the runtime reference information required to run the cloud application based on the application identifier. This runtime reference information may include the reference network quality and required resources for running the target cloud application. The reference network quality is pre-set and stored in the cloud application management server. The cloud application management server may contain application identifiers for multiple cloud applications and the corresponding reference network quality for each cloud application. The cloud application management server retrieves the reference network quality corresponding to the application identifier of the target cloud application from its storage. The required resources may include the required CPU resources, GPU resources, and memory size, etc.
[0097] It should be understood that different cloud applications have slightly different network quality requirements. However, due to the unique nature of cloud applications, their rendering takes place on edge servers. Therefore, most network communication occurs between the edge servers and the application servers. The user's terminal does not directly interact with the application server; it only interacts with the edge servers for video streams and operational data streams. The video stream is independent of the cloud application type; that is, regardless of the cloud application, the network quality requirements for the video stream are the same. Therefore, for different cloud applications, it is only necessary to evaluate the network quality requirements of the operational data. Thus, the reference network quality for the target cloud application can be obtained by testing the network quality requirements of the operational data. In practice, the cloud application management server needs to identify the operational scenarios that have the greatest impact on the target cloud application, and then test the minimum network quality required to ensure the best user experience under different network quality conditions, using this minimum network quality as the reference network quality.
[0098] Reference network quality can include metrics such as network latency, jitter rate, and packet loss rate. These metrics represent the minimum requirements for ensuring the best user experience. For example, network latency in reference network quality is the highest network latency that can be tolerated to ensure the best user experience, and jitter rate in reference network quality is the highest jitter rate that can be tolerated to ensure the best user experience.
[0099] Step S202: If, based on N selection reference information and operation reference information, it is determined that any edge server meets the requirements for providing the target cloud application operation services to the target terminal, then the connection reference score corresponding to any edge server is determined based on the N selection reference information and connection reference scoring rules.
[0100] Before calculating the connection reference score for any edge server, it can be determined whether any edge server meets the requirements for providing the target cloud application's operational services to the target terminal based on N selection reference information and operation reference information. If it meets the requirements, the step of determining the connection reference score for any edge server is executed. If it does not meet the requirements, the connection reference score for any edge server can be omitted.
[0101] In one embodiment, if the N selection reference information includes real-time network quality and historical network quality, and the operational reference information includes reference network quality, then determining whether any edge server meets the requirements for providing operational services of the target cloud application to the target terminal based on the N selection reference information and operational reference information includes: the cloud application management server determining the baseline network quality for communication between any edge server and the target terminal based on the real-time network quality and historical network quality; if the baseline network quality is higher than or equal to the reference network quality, then determining that any edge server meets the requirements for providing operational services of the target cloud application to the target terminal; otherwise, if the baseline network quality is lower than the reference network quality, then confirming that any edge server does not meet the requirements for providing operational services of the target cloud application to the target terminal.
[0102] Optionally, determining the baseline network quality for communication between any edge server and the target terminal based on real-time and historical network quality can include using the worse of the real-time and historical network quality as the baseline network quality. To ensure the best user experience when any edge server provides the target cloud application to the target terminal, both the real-time and historical network quality of that edge server need to be higher than the reference network quality. Therefore, the worse of the real-time and historical network quality needs to be used as the baseline network quality during calculation.
[0103] In another embodiment, if the N selection reference information includes the available resources of any edge server and the operation reference information includes the resources required to run the target cloud application, then determining whether any edge server meets the requirements for providing the target cloud application to the target terminal based on the N selection reference information and the operation reference information includes: if the available resources are greater than the required resources, then determining that any edge server meets the requirements for providing the target cloud application to the target terminal.
[0104] In another embodiment, if the N selection reference information includes available resources, real-time network quality, and historical network quality, and the operation reference information includes reference network quality and the amount of resources required to run the target cloud application, then determining whether any edge server meets the requirements for providing the target cloud application operation service to the target terminal may include: if the baseline network quality is higher than or equal to the reference network quality, and the available resources are greater than or equal to the required resources, then it is determined that any edge server meets the requirements for providing the target cloud application operation service to the target terminal.
[0105] Since there are multiple edge servers, there may be more than one edge server that meets the requirements of providing the target cloud application to the target terminal. In order to facilitate the target terminal to select a suitable one from the multiple edge servers that meet the requirements of providing the target cloud application to the target terminal, it is necessary to provide the target terminal with a selection criterion. In this embodiment of the invention, a connection reference score can be calculated for each edge server that meets the requirements of providing the target cloud application to the target terminal, so that the target terminal can make a selection based on the connection reference score.
[0106] Based on this, after determining that any edge server meets the requirements for providing the target cloud application's operational services to the target terminal, a connection reference score for any edge server can be further calculated based on N selection reference information and connection reference scoring rules. Specifically, the first weight value corresponding to the baseline network quality, the second weight value corresponding to the operating cost, and the third weight value corresponding to the available resources are obtained. The baseline network quality, the first weight value, the operating cost, the second weight value, the available resources, and the third weight value are then input into the calculation formula corresponding to the connection reference scoring rules to obtain the connection reference score for any edge server. For example, assuming the baseline network quality is represented by w, the operating cost by c, the available resources by m, the first weight value by k1, the second weight value by k2, and the third weight value by k3, the calculation formula corresponding to the connection reference scoring rules can be expressed as follows:
[0107] f=Normalization(c)*k1+Normalization(w)*k2+Normalization(m)*k31
[0108] Here, f represents the connection reference score, and Normalization represents the normalization operation, where parameters after normalization become comparable values. Substituting the N selection reference information corresponding to any edge server and the weight values corresponding to each selection reference information into the above formula yields the connection reference score for that edge server. In practical applications, the weight value of the selection reference information that is more important when selecting an edge server can be set to a larger value. For example, if more emphasis is placed on operating costs, the second weight value corresponding to operating costs can be set to a larger value; if more emphasis is placed on network quality, the first weight value corresponding to baseline network quality can be set to a larger value.
[0109] Step S203: Store the connection reference score corresponding to any edge server and the identification information of any edge server into the candidate set.
[0110] After calculating the connection reference score for any edge server, the connection reference score and the identification information of any edge server can be stored in a candidate set. This candidate set includes the connection reference scores and identification information of M edge servers, including any of the aforementioned edge servers. The connection reference score of each edge server in the candidate set can be obtained through steps S202 and S203, which will not be elaborated further here. In other words, the network quality between each edge server in the candidate set and the target terminal meets the reference network quality. These edge servers can all provide the target cloud application with operational services for the target terminal, and can all provide users with the best application experience when using cloud applications.
[0111] The identification information of any edge server can be any information that can uniquely identify any edge server, such as name information, connection address information, etc. The target terminal can establish a connection with any edge server based on the identification information of any edge server.
[0112] Step S204: Send the candidate set to the target terminal so that the target terminal selects the target edge server according to the connection reference score corresponding to the M edge servers, and establishes a connection with the target edge server based on the identification information corresponding to the target edge server, so that the target edge server provides the target cloud application operation service to the target terminal.
[0113] In one embodiment, after performing steps S201-S203 on multiple edge servers, a candidate set of services capable of providing the target cloud application to the target terminal can be obtained. The cloud application management server sends the candidate set to the target terminal. The target terminal can select a target edge server from the M edge servers based on the connection reference score of the M edge servers and establish a connection with the target edge server so that the target edge server can provide the target cloud application to the target terminal.
[0114] Optionally, the target terminal selects a target edge server from the M edge servers based on the connection reference scores of the M edge servers, including: selecting the edge server with the highest connection reference score as the target edge server.
[0115] In this embodiment of the invention, when the target cloud application starts running on the target terminal, the target terminal can send an allocation request to the cloud application management server. Upon receiving the allocation request, the cloud application management server obtains N selection reference information related to the target terminal for any edge server, as well as the running reference information required to run the target cloud application on the target terminal. If, based on the N selection reference information and the running reference information, it is determined that any edge server meets the requirements for providing the target cloud application's running services to the target terminal, then a connection reference score corresponding to that edge server is determined based on the N selection reference information and the connection reference scoring rule. This connection reference score and the identification information of any edge server are stored in a candidate set, which includes the connection reference scores and identification information of M edge servers. This candidate set is then sent to the target terminal, and the target terminal selects an edge server from the candidate set to provide the target cloud application's running services to the target terminal.
[0116] As mentioned above, any edge server can only be added to the candidate set if it meets the requirements for providing the target cloud application to the target terminal. In other words, all M edge servers in the candidate set must meet the requirements for providing the target cloud application to the target terminal. The fact that any edge server meets the requirements for providing the target cloud application to the target terminal can be understood as ensuring a better user experience when providing the target cloud application. Providing this candidate set to the target terminal so that it can select the edge server it needs to connect to achieves on-demand allocation of edge servers, ensuring a balanced allocation of edge servers. Simply put, this embodiment of the invention adheres to the allocation strategy of "not allocating the optimal, but only the suitable" to provide edge servers to the target terminal. In addition, each of these M edge servers corresponds to a connection reference score. The target terminal can select one edge server from the M edge servers based on the connection reference score to provide the target cloud application running services for the target terminal. It should be understood that selecting an edge server based on the connection reference score can select the optimal edge server from the "suitable edge servers". When the selected edge server provides the target cloud application running services for the target terminal, it can ensure that the target cloud application runs at a high quality on the target terminal, thereby improving the user's application experience.
[0117] Based on the aforementioned cloud application management system and business processing method, this embodiment of the invention also provides another business processing method. See [link to related documentation]. Figure 3 This is a flowchart illustrating another business processing method provided in an embodiment of the present invention. Figure 3 The business processing method shown is executed by the target terminal, specifically by the processor of the target terminal. Figure 3The business processing method shown may include the following steps:
[0118] Step S301: When the target cloud application starts running on the target terminal, an allocation request is sent to the cloud application management server.
[0119] As mentioned above, the cloud application management server connects to P edge servers, and each of the P edge servers can provide the target cloud application with runtime services. This allocation request instructs the cloud application management server to return a candidate set, which can be determined by the cloud application management server through steps S201-S203. For details on the determination method, please refer to [link / reference needed]. Figure 2 The descriptions of steps S201-S203 in the embodiments will not be repeated here.
[0120] Step S302: Receive the candidate set sent by the cloud application management server, and select the target edge server from the M edge servers according to the connection reference scores corresponding to the M edge servers in the candidate set.
[0121] In one embodiment, the target terminal selects a target edge server from the M edge servers based on the connection reference scores corresponding to the M edge servers. This may include selecting any one of the M edge servers as the target edge server. As mentioned above, all M edge servers are capable of providing the target cloud application with the operational services required by the target terminal. By using an edge server that meets these requirements, the user can be guaranteed the best experience with the target cloud application. In other words, regardless of which edge server among the M edge servers is used to provide the target cloud application with the operational services, the user can be guaranteed the best application experience. Therefore, the target terminal randomly selects any one edge server as the target edge server.
[0122] In another embodiment, selecting a target edge server from the M edge servers based on their connection reference scores includes: traversing the M edge servers to determine those in a connectable state; and selecting the edge server with the highest connection reference score or the lowest operating cost from among the connectable edge servers as the target edge server. An edge server in a connectable state means that it is not at full capacity, meaning it can still support the target cloud application. Therefore, the edge server with the highest connection score among the connectable edge servers is selected as the target edge server. It should be noted that when an edge server is at full capacity, the target terminal needs to queue to connect, which can cause users to wait too long to access the target cloud game. This embodiment of the invention filters out edge servers in a full capacity, which can shorten the time for the target terminal to access the target cloud application, thereby reducing the user's waiting time and improving the user experience.
[0123] In another embodiment, selecting a target edge server from the M edge servers based on their connection reference scores includes: obtaining multiple candidate edge servers among the M edge servers whose distance to the target terminal is less than a distance threshold; and selecting the candidate edge server with the highest connection reference score as the target edge server. Edge servers whose distance to the target terminal is less than the distance threshold have more stable connections with the target terminal, avoiding connection interruptions due to excessive distance. Therefore, selecting the candidate edge server with the highest connection reference score as the target edge server ensures the stability of the target cloud application's operation.
[0124] Step S303: Establish a connection with the target edge server based on the identification information of the target edge server, so that the target edge server can provide the target cloud application operation services to the target terminal.
[0125] After the target terminal determines the target edge server from the M candidate edge servers, it can send a connection request to the target edge server through the identification information of the target edge server. After receiving the connection request, the target edge server establishes a connection with the target terminal and provides the target cloud application with the running services.
[0126] In this embodiment of the invention, when the target cloud application starts running on the target terminal, the target terminal can send an allocation request to the cloud application management server. Upon receiving the allocation request, the cloud application management server obtains N selection reference information related to the target terminal for any edge server, as well as the running reference information required to run the target cloud application on the target terminal. If, based on the N selection reference information and the running reference information, it is determined that any edge server meets the requirements for providing the target cloud application's running services to the target terminal, then a connection reference score corresponding to that edge server is determined based on the N selection reference information and the connection reference scoring rule. This connection reference score and the identification information of any edge server are stored in a candidate set, which includes the connection reference scores and identification information of M edge servers. This candidate set is then sent to the target terminal, and the target terminal selects an edge server from the candidate set to provide the target cloud application's running services to the target terminal.
[0127] As mentioned above, any edge server can only be added to the candidate set if it meets the requirements for providing the target cloud application to the target terminal. In other words, all M edge servers in the candidate set must meet the requirements for providing the target cloud application to the target terminal. The fact that any edge server meets the requirements for providing the target cloud application to the target terminal can be understood as ensuring a better user experience when providing the target cloud application. Providing this candidate set to the target terminal so that it can select the edge server it needs to connect to achieves on-demand allocation of edge servers, ensuring a balanced allocation of edge servers. Simply put, this embodiment of the invention adheres to the allocation strategy of "not allocating the optimal, but only the suitable" to provide edge servers to the target terminal. In addition, each of these M edge servers corresponds to a connection reference score. The target terminal can select one edge server from the M edge servers based on the connection reference score to provide the target cloud application running services for the target terminal. It should be understood that selecting an edge server based on the connection reference score can select the optimal edge server from the "suitable edge servers". When the selected edge server provides the target cloud application running services for the target terminal, it can ensure that the target cloud application runs at a high quality on the target terminal, thereby improving the user's application experience.
[0128] Based on the above embodiments of the business processing method, this invention provides an architecture diagram of a business processing system, see [link / reference]. Figure 4 This is a schematic diagram of the architecture of a business processing system provided in an embodiment of the present invention. Figure 4The business processing architecture shown includes a cloud application management server 401, an application server 402, and a cloud application client 403. The cloud application management server 401, the edge server 402, and the cloud application client 403 are interconnected, and the cloud application client 403 can run on the target terminal.
[0129] In one embodiment, the cloud application client 403 may include a selection module, a network detection module, and a data reporting module. The selection module is used to pull available edge servers from the edge server management module of the cloud application management server, send network detection commands to the network detection module, and receive a candidate set from the cloud application management server 401, selecting a target edge server from the candidate set to establish a connection. The network detection module is used to detect the real-time and historical network quality of each edge server according to the network detection commands sent by the edge server selection module, and return the network quality of each edge server (including real-time network quality, or real-time network quality and historical network quality) to the data reporting module. The data reporting module reports the network quality of each edge server obtained by the network detection module to the cloud application management server 401.
[0130] In one embodiment, the edge server 402 may include a network detection module and a capacity management module. The network detection module receives network detection requests from cloud application clients and transmits real-time communication data so that the target terminal where the cloud application client resides can detect the instantaneous network quality of the edge server. The capacity management module calculates the total resources, or total carrying capacity, and currently used resources of the edge server, and calculates the available resources. The available resources can be represented by the number of cloud applications the edge server can support; for example, the edge server can also run cloud application A with two cloud application clients and cloud application B with one cloud application client. The capacity management module reports the calculated results to the cloud application management server 401 in real time as a candidate allocation basis. Alternatively, the capacity management module may report the results only when it receives an available resource query request from the cloud application management server 401.
[0131] In one embodiment, the cloud application management server may include an edge server management module, a data storage module, a data analysis module, an operation strategy module, and a strategy planning module. The edge server management module receives real-time and historical network quality data of each edge server from the cloud application client's data reporting module, and determines a candidate set based on the operating costs of each edge server providing the target cloud application's services, calculated by the data analysis module, and the available resources of each edge server (see [link to specific implementation details]). Figure 2The descriptions of steps S202 and S203 in the embodiment will not be repeated here, and the candidate set is provided to the cloud application client 403. Optionally, the edge servers in the candidate set can be sorted from high to low according to their connection reference scores. The data storage module is used to receive the network quality of each edge server reported by the data reporting module in the cloud application client 403, and to associate and store the network quality of each edge server according to multi-dimensional information such as access method, region of the cloud application client, and operator of the terminal of the cloud application client, for the data analysis module to read and calculate. In addition, the data storage module can also obtain and store the available resources of each edge server.
[0132] The data analysis module analyzes the baseline network quality of each edge server based on the real-time and historical network quality data stored in the data storage module, and calculates the available resources and operating costs of each edge server. The operation strategy module provides detailed strategies for allocating edge servers to various cloud applications, primarily configuring the aforementioned first, second, and third weight values. These three weight values may differ for different cloud applications within the cloud application client. The strategy planning module stores runtime reference information for different cloud applications within the cloud application client, such as reference network quality and required resources. It also assesses the user experience based on the actual operation of the target cloud application, determining the rationality of the weight allocation in the operation strategy module and the appropriateness of the candidate set allocated to the cloud application client. If the edge server connected to the cloud application client meets the reference network quality requirements of the target cloud application, but the user experience is still compromised, the operation strategy can be adjusted promptly.
[0133] based on Figure 4 The business processing architecture shown in this embodiment of the invention provides another business processing method, see [link to relevant documentation]. Figure 5 This is a flowchart illustrating another business processing method provided in an embodiment of the present invention. Figure 5 The business processing method shown is executed interactively by the cloud application management server, edge server, and cloud application client. Specifically, Figure 5 The business processing method shown may include the following steps:
[0134] Step S501: The user launches the target cloud application through the cloud application client;
[0135] Step S502: The cloud application client detects the real-time network quality between the cloud application client and each edge server based on the multiple edge servers configured locally by default.
[0136] Step S503: Each edge server returns real-time network quality information to the cloud application client;
[0137] Step S504: The cloud application client reports the real-time network quality of each edge server to the cloud application management server and requests the allocation of a suitable edge server.
[0138] Step S505: After receiving the request from the cloud application client, the cloud application management server sends a request to each edge server to query the available resources of each edge server.
[0139] Step S506: The edge servers return their current available resource quantities to the cloud application management server;
[0140] Step S507: The cloud application management server filters multiple edge servers that meet the requirements for providing the target cloud application's running services to the target terminal based on the real-time network quality, historical network quality, and available resources of each edge server reported by the cloud application client.
[0141] Step S508: Calculate the connection reference score for each edge server based on its real-time network quality, historical network quality, available resources, and operating costs, according to the requirements of providing operational services for the target cloud application to the target terminal. Store the identification information and connection reference scores of each edge server that meet the requirements of providing operational services for the target cloud application to the target terminal into a candidate set. In the candidate set, the connection reference scores of each edge server can be arranged in ascending order.
[0142] Step S509: Send the candidate set to the cloud application client. The cloud application client selects the most suitable edge server from the candidate set to provide the running services of the target cloud application.
[0143] This invention does not simply assign the edge server with the best network quality or the closest location. Instead, it allocates a suitable edge server based on the actual needs of the target cloud application. This avoids all cloud application clients being concentrated on the edge server with the best network quality, while when a cloud application client truly needs high network quality, it can only be assigned to an edge server with poor network quality. In short, this invention does not select the edge server with the best network quality for each user, but only the most suitable edge server. In this way, the experience of all cloud application clients can be balanced.
[0144] In addition, it should be understood that higher network quality means higher construction and operation costs for edge servers. In this embodiment of the invention, appropriate edge servers are allocated to each cloud application as needed, so that each edge server is fully utilized, rather than all cloud applications being allocated to edge servers with the best network quality, which can greatly reduce the overall operating costs.
[0145] Based on the embodiments of the above-described business processing method, this invention provides a business processing apparatus, see [link to previous document]. Figure 6 This is a schematic diagram of the structure of a business processing device provided in an embodiment of the present invention. Figure 6 The business processing device shown can run on a cloud application management server, which is connected to P edge servers. Each of the P edge servers is used to provide the running services of the target cloud application. The business processing device operates the following units:
[0146] The acquisition unit 601 is used to acquire N selection reference information related to the target terminal and the running reference information required to run the target cloud application corresponding to any edge server when it receives an allocation request sent by the target terminal. N is an integer greater than or equal to 2. The allocation request is sent when the target cloud application in the target terminal starts running.
[0147] The determining unit 602 is configured to determine the connection reference score corresponding to any edge server based on the N selection reference information and the connection reference score determination rule if it is determined based on the N selection reference information and the operation reference information that any edge server meets the requirement of providing the target cloud application operation service for the target terminal.
[0148] The processing unit 603 is used to store the connection reference score corresponding to any edge server and the identification information of any edge server into a candidate set. The candidate set includes the identification information of M edge servers and the connection reference scores corresponding to M edge servers, where M is an integer greater than 1 and less than or equal to P.
[0149] The sending unit 604 is used to send the candidate set to the target terminal, so that the target terminal selects a target edge server according to the connection reference score corresponding to the M edge servers, and establishes a connection with the target edge server based on the identification information corresponding to the target edge server, so that the target edge server provides the target cloud application operation service to the target terminal.
[0150] In one embodiment, the N selection reference information corresponding to any edge server includes two or three of the following: real-time network quality, historical network quality, available resources, and operating costs for providing the target cloud application's running services;
[0151] The real-time network quality is calculated by any edge server based on the current communication data between the target terminal and any edge server;
[0152] The historical network quality is calculated by any edge server based on the historical communication data between the target terminal and the edge server; or, the historical network quality is calculated by any edge server based on the historical communication data between other terminals and the edge server, wherein the other terminals and the target terminal meet the following conditions: located in the same area, using the same access method to establish a connection with any edge server, and located in the same operator.
[0153] In one embodiment, the acquisition unit 601 is further configured to acquire the bandwidth cost and resource cost required by any edge server to provide the running services of the target cloud application. The bandwidth cost is obtained by multiplying the unit bandwidth cost of any edge server with the bandwidth required to provide the running services of the target cloud application. The resource cost is obtained by multiplying the resources required to provide the running services of the target cloud application with the unit resource cost. The unit also acquires the data center rental cost of any edge server.
[0154] The processing unit 603 is further configured to add the bandwidth cost, the resource cost, and the data center rental cost together to obtain the operating cost of the target cloud application provided by any edge server.
[0155] In one embodiment, the runtime reference information includes the reference network quality required to run the target cloud application, and the N selection reference information includes the real-time network quality and the historical network quality; the processing unit 603 is further configured to determine the baseline network quality for communication between any edge server and the target terminal based on the real-time network quality and the historical network quality; if the baseline network quality is higher than the reference network quality, then it is determined that any edge server meets the requirements for providing the target cloud application's runtime services to the target terminal.
[0156] In one embodiment, the runtime reference information includes the reference amount of resources required to run the target cloud application, and the N selection reference information includes the available amount of resources. If the available amount of resources is greater than or equal to the reference amount of resources, then it is determined that any edge server meets the requirement of providing the target cloud application with runtime services for the target terminal.
[0157] In one embodiment, if the N reference information includes the real-time network quality, the historical network quality, the operating cost, and the available resource quantity, then when the determining unit 602 determines the connection reference score corresponding to any edge server based on the N selection reference information and the connection reference score determination rule, it performs the following steps:
[0158] Obtain the first weight value corresponding to the baseline network quality, the second weight value corresponding to the operating cost, and the third weight value corresponding to the available resources; input the baseline network quality, the first weight value, the operating cost, the second weight value, the available resources, and the third weight value into the calculation formula corresponding to the connection reference score determination rule to obtain the connection reference score corresponding to any edge server.
[0159] In one embodiment, when the processing unit 603 determines the baseline network quality for communication between the edge server and the target terminal based on the real-time network quality and the historical network quality, it performs the following steps: taking the worse of the real-time network quality and the historical network quality as the baseline network quality.
[0160] According to one embodiment of the present invention, Figure 2 The steps involved in the business processing method shown can be derived from... Figure 6 The execution is carried out by each unit in the shown business processing apparatus. For example, Figure 2 The aforementioned step S201 can be performed by Figure 6 The acquisition unit 601 in the business processing device shown is responsible for executing step S202, which can be performed by... Figure 6 The business processing device shown is executed by the determination unit 802, and step S203 can be performed by... Figure 6 The processing unit 603 in the business processing device shown executes the steps, and step S204 can be performed by... Figure 6 The sending unit 604 in the shown service processing device performs the operation.
[0161] According to another embodiment of the present invention, Figure 6 The various units in the illustrated business processing apparatus can be individually or entirely merged into one or more other units, or some of the units can be further divided into multiple functionally smaller units. This achieves the same operation without affecting the technical effects of the embodiments of the present invention. The above-mentioned units are divided based on logical functions. In practical applications, the function of one unit can also be implemented by multiple units, or the function of multiple units can be implemented by one unit. In other embodiments of the present invention, the business processing apparatus may also include other units. In practical applications, these functions can also be implemented with the assistance of other units, and can be implemented collaboratively by multiple units.
[0162] According to another embodiment of the present invention, the following can be performed by running on a general-purpose computing device, such as a computer, which includes processing elements and storage elements such as a central processing unit (CPU), random access memory (RAM), and read-only memory (ROM). Figure 2 The computer program (including program code) for each step involved in the corresponding method shown, to construct such... Figure 6 The diagram illustrates a business processing apparatus and a business processing method for implementing embodiments of the present invention. The computer program may be recorded on, for example, a computer-readable storage medium, loaded onto the aforementioned node device via the computer-readable storage medium, and run therein.
[0163] In this embodiment of the invention, when the target cloud application starts running on the target terminal, the target terminal can send an allocation request to the cloud application management server. Upon receiving the allocation request, the cloud application management server obtains N selection reference information related to the target terminal for any edge server, as well as the running reference information required to run the target cloud application on the target terminal. If, based on the N selection reference information and the running reference information, it is determined that any edge server meets the requirements for providing the target cloud application's running services to the target terminal, then a connection reference score corresponding to that edge server is determined based on the N selection reference information and the connection reference scoring rule. This connection reference score and the identification information of any edge server are stored in a candidate set, which includes the connection reference scores and identification information of M edge servers. This candidate set is then sent to the target terminal, and the target terminal selects an edge server from the candidate set to provide the target cloud application's running services to the target terminal.
[0164] As mentioned above, any edge server can only be added to the candidate set if it meets the candidate conditions for providing the target cloud application's runtime services to the target terminal. In other words, all M edge servers in the candidate set must meet the requirement of providing the target cloud application's runtime services to the target terminal. The fact that any edge server meets the requirement of providing the target cloud application's runtime services to the target terminal can be understood as ensuring a better user experience when that edge server provides the target cloud application's runtime services. Providing this candidate set to the target terminal so that it can select the edge server it needs to connect to achieves on-demand allocation of edge servers, ensuring a balanced allocation of edge servers. Simply put, this embodiment of the invention adheres to the allocation strategy of "not allocating the optimal, but only the suitable" to provide edge servers to the target terminal. In addition, each of these M edge servers corresponds to a connection reference score. The target terminal can select one edge server from the M edge servers based on the connection reference score to provide the target cloud application running services for the target terminal. It should be understood that selecting an edge server based on the connection reference score can select the optimal edge server from the "suitable edge servers". When the selected edge server provides the target cloud application running services for the target terminal, it can ensure that the target cloud application runs at a high quality on the target terminal, thereby improving the user's application experience.
[0165] Based on the above embodiments of the business processing method and the business processing apparatus, this invention provides another business processing apparatus, see [link to previous document]. Figure 7 This is a schematic diagram of another business processing device provided in an embodiment of the present invention. Figure 7 The business processing unit shown can operate the following units:
[0166] The sending unit 701 is configured to send an allocation request to a cloud application management server when the target cloud application starts running in the target terminal. The cloud application management server is connected to P edge servers, and each of the P edge servers can provide the running services of the target cloud application. The allocation request is used to instruct the cloud application management server to return a candidate set. The candidate set includes the connection reference scores of M edge servers that meet the requirements for providing the running services of the target cloud application to the target terminal, and the identification information of the M edge servers. The connection reference score of any edge server among the M edge servers is determined based on N selection reference information related to the target terminal and the connection reference score determination rules; N is an integer greater than or equal to 2, and M is an integer greater than or equal to 1 and less than or equal to P.
[0167] The receiving unit 702 is used to receive the candidate set sent by the cloud application management server, and select a target edge server from the M edge servers according to the connection reference score corresponding to the M candidate edge servers;
[0168] The processing unit 703 is used to establish a connection with the target edge server based on the identification information of the target edge server, so that the target edge server can provide the target terminal with the operation services of the target cloud application.
[0169] In one embodiment, the sending unit 701 is further configured to send a network quality acquisition request to any one of the P edge servers when the target cloud application in the target terminal starts running, wherein the network quality acquisition request is used to instruct the edge server to calculate the real-time network quality based on the current communication data between the edge server and the target terminal;
[0170] The receiving unit 702 is further configured to receive real-time network quality data sent by any of the edge servers; the processing unit 703 is further configured to upload the real-time network quality data to the cloud application management server.
[0171] In one embodiment, when the processing unit 703 selects a target edge server from the M edge servers based on the connection reference scores corresponding to the M edge servers, it performs the following steps: traversing the M edge servers to determine the edge servers in a connectable state; and selecting the edge server with the highest reference score or the lowest operating cost from the edge servers in a connectable state as the target edge server.
[0172] In one embodiment, when the processing unit 703 selects a target edge server from the M edge servers based on the connection reference scores corresponding to the M edge servers, it performs the following steps:
[0173] Obtain multiple candidate edge servers from the M edge servers whose distance to the target terminal is less than a distance threshold; select the candidate edge server with the highest connection reference score as the target edge server.
[0174] According to one embodiment of the present invention, Figure 3 The steps involved in the business processing method shown can be derived from... Figure 7 The execution is carried out by each unit in the shown business processing apparatus. For example, Figure 3 The aforementioned step S301 can be performed by Figure 7 The sending unit 701 in the service processing device shown is responsible for executing step S302, which can be performed by... Figure 7 The receiving unit 702 in the shown service processing device executes step S303, which can be performed by... Figure 7 The processing unit 703 in the shown business processing device performs the operation.
[0175] According to another embodiment of the present invention, Figure 7 The various units in the illustrated business processing apparatus can be individually or entirely merged into one or more other units, or some of the units can be further divided into multiple functionally smaller units. This achieves the same operation without affecting the technical effects of the embodiments of the present invention. The above-mentioned units are divided based on logical functions. In practical applications, the function of one unit can also be implemented by multiple units, or the function of multiple units can be implemented by one unit. In other embodiments of the present invention, the business processing apparatus may also include other units. In practical applications, these functions can also be implemented with the assistance of other units, and can be implemented collaboratively by multiple units.
[0176] According to another embodiment of the present invention, the following can be performed by running on a general-purpose computing device, such as a computer, which includes processing elements and storage elements such as a central processing unit (CPU), random access memory (RAM), and read-only memory (ROM). Figure 3 The computer program (including program code) for each step involved in the corresponding method shown, to construct such... Figure 7 The diagram illustrates a business processing apparatus and a business processing method for implementing embodiments of the present invention. The computer program may be recorded on, for example, a computer-readable storage medium, loaded onto the aforementioned node device via the computer-readable storage medium, and run therein.
[0177] In this embodiment of the invention, when the target cloud application starts running on the target terminal, the target terminal can send an allocation request to the cloud application management server. Upon receiving the allocation request, the cloud application management server obtains N selection reference information related to the target terminal for any edge server, as well as the running reference information required to run the target cloud application on the target terminal. If, based on the N selection reference information and the running reference information, it is determined that any edge server meets the requirements for providing the target cloud application's running services to the target terminal, then a connection reference score corresponding to that edge server is determined based on the N selection reference information and the connection reference scoring rule. This connection reference score and the identification information of any edge server are stored in a candidate set, which includes the connection reference scores and identification information of M edge servers. This candidate set is then sent to the target terminal, and the target terminal selects an edge server from the candidate set to provide the target cloud application's running services to the target terminal.
[0178] As mentioned above, any edge server can only be added to the candidate set if it meets the requirements for providing the target cloud application to the target terminal. In other words, all M edge servers in the candidate set must meet the requirements for providing the target cloud application to the target terminal. The fact that any edge server meets the requirements for providing the target cloud application to the target terminal can be understood as ensuring a better user experience when providing the target cloud application. Providing this candidate set to the target terminal so that it can select the edge server it needs to connect to achieves on-demand allocation of edge servers, ensuring a balanced allocation of edge servers. Simply put, this embodiment of the invention adheres to the allocation strategy of "not allocating the optimal, but only the suitable" to provide edge servers to the target terminal. In addition, each of these M edge servers corresponds to a connection reference score. The target terminal can select one edge server from the M edge servers based on the connection reference score to provide the target cloud application running services for the target terminal. It should be understood that selecting an edge server based on the connection reference score can select the optimal edge server from the "suitable edge servers". When the selected edge server provides the target cloud application running services for the target terminal, it can ensure that the target cloud application runs at a high quality on the target terminal, thereby improving the user's application experience.
[0179] Based on the above method and apparatus embodiments, this invention provides a server corresponding to the aforementioned cloud application management server. See also... Figure 8 This is a schematic diagram of the structure of a server provided in an embodiment of the present invention. Figure 8 The server shown may include a processor 801, an input interface 802, an output interface 803, and a computer storage medium 804. The processor 801, input interface 802, output interface 803, and computer storage medium 804 may be connected via a bus or other means.
[0180] Computer storage medium 804 can be stored in the server's memory. Computer storage medium 904 is used to store computer programs, and processor 901 is used to execute the computer programs stored in computer storage medium 904. Processor 801 (or CPU (Central Processing Unit)) is the computing and control core of the server, suitable for implementing one or more computer programs, specifically suitable for loading and executing:
[0181] When an allocation request is received from the target terminal, N selection reference information related to the target terminal and the running reference information required to run the target cloud application are obtained from any edge server. N is an integer greater than or equal to 2. The allocation request is sent when the target cloud application starts running in the target terminal.
[0182] If, based on the N selection reference information and the operation reference information, it is determined that any edge server meets the requirement of providing the target cloud application operation services for the target terminal, then, based on the N selection reference information and the connection reference scoring determination rule, the connection reference score corresponding to any edge server is determined; the connection reference score corresponding to any edge server and the identification information of any edge server are stored in a candidate set, the candidate set including the identification information of M edge servers and the connection reference scores corresponding to M edge servers, where M is an integer greater than 1 and less than or equal to P;
[0183] The candidate set is sent to the target terminal so that the target terminal selects a target edge server based on the connection reference score corresponding to the M edge servers, and establishes a connection with the target edge server based on the identification information corresponding to the target edge server, so that the target edge server provides the target cloud application operation service to the target terminal.
[0184] In this embodiment of the invention, when the target cloud application starts running on the target terminal, the target terminal can send an allocation request to the cloud application management server. Upon receiving the allocation request, the cloud application management server obtains N selection reference information related to the target terminal for any edge server, as well as the running reference information required to run the target cloud application on the target terminal. If, based on the N selection reference information and the running reference information, it is determined that any edge server meets the requirements for providing the target cloud application's running services to the target terminal, then a connection reference score corresponding to that edge server is determined based on the N selection reference information and the connection reference scoring rule. This connection reference score and the identification information of any edge server are stored in a candidate set, which includes the connection reference scores and identification information of M edge servers. This candidate set is then sent to the target terminal, and the target terminal selects an edge server from the candidate set to provide the target cloud application's running services to the target terminal.
[0185] As mentioned above, any edge server can only be added to the candidate set if it meets the candidate conditions for providing the target cloud application's runtime services to the target terminal. In other words, all M edge servers in the candidate set must meet the requirement of providing the target cloud application's runtime services to the target terminal. The fact that any edge server meets the requirement of providing the target cloud application's runtime services to the target terminal can be understood as ensuring a better user experience when that edge server provides the target cloud application's runtime services. Providing this candidate set to the target terminal so that it can select the edge server it needs to connect to achieves on-demand allocation of edge servers, ensuring a balanced allocation of edge servers. Simply put, this embodiment of the invention adheres to the allocation strategy of "not allocating the optimal, but only the suitable" to provide edge servers to the target terminal. In addition, each of these M edge servers corresponds to a connection reference score. The target terminal can select one edge server from the M edge servers based on the connection reference score to provide the target cloud application running services for the target terminal. It should be understood that selecting an edge server based on the connection reference score can select the optimal edge server from the "suitable edge servers". When the selected edge server provides the target cloud application running services for the target terminal, it can ensure that the target cloud application runs at a high quality on the target terminal, thereby improving the user's application experience.
[0186] Based on the above method and apparatus embodiments, this invention provides a terminal corresponding to the aforementioned target terminal. See also... Figure 9 This is a schematic diagram of the structure of a terminal provided in an embodiment of the present invention. Figure 9 The terminal shown may include a processor 901, an input interface 902, an output interface 903, and a computer storage medium 904. The processor 901, input interface 902, output interface 903, and computer storage medium 904 may be connected via a bus or other means.
[0187] The computer storage medium 904 can be stored in the terminal's memory. The computer storage medium 904 is used to store computer programs, and the processor 901 is used to execute the computer programs stored in the computer storage medium 904. The processor 901 (or CPU (Central Processing Unit)) is the terminal's computing and control core, suitable for implementing one or more computer programs, specifically suitable for loading and executing:
[0188] When the target cloud application starts running on the target terminal, an allocation request is sent to the cloud application management server. The cloud application management server is connected to P edge servers, and each of the P edge servers can provide the running services of the target cloud application. The allocation request is used to instruct the cloud application management server to return a candidate set. The candidate set includes the connection reference scores of M edge servers that meet the requirements for providing the running services of the target cloud application to the target terminal, and the identification information of the M edge servers. The connection reference score of any edge server among the M edge servers is determined based on N selection reference information related to the target terminal and the connection reference score determination rules; N is an integer greater than or equal to 2, and M is an integer greater than or equal to 1 and less than or equal to P.
[0189] The system receives the candidate set sent by the cloud application management server and selects a target edge server from the M candidate edge servers based on the connection reference scores corresponding to the M candidate edge servers. The system establishes a connection with the target edge server based on the identification information of the target edge server, so that the target edge server can provide the target cloud application's operation services to the target terminal.
[0190] In this embodiment of the invention, when the target cloud application starts running on the target terminal, the target terminal can send an allocation request to the cloud application management server. Upon receiving the allocation request, the cloud application management server obtains N selection reference information related to the target terminal for any edge server, as well as the running reference information required to run the target cloud application on the target terminal. If, based on the N selection reference information and the running reference information, it is determined that any edge server meets the requirements for providing the target cloud application's running services to the target terminal, then a connection reference score corresponding to that edge server is determined based on the N selection reference information and the connection reference scoring rule. This connection reference score and the identification information of any edge server are stored in a candidate set, which includes the connection reference scores and identification information of M edge servers. This candidate set is then sent to the target terminal, and the target terminal selects an edge server from the candidate set to provide the target cloud application's running services to the target terminal.
[0191] As mentioned above, any edge server can only be added to the candidate set if it meets the candidate conditions for providing the target cloud application's runtime services to the target terminal. In other words, all M edge servers in the candidate set must meet the requirement of providing the target cloud application's runtime services to the target terminal. The fact that any edge server meets the requirement of providing the target cloud application's runtime services to the target terminal can be understood as ensuring a better user experience when that edge server provides the target cloud application's runtime services. Providing this candidate set to the target terminal so that it can select the edge server it needs to connect to achieves on-demand allocation of edge servers, ensuring a balanced allocation of edge servers. Simply put, this embodiment of the invention adheres to the allocation strategy of "not allocating the optimal, but only the suitable" to provide edge servers to the target terminal. In addition, each of these M edge servers corresponds to a connection reference score. The target terminal can select one edge server from the M edge servers based on the connection reference score to provide the target cloud application running services for the target terminal. It should be understood that selecting an edge server based on the connection reference score can select the optimal edge server from the "suitable edge servers". When the selected edge server provides the target cloud application running services for the target terminal, it can ensure that the target cloud application runs at a high quality on the target terminal, thereby improving the user's application experience.
[0192] This invention also provides a computer storage medium (memory), which is a memory device in a server or terminal for storing programs and data. It is understood that the computer storage medium here can include the built-in storage medium of the server or terminal, or it can include extended storage media supported by the server or terminal. The computer storage medium provides storage space, which stores the operating system of the server or terminal. Furthermore, the storage space also stores one or more first computer programs suitable for loading and execution by processor 801, or the storage space also stores one or more second computer programs suitable for loading and execution by processor 901. It should be noted that the computer storage medium here can be a high-speed RAM memory, or a non-volatile memory, such as at least one disk storage device; optionally, it can also be at least one computer storage medium located remotely from the aforementioned processor.
[0193] In one embodiment, the computer storage medium may be loaded and executed by the processor 801, containing one or more first computer programs, to achieve the above-mentioned purpose. Figure 2 The corresponding steps of the business processing method.
[0194] In one embodiment, the computer storage medium may be loaded and executed by the processor 901, containing one or more second computer programs, to achieve the above-mentioned purpose. Figure 3 The corresponding steps of the business processing method shown.
[0195] According to one aspect of this application, embodiments of the present invention also provide a computer product or computer program, the computer product including a first computer program or a second computer program, the first computer program or the second computer program being stored in a computer-readable storage medium. A processor 801 reads the first computer program from the computer-readable storage medium, causing a server to load and execute it.
[0196] When an allocation request is received from the target terminal, N selection reference information related to the target terminal and the running reference information required to run the target cloud application are obtained from any edge server. N is an integer greater than or equal to 2. The allocation request is sent when the target cloud application starts running in the target terminal.
[0197] If, based on the N selection reference information and the operation reference information, it is determined that any edge server meets the requirement of providing the target cloud application operation services for the target terminal, then the connection reference score corresponding to any edge server is determined based on the N selection reference information and the connection reference score determination rule.
[0198] Store the connection reference score corresponding to any edge server and the identification information of any edge server into a candidate set. The candidate set includes the identification information of M edge servers and the connection reference scores corresponding to M edge servers, where M is an integer greater than 1 and less than or equal to P.
[0199] The candidate set is sent to the target terminal so that the target terminal selects a target edge server based on the connection reference score corresponding to the M edge servers, and establishes a connection with the target edge server based on the identification information corresponding to the target edge server, so that the target edge server provides the target cloud application operation service to the target terminal.
[0200] Alternatively, processor 901 reads a second computer program from a computer-readable storage medium, and processor 901 executes the second computer program, causing the terminal to perform... Figure 3 The business processing method shown.
[0201] When the target cloud application starts running on the target terminal, an allocation request is sent to the cloud application management server. The cloud application management server is connected to P edge servers, and each of the P edge servers can provide the running services of the target cloud application. The allocation request is used to instruct the cloud application management server to return a candidate set. The candidate set includes the connection reference scores of M edge servers that meet the requirements for providing the running services of the target cloud application to the target terminal, and the identification information of the M edge servers. The connection reference score of any edge server among the M edge servers is determined based on N selection reference information related to the target terminal and the connection reference score determination rules; N is an integer greater than or equal to 2, and M is an integer greater than or equal to 1 and less than or equal to P.
[0202] Receive the candidate set sent by the cloud application management server, and select the target edge server from the M edge servers according to the connection reference score corresponding to the M candidate edge servers;
[0203] A connection is established with the target edge server based on the identification information of the target edge server, so that the target edge server can provide the target terminal with the operation services of the target cloud application.
[0204] In this embodiment of the invention, when the target cloud application starts running on the target terminal, the target terminal can send an allocation request to the cloud application management server. Upon receiving the allocation request, the cloud application management server obtains N selection reference information related to the target terminal for any edge server, as well as the running reference information required to run the target cloud application on the target terminal. If, based on the N selection reference information and the running reference information, it is determined that any edge server meets the requirements for providing the target cloud application's running services to the target terminal, then a connection reference score corresponding to that edge server is determined based on the N selection reference information and the connection reference scoring rule. This connection reference score and the identification information of any edge server are stored in a candidate set, which includes the connection reference scores and identification information of M edge servers. This candidate set is then sent to the target terminal, and the target terminal selects an edge server from the candidate set to provide the target cloud application's running services to the target terminal.
[0205] As mentioned above, any edge server can only be added to the candidate set if it meets the candidate conditions for providing the target cloud application's runtime services to the target terminal. In other words, all M edge servers in the candidate set must meet the requirement of providing the target cloud application's runtime services to the target terminal. The fact that any edge server meets the requirement of providing the target cloud application's runtime services to the target terminal can be understood as ensuring a better user experience when that edge server provides the target cloud application's runtime services. Providing this candidate set to the target terminal so that it can select the edge server it needs to connect to achieves on-demand allocation of edge servers, ensuring a balanced allocation of edge servers. Simply put, this embodiment of the invention adheres to the allocation strategy of "not allocating the optimal, but only the suitable" to provide edge servers to the target terminal. In addition, each of these M edge servers corresponds to a connection reference score. The target terminal can select one edge server from the M edge servers based on the connection reference score to provide the target cloud application running services for the target terminal. It should be understood that selecting an edge server based on the connection reference score can select the optimal edge server from the "suitable edge servers". When the selected edge server provides the target cloud application running services for the target terminal, it can ensure that the target cloud application runs at a high quality on the target terminal, thereby improving the user's application experience.
Claims
1. A business processing method, characterized in that, The business processing method is executed by a cloud application management server, which is connected to P edge servers. Each of the P edge servers provides the runtime services for the target cloud application. The method includes: When an allocation request is received from the target terminal, N selection reference information related to any edge server and the target terminal, as well as the runtime reference information required to run the target cloud application, are obtained. N is an integer greater than or equal to 2. The allocation request is sent when the target cloud application starts running in the target terminal. The N selection reference information corresponding to any edge server includes: real-time network quality, historical network quality, operating cost, and available resources. The runtime reference information required to run the target cloud application includes the reference network quality and required resources. The reference network quality of the target cloud application is obtained by testing the network quality requirements of operation data under different network quality conditions. The operation data is the data corresponding to the operation scenario that has the greatest impact on the target cloud application. If, based on the N selection reference information and operational reference information, it is determined that any edge server meets the requirement of providing the operational services of the target cloud application to the target terminal, then a first weight value corresponding to the baseline network quality determined according to the real-time network quality and historical network quality, a second weight value corresponding to the operating cost, and a third weight value corresponding to the available resource quantity are obtained; wherein, meeting the requirement of providing the operational services of the target cloud application to the target terminal includes: the baseline network quality for communication between any edge server and the target terminal, determined according to the real-time network quality and historical network quality, is higher than the reference network quality; the specific values of the first weight value, the second weight value, and the third weight value are set according to the attention paid to the selection reference information when selecting an edge server; The baseline network quality, the first weight value, the operating cost, the second weight value, the available resources, and the third weight value are input into the calculation formula corresponding to the connection reference score determination rule to obtain the connection reference score for any edge server. Store the connection reference score corresponding to any edge server and the identification information of any edge server into a candidate set. The candidate set includes the identification information of M edge servers and the connection reference scores corresponding to M edge servers, where M is an integer greater than 1 and less than or equal to P. The candidate set is sent to the target terminal so that the target terminal selects a target edge server based on the connection reference score corresponding to the M edge servers, and establishes a connection with the target edge server based on the identification information corresponding to the target edge server, so that the target edge server provides the target cloud application's operation services to the target terminal; Among them, obtaining N selection reference information related to any edge server and the target terminal includes: Obtain all historical communication data between any edge server and the target terminal; filter historical communication data from all historical communication data whose connection information is the same as the current connection information; calculate historical network quality based on the filtered historical communication data and historical communication data between other terminals and any edge server; other terminals refer to at least one terminal that has communicated with any edge server and has the same access method, the same operator, and the same region as the target terminal.
2. The method as described in claim 1, characterized in that, The N selection reference information corresponding to any edge server also includes any one or two of the following: available resources and operating costs for providing the target cloud application's running services.
3. The method as described in claim 2, characterized in that, The method further includes: The bandwidth cost and resource cost required for any edge server to provide the running services of the target cloud application are obtained. The bandwidth cost is obtained by multiplying the unit bandwidth cost of any edge server with the bandwidth required to provide the running services of the target cloud application. The resource cost is obtained by multiplying the resources required to provide the running services of the target cloud application with the unit resource cost. Obtain the data center rental cost of any of the edge servers; The bandwidth cost, the resource cost, and the data center rental cost are added together to obtain the operating cost of the target cloud application provided by any edge server.
4. The method as described in claim 2, characterized in that, The runtime reference information includes the reference resource quantity required to run the target cloud application, and the N selection reference information includes the available resource quantity. The method further includes: If the available resource quantity is greater than or equal to the reference resource quantity, then it is determined that any edge server meets the requirement of providing the target cloud application's operational services to the target terminal.
5. The method as described in claim 2, characterized in that, The step of determining the baseline network quality for communication between the edge server and the target terminal based on the real-time network quality and the historical network quality includes: The worse of the real-time network quality and the historical network quality is used as the baseline network quality.
6. A business processing method, characterized in that, include: When the target cloud application starts running on the target terminal, the target terminal sends an allocation request to the cloud application management server. The cloud application management server is connected to P edge servers, and each of the P edge servers is used to provide the running services of the target cloud application. The allocation request is used to instruct the cloud application management server to return a candidate set. The candidate set includes the connection reference scores of the edges of M edge servers that meet the requirements for providing the running services of the target cloud application to the target terminal, and the identification information of the M edge servers. The connection reference score of any edge server among the M edge servers is determined based on N selection reference information related to the target terminal and the connection reference score determination rules. N is an integer greater than or equal to 2, and M is an integer greater than or equal to 1 and less than or equal to P; the N selection reference information corresponding to any edge server includes: real-time network quality, historical network quality, operating cost, and available resources; wherein, meeting the requirements for providing the target cloud application's operational services to the target terminal includes: the baseline network quality for communication between any edge server and the target terminal, determined based on the real-time network quality and the historical network quality, is higher than the reference network quality; The target terminal receives the candidate set sent by the cloud application management server, and selects a target edge server from the M edge servers according to the connection reference scores corresponding to the M candidate edge servers; The target terminal establishes a connection with the target edge server based on the identification information of the target edge server, so that the target edge server provides the target terminal with the operation services of the target cloud application; Specifically, meeting the requirement of providing the target cloud application with the operational services of the target terminal means that: the cloud application management server obtains N selection reference information and the operational reference information required to run the target cloud application to determine that any edge server meets the requirement of providing the target cloud application with the operational services of the target terminal; the operational reference information required to run the target cloud application includes the reference network quality and the required amount of resources required to run the target cloud application. The reference network quality of the target cloud application is obtained by testing the network quality requirements of the operation data under different network quality conditions. The operation data is the data corresponding to the operation scenario that has the greatest impact on the target cloud application. The steps for obtaining the N selection reference information related to any edge server and the target terminal include: the cloud application management server obtaining all historical communication data between any edge server and the target terminal; filtering historical communication data from all historical communication data whose connection information is the same as the current connection information; and calculating historical network quality based on the filtered historical communication data and historical communication data between other terminals and any edge server. Other terminals refer to at least one terminal that has communicated with any edge server and has the same access method, the same operator, and the same region as the target terminal. Based on N selection reference information and connection reference scoring rules related to any edge server and the target terminal, determining the connection reference score of any edge server among M edge servers involves: the cloud application management server obtaining a first weight value corresponding to the baseline network quality determined based on the real-time network quality and historical network quality, a second weight value corresponding to the operating cost, and a third weight value corresponding to the available resources. The specific values of the first, second, and third weight values are set according to the attention paid to the selection reference information when selecting an edge server; the baseline network quality, the first weight value, the operating cost, the second weight value, the available resources, and the third weight value are input into the calculation formula corresponding to the connection reference scoring rules to obtain the connection reference score corresponding to any edge server.
7. The method as described in claim 6, characterized in that, The method further includes: When the target cloud application starts running on the target terminal, a network quality acquisition request is sent to any one of the P edge servers. The network quality acquisition request is used to instruct the edge server to calculate the real-time network quality based on the current communication data between the edge server and the target terminal. Receive real-time network quality data sent by any of the edge servers and upload the real-time network quality data to the cloud application management server.
8. The method as described in claim 6, characterized in that, The step of selecting a target edge server from the M edge servers based on the connection reference scores corresponding to the M edge servers includes: Traverse the M edge servers to determine the edge servers that are in a connectable state; Select the edge server with the highest reference score or the lowest operating cost from the edge servers that are in a connectable state as the target edge server.
9. The method as described in claim 6, characterized in that, The step of selecting a target edge server from the M edge servers based on the connection reference scores corresponding to the M edge servers includes: Obtain multiple candidate edge servers from the M edge servers whose distance to the target terminal is less than a distance threshold; The candidate edge server with the highest connection reference score is selected as the target edge server.
10. A business processing apparatus, characterized in that, The service processing device is configured in a cloud application management server, which is connected to P edge servers. Each of the P edge servers provides the runtime services for the target cloud application. The device includes: The acquisition unit is configured to, upon receiving an allocation request from a target terminal, acquire N selection reference information related to the target terminal corresponding to any edge server, as well as runtime reference information required to run the target cloud application. N is an integer greater than or equal to 2. The allocation request is sent when the target cloud application starts running on the target terminal. The N selection reference information corresponding to any edge server includes: real-time network quality, historical network quality, operating cost, and available resources. The runtime reference information required to run the target cloud application includes the reference network quality and required resources. The reference network quality of the target cloud application is obtained by testing the network quality requirements of operational data under different network quality conditions. The operational data is the data corresponding to the operational scenarios that have the greatest impact on the target cloud application. The determining unit is configured to, if based on the N selection reference information and operation reference information, determine that any edge server meets the requirement of providing the target cloud application's operation services to the target terminal, then obtain a first weight value corresponding to the baseline network quality determined based on the real-time network quality and historical network quality, a second weight value corresponding to the operating cost, and a third weight value corresponding to the available resources; input the baseline network quality, the first weight value, the operating cost, the second weight value, the available resources, and the third weight value into the calculation formula corresponding to the connection reference scoring determination rule to obtain the connection reference score corresponding to any edge server; the specific values of the first weight value, the second weight value, and the third weight value are set according to the attention paid to the selection reference information when selecting an edge server; wherein, meeting the requirement of providing the target cloud application's operation services to the target terminal includes: the baseline network quality for communication between any edge server and the target terminal, determined based on the real-time network quality and historical network quality, is higher than the reference network quality; The processing unit is configured to store the connection reference score corresponding to any edge server and the identification information of any edge server into a candidate set, wherein the candidate set includes the identification information of M edge servers and the connection reference scores corresponding to M edge servers, where M is an integer greater than 1 and less than or equal to P. The sending unit is used to send the candidate set to the target terminal, so that the target terminal selects a target edge server according to the connection reference score corresponding to the M edge servers, and establishes a connection with the target edge server based on the identification information corresponding to the target edge server, so that the target edge server provides the target cloud application operation service to the target terminal; The acquisition unit is used to acquire all historical communication data between any edge server and the target terminal; filter historical communication data from all historical communication data whose connection information is the same as the current connection information; and calculate historical network quality based on the filtered historical communication data and historical communication data between other terminals and any edge server. Other terminals refer to at least one terminal that has communicated with any edge server and has the same access method, the same operator, and the same region as the target terminal.
11. A business processing apparatus, characterized in that, include: The sending unit is configured to send an allocation request to a cloud application management server when the target cloud application starts running on the target terminal. The cloud application management server is connected to P edge servers, and each of the P edge servers can provide the running services of the target cloud application. The allocation request is used to instruct the cloud application management server to return a candidate set. The candidate set includes the connection reference scores of the edges of M edge servers that meet the requirements for providing the running services of the target cloud application to the target terminal, and the identification information of the M edge servers. The connection reference score of any edge server among the M edge servers is determined based on N selection reference information related to the target terminal and the connection reference score determination rules. N is an integer greater than or equal to 2, and M is an integer greater than or equal to 1 and less than or equal to P; the N selection reference information corresponding to any edge server includes: real-time network quality, historical network quality, operating cost, and available resources; wherein, meeting the requirements for providing the target cloud application's operational services to the target terminal includes: the baseline network quality for communication between any edge server and the target terminal, determined based on the real-time network quality and the historical network quality, is higher than the reference network quality; The receiving unit is configured to receive the candidate set sent by the cloud application management server, and select a target edge server from the M edge servers according to the connection reference scores corresponding to the M candidate edge servers. The processing unit is configured to establish a connection with the target edge server based on the identification information of the target edge server, so that the target edge server can provide the target terminal with the running services of the target cloud application; Specifically, meeting the requirement of providing the target cloud application with the operational services of the target terminal means that: the cloud application management server obtains N selection reference information and the operational reference information required to run the target cloud application to determine that any edge server meets the requirement of providing the target cloud application with the operational services of the target terminal; the operational reference information required to run the target cloud application includes the reference network quality and the required amount of resources required to run the target cloud application. The reference network quality of the target cloud application is obtained by testing the network quality requirements of the operation data under different network quality conditions. The operation data is the data corresponding to the operation scenario that has the greatest impact on the target cloud application. The steps for obtaining the N selection reference information related to any edge server and the target terminal include: the cloud application management server obtaining all historical communication data between any edge server and the target terminal; filtering historical communication data from all historical communication data whose connection information is the same as the current connection information; and calculating historical network quality based on the filtered historical communication data and historical communication data between other terminals and any edge server. Other terminals refer to at least one terminal that has communicated with any edge server and has the same access method, the same operator, and the same region as the target terminal. Based on N selection reference information and connection reference scoring rules related to any edge server and the target terminal, determining the connection reference score of any edge server among M edge servers involves: the cloud application management server obtaining a first weight value corresponding to the baseline network quality determined based on the real-time network quality and historical network quality, a second weight value corresponding to the operating cost, and a third weight value corresponding to the available resources. The specific values of the first, second, and third weight values are set according to the attention paid to the selection reference information when selecting an edge server; the baseline network quality, the first weight value, the operating cost, the second weight value, the available resources, and the third weight value are input into the calculation formula corresponding to the connection reference scoring rules to obtain the connection reference score corresponding to any edge server.
12. A computer storage medium, characterized in that, The computer storage medium stores a first computer program, which, when executed by a processor, is used to perform the business processing method as described in any one of claims 1-5; or, the computer storage medium stores a second computer program, which, when executed by a processor, is used to perform the business processing method as described in any one of claims 6-9.
13. A computer program product, comprising a computer program, characterized in that, The computer program is processed and executed to implement the business processing method as described in any one of claims 1-9.