Methods, apparatus, devices and storage media for optimizing game client networks

By identifying the types of game client operation scenarios and adjusting the router's network resource configuration, the latency and packet loss issues caused by the single network connection strategy of game clients were resolved, thus improving the user experience.

CN116566826BActive Publication Date: 2026-03-31TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-27
Publication Date
2026-03-31

Smart Images

  • Figure CN116566826B_ABST
    Figure CN116566826B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a method, device, equipment and storage medium for optimizing a game client network, comprising: determining a scene category to which a running scene of a game client belongs, the scene category being used to describe attribute requirements of data communication in each running scene of the game client for network resources; determining a network resource optimization strategy matched with the scene category; and sending a strategy adjustment request to a router communicated with the game client according to the network resource optimization strategy, so that the router adjusts local network resource configuration based on the network resource optimization strategy in response to the strategy adjustment request. Embodiments provided by the present application can reduce the probability of occurrence of delay or packet loss, and improve user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and more specifically, to a method, apparatus, device, and storage medium for optimizing a game client network. Background Technology

[0002] Game applications have extremely high requirements for real-time network communication and download speed. Latency or packet loss can severely impact the gaming experience, especially in critical scenarios where even momentary network fluctuations can lead to game failures, significantly affecting the user experience. Currently, a universal network connection strategy is used for different game scenarios, meaning the strategy is relatively simplistic and cannot be flexibly adjusted according to actual network connection needs, making it highly susceptible to latency or packet loss. Summary of the Invention

[0003] To address the aforementioned technical problems, embodiments of this application provide a method for optimizing a game client network using a collaborative router, an apparatus for optimizing a game client network using a collaborative router, an electronic device, and a computer-readable storage medium, which can reduce the probability of latency or packet loss and improve user experience.

[0004] Other features and advantages of this application will become apparent from the following detailed description, or may be learned in part from practice of this application.

[0005] According to one aspect of the embodiments of this application, a method for optimizing a game client network using a collaborative router is provided, comprising: determining the scene category to which the game client's running scene belongs, wherein the scene category is used to describe the attribute requirements of network resources for data communication in various running scenes of the game client; determining a network resource optimization strategy matching the scene category; and sending a policy adjustment request to the router to which the game client communicates according to the network resource optimization strategy, so that the router responds to the policy adjustment request and adjusts its local network resource configuration based on the network resource optimization strategy.

[0006] In an exemplary embodiment, sending a policy adjustment request to the router to which the game client communicates according to the network resource optimization policy includes: sending the policy adjustment request to the smart terminal system running on the client according to the network resource optimization policy, so that the smart terminal system adjusts its local network resource configuration based on the policy adjustment request and then forwards the policy adjustment request to the router.

[0007] In an exemplary embodiment, before sending the policy adjustment request to the smart terminal system running the game client according to the network resource optimization policy, the method further includes: sending confirmation information to the smart terminal system, the confirmation information being used to indicate whether the smart terminal system and the router support the network policy adjustment function; if feedback information indicating that the smart terminal system and the router support the network policy adjustment function is received, performing the step of sending the policy adjustment request to the smart terminal system running the game client according to the network resource optimization policy.

[0008] In an exemplary embodiment, the network resource optimization strategy includes bandwidth parameters and latency parameters; the step of sending a strategy adjustment request to the router communicating with the game client according to the network resource optimization strategy includes: detecting the current bandwidth parameters and current latency parameters of the game client; if the current bandwidth parameters are not equal to the bandwidth parameters corresponding to the network resource optimization strategy, or the current latency parameters are not equal to the latency parameters corresponding to the network resource optimization strategy, then sending the strategy adjustment request to the router communicating with the client according to the network resource optimization strategy.

[0009] In one exemplary embodiment, the scenario category includes at least one of a high-bandwidth scenario category, a low-latency scenario category, a high-bandwidth low-latency scenario category, and a normal scenario category; wherein, the network resource optimization strategy corresponding to the normal scenario category includes a bandwidth parameter of basic bandwidth and a latency parameter of basic latency; the network resource optimization strategy corresponding to the high-bandwidth scenario category includes a bandwidth parameter greater than the basic bandwidth; the network resource optimization strategy corresponding to the low-latency scenario category includes a latency parameter lower than the basic latency; and the network resource optimization strategy corresponding to the high-bandwidth low-latency scenario category includes a bandwidth parameter greater than the basic bandwidth and a latency parameter lower than the basic latency.

[0010] In one exemplary embodiment, the network resource optimization strategy includes increasing the processing priority of data packets corresponding to the target scenario category and decreasing the processing priority of data packets corresponding to other scenario categories.

[0011] In an exemplary embodiment, determining the network resource optimization strategy corresponding to the scenario category to which the running scenario belongs includes: requesting the network resource optimization strategy corresponding to the scenario category to which the running scenario belongs from the server.

[0012] According to one aspect of the embodiments of this application, a method for optimizing a game client network is provided, applied to a router, characterized in that it includes: receiving a policy adjustment request sent by a game client according to a network resource optimization strategy, wherein the network resource optimization strategy matches the scenario category to which the game client's running scenario belongs, and the scenario category is used to describe the attribute requirements of network resources for data communication in various running scenarios of the game client; and adjusting the local network resource configuration based on the network resource optimization strategy in response to the policy adjustment request.

[0013] In an exemplary embodiment, receiving a policy adjustment request sent by a game client according to a network resource optimization strategy includes: receiving a policy adjustment request forwarded by the game client through a smart terminal system running the game client, wherein the policy adjustment request is sent by the smart terminal system after adjusting its local network resource configuration based on the policy adjustment request.

[0014] According to one aspect of the embodiments of this application, an apparatus for coordinating routers to optimize a game client network is provided, comprising: a first determining module, configured to determine a scene category to which the game client's running scene belongs, the scene category being used to describe the attribute requirements of network resources for displaying scene elements in the game client's running scene; a second determining module, configured to determine a network resource optimization strategy corresponding to the scene category to which the running scene belongs; and a sending module, configured to send a strategy adjustment request to the router to which the game client communicates according to the network resource optimization strategy, so that the router responds to the strategy adjustment request and adjusts its local network resource configuration based on the network resource optimization strategy.

[0015] According to one aspect of the embodiments of this application, an electronic device is provided, including a processor and a memory, wherein computer-readable instructions are stored in the memory, and when the computer-readable instructions are executed by the processor, the above-described method for optimizing the game client network using a cooperative router is implemented.

[0016] According to one aspect of the embodiments of this application, a computer-readable storage medium is provided that stores computer-readable instructions thereon, which, when executed by a computer's processor, cause the computer to perform the previously provided method for optimizing a game client network using a cooperative router.

[0017] According to one aspect of the embodiments of this application, a computer program product or computer program is provided, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the method for optimizing a game client network using a cooperative router provided in the various alternative embodiments described above.

[0018] In the technical solution provided in the embodiments of this application, a network resource optimization strategy that matches the scene category to which the game client's running scene belongs is first determined. Then, a strategy adjustment request is sent to the router that the game client communicates with according to the network resource optimization strategy, so that the router responds to the strategy adjustment request and adjusts its local network resource configuration based on the network resource optimization strategy. Through the above solution, the router's network resource configuration matches the network resource attribute requirements for displaying scene elements in the game client's running scene, which can reduce the probability of latency or packet loss and improve the user experience.

[0019] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application. Attached Figure Description

[0020] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application. It is obvious that the drawings described below are merely some embodiments of this application, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort. In the drawings:

[0021] Figure 1 This is a schematic diagram illustrating the implementation environment of the present invention according to an exemplary embodiment;

[0022] Figure 2 This is a flowchart illustrating a method for optimizing a game client network using a cooperative router, as shown in an exemplary embodiment of this application.

[0023] Figure 3 yes Figure 2 Step S103 in the illustrated embodiment is shown in a flowchart of an exemplary embodiment;

[0024] Figure 4 Is Figure 2 A flowchart illustrating an exemplary method for optimizing game client networks using a cooperative router, based on the illustrated embodiment;

[0025] Figure 5 This is a schematic diagram of a method for optimizing a game client network using a cooperative router according to an exemplary embodiment of this application;

[0026] Figure 6 This is a schematic diagram of a method for optimizing a game client network using a cooperative router according to an exemplary embodiment of this application;

[0027] Figure 7This is a flowchart illustrating a method for optimizing a game client network according to an exemplary embodiment of this application;

[0028] Figure 8 This is a block diagram illustrating an apparatus for optimizing a game client network using a cooperative router, as shown in an exemplary embodiment of this application.

[0029] Figure 9 This is a block diagram illustrating a system for optimizing a game client network using a cooperative router, as shown in an exemplary embodiment of this application.

[0030] Figure 10 A schematic diagram of the structure of a computer system suitable for implementing the electronic device of the present application is shown. Detailed Implementation

[0031] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.

[0032] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities can be implemented in software, in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microcontroller devices.

[0033] The flowcharts shown in the accompanying drawings are merely illustrative and do not necessarily include all content and operations / steps, nor do they necessarily have to be performed in the described order. For example, some operations / steps can be broken down, while others can be combined or partially combined; therefore, the actual execution order may change depending on the specific circumstances.

[0034] It should also be noted that "multiple" as mentioned in this application refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. The character " / " generally indicates that the preceding and following related objects have an "or" relationship.

[0035] Figure 1 This is a schematic diagram illustrating an implementation environment related to the present invention according to an exemplary embodiment. The implementation environment related to the present invention can be applied to various scenarios such as cloud technology, artificial intelligence, smart transportation, and assisted driving.

[0036] like Figure 1 As shown, the implementation environment involved in this invention includes at least a game client 110, a user-used terminal 120, a router 130 through which the game client communicates, and a server 140. The terminal 110, router 130, and server 140 exchange data via the Internet.

[0037] For example, the game client 110 is used to determine the scene category to which the game client's running scene belongs. The scene category is used to describe the network resource attribute requirements for data communication in each running scene of the game client. The server 140 is used to determine the network resource optimization strategy that matches the scene category. According to the network resource optimization strategy, the server 140 sends a policy adjustment request to the router 130 to which the game client 110 communicates. The router 130 responds to the policy adjustment request and adjusts the local network resource configuration based on the network resource optimization strategy.

[0038] Terminal 110 can be a smartphone, tablet computer, PC (Personal Computer), smart voice interaction device, smart home appliance, vehicle terminal or any other electronic device capable of running applications, without any restrictions.

[0039] Server 140 can be a standalone physical server, a server cluster or distributed system consisting of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. There are no restrictions on this.

[0040] Game client 110 is deployed on terminal 120, and under user control, it runs and navigates between pages. Whether running game client 110 or navigating between pages, game client 110 will receive a page, which will be displayed on terminal 120. The data used to display this page is obtained by terminal 120 through data interaction with server 140.

[0041] The most common approach is to increase the priority of network communication packets for game applications while decreasing the priority of network communication packets for other applications. However, game scenarios are very complex, and simply increasing the priority cannot completely solve the network fluctuation problem. Different network resource optimization strategies need to be adopted according to different game operating scenarios to ensure network quality.

[0042] Routers are the "essential path" for data packet transmission between game clients and servers. Therefore, the quality of the router's network directly affects the user's gaming experience. Thus, this embodiment focuses on adjusting the router's network resource configuration according to a network resource optimization strategy that matches the scenario category to which the game client is running, thereby reducing the probability of packet loss or delay during data packet transmission between the game client and server.

[0043] To address at least the aforementioned problems in the prior art, embodiments of this application provide a method for optimizing a game client network using a cooperative router, an apparatus for optimizing a game client network using a cooperative router, an electronic device, and a computer-readable storage medium. These embodiments will be described in detail below.

[0044] It's also important to clarify that Artificial Intelligence (AI) is the theory, methods, technology, and application systems that use digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use that knowledge to achieve optimal results. In other words, AI is a comprehensive technology within computer science that attempts to understand the essence of intelligence and produce a new kind of intelligent machine that can react in a way similar to human intelligence. AI essentially studies the design principles and implementation methods of various intelligent machines, enabling them to possess the functions of perception, reasoning, and decision-making.

[0045] Artificial intelligence (AI) is a comprehensive discipline encompassing a wide range of fields, including both hardware and software technologies. Fundamental AI technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing, operating / interactive systems, and mechatronics. AI software technologies primarily include computer vision, speech processing, natural language processing, and machine learning / deep learning.

[0046] Machine learning (ML) is a multidisciplinary field involving probability theory, statistics, approximation theory, convex analysis, and algorithm complexity theory. It specifically studies how computers can simulate or implement human learning behavior to acquire new knowledge or skills and reorganize existing knowledge structures to continuously improve their performance. Machine learning is the core of artificial intelligence and the fundamental way to endow computers with intelligence; its applications span all areas of artificial intelligence. Machine learning and deep learning typically include techniques such as artificial neural networks, belief networks, reinforcement learning, transfer learning, inductive learning, and learn-by-doing.

[0047] The method, apparatus, electronic device, and computer-readable storage medium for optimizing game client networks using a collaborative router proposed in this application involve artificial intelligence and machine learning technologies. These embodiments will be described in detail below.

[0048] Please see Figure 2 , Figure 2 This is a flowchart illustrating an exemplary embodiment of the present application of a method for optimizing a game client network using a cooperative router. The method can be performed by… Figure 1 The game client 110 in the implementation environment shown is specifically executed. For example... Figure 2 As shown, the method for optimizing the game client network using a collaborative router provided in this embodiment includes steps S101 to S103, which are described in detail below:

[0049] Step S101: Determine the scene category to which the game client's running scene belongs.

[0050] This embodiment uses scenario categories to describe the network resource attribute requirements for data communication in various runtime scenarios of the game client. For example, scenario elements are the resources included in the scenario view. These resources need to be obtained from the server via a router. The network resource attribute requirements for displaying scenario elements in the runtime scenarios of the game client include bandwidth and latency requirements.

[0051] For example, the larger the packet size of the resources included in the scene view, the higher the network resource attribute requirements, including bandwidth requirements and latency requirements, for displaying scene elements in the game client's running scene. Conversely, the smaller the packet size of the resources included in the scene view, the lower the network resource attribute requirements, including bandwidth requirements and latency requirements, for displaying scene elements in the game client's running scene.

[0052] In this embodiment, the scene category to which the game client's running scene belongs includes, but is not limited to, high-bandwidth scene category, low-latency scene category, high-bandwidth low-latency scene category, and normal scene category.

[0053] Specifically, when displaying scene elements of running scenarios included in the high-bandwidth scene category, the game client has high bandwidth requirements for network resources; when displaying scene elements of running scenarios included in the low-latency scene category, the game client has high latency requirements for network resources; when displaying scene elements of running scenarios included in the high-bandwidth low-latency scene category, the game client has both high bandwidth and latency requirements for network resources; and when displaying scene elements of running scenarios included in the normal scene category, the game client has both low bandwidth and latency requirements for network resources.

[0054] For example, the game client's running scenario is identified before determining the scenario category to which the game client's running scenario belongs.

[0055] For example, the operating scenarios include, but are not limited to, game startup scenarios, game loading scenarios, game login scenarios, game store interface scenarios, game team battle scenarios, game spectating scenarios, resource loading scenarios, version update scenarios, etc., and are not limited here.

[0056] For example, the running scene can be identified through image recognition, which will not be elaborated here. Understandably, each running scene corresponds to a unique running scene ID; that is, the running scene ID and the running scene have a unique correspondence. Therefore, in this embodiment, the running scene ID when the game client displays the game running scene can be obtained, and the corresponding running scene can be retrieved through this running scene ID.

[0057] For example, the scenario category to which the game client's operation scenario belongs can be determined through historical experience. For instance, for some high-speed download scenarios, such as resource loading scenarios and version update scenarios, the data packet size corresponding to these scenarios is generally large, and the user needs to complete the download before proceeding to the next stage. Therefore, it is necessary to ensure the download speed of the data packet as much as possible. Thus, such operation scenarios can be classified as high-bandwidth scenario categories.

[0058] For game battle scenarios, such as team battles in game A, the data packet size is generally small, but the real-time requirements are very high. Therefore, such scenarios can be classified as low-latency scenarios.

[0059] For cloud gaming scenarios, the downlink bandwidth requirements are extremely high. Simultaneously, because user actions on the game client need to be uploaded to the cloud server for real-time rendering, the uplink and downlink network latency requirements are also very high. Therefore, this type of scenario can be categorized as a high-bandwidth, low-latency scenario.

[0060] Cloud gaming is an online gaming technology based on cloud computing. It enables lightweight devices with relatively limited graphics processing and data processing capabilities to run high-quality games. In cloud gaming, the game does not run on a game client but on a cloud server. The cloud server renders the game scene as a video and audio stream, which is then transmitted to the game client over the network. The game client 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.

[0061] For example, machine learning is used to determine the scene category to which the game client's running scene belongs. For example, a classification model is pre-built to determine the scene category to which the game client's running scene belongs. Classification models include, for example, logistic regression, decision tree, random forest, gradient boosting tree, multilayer perceptron, linear SVM, Naive Bayes, linear regression, decision tree regression, random forest regression, gradient boosting tree regression, etc., and are not specifically limited here.

[0062] Specifically, training data is first acquired, which includes multiple running scenarios and the scenario category to which each running scenario belongs. The scenario category to which a running scenario belongs is determined based on the network bandwidth and latency parameters of the game client when running each running scenario. For example, if the bandwidth parameter of the game client when running the resource loading scenario is A and the latency parameter is B, and A is greater than the minimum bandwidth threshold of the high bandwidth scenario category, then the resource loading scenario is determined to be either a high bandwidth scenario category or a high bandwidth low latency scenario category. If B is less than the maximum latency threshold of the low latency scenario category, then the resource loading scenario is determined to be a high bandwidth low latency scenario category, and vice versa.

[0063] The above method can be used to obtain training data for multiple pairs of running scenarios and scenario categories. Using the above training parameters, a classification model can be trained to determine the scenario category to which the running scenario of the game client belongs. Subsequently, the running scenario of the game client can be input into the trained classification model to obtain the scenario category corresponding to the running scenario.

[0064] Step S102: Determine the network resource optimization strategy that matches the scenario category.

[0065] In this embodiment, a network resource optimization strategy corresponding to each scene category is preset. The network resource optimization strategy corresponding to each scene category can be presented in various forms, and no specific limitation is made here.

[0066] For example, the network resource optimization strategy corresponding to the scene category can be a series of action instructions. For instance, the network resource optimization strategy corresponding to the high bandwidth scene category includes, but is not limited to: adjusting the module that receives data packets in the game client to the maximum power, increasing the processing priority of data packets corresponding to the high bandwidth scene category, and reducing the processing priority of data packets corresponding to other scene categories, and appropriately limiting the downlink rate and priority of other applications.

[0067] Network resource optimization strategies for low-latency scenarios include, but are not limited to: prioritizing data packets for game applications to the highest priority, increasing the processing priority of data packets for low-latency scenarios, and reducing the processing priority of data packets for other scenarios; ensuring that data packets for low-latency scenarios can be sent and received at the fastest speed by reducing the queue polling interval; and using dual-link dual transmission, such as using a 2.4G link and a 5Ghz link for dual-channel dual transmission, to avoid latency anomalies caused by data packet loss and retransmission on a single channel.

[0068] Network resource optimization strategies for high-bandwidth, low-latency scenarios include, but are not limited to: all strategies included in the network resource optimization strategies for high-bandwidth and low-latency scenarios, increasing the processing priority of data packets for high-bandwidth, low-latency scenarios, and decreasing the processing priority of data packets for other scenario categories.

[0069] Network resource optimization strategies for the normal scenario category include, but are not limited to: adjusting the router to normal working mode, such as appropriately reducing the processing interval of the send and receive queues, canceling dual-link dual-transmission, etc., ensuring that the router's power consumption and heat generation are reduced, avoiding the router from failing to work properly due to excessive temperature, increasing the processing priority of data packets for the normal scenario category, and decreasing the processing priority of data packets for other scenario categories.

[0070] For example, the network resource optimization strategy matching the scenario category includes bandwidth parameters and latency parameters. Specifically, the network resource optimization strategy corresponding to the ordinary scenario category includes a bandwidth parameter of basic bandwidth and a latency parameter of basic latency; the network resource optimization strategy corresponding to the high bandwidth scenario category includes a bandwidth parameter greater than the basic bandwidth; the network resource optimization strategy corresponding to the low latency scenario category includes a latency parameter lower than the basic latency; and the network resource optimization strategy corresponding to the high bandwidth and low latency scenario category includes a bandwidth parameter greater than the basic bandwidth and a latency parameter lower than the basic latency.

[0071] In this embodiment, the latency and bandwidth parameters included in the network resource optimization strategy are used to indicate the reallocation of network resources of the router. For example, the router's current latency parameter is adjusted to the latency parameter included in the network resource optimization strategy, and the router's current bandwidth parameter is adjusted to the bandwidth parameter included in the network resource optimization strategy.

[0072] For example, a request is sent to the server for the network resource optimization policy corresponding to the scene category to which the running scene belongs. By directly storing the mapping between scene categories and network resource optimization policies on the server, the package size of game applications can be reduced, thus reducing the storage space occupied by game applications on the terminal device where the game client is located. Furthermore, when the mapping between scene categories and network resource optimization policies is updated, users do not need to re-download the corresponding game application, thereby improving the user experience.

[0073] Step S103: Send a policy adjustment request to the router that the game client communicates with according to the network resource optimization policy, so that the router responds to the policy adjustment request and adjusts the local network resource configuration based on the network resource optimization policy.

[0074] In this embodiment, the policy adjustment request includes a network resource optimization policy, which is to send the network resource optimization policy to the router that the game client communicates with, so that the router responds to the policy adjustment request and adjusts the local network resource configuration based on the network resource optimization policy.

[0075] For example, in this embodiment, in addition to network resource optimization policies, the policy adjustment request may also include other parameters, as shown in Table 1 below. Table 1 is a data structure table of the policy adjustment request illustrated in an exemplary embodiment of this application. As shown in Table 1 below, the policy adjustment request may also include Version, app_id, App_scene, latency, Pack_loss, and Ensure.

[0076] Here, Version represents the version of the interaction protocol, which characterizes the type of interaction protocol between the game client and the server. Examples of interaction protocol versions include HTTP and TCP / IP, etc., without specific limitations. app_id represents the game ID, which is the type of game and is generally the game's package name. App_scene represents the scene category to which the running scene belongs. latency represents the current network latency. Pack_loss represents the current network packet loss rate. The current network latency and packet loss rate characterize the current network quality. Ensure indicates whether a special protection mechanism needs to be activated. Activating a special protection mechanism indicates whether the current network quality needs to be adjusted. For example, if the current network latency is high and / or the current network packet loss rate is high, it indicates poor current network quality. The policy adjustment request includes parameters indicating that a special protection mechanism needs to be activated so that the router can guarantee the network quality of the game client in real time.

[0077] Fields type illustrate Version String Version of the interaction protocol app_id String Game ID App_scene Int The scene category to which the running scene belongs latency Int Current network latency Packloss Float Current network packet loss rate Ensure Bool Should a special guarantee be initiated?

[0078] Table 1

[0079] For example, a policy adjustment request is sent to the smart terminal system running on the client according to the network resource optimization policy, so that the smart terminal system adjusts the local network resource configuration based on the policy adjustment request and then forwards the policy adjustment request to the router.

[0080] Since the data packets transmitted between the game client and the server need to pass through the smart terminal system running on the client in addition to the router, this embodiment adjusts the network resource configuration of the smart terminal system running on the client according to the game's running scenario, thereby further reducing the probability of latency or packet loss and improving the user experience.

[0081] For example, a policy adjustment request is sent to the smart terminal system running on the client according to the network resource optimization policy, so that the smart terminal system forwards the policy adjustment request to the router and adjusts the local network resource configuration based on the policy adjustment request.

[0082] By employing the two methods described above, the network resource configuration of the smart terminal system and router can be matched with the network resource attribute requirements for displaying scene elements in the game client's operating scenario. This can further reduce the probability of latency or packet loss and improve the user experience.

[0083] In the technical solution provided in the embodiments of this application, a network resource optimization strategy that matches the scene category to which the game client's running scene belongs is first determined. Then, a policy adjustment request is sent to the router that the game client communicates with according to the network resource optimization strategy, so that the router responds to the policy adjustment request and adjusts its local network resource configuration based on the network resource optimization strategy. Through the above solution, the router's network resource configuration matches the network resource attribute requirements for displaying scene elements in the game client's running scene, which can reduce the probability of latency or packet loss and improve the user experience.

[0084] For example, see Figure 3 , Figure 3 yes Figure 2 Step S103 in the illustrated embodiment is shown in a flowchart of an exemplary embodiment, as follows: Figure 3 As shown, step S103 includes steps S201 to S202, which are described in detail below:

[0085] Step S201: Detect the current bandwidth parameters and current latency parameters of the game client.

[0086] In this embodiment, the current bandwidth parameters and current latency parameters of the game client are the bandwidth parameters and latency parameters corresponding to the game client's running scenario.

[0087] Step S202: If the current bandwidth parameter is not equal to the bandwidth parameter corresponding to the network resource optimization strategy, or the current delay parameter is not equal to the delay parameter corresponding to the network resource optimization strategy, then send a policy adjustment request to the router to which the client communicates according to the network resource optimization strategy.

[0088] In this embodiment, if the current bandwidth parameter is equal to the bandwidth parameter corresponding to the network resource optimization strategy, and the current latency parameter is equal to the latency parameter corresponding to the network resource optimization strategy, then there is no need to adjust the network resource configuration of the router.

[0089] In this embodiment, the following two situations apply when the current bandwidth parameter is not equal to the bandwidth parameter corresponding to the network resource optimization strategy, or the current latency parameter is not equal to the latency parameter corresponding to the network resource optimization strategy:

[0090] The first scenario is when the game client's running scene changes, causing a change in its scene category. For example, when the game client's running scene category changes from a normal scene category to a high-bandwidth scene category, the current bandwidth parameter is definitely lower than the bandwidth parameter included in the network resource optimization strategy corresponding to the high-bandwidth scene category. In this case, it is necessary to send a policy adjustment request to the router that the game client communicates with, so that the router responds to the policy adjustment request and adjusts the local network resource configuration based on the network resource optimization strategy.

[0091] The second scenario is when the game client's operating scenario remains unchanged, but the network quality of the game client does not match the network quality corresponding to the scenario category to which the game client's operating scenario belongs. That is, the scenario category to which the game client's operating scenario belongs in both the previous and subsequent tests is a high-bandwidth scenario, but the bandwidth and / or latency parameters in the later test of the game client's operating scenario are lower than the bandwidth and latency parameters included in the network resource optimization strategy corresponding to the high-bandwidth scenario. In this case, in order to ensure network quality, it is also necessary to send a policy adjustment request to the router that the game client communicates with, so that the router responds to the policy adjustment request and adjusts its local network resource configuration based on the network resource optimization strategy.

[0092] By using the above method, when determining whether the current network quality matches the network quality required for the game client's operating scenario, the router's network resource configuration can be adjusted without wasting network resources, thus speeding up the process of adjusting the router's network resource configuration.

[0093] See Figure 4 , Figure 4 Is Figure 2The flowchart illustrates an exemplary method for optimizing game client networks using a cooperative router, based on the illustrated embodiment. Figure 4 As shown, the method is in Figure 2 Based on the illustrated embodiment, before step S103, steps S301 to S302 are further included, which are described in detail below:

[0094] Step S301: Send confirmation information to the smart terminal system.

[0095] In this embodiment, the confirmation information is used to indicate whether the smart terminal system and the router support the network policy adjustment function.

[0096] Step S302: If feedback information indicating that the smart terminal system and router support the network policy adjustment function is received, execute the step of sending a policy adjustment request to the smart terminal system running the game client according to the network resource optimization policy.

[0097] For example, see Figure 5 , Figure 5 This is a schematic diagram of a method for optimizing a game client network using a cooperative router, as proposed in an exemplary embodiment of this application.

[0098] like Figure 5 As shown, the method for optimizing game client networks using a cooperative router proposed in this embodiment includes:

[0099] Step 1: The game client sends a confirmation message to the smart terminal system.

[0100] Step 2: After receiving the confirmation information, the smart terminal system checks whether the device supports the network policy adjustment function.

[0101] Step 3: If the smart terminal system supports it, it will send a confirmation message to the router to request confirmation of whether the router supports the network policy adjustment function. If the smart terminal system does not support the network policy adjustment function, this process will terminate.

[0102] Step 4: After receiving the confirmation message from the smart terminal system, the router confirms whether it supports the network policy adjustment function.

[0103] Step 5: The router returns the first feedback information indicating whether the local machine supports the network policy adjustment function to the smart terminal system.

[0104] Step 6: After receiving the first feedback information from the router, if the smart terminal system confirms that both the smart terminal system and the router support the network policy adjustment function, it returns a second feedback information indicating that both the smart terminal system and the router support the network policy adjustment function to the game client.

[0105] Step 7: After receiving the second feedback information, the game client initializes the scene recognition and strategy control functions.

[0106] Step 8: When the running scenario changes, identify the corresponding scenario category and send a strategy adjustment request to the smart terminal system running the game client according to the network resource optimization strategy.

[0107] Step 9: After receiving the strategy adjustment request from the game client, the smart terminal system adjusts the network resource configuration of the local machine.

[0108] Step 10: The smart terminal system requests to send a network policy adjustment request to the router.

[0109] Step 11: After receiving the network policy adjustment request, the router makes corresponding adjustments to the network resource configuration of its local machine.

[0110] Step 12: Send the first adjustment information indicating whether the adjustment was successful to the smart terminal system.

[0111] Step 13: After receiving the first adjustment information, the smart terminal system further returns the second adjustment information, which represents the adjustment results of the router and the adjustment results of the smart terminal system, to the game client.

[0112] For example, in this embodiment, the data structure for data transmission between the game client, the smart terminal system, and the router may include various fields. Referring to Table 2 below, the first feedback information sent by the router to the smart terminal system includes a Version field and a Route_strategy field. The Version field indicates the version of the interaction protocol, which characterizes the type of interaction protocol between the game client and the server. Examples of interaction protocol versions include HTTP, TCP / IP, etc., and are not specifically limited here. The Route_strategy field indicates the network resource adjustment strategy enabled by the router, corresponding to the scenario category.

[0113] The first adjustment information sent by the router to the smart terminal system includes the Route_status field, which indicates the status of the router's adjustment policy. For example, Route_strategy equals 0 to indicate that the adjustment was successful, and equals 1 to indicate that the adjustment failed. Other error codes can also be added, but no specific restrictions are made here.

[0114] The second feedback information sent from the smart terminal system to the game client includes the Version field and the terminal_strategy field. The terminal_strategy field indicates the network resource adjustment strategy adopted by the smart terminal system, which corresponds to the scene category.

[0115] The second adjustment information sent from the smart terminal system to the game client includes the terminal_status field, which indicates the status of the smart terminal system's adjustment strategy. terminal_status equals 0 to indicate successful adjustment and equals 1 to indicate failed adjustment. Other error codes can also be added, but no specific restrictions are made here.

[0116]

[0117] Table 2

[0118] For example, in this embodiment, confirmation information can also be sent directly to the router through the smart terminal system, so that the router can confirm whether it supports the network policy adjustment function based on the confirmation information. If the router supports the network policy adjustment function, feedback information indicating that the router supports the network policy adjustment function is returned to the game client. If the router does not support the network policy adjustment function, it returns a message indicating that it does not support the network policy adjustment function and terminates the process.

[0119] For example, see Figure 6 , Figure 6 This is a schematic diagram of a method for optimizing a game client network using a cooperative router according to an exemplary embodiment of this application, as shown below. Figure 6 As shown, the collaborative router method for optimizing game client networks proposed in this embodiment includes:

[0120] Step 1: The game client sends a confirmation message to the router to confirm whether the router supports the network policy adjustment function.

[0121] Step 2: After receiving the confirmation message, the router checks whether it supports the network policy adjustment function.

[0122] Step 3: The router returns feedback information on whether the local machine supports the network policy adjustment function.

[0123] Step 4: After receiving the feedback information, if the feedback information confirms that the router supports the network policy adjustment function, then the network policy adjustment function is initialized.

[0124] Step 5: When the operating scenario changes, identify the corresponding scenario category and send a policy adjustment request to the router according to the network resource optimization policy.

[0125] Step 6: After receiving the policy adjustment request from the game client, the router adjusts the network resource configuration of the local machine.

[0126] Step 7: The router will return adjustment information indicating whether the adjustment was successful to the game client.

[0127] participate Figure 7 , Figure 7This is a flowchart illustrating an exemplary embodiment of the method for optimizing a game client network. The method for optimizing a game client network provided in this embodiment is applied to a router, such as... Figure 7 As shown, the method for optimizing the game client network provided in this embodiment includes steps S401 to S402, which are described in detail below:

[0128] Step S401: Receive the strategy adjustment request sent by the game client based on the network resource optimization strategy.

[0129] In this embodiment, the network resource optimization strategy is matched with the scenario category to which the game client's operating scenario belongs. The scenario category is used to describe the network resource attribute requirements for data communication in various operating scenarios of the game client.

[0130] For example, a policy adjustment request is received from the game client through the smart terminal system running the game client, wherein the policy adjustment request is sent by the smart terminal system after adjusting the local network resource configuration based on the policy adjustment request.

[0131] Since the data packets transmitted between the game client and the server need to pass through the smart terminal system running on the client in addition to the router, this embodiment adjusts the network resource configuration of the smart terminal system running on the client according to the game's running scenario, thereby further reducing the probability of latency or packet loss and improving the user experience.

[0132] For example, scene elements are resources included in the scene view. The resources included in the scene view need to be obtained from the server through a router. The display of scene elements in the running scene of the game client requires network resource attributes, including bandwidth requirements and latency requirements.

[0133] For example, the larger the packet size of the resources included in the scene view, the higher the network resource attribute requirements, including bandwidth requirements and latency requirements, for displaying scene elements in the game client's running scene. Conversely, the smaller the packet size of the resources included in the scene view, the lower the network resource attribute requirements, including bandwidth requirements and latency requirements, for displaying scene elements in the game client's running scene.

[0134] In this embodiment, the scene category to which the game client's running scene belongs includes, but is not limited to, high-bandwidth scene category, low-latency scene category, high-bandwidth low-latency scene category, and normal scene category.

[0135] Specifically, when displaying scene elements of running scenarios included in the high-bandwidth scene category, the game client has high bandwidth requirements for network resources; when displaying scene elements of running scenarios included in the low-latency scene category, the game client has high latency requirements for network resources; when displaying scene elements of running scenarios included in the high-bandwidth low-latency scene category, the game client has both high bandwidth and latency requirements for network resources; and when displaying scene elements of running scenarios included in the normal scene category, the game client has both low bandwidth and latency requirements for network resources.

[0136] In this embodiment, a network resource optimization strategy corresponding to each scene category is preset. The network resource optimization strategy corresponding to each scene category can be presented in various forms, and no specific limitation is made here.

[0137] For example, the network resource optimization strategy corresponding to the scene category can be a series of action instructions. For instance, the network resource optimization strategy corresponding to the high bandwidth scene category includes, but is not limited to: adjusting the module that receives data packets in the game client to the maximum power, increasing the processing priority of data packets corresponding to the high bandwidth scene category, and reducing the processing priority of data packets corresponding to other scene categories, and appropriately limiting the downlink rate and priority of other applications.

[0138] Network resource optimization strategies for low-latency scenarios include, but are not limited to: prioritizing data packets for game applications to the highest priority, increasing the processing priority of data packets for low-latency scenarios, and reducing the processing priority of data packets for other scenarios; ensuring that data packets for low-latency scenarios can be sent and received at the fastest speed by reducing the queue polling interval; and using dual-link dual transmission, such as using a 2.4G link and a 5Ghz link for dual-channel dual transmission, to avoid latency anomalies caused by data packet loss and retransmission on a single channel.

[0139] Network resource optimization strategies for high-bandwidth, low-latency scenarios include, but are not limited to: all strategies included in the network resource optimization strategies for high-bandwidth and low-latency scenarios, increasing the processing priority of data packets for high-bandwidth, low-latency scenarios, and decreasing the processing priority of data packets for other scenario categories.

[0140] Network resource optimization strategies for the normal scenario category include, but are not limited to: adjusting the router to normal working mode, such as appropriately reducing the processing interval of the send and receive queues, canceling dual-link dual-transmission, etc., ensuring that the router's power consumption and heat generation are reduced, avoiding the router from failing to work properly due to excessive temperature, increasing the processing priority of data packets for the normal scenario category, and decreasing the processing priority of data packets for other scenario categories.

[0141] For example, the network resource optimization strategy matching the scenario category includes bandwidth parameters and latency parameters. Specifically, the network resource optimization strategy corresponding to the ordinary scenario category includes a bandwidth parameter of basic bandwidth and a latency parameter of basic latency; the network resource optimization strategy corresponding to the high bandwidth scenario category includes a bandwidth parameter greater than the basic bandwidth; the network resource optimization strategy corresponding to the low latency scenario category includes a latency parameter lower than the basic latency; and the network resource optimization strategy corresponding to the high bandwidth and low latency scenario category includes a bandwidth parameter greater than the basic bandwidth and a latency parameter lower than the basic latency.

[0142] Step S402: In response to the policy adjustment request, adjust the local network resource configuration based on the network resource optimization policy.

[0143] For example, the policy adjustment request includes the router's current latency parameters and current bandwidth parameters. Therefore, based on the latency and bandwidth parameters included in the network resource optimization policy, the local network resource configuration is adjusted in conjunction with the router's current latency and current bandwidth parameters. For instance, if the router's current latency and current bandwidth parameters are 10 and 15 units respectively, and the network resource optimization policy includes latency and bandwidth parameters of 5 and 30 units respectively, the router should adjust its local network resource configuration by reducing the latency to 5 units and increasing the bandwidth to 30 units.

[0144] In the technical solution provided by the embodiments of this application, a strategy adjustment request sent by the game client according to the network resource optimization strategy is received. The network resource optimization strategy matches the scene category to which the game client's running scene belongs. The scene category is used to describe the attribute requirements of network resources for data communication in various running scenes of the game client. In response to the strategy adjustment request, the local network resource configuration is adjusted based on the network resource optimization strategy. Through the above solution, the router's network resource configuration is matched with the attribute requirements of network resources for scene element display in the running scene of the game client, which can reduce the probability of latency or packet loss and improve the user experience.

[0145] participate Figure 8 , Figure 8 This is a block diagram illustrating an apparatus for optimizing a game client network using a cooperative router, as shown in an exemplary embodiment of this application. Figure 8 As shown, the device 500 for optimizing the game client network using a collaborative router includes a first determining module 501, a second determining module 502, and a first sending module 503.

[0146] The first determining module 501 is used to determine the scene category to which the game client's running scene belongs. The scene category is used to describe the network resource attribute requirements for displaying scene elements in the game client's running scene. The second determining module 502 is used to determine the network resource optimization strategy corresponding to the scene category to which the running scene belongs. The first sending module 503 is used to send a policy adjustment request to the router that the game client communicates with according to the network resource optimization strategy, so that the router responds to the policy adjustment request and adjusts the local network resource configuration based on the network resource optimization strategy.

[0147] In another exemplary embodiment, the first sending module 503 is further configured to send a policy adjustment request to the smart terminal system running on the client according to the network resource optimization policy, so that the smart terminal system adjusts the local network resource configuration based on the policy adjustment request and then forwards the policy adjustment request to the router.

[0148] In another exemplary embodiment, the apparatus 500 for coordinating routers to optimize the network of a game client further includes a second sending module and an execution module. The second sending module is used to send confirmation information to the smart terminal system, the confirmation information being used to indicate whether the smart terminal system and the router support the network policy adjustment function. The execution module is used to, if it receives feedback information indicating that the smart terminal system and the router support the network policy adjustment function, execute the step of sending a policy adjustment request to the smart terminal system on which the game client is running according to the network resource optimization policy.

[0149] In another exemplary embodiment, the first sending module includes a detection unit and a sending unit, wherein the detection unit is used to detect the current bandwidth parameter and the current latency parameter of the game client; the sending unit is used to send a policy adjustment request to the router to which the client communicates according to the network resource optimization policy if the current bandwidth parameter is not equal to the bandwidth parameter corresponding to the network resource optimization policy, or the current latency parameter is not equal to the latency parameter corresponding to the network resource optimization policy.

[0150] In another exemplary embodiment, the second determining module 502 is further configured to request a network resource optimization strategy corresponding to the scenario category to which the running scenario belongs from the server.

[0151] It should be noted that the apparatus provided in the above embodiments and the method provided in the above embodiments belong to the same concept, and the specific way in which each module and unit performs operations has been described in detail in the method embodiments, and will not be repeated here.

[0152] In another exemplary embodiment, this application provides an electronic device including a processor and a memory, wherein the memory stores computer-readable instructions that, when executed by the processor, implement the aforementioned method for optimizing a game client network using a cooperative router.

[0153] participate Figure 9 , Figure 9 This is a block diagram illustrating a system for optimizing a game client network using a cooperative router, as shown in an exemplary embodiment of this application. Figure 9 As shown, the system 600 for optimizing the game client network using a collaborative router includes a game client 601, a smart terminal 602, and a router 603. The game client 601 includes a scene recognition module, a first policy control module, and a first network control module. The smart terminal 602 includes a second policy control module and a second network control module. The router 603 includes a third policy control module and a third network control module.

[0154] The scene recognition module is used to identify the running scene of the game client and determine the scene category to which the running scene of the game client 601 belongs. The first strategy control module is used to determine the network resource optimization strategy that matches the scene category. The first network control module is connected to the second strategy control module and is used to send a strategy adjustment request to the smart terminal 602 running the game client according to the network resource optimization strategy so that the smart terminal 602 adjusts its local network resource configuration based on the strategy adjustment request. The second network control module is connected to the third strategy control module and is used to forward the strategy adjustment request to the third strategy control module. The third network control module is used to respond to the strategy adjustment request and adjust its local network resource configuration based on the network resource optimization strategy.

[0155] Figure 10 A schematic diagram of the structure of a computer system suitable for implementing the electronic device of the present application is shown.

[0156] It should be noted that, Figure 10 The computer system 1000 of the electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.

[0157] like Figure 10As shown, the computer system 1000 includes a Central Processing Unit (CPU) 1001, which can perform various appropriate actions and processes based on programs stored in Read-Only Memory (ROM) 1002 or programs loaded from storage portion 1008 into Random Access Memory (RAM) 1003, such as executing the information recommendation method described in the above embodiments. Various programs and data required for system operation are also stored in RAM 1003. The CPU 1001, ROM 1002, and RAM 1003 are interconnected via bus 1004. An Input / Output (I / O) interface 1005 is also connected to bus 1004.

[0158] The following components are connected to I / O interface 1005: an input section 1006 including a keyboard, mouse, etc.; an output section 1007 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 1008 including a hard disk, etc.; and a communication section 1009 including a network interface card such as a LAN (Local Area Network) card, modem, etc. The communication section 1009 performs communication processing via a network such as the Internet. A drive 1010 is also connected to I / O interface 1005 as needed. Removable media 1011, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., are installed on drive 1010 as needed so that computer programs read from them can be installed into storage section 1008 as needed.

[0159] Specifically, according to embodiments of this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program including a computer program for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 1009, and / or installed from removable medium 1011. When the computer program is executed by central processing unit (CPU) 1001, it performs various functions defined in the system of this application.

[0160] It should be noted that the computer-readable medium shown in the embodiments of this application can be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), flash memory, optical fiber, portable compact disc read-only memory (CD to ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this application, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this application, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying a computer-readable computer program. The transmitted data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to wireless, wired, etc., or any suitable combination thereof.

[0161] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. Each block in a flowchart or block diagram may represent a module, segment, or portion of code, which contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0162] The units described in the embodiments of this application can be implemented in software or hardware, and the described units can also be located in a processor. The names of these units do not necessarily limit the specific unit itself.

[0163] Another aspect of this application provides a computer-readable storage medium having computer-readable instructions stored thereon, which, when executed by a processor, implement a method for optimizing a game client network using a cooperative router as described in any of the preceding embodiments.

[0164] Another aspect of this application provides a computer program product or computer program including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the method for optimizing the game client network using a cooperative router provided in the various embodiments described above.

[0165] It should be noted that the computer-readable medium shown in the embodiments of this application can be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), flash memory, optical fiber, portable compact disc read-only memory (CD to ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this application, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this application, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying a computer-readable computer program. The transmitted data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to wireless, wired, etc., or any suitable combination thereof.

[0166] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. Each block in a flowchart or block diagram may represent a module, segment, or portion of code, which contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0167] The units described in the embodiments of this application can be implemented in software or hardware, and the described units can also be located in a processor. The names of these units do not necessarily limit the specific unit itself.

[0168] The above description is merely a preferred exemplary embodiment of this application and is not intended to limit the implementation of this application. Those skilled in the art can easily make corresponding modifications or alterations based on the main concept and spirit of this application. Therefore, the scope of protection of this application should be determined by the scope of protection claimed in the claims.

Claims

1. A method for a game client network to be optimized by a co-located router, characterized in that, The method comprises the following steps: When the running scene of a game client changes, determining a scene category to which the running scene of the game client belongs, the scene category being used to describe attribute requirements of data communication in each running scene of the game client for network resources; Determining a network resource optimization strategy matched with the scene category; Detecting a current bandwidth parameter and a current delay parameter of the game client, and if the current bandwidth parameter is not equal to a bandwidth parameter corresponding to the network resource optimization strategy or the current delay parameter is not equal to a delay parameter corresponding to the network resource optimization strategy, sending a strategy adjustment request to an intelligent terminal system running the game client according to the network resource optimization strategy; wherein the strategy adjustment request comprises the network resource optimization strategy and other parameters, the other parameters comprising a current network delay, a current network packet loss rate and a parameter indicating whether to start a special guarantee; After the intelligent terminal system receives the strategy adjustment request, adjusting a local network resource configuration and requesting to send the strategy adjustment request to a router; After the router receives the strategy adjustment request, adjusting a local network resource configuration and sending first adjustment information indicating adjustment success to the intelligent terminal system; if the strategy adjustment request comprises the parameter indicating to start the special guarantee, the router guarantees network quality of the game client in real time; After the intelligent terminal system receives the first adjustment information, returning second adjustment information indicating adjustment results of the router and the intelligent terminal system to the game client.

2. The method of claim 1, wherein, The step of sending the strategy adjustment request to the router according to the network resource optimization strategy comprises the following steps: Sending the strategy adjustment request to the intelligent terminal system running the game client according to the network resource optimization strategy, so that the intelligent terminal system forwards the strategy adjustment request to the router after adjusting a local network resource configuration based on the strategy adjustment request.

3. The method of claim 2, wherein, Before the step of sending the strategy adjustment request to the intelligent terminal system running the game client according to the network resource optimization strategy, the method further comprises the following steps: Sending confirmation information to the intelligent terminal system, the confirmation information being used to indicate whether the intelligent terminal system and the router support a network strategy adjustment function; If feedback information indicating that the intelligent terminal system and the router support the network strategy adjustment function is received, performing the step of sending the strategy adjustment request to the intelligent terminal system running the game client according to the network resource optimization strategy.

4. The method of claim 1, wherein, The scene category comprises at least one of a high bandwidth scene category, a low delay scene category, a high bandwidth and low delay scene category and a normal scene category. The network resource optimization strategy corresponding to the ordinary scene category contains a basic bandwidth as the bandwidth parameter and a basic delay as the delay parameter; the network resource optimization strategy corresponding to the high-bandwidth scene category contains a bandwidth parameter greater than the basic bandwidth; the network resource optimization strategy corresponding to the low-delay scene category contains a delay parameter lower than the basic delay; and the network resource optimization strategy corresponding to the high-bandwidth low-delay scene category contains a bandwidth parameter greater than the basic bandwidth and a delay parameter lower than the basic delay.

5. The method of claim 1, wherein, The network resource optimization strategy includes increasing the processing priority of the data packet corresponding to the target scene category and decreasing the processing priority of the data packet corresponding to other scene categories.

6. The method of claim 1, wherein, The network resource optimization strategy corresponding to the scene category to which the running scene belongs is determined. The network resource optimization strategy corresponding to the scene category to which the running scene belongs is requested from a server.

7. An electronic device, comprising: The network resource optimization strategy corresponding to the scene category to which the running scene belongs is determined. The memory stores computer readable instructions; The processor reads the computer readable instructions stored in the memory to execute the method of any one of claims 1 to 6.

8. A computer program product, characterised in that, The computer instructions are stored in a computer readable storage medium; The processor of the computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions to enable the computer device to execute the method of any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, The computer readable instructions are stored on the computer readable storage medium, and when the computer readable instructions are executed by the processor of the computer, the computer executes the method of any one of claims 1 to 6.

10. An apparatus for optimizing a game client network in cooperation with a router, the apparatus comprising: The network resource optimization strategy corresponding to the scene category to which the running scene belongs is determined. The first determining module is configured to determine the scene category to which the running scene of the game client belongs when the running scene of the game client changes, the scene category being used to describe the attribute requirement of the scene element display in the running scene of the game client for network resources. The second determining module is configured to determine the network resource optimization strategy corresponding to the scene category to which the running scene belongs. The first sending module is configured to detect a current bandwidth parameter and a current delay parameter of the game client, and if the current bandwidth parameter is not equal to the bandwidth parameter corresponding to the network resource optimization strategy or the current delay parameter is not equal to the delay parameter corresponding to the network resource optimization strategy, send a strategy adjustment request to the intelligent terminal system running the game client according to the network resource optimization strategy; the strategy adjustment request includes the network resource optimization strategy and other parameters, and the other parameters include a current network delay, a current network packet loss rate, and a parameter indicating whether to start a special guarantee. The first sending module is further configured to adjust the network resource configuration of the local machine after the intelligent terminal system receives the strategy adjustment request, and request to send the strategy adjustment request to a router, so that the router adjusts the network resource configuration of the local machine after receiving the strategy adjustment request. The apparatus further includes ​ The router sends first adjustment information representing adjustment success to the intelligent terminal system, and if the policy adjustment request includes a parameter indicating starting of special guarantee, the router guarantees network quality of the game client in real time; After receiving the first adjustment information, the intelligent terminal system returns second adjustment information representing adjustment results of the router and the intelligent terminal system to the game client.

Citation Information

Patent Citations

  • Resource configuration method and related product

    CN107547745A

  • Network data acceleration method and client, router, and server

    CN109246004A