Terminal data loading method, device and electronic equipment

By dynamically adjusting the timeout and retries of terminal data loading, the success rate and user experience of data loading are improved according to different network environments, and the problem of data loading failure caused by fixed parameters is solved.

CN116094922BActive Publication Date: 2024-10-29BEIJING QIYI CENTURY SCI & TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310090339.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-09
Publication Date
2024-10-29
Estimated Expiration
2043-02-09

AI Technical Summary

Technical Problem

Under different network environments, the interface timeout and retry times for terminal data loading are fixed, resulting in a high data loading failure rate, affecting user experience and leading to user loss.

Method used

By obtaining the multiple loading results of the terminal loading network data, calculate the success rate and exit rate, and dynamically adjust the timeout and number of retries to adapt to different network environments and improve the data loading success rate.

Benefits of technology

It improves the success rate of data loading, reduces user waiting time, reduces the user churn rate of data providers, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116094922B_ABST
    Figure CN116094922B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention provides a terminal data loading method, device and electronic device, which obtains multiple loading results of the terminal loading network data, and calculates the success rate of the terminal loading network data according to the multiple loading results. If the success rate is less than the preset expected success rate, the loading time parameter of the terminal is increased, wherein the loading time parameter includes the timeout time of the terminal and / or the number of retries of the terminal, the timeout time is the maximum waiting time when the terminal loads network data once, and the number of retries is the maximum number of times the terminal re-requests a connection when the network data loading timeout occurs, so as to configure more suitable loading time parameters for different users in different network environments, adaptively balance the success rate of loading and the waiting time for users to load network data, thereby configuring more suitable loading time parameters for the terminal to load network data for users, and improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer application technology, and in particular to a terminal data loading method, device and electronic equipment. Background Art

[0002] Currently, in some commonly used applications, most network data requests have fixed interface timeouts and retry times. However, the user's network environment and mobile phone performance are different. In this case, if the interface timeout and retry times are still fixed, it is easy to cause data loading failure.

[0003] If data is loaded according to the fixed interface timeout and retry times, and the user is in a poor network environment, the failure rate of the application interface on the user's phone will be high, affecting the user experience. At the same time, for the application developer, this will also cause user loss and cause certain losses. Summary of the invention

[0004] The purpose of the embodiments of the present invention is to provide a terminal data loading method, device and electronic device, so as to configure different loading time parameters for different users in different network environments, and to adaptively balance the loading success rate and the waiting time of the user waiting for the network data to be loaded, and to configure more suitable loading time parameters for the terminal to load the network data for the user, so that the user can obtain a better experience. The specific technical solution is as follows:

[0005] In a first aspect of the present invention, a terminal data loading method is first provided, the method comprising:

[0006] Get multiple loading results of the terminal loading network data;

[0007] Calculating the success rate of the terminal loading network data according to the multiple loading results;

[0008] If the success rate is less than the preset expected success rate, the loading time parameters of the terminal are increased, wherein the loading time parameters include the timeout time of the terminal and / or the number of retries of the terminal, the timeout time is the maximum waiting time for the terminal to load network data once, and the number of retries is the maximum number of times the terminal requests a connection again when a timeout occurs in loading the network data.

[0009] In a possible embodiment, increasing the loading time parameter of the terminal includes:

[0010] The timeout period of the terminal is increased by a preset time period, wherein the preset time period is negatively correlated with the timeout period and / or positively correlated with the size of the network data.

[0011] In a possible embodiment, the method further includes:

[0012] Calculating the exit rate of the terminal loading the network data multiple times according to the multiple loading results;

[0013] If the success rate is less than the preset expected success rate, increasing the timeout loading time parameter of the terminal includes:

[0014] If the success rate is less than a preset expected success rate and the exit rate is less than the preset exit rate, the timeout time and the number of retries of the terminal are increased.

[0015] In a possible embodiment, increasing the number of retries of the terminal includes:

[0016] A preset number of times is determined, and the number of retries of the terminal is increased by the preset number of times.

[0017] In a possible embodiment, the method further includes:

[0018] Calculating the exit rate of the terminal loading the network data according to the multiple loading results;

[0019] If the success rate is less than the preset expected success rate, increasing the timeout loading time parameter of the terminal includes:

[0020] If the success rate is less than the preset expected success rate and the exit rate is not less than the preset exit rate, the timeout period of the terminal is increased and the number of retries of the terminal is kept unchanged.

[0021] In a possible embodiment, obtaining multiple loading results of the terminal loading network data includes:

[0022] Obtain the multiple loading results of the terminal loading network data under the current network.

[0023] In a possible embodiment, increasing the loading time parameter of the terminal includes:

[0024] When switching to the target network, the loading time parameters configured for the target network are determined as the loading time parameters used by the terminal.

[0025] In a second aspect of the present invention, a terminal data loading device is provided, the device comprising:

[0026] An acquisition module is used to obtain multiple loading results of the terminal loading network data;

[0027] A calculation module, used for calculating the success rate of the terminal loading network data according to the multiple loading results;

[0028] A processing module, used for increasing the loading time parameters of the terminal if the success rate is less than a preset expected success rate, wherein the loading time parameters include the timeout time of the terminal and / or the number of retries of the terminal, the timeout time is the maximum waiting time when the terminal loads network data once, and the number of retries is the maximum number of times the terminal requests a connection again when a timeout occurs in loading the network data.

[0029] In a third aspect of the present invention, an electronic device is provided, characterized in that it includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;

[0030] Memory, used to store computer programs;

[0031] The processor is used to implement any of the above-mentioned terminal data loading methods when executing the program stored in the memory.

[0032] In a fourth aspect of the implementation of the present invention, a computer-readable storage medium is further provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the terminal data loading method described above is implemented.

[0033] The embodiment of the present invention provides a terminal data loading method, device and electronic device, which obtains multiple loading results of the terminal loading network data, and calculates the success rate of the terminal loading network data according to the multiple loading results. If the success rate is less than the preset expected success rate, the loading time parameter of the terminal is increased, wherein the loading time parameter includes the timeout time of the terminal and / or the number of retries of the terminal, the timeout time is the maximum waiting time of the terminal when loading the network data once, and the number of retries is the maximum number of times the terminal re-requests the connection when the loading of the network data times out, so as to solve the problem that the interface timeout time and the number of retries of most terminals for loading network data are fixed, so that in some bad network environments, users often fail to load network data, thereby achieving different users in different network environments. Configure more suitable loading time parameters for them, increase the loading time parameters of the terminal to improve the success rate of network data loading, and because the loading time parameters are increased only when the success rate is lower than the preset expected success rate, it can effectively avoid the user waiting time due to the loading time parameters being set too long, reduce the user loss of data providers, and bring better user experience to users. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art are briefly introduced below.

[0035] Figure 1 A flowchart of a terminal data loading method provided by an embodiment of the present invention;

[0036] Figure 2 A flowchart of another terminal data loading method provided in an embodiment of the present invention;

[0037] Figure 3 A flowchart of another terminal data loading method provided in an embodiment of the present invention;

[0038] Figure 4 An exemplary terminal data loading solution diagram provided by an embodiment of the present invention;

[0039] Figure 5 A schematic diagram of the structure of a terminal data loading device provided by an embodiment of the present invention;

[0040] Figure 6 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0041] The technical solutions in the embodiments of the present invention will be described below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0042] At present, when a terminal loads network data, its terminal network interface generally has a fixed timeout and retry times, but because the network environment of the user is different, if the fixed timeout and retry times are still used under different networks, it is easy to cause network data loading to fail in the case of a bad network environment, which is a poor experience for users.

[0043] In order to configure more suitable loading time parameters for users according to the current network environment when users use terminals to load network data, so as to bring better experience to users. This application provides a terminal data loading method, such as Figure 1 As shown, Figure 1 A flowchart of a terminal data loading method provided by an embodiment of the present invention, wherein:

[0044] Step S101, obtaining multiple loading results of the terminal loading network data;

[0045] Step S102, calculating the success rate of the terminal loading network data according to the multiple loading results;

[0046] Step S103, if the success rate is less than the preset expected success rate, increase the loading time parameters of the terminal, wherein the loading time parameters include the terminal timeout time and / or the number of retries of the terminal, the timeout time is the maximum waiting time for the terminal to load network data once, and the number of retries is the maximum number of times the terminal requests a connection again when the network data loading fails.

[0047] In this embodiment, by obtaining multiple loading results of the terminal loading network data, and then calculating the success rate of the terminal loading network data according to the multiple loading results, if the success rate is less than the preset expected success rate, the loading time parameter of the terminal is increased, so as to adaptively improve the success rate by increasing the loading time parameter of the terminal. At the same time, since the loading time parameter of the terminal is increased only when the success rate is lower than the preset expected success rate, it can effectively avoid the loading time parameter of the terminal being set too long, resulting in the user having to wait too long. That is, the use of this embodiment can adaptively balance the success rate of loading and the waiting time of the user waiting for the loading of network data, so as to configure a more suitable loading time parameter for the terminal loading network data for the user, that is, the timeout time and / or the number of retries, to improve the user's experience.

[0048] The above S101-S103 will be described below:

[0049] In step S101, obtaining multiple loading results of the terminal loading network data may be obtaining multiple loading results of the terminal loading network data within a certain period of time, or obtaining loading results of the terminal loading network data a certain number of times.

[0050] The loaded network data in this application can be video content, news information interface, image loading or form submission, etc.

[0051] Taking the loading of video content as an example, it can be to obtain multiple loading results of loading video content for a certain duration, such as 10 minutes, or to obtain the loading results of loading video content a certain number of times, such as 100 times.

[0052] In step S102, the number of successful loadings and the total number of loadings may be obtained according to the multiple loading results, and the success rate of the terminal loading the network data may be further calculated.

[0053] For example, within a certain period of time, multiple loading results of video content loaded by the mobile phone are obtained, and then according to the loading results, it is learned that the video content is loaded a total of 100 times, of which 80 times are successfully loaded, and the success rate of video content loading can be obtained as 80%.

[0054] Alternatively, the loading results of the mobile phone loading the video content 100 times are obtained, and then according to the loading results, it can be known that the video content is successfully loaded 80 times, and the success rate of the video content loading is 80%.

[0055] In step S103, if the success rate obtained through step S102 is less than the preset expected success rate, the loading time parameters of the terminal are increased. The loading time parameters include the terminal timeout time and / or the number of retries of the terminal. The timeout time is the maximum waiting time when the terminal loads network data, and the number of retries is the maximum number of times the terminal re-requests a connection when a network data loading failure occurs.

[0056] Also taking the above example, the preset expected success rate for loading the video content is 95%, but as in the above example, the calculated success rate is only 80%, then the actual success rate is less than the preset expected success rate, so it is necessary to increase the loading time parameter to improve the success rate of loading the video content.

[0057] For example, if the initial value of the timeout in the loading time parameter is 2s and the initial value of the number of retries is 2, then the timeout can be increased by 0.5s, so that the timeout for loading the video content is 2.5s and the number of retries is 2. Alternatively, the timeout can be increased by 0.5s and the number of retries can be increased by 1, so that the timeout for loading the video content is 2.5s and the number of retries is 3.

[0058] In addition, because increasing the number of retries will increase the user's waiting time relatively long, in the actual implementation of the solution, this application prefers to increase the timeout time first and keep the number of retries unchanged. However, in some cases, such as when the user is willing to accept a relatively long waiting time, in addition to increasing the timeout time, the number of retries can also be increased to further improve the success rate of the terminal loading network data.

[0059] In this application, the timeout time of the terminal is increased by a preset duration. Among them, the preset duration is negatively correlated with the timeout time, and / or is positively correlated with the size of the network data. Because as the timeout time increases, the time the user needs to wait is also extended. Therefore, as the timeout time increases, it is necessary to gradually reduce the preset duration appropriately, increase the timeout time by a smaller amplitude, and strive to not extend the user's waiting time too much under the premise of successfully loading the network data. At the same time, it is understandable that, taking the loading of videos as an example, for some long videos such as movies, users are willing to wait more time to load, and for some short videos, the time the user expects to wait is relatively short in comparison, so the preset duration should be positively correlated with the size of the network data. When the network data is large, the preset duration can be set relatively long, on the contrary, when the network data is small, the preset duration can be set relatively short.

[0060] Because when loading network data, in addition to the loading success and loading failure, there is often a situation where the user quits during the loading process due to the long loading waiting time. Therefore, this application provides a flowchart of another terminal data loading method, such as Figure 2 As shown,

[0061] Step S101, obtaining multiple loading results of the terminal loading network data.

[0062] This step is the same as the aforementioned S101. Please refer to the relevant description of the aforementioned S101 and will not be repeated here.

[0063] Step S102, calculating the success rate of the terminal loading network data according to the multiple loading results.

[0064] This step is the same as the aforementioned S102. Please refer to the relevant description of the aforementioned S102 and will not be repeated here.

[0065] Step S103, if the success rate is less than the preset expected success rate, increase the loading time parameters of the terminal, wherein the loading time parameters include the terminal timeout time and / or the number of retries of the terminal, the timeout time is the maximum waiting time for the terminal to load network data once, and the number of retries is the maximum number of times the terminal requests a connection again when the network data loading fails.

[0066] This step is the same as the aforementioned S103. Please refer to the relevant description of the aforementioned S103 and will not be repeated here.

[0067] Step S201, calculating the exit rate of the terminal loading network data according to the multiple loading results.

[0068] By obtaining the multiple loading results of the terminal loading network data, there are generally three results: successful loading, failed loading, and user exiting during loading. The number of successful loading, failed loading, and user exiting during the loading process can be obtained. The number of successful loading, failed loading, and user exiting during the loading process are added together to obtain the total number of network data loading. Then, the exit rate of the terminal loading network data can be calculated by the ratio of the number of user exits during the loading process to the total number of exits. Assuming that the number of successful loading of a certain network data is 80 times, the number of failed loading is 10 times, and the number of user exits during the loading process is 10 times, it can be calculated that the exit rate of the terminal loading the network data is 10%.

[0069] For example, when a user opens a video, the obtained video content loading result can be recorded as video content loading success, video content loading failure, or user exit during video content loading. The number of successful video content loading times is 70 times, the number of failed video content loading times is 20 times, and the number of user exits during video content loading is 10 times. Therefore, the video is loaded 100 times in total, and the exit rate of video content loading is 10%.

[0070] Step S202: If the success rate is less than the preset expected success rate and the exit rate is less than the preset exit rate, the timeout time and the number of retries of the terminal are increased.

[0071] In this embodiment, the preset exit rate is the maximum user exit rate that the application developer can tolerate, so the preset exit rate can be considered a tolerable exit rate. In the case of network data loading, if the user exit rate during the network data loading process is less than the preset exit rate, it means that the waiting time that the user can accept is relatively long. Therefore, in addition to increasing the timeout time, the number of retries can also be appropriately increased to further improve the success rate of network data loading.

[0072] In addition, because the number of retries for loading network data is the maximum number of times the terminal re-requests a connection when loading network data times out, if the maximum number of times the terminal re-requests a connection when loading network data times out is set to 2, the number of retries is actually only 1, which does not affect the actual loading result.

[0073] Taking the loading of video content as an example, if the current success rate of loading video content is 80%, the preset expected success rate is 90%, the exit rate is 4%, and the preset exit rate is 8%, then the success rate of the video content loading is less than the preset expected success rate and the exit rate is less than the preset exit rate, the timeout time and the number of retries for loading video content on the terminal can be increased, for example, 0.5s can be added to the timeout time of 2s, and 1 retry can be added to the number of retries of 2 times, so that the current timeout time is 2.5s and the number of retries is 3 times. Because the user's exit rate is lower than the preset exit rate at this time, the exit rate is not very high, and the user can wait for a relatively long time, so the timeout time and the number of retries can be increased, so that the success rate of network data loading can be higher.

[0074] In the present application, the increase in the number of retries is achieved by determining a preset number of times and increasing the number of retries of the terminal by the preset number of times. Because increasing the number of retries will increase the user's waiting time relatively long, if the preset number of times is determined to be small, such as the minimum number of times, i.e., 1 time, the user's waiting time can be slightly increased. If the preset number of times is determined to be large, the success rate of the terminal loading network data can be further improved.

[0075] In this embodiment, if the success rate is less than the preset expected success rate and the current exit rate is not less than the preset exit rate, the terminal timeout is increased and the number of terminal retries is kept unchanged. Because in this case, the user's exit rate is already greater than or equal to the preset exit rate, and the exit rate at this time is relatively high, if the number of retries is increased, the user's waiting time will be further increased, which may lead to a higher user exit rate, thereby reducing the success rate of terminal data loading. Therefore, in the case of such a high exit rate, the number of retries cannot be increased, and the timeout can only be increased to increase the user's waiting time relatively short and improve the user's experience.

[0076] For example, the current success rate is less than the preset expected success rate and the preset exit rate is 5%.

[0077] Case 1: The current user exit rate is 5%. That is, the current user exit rate is equal to the preset exit rate, so you cannot continue to increase the number of retries, which will make the user's waiting time too long and increase the user's exit rate.

[0078] Case 2: The current user exit rate is 10%. That is, the current user exit rate is greater than the preset exit rate, and the waiting time is already relatively long for the user. As mentioned above, in order to prevent the user exit rate from increasing and thus reducing the success rate, the number of retries cannot be increased.

[0079] Therefore, for both cases 1 and 2, we only increase the terminal timeout time, keep the number of terminal retries unchanged, and improve the success rate of network data loading by slightly increasing the user's waiting time.

[0080] Because the network quality of different networks connected by the terminal is also different. Therefore, the loading time parameters configured for the network quality of the current network to which the terminal is connected are not necessarily adapted to the network quality of the network after switching. Therefore, in the present application, obtaining multiple loading results of the terminal loading network data includes obtaining multiple loading results of the terminal loading network data under the current network. Therefore, after switching the network, it is necessary to re-execute the step of obtaining multiple loading results of the terminal loading network data to obtain multiple loading results of the terminal under the current network, and then obtain the success rate under the current network based on the multiple loading results under the current network, and readjust the terminal data loading plan to improve the success rate of user terminal data loading under different network environments.

[0081] For example, if the terminal is connected to network 1 at this time, then the multiple loading results of the terminal loading network data under network 1 are obtained. If the terminal is connected to network 2 at this time, then the multiple loading results of the terminal loading network data under network 2 are obtained.

[0082] For most users, there are usually several commonly used network environments, such as home WIFI (Wireless-Fidelity), company WIFI or mobile network. Different networks have different network qualities, which leads to different loading time parameters adapted for different networks. Therefore, when calculating the success rate, the network name can be used to distinguish, and different network names correspond to different loading time parameters. For example, when a user connects to the company's WIFI at the company, the name of the current company's WIFI can be used as an identifier to record multiple loading results.

[0083] In this embodiment, when switching to the target network, the loading time parameters configured for the target network are determined as the loading time parameters used by the terminal.

[0084] For example, in network 1, the terminal configures loading time parameter 1 applicable to network 1 by executing the above steps. When the terminal's network is switched to network 2, the above steps are executed again to configure loading time parameter 2 applicable to network 2. If network 2 is switched back to network 1, the terminal can execute the above steps again based on the previously configured loading time parameter 1. In this way, suitable loading time parameters can be configured for the same terminal in different network environments.

[0085] When loading network data, it is often not possible to configure a loading time parameter suitable for the current terminal to load network data for the user by simply adding the loading time parameter once. Therefore, the present application provides a flow chart of another terminal data loading method, such as Figure 3 As shown,

[0086] Step S101, obtaining multiple loading results of the terminal loading network data.

[0087] This step is the same as the aforementioned S101. Please refer to the relevant description of the aforementioned S101 and will not be repeated here.

[0088] Step S102, calculating the success rate of the terminal loading network data according to the multiple loading results.

[0089] This step is the same as the aforementioned S102. Please refer to the relevant description of the aforementioned S102 and will not be repeated here.

[0090] Step S103, if the success rate is less than the preset expected success rate, increase the loading time parameters of the terminal, wherein the loading time parameters include the terminal timeout time and / or the number of retries of the terminal, the timeout time is the maximum waiting time for the terminal to load network data once, and the number of retries is the maximum number of times the terminal requests a connection again when the network data loading fails.

[0091] This step is the same as the aforementioned S103. Please refer to the relevant description of the aforementioned S103 and will not be repeated here.

[0092] Step S201, calculating the exit rate of the terminal loading network data according to the multiple loading results.

[0093] This step is the same as the aforementioned S201. Please refer to the relevant instructions of the aforementioned S201 and will not be repeated here.

[0094] Step S202: If the success rate is less than the preset expected success rate and the exit rate is less than the preset exit rate, the timeout time and the number of retries of the terminal are increased.

[0095] This step is the same as the aforementioned S202. Please refer to the relevant description of the aforementioned S202 and will not be repeated here.

[0096] Step S301, returning to the step of obtaining multiple loading results of the terminal loading network data, until the success rate meets the preset success rate condition.

[0097] If increasing the loading time parameter once still fails to make the success rate of the current terminal loading network data greater than the preset expected success rate, the process can return to step S101 and continue to execute the step of obtaining the loading result of the terminal loading network data, and adjust the loading time parameter by increasing it multiple times until the success rate of the current terminal loading network data meets the preset success rate condition.

[0098] In this embodiment, the success rate of the current terminal loading network data satisfies the preset success rate condition, which can be that within a preset statistical period, the success rate of the terminal loading network data is greater than a preset success rate threshold. Or within a preset statistical period, the difference between the success rate of the terminal loading network data and the preset expected success rate is less than a preset difference. The smaller the difference, the closer the success rate is to the preset expected success rate. The preset statistical period can be a period of a certain number of times the terminal loads network data, or a period of a certain time when the terminal loads network data.

[0099] Exemplarily, taking 100 video loadings as a statistical period, setting the preset success rate threshold to 90%, when the current success rate is less than or equal to 90%, continue to return to the step of obtaining the loading result of the terminal loading network data until the current success rate is greater than 90%.

[0100] Alternatively, if one minute of video loading is used as a statistical period, the preset difference is 3%, and the preset expected success rate is 95%. If the current success rate is 87%, continue to return to the step of obtaining the loading result of the terminal loading network data until the difference between the current success rate and the preset expected success rate is less than 3%.

[0101] Step S302: If the success rate is not less than the expected success rate, the loading time parameter of the terminal is kept unchanged.

[0102] According to the loading result, the success rate of the terminal loading network data can be obtained. For example, the expected success rate of video A is 95%, and the result of video A loading is that video A is loaded 100 times, of which 98 times are successfully loaded, so the success rate of video A loading is 98%. Because the success rate is greater than the expected success rate, the loading time parameter of the current terminal remains unchanged.

[0103] In addition, because during the network data loading process, users often do not wait for the network data to be loaded. Therefore, in this application, the maximum timeout time and the maximum number of retries can also be preset. During the process of loading network data, the timeout time and the number of retries will be adaptively increased according to the above method within the range of the preset maximum timeout time and the maximum number of retries. When the current timeout time is greater than or equal to the preset maximum timeout time, the timeout time will not continue to increase. Similarly, when the number of retries is greater than or equal to the maximum number of retries, the number of retries will not continue to increase.

[0104] This application also provides an exemplary terminal data loading solution. Figure 4 As shown, Figure 4 is an exemplary terminal data loading scheme, in which 100 video loadings are used as a statistical cycle, the expected success rate is preset to be 95%, and the exit rate is preset to be 3%, wherein:

[0105] Step S401, enter the video loading page.

[0106] Specifically, taking the terminal data loading as video loading as an example, enter the video loading page and wait for the video to load.

[0107] Step S402, video loading.

[0108] Specifically, the loading result after the video is loaded may be that the video is loaded successfully, the video is loaded failed, or the user exits during the video loading.

[0109] Step S403, using the current network name as the primary key, records the result of this video loading.

[0110] Specifically, if the terminal is currently connected to a company WIFI network, the network name of the company WIFI can be used as an identifier to record the result of this video loading under the company WIFI.

[0111] Step S404, calculating the success rate and the exit rate.

[0112] After a statistical cycle of 100 records, the success rate and exit rate of video loading under the current network are calculated by recording the number of successful loadings and the number of user exits during the loading process.

[0113] According to the success rate and the exit rate, how to adjust the timeout time and the number of retries is selected. When the success rate is greater than 95%, step S405 is executed. When the success rate is less than 95% and the exit rate is less than 3%, step S406 is executed. When the success rate is less than 95% and the exit rate is greater than or equal to 3%, step S407 is executed.

[0114] Step S405, keep the timeout period and the number of retries unchanged.

[0115] Specifically, because the success rate at this time is greater than the expected success rate, the current timeout period and the number of retries can be kept unchanged.

[0116] Step S406, the timeout period is increased by 0.5S, and the number of retries is increased by 1.

[0117] Because the success rate is lower than the expected success rate, and the exit rate is within the preset exit rate range, the user can accept a relatively long waiting time. At this time, the success rate of loading videos can be further improved by increasing the timeout time and the number of retries, adaptively balancing the success rate of loading and the waiting time for users to load network data, so as to configure a more suitable timeout time and number of retries for loading network data on the terminal for users, bringing better user experience.

[0118] Step S407, the timeout period is increased by 0.5S.

[0119] Because in this case, the success rate is lower than the expected success rate, and the exit rate is higher than the preset exit rate. A high exit rate indicates that the waiting time that users can accept cannot be extended too much, so only the timeout time is increased.

[0120] In this embodiment, the video is loaded by entering the video loading page, and then the loading result is recorded with the name of the currently connected network as the primary key. After recording 100 times, the success rate and exit rate are calculated according to the recorded loading results. Different adjustment schemes are provided according to different situations. When the success rate is greater than the expected success rate, the timeout time and the number of retries are kept unchanged. When the success rate is less than the expected success rate, and the exit rate is less than the preset exit rate, the timeout time and the number of retries are appropriately increased to better improve the success rate of video loading. When the success rate is less than the expected success rate, but the exit rate is greater than or equal to the preset exit rate, because the user cannot accept the waiting time to increase too much, only the timeout time is increased to improve the success rate of video loading under the current network. Through this scheme, the success rate of loading and the waiting time of the user waiting to load the network data can be adaptively balanced according to the network environment where the user is located, so as to obtain a timeout time and the number of retries that are more suitable for the user's current network environment, and bring a better video loading experience to the user.

[0121] Based on the same inventive concept, the present application accordingly provides a terminal data loading device, such as Figure 5 As shown, Figure 5 A schematic diagram of the structure of a terminal data loading device provided by an embodiment of the present invention includes:

[0122] An acquisition module 501 is used to acquire multiple loading results of the terminal loading network data;

[0123] A calculation module 502, used to calculate the success rate of the terminal loading network data according to the multiple loading results;

[0124] Processing module 503 is used to increase the loading time parameters of the terminal if the success rate is less than the preset expected success rate, wherein the loading time parameters include the terminal timeout time and / or the number of retries of the terminal, the timeout time is the maximum waiting time when the terminal loads network data once, and the number of retries is the maximum number of times the terminal requests a connection again when the network data loading fails.

[0125] In this embodiment, the acquisition module 501 acquires multiple loading results of the terminal loading network data, and then the calculation module 502 calculates the success rate of the terminal loading network data according to the multiple loading results. Finally, the processing module 503 increases the loading time parameter of the terminal if the success rate is less than the preset expected success rate, wherein the timeout time is the maximum waiting time when the terminal loads network data once, and the number of retries is the maximum number of times the terminal re-requests the connection when the network data is loaded timeout. By increasing the loading time parameter, a more suitable loading time parameter is configured for the user, so as to adaptively increase the success rate by increasing the loading time parameter of the terminal. At the same time, since the loading time parameter of the terminal is increased only when the success rate is lower than the preset expected success rate, the timeout time of the terminal can be effectively avoided from being set too long, resulting in the user having to wait too long. That is, the selection of this embodiment can adaptively balance the success rate of loading and the waiting time for the user to load the network data, so as to configure a more suitable loading time parameter for the terminal to load the network data for the user, improve the user experience, and bring a better experience to the user.

[0126] In a possible embodiment, increasing the loading time parameter of the terminal includes:

[0127] The timeout period of the terminal is increased by a preset time period, wherein the preset time period is negatively correlated with the timeout period and / or positively correlated with the size of the network data.

[0128] In a possible embodiment, the device further includes:

[0129] Based on multiple loading results, calculate the exit rate of the terminal loading network data;

[0130] If the success rate is less than the preset expected success rate, increase the terminal loading time parameters, including:

[0131] If the success rate is less than the preset expected success rate and the exit rate is less than the preset exit rate, the terminal timeout time and the number of retries are increased.

[0132] In a possible embodiment, increasing the number of retries of the terminal includes:

[0133] A preset number of times is determined, and the number of retries of the terminal is increased by the preset number of times.

[0134] In a possible embodiment, the device further includes:

[0135] Based on multiple loading results, calculate the exit rate of the terminal loading network data;

[0136] If the success rate is less than the preset expected success rate, increase the terminal loading time parameters, including:

[0137] If the success rate is less than the preset expected success rate and the exit rate is not less than the preset exit rate, the terminal timeout period is increased and the number of terminal retries remains unchanged.

[0138] In a possible embodiment, obtaining multiple loading results of the terminal loading network data includes:

[0139] Get the multiple loading results of the terminal loading network data under the current network.

[0140] In a possible embodiment, increasing the loading time parameter of the terminal includes:

[0141] When switching to the target network, the loading time parameters configured for the target network are determined as the loading time parameters used by the terminal.

[0142] The embodiment of the present invention further provides an electronic device, such as Figure 6 As shown, it includes a processor 601, a communication interface 602, a memory 603 and a communication bus 604, wherein the processor 601, the communication interface 602, and the memory 603 communicate with each other through the communication bus 604.

[0143] Memory 603, used for storing computer programs;

[0144] The processor 601 is used to execute the program stored in the memory 603 to implement the following steps:

[0145] Get multiple loading results of the terminal loading network data;

[0146] According to multiple loading results, calculate the success rate of the terminal loading network data;

[0147] If the success rate is lower than the preset expected success rate, the loading time parameters of the terminal are increased, wherein the loading time parameters include the terminal timeout time and / or the number of retries of the terminal, the timeout time is the maximum waiting time for the terminal to load network data once, and the number of retries is the maximum number of times the terminal requests a connection again when a network data loading failure occurs.

[0148] The communication bus 604 mentioned in the above terminal can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0149] The communication interface is used for communication between the above terminal and other devices.

[0150] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0151] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0152] In another embodiment of the present invention, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, a terminal data loading method described in any one of the above embodiments is implemented.

[0153] In another embodiment of the present invention, a computer program product including instructions is provided. When the computer program product is run on a computer, the computer executes a terminal data loading method described in any one of the above embodiments.

[0154] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk (SSD)), etc.

[0155] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0156] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, electronic device, computer-readable storage medium, and computer program product embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0157] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims

1. A terminal data loading method, characterized in that: The method comprises: Get multiple loading results of the terminal loading network data; Calculating the success rate of the terminal loading network data according to the multiple loading results; Calculating the exit rate of the terminal loading network data according to the multiple loading results; If the success rate is lower than the preset expected success rate and the exit rate is lower than the preset exit rate, the timeout time of the terminal and the number of retries of the terminal are increased. The timeout time is the maximum waiting time when the terminal loads network data once, and the number of retries is the maximum number of times the terminal requests a connection again when loading the network data times out.

2. The method according to claim 1, characterized in that: The increasing the timeout period of the terminal comprises: The timeout period of the terminal is increased by a preset time period, wherein the preset time period is negatively correlated with the timeout period and / or positively correlated with the size of the network data.

3. The method according to claim 1, characterized in that Increasing the number of retries of the terminal includes: A preset number of times is determined, and the number of retries of the terminal is increased by the preset number of times.

4. The method according to claim 1, characterized in that: The method further comprises: If the success rate is less than the preset expected success rate and the exit rate is not less than the preset exit rate, the timeout period of the terminal is increased and the number of retries of the terminal is kept unchanged.

5. The method according to claim 1, characterized in that The obtaining of multiple loading results of the terminal loading network data includes: Obtain the multiple loading results of the terminal loading network data under the current network.

6. The method according to claim 1, characterized in that The increasing the timeout period of the terminal and the number of retries of the terminal includes: When switching to the target network, the timeout time and the number of retries configured for the target network are determined as the timeout time and the number of retries used by the terminal.

7. A terminal data loading device, characterized in that: The device comprises: An acquisition module is used to obtain multiple loading results of the terminal loading network data; A calculation module, used to calculate the success rate of the terminal loading network data according to the multiple loading results; and calculate the exit rate of the terminal loading network data according to the multiple loading results; A processing module is used to increase the timeout time of the terminal and the number of retries of the terminal if the success rate is less than a preset expected success rate and the exit rate is less than a preset exit rate. The timeout time is the maximum waiting time when the terminal loads network data once, and the number of retries is the maximum number of times the terminal requests a connection again when loading the network data times out.

8. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, for implementing the method steps described in any one of claims 1 to 6 when executing a program stored in a memory.

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

Citation Information

Patent Citations

  • Remote procedure call request control method and device

    CN109218369A