Client network access optimization scheme
By deploying application code on multiple cloud service providers and geographic nodes and dynamically selecting the optimal host address, the problem of insufficient network latency and failure recovery capabilities in a single cloud service environment is solved, and network access quality and stability are improved.
Patent Information
- Application Number
- CN202411714408.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-27
- Publication Date
- 2025-02-25
AI Technical Summary
In a single cloud service single-region node environment, as the number of users increases, network services face problems such as network latency, bandwidth bottlenecks and insufficient fault recovery capabilities, which especially affect real-time applications such as online games, video conferencing and financial transactions.
By deploying application code on different cloud service providers and regional nodes, setting a fixed time and frequency cycle to obtain the optimal service host address list and access policy, selecting the optimal host address for network requests, and recording exceptions when the host address access is abnormal and switching to the alternate host address.
It realizes the cloud regional node of the cloud service operator that quickly and automatically switches to the cloud service provider when a service is encountered, improving the network access quality and overall stability of the client.
Smart Images

Figure CN119520617A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network communication technology, and more specifically, to a client network access optimization solution. Background Art
[0002] As digital transformation continues to deepen, more and more enterprises and users rely on cloud services to support their applications and business processes. However, in a single cloud service single-region node environment, as the number of users continues to increase, network services face many challenges. These challenges are mainly reflected in network latency, bandwidth bottlenecks, and insufficient fault recovery capabilities, especially for real-time applications that have high requirements for network service quality, such as online games, video conferencing, and financial transactions.
[0003] Network latency is an important factor affecting user experience. Especially in high-concurrency situations, the bandwidth of a single node can be quickly occupied, resulting in longer response times and a poorer user experience. In addition, when a single node's physical server and network equipment fails, it may cause a long service interruption, causing serious impact on end users. In view of these problems, we need an effective network access optimization solution to address the limitations of the existing environment. Summary of the invention
[0004] The present invention aims at the technical problems existing in the prior art and provides a client network access optimization solution to solve the problems raised in the above background technology.
[0005] The technical solution of the present invention to solve the above technical problem is as follows: a client network access optimization solution, specifically comprising the following steps:
[0006] Step 101, multi-cloud service deployment: deploy application codes on different cloud service providers and regional nodes to handle user requests in different regions;
[0007] Step 102, obtaining the optimal host address: setting a fixed time frequency, cyclically obtaining the optimal service host address list and corresponding access strategy for the current network access;
[0008] Step 103, select a host address for access: select an optimal host address for network request according to the obtained host address list and access policy;
[0009] Step 104, exception handling and backup access: When the host address access is abnormal, the abnormal host address will be recorded and marked, and other host addresses will continue to be obtained from the host address list and accessed in order of priority.
[0010] In a preferred embodiment, in step 101, multi-cloud service deployment: deploying application codes on different cloud service providers and regional nodes to process user requests in different regions, the specific steps are as follows:
[0011] Step A1: Establish infrastructure: Design the application architecture, split the application into modules suitable for running in a multi-cloud environment, ensure that each module can be independently deployed and run in different cloud environments, create the required infrastructure in the selected cloud environment, including computing resources, storage, and database, and ensure that the relevant security configurations are in place;
[0012] Step A2, application deployment: Deploy the application code and its dependencies to each selected cloud service provider and its corresponding regional nodes, ensure stable version management and configuration, set up load balancing services, and distribute requests among various cloud nodes to improve performance and availability.
[0013] In a preferred embodiment, in step 102, the optimal host address is obtained: a fixed time frequency is set, and the optimal service host address list and the corresponding access strategy for the current network access are cyclically obtained. The specific steps are as follows:
[0014] Step B1, requesting host address: a fixed time interval is set to every minute to periodically obtain the optimal host list to keep the information up to date and valid. The application communicates with the backend server in each time interval to request the current host address list and access policy;
[0015] Step B2, analyzing the network status: When obtaining the list, the application dynamically evaluates and selects the optimal host address based on the network delay and packet loss rate indicators, and stores the obtained host address list and strategy locally for subsequent access and use, further including the following steps:
[0016] Step B201: Send a request to each host address, record the response time of each request, and calculate the average delay. Perform multiple rounds of request tests, record the number of successful and failed requests, and calculate the packet loss rate. The specific calculation formula is as follows:
[0017]
[0018]
[0019] Among them, T i is the response time of the i-th request, n is the total number of requests, Avg_Latency is the average latency in milliseconds, s is the number of successfully responded requests, and Packet_Loss_Rate is the packet loss rate;
[0020] Step B202: collect the delay and packet loss rate performance data of each host and aggregate them into a structured data object.
[0021] In a preferred embodiment, in step 103, a host address is selected for access: according to the acquired host address list and access policy, an optimal host address is selected for network request, and the specific steps are as follows:
[0022] Step C1, select the best host: use a standardized method to score the delay and packet loss rate, and set the threshold T total , remove hosts that do not meet the delay and packet loss rate standards from the list, and select an optimal host address for network requests based on the access policy and comprehensive score. The specific calculation formula is as follows:
[0023] S total =w latency ·S latency +w packet_loss ·S packet_loss
[0024]
[0025] Among them, S latency is the latency score of the host, L host is the average latency of the host, L max and L min They represent the maximum delay and minimum delay of all hosts, S packet_loss is the packet loss rate score of the host, P host is the packet loss rate of the host, P max and P min Respectively represent the maximum packet loss rate and minimum packet loss rate of all hosts, w latency and w packet_loss are the weights of delay and packet loss rate, S total is a comprehensive score, when S total <T total , delete the host from the list;
[0026] Step C2, initiate a request: initiate a network request to the selected host address, record the start time and response time of the request, and wait for a response.
[0027] In a preferred embodiment, in step 104, exception handling and backup access: when the host address access is abnormal, the abnormal host address will be recorded and marked, and other host addresses will continue to be obtained from the host address list and accessed in order of priority. The specific steps are as follows:
[0028] Step D1, check access status: monitor the response status during the request process, and record the abnormal address when the host address access is abnormal, including timeout and connection failure, and mark and record the abnormal host address to prevent repeated attempts;
[0029] Step D2, obtain the backup host address: obtain other host addresses from the host address list, access them in order of priority, initiate access requests to the new host addresses until they are successfully connected, and stop accessing when all available addresses are exhausted.
[0030] Step D3, reporting abnormal information: When successfully connected to a new host, the host address list is updated, and the abnormal host address is fed back to the server, so that the server can monitor and process the host and ensure that the client can quickly switch to an available host.
[0031] The beneficial effects of the present invention are as follows: by deploying application codes on different cloud service providers and regional nodes to process user requests from different regions, a fixed time frequency is set, and the optimal service host address list and corresponding access policy for current network access are cyclically obtained. According to the obtained host address list and access policy, an optimal host address is selected for network request. When the host address access is abnormal, the abnormal host address will be recorded and marked, and other host addresses will continue to be obtained from the host address list, and access will be performed in sequence according to priority. When encountering service abnormalities, the present invention can quickly and automatically switch to the cloud regional node of the cloud service operator providing the service, thereby improving the network access quality and overall stability of the client. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 The present invention is a flow chart of the method. DETAILED DESCRIPTION
[0033] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0034] In the description of this application, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, "plurality" means two or more, unless otherwise clearly and specifically defined.
[0035] In the description of the present application, the term "for example" is used to mean "used as an example, illustration or description". Any embodiment described as "for example" in the present application is not necessarily to be construed as being more preferred or advantageous than other embodiments. The following description is given to enable any technician in the field to implement and use the present invention. In the following description, details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the present invention can be implemented without using these specific details. In other examples, well-known structures and processes will not be elaborated in detail to avoid unnecessary details to obscure the description of the present invention. Therefore, the present invention is not intended to be limited to the embodiments shown, but is consistent with the widest scope consistent with the principles and features disclosed in the present application.
[0036] Example 1
[0037] This embodiment provides Figure 1 A client network access optimization solution is shown, which specifically includes the following steps:
[0038] Step 101, multi-cloud service deployment: deploy application codes on different cloud service providers and regional nodes to handle user requests in different regions;
[0039] Step 102, obtaining the optimal host address: setting a fixed time frequency, cyclically obtaining the optimal service host address list and corresponding access strategy for the current network access;
[0040] Step 103, select a host address for access: select an optimal host address for network request according to the obtained host address list and access policy;
[0041] Step 104, exception handling and backup access: When the host address access is abnormal, the abnormal host address will be recorded and marked, and other host addresses will continue to be obtained from the host address list and accessed in order of priority.
[0042] Preferably, in step 101, multi-cloud service deployment: deploying application codes on different cloud service providers and regional nodes to process user requests from different regions, reducing the risk of single point failures and ensuring high availability of services by distributing applications across multiple cloud platforms and regions, and the specific steps are as follows:
[0043] Step A1: Establish infrastructure: Design the application architecture, split the application into modules suitable for running in a multi-cloud environment, ensure that each module can be independently deployed and run in different cloud environments, create the required infrastructure in the selected cloud environment, including computing resources, storage, and database, and ensure that the relevant security configurations are in place;
[0044] Step A2, application deployment: Deploy the application code and its dependencies to each selected cloud service provider and its corresponding regional nodes, ensure stable version management and configuration, set up load balancing services, and distribute requests among various cloud nodes to improve performance and availability.
[0045] Preferably, in step 102, the optimal host address is obtained: a fixed time frequency is set, and the optimal service host address list and the corresponding access policy for the current network access are cyclically obtained, and user requests are reasonably allocated according to the access policy to avoid overloading of a certain host and protect the stability and security of the service. The specific steps are as follows:
[0046] Step B1, requesting host address: a fixed time interval is set to every minute to periodically obtain the optimal host list to keep the information up to date and valid. The application communicates with the backend server in each time interval to request the current host address list and access policy;
[0047] Step B2, analyzing the network status: When obtaining the list, the application dynamically evaluates and selects the optimal host address based on the network delay and packet loss rate indicators, and stores the obtained host address list and strategy locally for subsequent access and use, further including the following steps:
[0048] Step B201: Send a request to each host address, record the response time of each request, and calculate the average delay. Perform multiple rounds of request tests, record the number of successful and failed requests, and calculate the packet loss rate. The specific calculation formula is as follows:
[0049]
[0050]
[0051] Among them, T i is the response time of the i-th request, n is the total number of requests, Avg_Latency is the average latency in milliseconds, s is the number of successfully responded requests, and Packet_Loss_Rate is the packet loss rate;
[0052] Step B202: collect the delay and packet loss rate performance data of each host and aggregate them into a structured data object.
[0053] Preferably, in step 103, a host address is selected for access: according to the acquired host address list and access policy, an optimal host address is selected for network request, which can reduce the response time of the request, improve user satisfaction, and enhance user trust and loyalty to the service. The specific steps are as follows:
[0054] Step C1, select the best host: use a standardized method to score the delay and packet loss rate, and set the threshold T total , remove hosts that do not meet the delay and packet loss rate standards from the list, and select an optimal host address for network requests based on the access policy and comprehensive score. The specific calculation formula is as follows:
[0055] S total =w latency ·S latency +w packet_loss ·S packet_loss
[0056]
[0057] Among them, S latency is the latency score of the host, L host is the average latency of the host, L max and L min They represent the maximum delay and minimum delay of all hosts, S packet_loss is the packet loss rate score of the host, P host is the packet loss rate of the host, P max and P min Respectively represent the maximum packet loss rate and minimum packet loss rate of all hosts, w latency and w packet_loss are the weights of delay and packet loss rate, S total is a comprehensive score, when S total <T total , delete the host from the list;
[0058] Step C2, initiate a request: initiate a network request to the selected host address, record the start time and response time of the request, and wait for a response.
[0059] Preferably, in step 104, exception handling and backup access: when the host address access is abnormal, the abnormal host address will be recorded and marked, and other host addresses will continue to be obtained from the host address list, and access will be performed in sequence according to priority, thereby reducing the risk of service interruption due to single point failure. In the case of abnormal access, it is possible to avoid requesting unsafe hosts, protecting user data and system security. The specific steps are as follows:
[0060] Step D1, check access status: monitor the response status during the request process, and record the abnormal address when the host address access is abnormal, including timeout and connection failure, and mark and record the abnormal host address to prevent repeated attempts;
[0061] Step D2, obtain the backup host address: obtain other host addresses from the host address list, access them in order of priority, initiate access requests to the new host addresses until they are successfully connected, and stop accessing when all available addresses are exhausted.
[0062] Step D3, reporting abnormal information: When successfully connected to a new host, the host address list is updated, and the abnormal host address is fed back to the server, so that the server can monitor and process the host and ensure that the client can quickly switch to an available host.
[0063] Example 2
[0064] This embodiment provides Figure 1 A client network access optimization solution is shown, which specifically includes the following steps:
[0065] Step 101, multi-cloud service deployment: deploy application codes on different cloud service providers and regional nodes to handle user requests in different regions;
[0066] Furthermore, in step 101, multi-cloud service deployment: deploying application codes on different cloud service providers and regional nodes to process user requests in different regions, the specific steps are as follows:
[0067] Step A1: Establish infrastructure: Design the application architecture, split the application into modules suitable for running in a multi-cloud environment, ensure that each module can be independently deployed and run in different cloud environments, create the required infrastructure in the selected cloud environment, including computing resources, storage, and database, and ensure that the relevant security configurations are in place;
[0068] Step A2, application deployment: Deploy the application code and its dependencies to each selected cloud service provider and its corresponding regional nodes, ensure stable version management and configuration, set up load balancing services, and distribute requests among various cloud nodes to improve performance and availability.
[0069] Step 102, obtaining the optimal host address: setting a fixed time frequency, cyclically obtaining the optimal service host address list and corresponding access strategy for the current network access;
[0070] Furthermore, in step 102, the optimal host address is obtained: a fixed time frequency is set, and the optimal service host address list and the corresponding access strategy for the current network access are cyclically obtained. The specific steps are as follows:
[0071] Step B1, requesting host address: a fixed time interval is set to every minute to periodically obtain the optimal host list to keep the information up to date and valid. The application communicates with the backend server in each time interval to request the current host address list and access policy;
[0072] Step B2, analyzing the network status: When obtaining the list, the application dynamically evaluates and selects the optimal host address based on the network delay and packet loss rate indicators, and stores the obtained host address list and strategy locally for subsequent access and use, further including the following steps:
[0073] Step B201: Send a request to each host address, record the response time of each request, and calculate the average delay. Perform multiple rounds of request tests, record the number of successful and failed requests, and calculate the packet loss rate. The specific calculation formula is as follows:
[0074]
[0075] Among them, T i is the response time of the i-th request, n is the total number of requests, Avg_Latency is the average latency in milliseconds, s is the number of successfully responded requests, and Packet_Loss_Rate is the packet loss rate;
[0076] Step B202: collect the delay and packet loss rate performance data of each host and aggregate them into a structured data object.
[0077] Step 103, select a host address for access: select an optimal host address for network request according to the obtained host address list and access policy;
[0078] Furthermore, in step 103, a host address is selected for access: based on the acquired host address list and access policy, an optimal host address is selected for network request, and the specific steps are as follows:
[0079] Step C1, select the best host: use a standardized method to score the delay and packet loss rate, and set the threshold T total , remove hosts that do not meet the delay and packet loss rate standards from the list, and select an optimal host address for network requests based on the access policy and comprehensive score. The specific calculation formula is as follows:
[0080] S total =w latency ·S latency +w packet_loss ·S packet_loss
[0081]
[0082] Among them, S latency is the latency score of the host, L host is the average latency of the host, L max and L minThey represent the maximum delay and minimum delay of all hosts, S packet_loss is the packet loss rate score of the host, P host is the packet loss rate of the host, P max and P min Respectively represent the maximum packet loss rate and minimum packet loss rate of all hosts, w latency and w packet_loss are the weights of delay and packet loss rate, S total is a comprehensive score, when S total <T total , delete the host from the list;
[0083] Step C2, initiate a request: initiate a network request to the selected host address, record the start time and response time of the request, and wait for a response.
[0084] Step 104, exception handling and backup access: when the host address access is abnormal, the abnormal host address will be recorded and marked, and other host addresses will continue to be obtained from the host address list and accessed in order of priority;
[0085] Furthermore, in step 104, exception handling and backup access: when the host address access is abnormal, the abnormal host address will be recorded and marked, and other host addresses will continue to be obtained from the host address list and accessed in order of priority. The specific steps are as follows:
[0086] Step D1, check access status: monitor the response status during the request process, and record the abnormal address when the host address access is abnormal, including timeout and connection failure, and mark and record the abnormal host address to prevent repeated attempts;
[0087] Step D2, obtain the backup host address: obtain other host addresses from the host address list, access them in order of priority, initiate access requests to the new host addresses until they are successfully connected, and stop accessing when all available addresses are exhausted.
[0088] Step D3, reporting abnormal information: When successfully connected to a new host, the host address list is updated, and the abnormal host address is fed back to the server, so that the server can monitor and process the host and ensure that the client can quickly switch to an available host.
[0089] It should be noted that in the above embodiments, the description of each embodiment has its own emphasis, and for parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0090] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0091] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded computer, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0092] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0093] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0094] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0095] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A client network access optimization solution, characterized in that: The specific steps include: Step 101, multi-cloud service deployment: deploy application codes on different cloud service providers and regional nodes to handle user requests in different regions; Step 102, obtaining the optimal host address: setting a fixed time frequency, cyclically obtaining the optimal service host address list and corresponding access strategy for the current network access; Step 103, select a host address for access: select an optimal host address for network request according to the obtained host address list and access policy; Step 104, exception handling and backup access: When the host address access is abnormal, the abnormal host address will be recorded and marked, and other host addresses will continue to be obtained from the host address list and accessed in order of priority.
2. A client network access optimization solution according to claim 1, characterized in that: In step 101, multi-cloud service deployment: deploying application codes on different cloud service providers and regional nodes to process user requests in different regions, the specific steps are as follows: Step A1: Establish infrastructure: Design the application architecture, split the application into modules suitable for running in a multi-cloud environment, ensure that each module can be independently deployed and run in different cloud environments, and create the required infrastructure in the selected cloud environment, including computing resources, storage, and databases; Step A2, application deployment: deploy the application code and its dependencies to each selected cloud service provider and its corresponding regional nodes, ensure stable version management and configuration, set up load balancing services, and realize the distribution of requests among various cloud nodes.
3. A client network access optimization solution according to claim 1, characterized in that: In step 102, the optimal host address is obtained: a fixed time frequency is set to cyclically obtain the optimal service host address list and the corresponding access strategy for the current network access. The specific steps are as follows: Step B1, request host address: set a fixed time interval of every minute, and the application communicates with the backend server in each time interval to request the current host address list and access policy; Step B2, analyzing the network status: When obtaining the list, the application selects the optimal host address according to the network delay and packet loss rate indicators, and stores the obtained host address list and strategy locally for subsequent access and use.
4. A client network access optimization solution according to claim 3, characterized in that: In step B2, when obtaining the list, the application selects the optimal host address according to the network delay and packet loss rate indicators, further comprising the following steps: Step B201: Send a request to each host address, record the response time of each request, and calculate the average delay. Perform multiple rounds of request tests, record the number of successful and failed requests, and calculate the packet loss rate. The specific calculation formula is as follows: Among them, T i is the response time of the i-th request, n is the total number of requests, Avg-Latency is the average latency in milliseconds, s is the number of successfully responded requests, and Packet_Loss_Rate is the packet loss rate; Step B202: collect the delay and packet loss rate performance data of each host and aggregate them into a structured data object.
5. A client network access optimization solution according to claim 1, characterized in that: In step 103, a host address is selected for access: based on the acquired host address list and access policy, an optimal host address is selected for network request. The specific steps are as follows: Step C1, select the best host: use a standardized method to score the delay and packet loss rate, and set the threshold T total , remove hosts that do not meet the delay and packet loss rate standards from the list, and select an optimal host address for network requests based on the access policy and comprehensive score. The specific calculation formula is as follows: S total =w latency ·S latency +w packet-loss ·S packet-loss Among them, S latency is the latency score of the host, L host is the average latency of the host, L max and L min They represent the maximum delay and minimum delay of all hosts, S packet-loss is the packet loss rate score of the host, P host is the packet loss rate of the host, P max and P min Respectively represent the maximum packet loss rate and minimum packet loss rate of all hosts, w latency and w packet-loss are the weights of delay and packet loss rate, S total is a comprehensive score, when S total <T total , delete the host from the list; Step C2, initiate a request: initiate a network request to the selected host address, record the start time and response time of the request, and wait for a response.
6. A client network access optimization solution according to claim 1, characterized in that: In step 104, exception handling and backup access: when the host address access is abnormal, the abnormal host address will be recorded and marked, and other host addresses will continue to be obtained from the host address list and accessed in order of priority. The specific steps are as follows: Step D1, check access status: monitor the response status during the request process, and record the abnormal address when the host address access is abnormal, including timeout and connection failure, and mark and record the abnormal host address to prevent repeated attempts; Step D2, obtain the backup host address: obtain other host addresses from the host address list, access them in order of priority, initiate access requests to the new host addresses until they are successfully connected, and stop accessing when all available addresses are exhausted. Step D3, reporting abnormal information: when successfully connected to a new host, the host address list is updated, and the abnormal host address is fed back to the server, so that the server can monitor and process the host.
