Network speed prediction method, device and computer-readable storage medium
Through real-time monitoring and preset relationship matching methods, the problem of network speed changes in mobile Internet of Things is solved, real-time network speed prediction and dynamic configuration of business parameters between ends are realized, and communication quality is improved.
Patent Information
- Application Number
- CN202011407513.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-04
- Publication Date
- 2025-07-18
- Estimated Expiration
- 2040-12-04
AI Technical Summary
In the field of mobile Internet of Things, the prior art cannot predict the network speed changes between ends in real time, especially when the network state changes rapidly, resulting in improper configuration of business parameters and affecting communication quality.
By monitoring the network status of the local and vice-ends of the communication in real time, using the preset network status and network speed correspondence, predict the current network speed based on the signal strength, including real-time recording and updating the data in the network speed table, and performing network speed prediction.
Real-time network speed prediction when network state changes, ensure real-time configuration of service parameters, and improve communication quality and business fluency.
Smart Images

Figure CN114615173B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of mobile Internet of Things, and particularly to a method and apparatus for predicting network speed. Background Art
[0002] With the development and maturity of the mobile Internet of Things, end-to-end network interaction services have become increasingly common, such as communication between a mobile terminal and a server terminal, collaborative communication between multiple mobile terminals / mobile robots, etc. At the same time, the mobile terminal has the characteristic of real-time change in network status: for example, the mobile terminal can connect to the network through mobile / unicom / telecom 4G, or can also connect to the network through technologies such as Wifi / Zigbee / Bluetooth. At the same time, after connecting to the network, due to location changes, the network status such as the connection method and signal strength often changes.
[0003] Currently, after communication is established between ends, if a large amount of traffic is required for a service, the current network speed is immediately measured, and then the service parameters are configured according to the current network speed. However, since network measurement requires continuous sending and receiving of a large amount of packet data, general network speed measurement takes dozens of seconds (for example, using sppedtest.cn for speed measurement takes about 30 seconds), and when the network is poor, it may take even longer. Therefore, for service configurations with high real-time requirements, the network speed cannot be obtained and the parameters cannot be configured through this method.
[0004] There is also the following method currently: after communication is established between ends, at regular intervals (such as 60 seconds), the network speed between the ends is measured and recorded in the background, and when the current network speed needs to be obtained in real time, the result of the previous speed measurement can be directly used. However, this method is not suitable for the field of mobile Internet of Things. Therefore, within the test period, if the network status changes between the two ends, such as the connection signal switches or the signal strength changes, the speed measurement data of the previous network status cannot be used as a reference for the current network speed. Summary of the Invention
[0005] The present disclosure provides a method for predicting network speed, including real-time monitoring of the network status of the local communication end and the network status of the communication peer end, where the network status includes signal strength and signal identifier;
[0006] When the network status of the local communication end and / or the network status of the communication peer end changes, predict the current network speed between the local communication end and the communication peer end according to the network status of the local communication end and / or the current network status of the communication peer end, and the preset corresponding relationship between the network status and the network speed.
[0007] In an exemplary embodiment, the preset corresponding relationship between the network status and the network speed is obtained by the following method:
[0008] Obtain the network status of the local communication end and the network status of the communication peer end;
[0009] When the local communication end and the remote communication end meet the preset conditions, measure the network speed between the local communication end and the remote communication end, and record the network speed between the local communication end and the remote communication end, the network state of the local communication end, the network state of the remote communication end, and the measurement time as a record item.
[0010] In an exemplary embodiment, the predicting the current network speed between the local communication end and the remote communication end according to the network state of the local communication end and / or the current network state of the remote communication end, and the corresponding relationship between the preset network state and the network speed includes:
[0011] According to the network state of the local communication end and / or the current network state of the remote communication end, match the corresponding relationship between the preset network state and the network speed according to the principle of nearest matching by signal strength;
[0012] Predict the current network speed between the local communication end and the remote communication end according to the network speed in the corresponding relationship between the preset network state and the network speed that is matched.
[0013] In an exemplary embodiment, the matching the corresponding relationship between the preset network state and the network speed according to the principle of nearest matching by signal strength includes:
[0014] Among the corresponding relationships between the preset network state and the network speed with the same communication end and the same network identifier, find the corresponding relationship between the preset network state and the network speed whose signal strength is the same as that in the current network state, or find N corresponding relationships between the preset network state and the network speed whose signal strength has the smallest difference from the signal strength in the current network state;
[0015] Wherein, N is a preset integer greater than 1.
[0016] In an exemplary embodiment, the predicting the current network speed between the local communication end and the remote communication end according to the network state of the local communication end and / or the current network state of the remote communication end, and the corresponding relationship between the preset network state and the network speed includes:
[0017] When only the network state of the local communication end changes, match the corresponding relationship between the preset network state and the network speed according to the current network state of the local communication end;
[0018] When only the network state of the remote communication end changes, match the corresponding relationship between the preset network state and the network speed according to the current network state of the remote communication end;
[0019] When the network states of both the communication local end and the communication peer end change, match the corresponding relationship between the preset network state and network speed according to the current network state signal strength of either end, or match the corresponding relationship between the preset network state and network speed according to the current network state of the communication local end and the current network state of the communication peer end respectively.
[0020] In an exemplary embodiment, predicting the current network speed between the communication local end and the communication peer end according to the network speed in the matched corresponding relationship between the preset network state and network speed includes:
[0021] When the signal strength in the matched corresponding relationship between the preset network state and network speed is the same as the current signal strength, the network speed in the matched corresponding relationship between the preset network state and network speed is the current network speed between the communication local end and the communication peer end.
[0022] In an exemplary embodiment, predicting the current network speed between the communication local end and the communication peer end according to the network speed in the matched corresponding relationship between the preset network state and network speed includes:
[0023] When the signal strength in the matched corresponding relationship between the preset network state and network speed is different from the current signal strength, the network speed in the matched corresponding relationship between the preset network state and network speed includes a first network speed and a second network speed matched according to the communication local end or the communication peer end whose current network state has changed;
[0024] Predict the current network speed according to the first network speed, the second network speed, the first signal strength, the second signal strength, and the signal strength of the communication local end or the communication peer end whose current network state has changed;
[0025] Wherein, the first signal strength is the signal strength corresponding to the first network speed in the corresponding relationship between the preset network state and network speed; the second signal strength is the signal strength corresponding to the second network speed in the corresponding relationship between the preset network state and network speed.
[0026] In an exemplary embodiment, predicting the current network speed between the communication local end and the communication peer end according to the network speed in the matched corresponding relationship between the preset network state and network speed includes:
[0027] When the signal strength in the matched corresponding relationship between the preset network state and network speed is different from the current signal strength, the network speed in the matched corresponding relationship between the preset network state and network speed includes a first network speed and a second network speed matched according to the network state of the communication local end whose current network state has changed, and a third network speed and a fourth network speed matched according to the network state of the communication peer end whose current network state has changed;
[0028] Predict the current network speed based on the first network speed, the second network speed, the third network speed, the fourth network speed, the first signal strength, the second signal strength, the third signal strength, the fourth signal strength, the current signal strength of the local communication end, and the current signal strength of the communication peer end;
[0029] Wherein, the first signal strength is the signal strength corresponding to the first network speed in the preset correspondence between network states and network speeds;
[0030] The second signal strength is the signal strength corresponding to the second network speed in the preset correspondence between network states and network speeds;
[0031] The third signal strength is the signal strength corresponding to the third network speed in the preset correspondence between network states and network speeds;
[0032] The fourth signal strength is the signal strength corresponding to the fourth network speed in the preset correspondence between network states and network speeds.
[0033] The present disclosure also provides a network speed prediction device, including: a memory and a processor; the memory is configured to store a program for network speed prediction;
[0034] The processor is configured to read the program for network speed prediction and execute the above-mentioned network speed prediction method.
[0035] The present disclosure also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned network speed prediction method is implemented.
[0036] In the embodiments of the present disclosure, by monitoring the network state of the local communication end and the network state of the communication peer end in real time, when the network state of the local communication end and / or the network state of the communication peer end changes, the current network speed between the local communication end and the communication peer end is predicted according to the network state of the local communication end and / or the current network state of the communication peer end and the preset correspondence between network states and network speeds, so that when the end-to-end network state changes (such as 4G / Wifi network signal source, signal strength, etc.), the current network speed can be predicted in real time according to the current network state. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 It is a schematic diagram of the network speed prediction method according to the embodiments of the present disclosure.
[0038] Figure 2 It is a schematic diagram of the relationship between signal strength and transmission rate according to the embodiments of the present disclosure.
[0039] Figure 3 It is a flowchart of establishing an example of network speed representation according to the embodiments of the present disclosure.
[0040] Figure 4Schematic diagram of the end-to-end connection model of the embodiments of the present disclosure.
[0041] Figure 5 Flowchart of the network speed prediction of the embodiments of the present disclosure.
[0042] Figure 6 Schematic diagram of the network speed prediction device of the embodiments of the present disclosure. Detailed implementation manners
[0043] The embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings. It should be noted that, without conflict, the embodiments in the present application and the features in the embodiments can be combined arbitrarily with each other.
[0044] Figure 1 Schematic diagram of the network speed prediction method of the embodiments of the present disclosure. As Figure 1 shown, the network speed prediction method of this embodiment includes steps S11 - S12:
[0045] S11. Monitor the network status of the local communication end and the network status of the peer communication end in real time;
[0046] S12. When the network status of the local communication end and / or the network status of the peer communication end changes, predict the current network speed between the local communication end and the peer communication end according to the network status of the local communication end and / or the current network status of the peer communication end, and the preset corresponding relationship between the network status and the network speed.
[0047] In an exemplary embodiment, the network status includes a network identifier and a signal strength. The network identifier can correspond to the connection type. For example, the network identifier can be a network name.
[0048] In an exemplary embodiment, the current network speed can include the upload speed and the download speed of the current network.
[0049] In an exemplary embodiment, the network status may include the signal strength. In other exemplary embodiments, the network status further includes network identifiers (such as network names, network IDs), connection types, public network IPs, local area network IPs, hole punching / forwarding / UPNP and other network status-related statuses. Refined differentiation of the network status helps to make the network speed prediction more accurate. For example, the network status of end A is "source 1 (i.e., the network name in Table 1 below), Wifi (i.e., the connection type in Table 1 below), 90 (i.e., the network strength in the table below)", and the network status of end B is "source x, 4G, 80".
[0050] In an exemplary embodiment, the preset corresponding relationship between the network status and the network speed can be obtained through the following method:
[0051] Obtain the network status of the local communication end and the network status of the peer communication end;
[0052] When the local communication end and the peer communication end are idle and meet a preset condition, measure the network speed between the local communication end and the peer communication end, and record the network speed between the local communication end and the peer communication end, the network state of the local communication end, the network state of the peer communication end, and the measurement time.
[0053] In an exemplary embodiment, the network speed measured each time and the network state of the local communication end and the peer communication end corresponding to the network speed can be saved as a record item in a network speed table; when predicting the current network speed between the local communication end and the peer communication end, obtain the correspondence between the network state and the network speed through the network speed table.
[0054] For example, record item 1 is obtained during the first measurement, and record item 2 is obtained during the second measurement.
[0055] Wherein, each record item can be represented as a row in the network speed table, and each data in the record item can be used as the content of a cell at a predetermined position in this row.
[0056] Wherein, the network speed can include the uplink speed and the download speed of the local communication end.
[0057] For example, any record item in Table 1 below records the network states of end A and end B, as well as the upload speed, download speed, and measurement time corresponding to this network state. Each record item reflects the correspondence between the network state and the network speed.
[0058] In an exemplary embodiment, the preset condition may include any one of the following:
[0059] There is no record item in the network speed table whose network identifiers and signal strength intervals at both communication ends are the same as the current network state, and the measurement time of the record item corresponding to at least one interval exceeds the aging period; wherein, all signal strengths of the local communication end can be divided into multiple intervals according to a first preset interval, and all signal strengths of the peer communication end can be divided into multiple intervals according to a second preset interval.
[0060] For example, if the signal strength ranges from 0% to 100%, the precision step value of the signal strength can be set to Deta (e.g., Deta is set to 25). Then, there are 100 / Deta steps for the signal strength, that is, 4 intervals. Therefore, the interval signal strengths are respectively Interval 1 (signal strength 0 - 25), Interval 2 (signal strength 26 - 50), Interval 3 (signal strength 51 - 75), and Interval 4 (76 - 100). The network speed value within the same interval only needs to be measured once and recorded in the network speed table. As shown in the first row of Table 1 below, that is, the network speed when the signal strength is 90, and the corresponding signal strength is in Interval 4. When the subsequent signal strength changes within the range of 76 - 100 and has not reached the aging cycle, there is no need to re-measure the network speed.
[0061] Among them, the aging cycle is the validity period of the record item. For example, if the aging cycle is set to 30 days, when a record item exceeds 30 days from the measurement time, set this record item to the aged state, and when the speed measurement condition is available, re-measure the network speed when the signal strength belongs to the interval in this record item and update it to the network speed table.
[0062] In an exemplary embodiment, the corresponding record item can be matched in the network speed table according to the network state of the local communication end and / or the current network state of the communication peer end;
[0063] Predict the current network speed between the local communication end and the communication peer end according to the network speed in the matched record item.
[0064] In an exemplary embodiment, the record item can be matched in the network speed table according to the principle of nearest matching of signal strength according to the network state of the local communication end and / or the current network state of the communication peer end;
[0065] Among them, the network state also includes the network identifier of the network used by the communication end. For example, during a measurement, among the two communication ends, end A uses network source x and end B uses network source y. Then, a record item can include: network speed, measurement time, network state of end A (source x, signal strength), and network state of end B (source y, signal strength of end B).
[0066] Matching the record item according to the principle of nearest matching of signal strength means: among the record items with the same communication end and the same network identifier in the network speed table, find the record item with the same signal strength as the current network state, or find multiple record items with the signal strength having the smallest difference from the signal strength in the current network state.
[0067] For example, when only the network status of end A changes among the two ends of the communication, then in the network speed table, matching can be performed only based on the current network status of end A. First, find the alternative record items whose network identifiers of end A are the same as the current network identifier of end A; then, among these alternative record items, find the record items whose signal strengths of end A are the same as the current signal strength of end A. When there are identical record items, the network speed of the record item is the predicted network speed. When there are no identical record items, among these alternative record items, find multiple record items whose differences between the signal strengths of end A and the current signal strength of end A are the smallest, and use them as the matched record items. Then, calculate the predicted network speed based on the matched record items.
[0068] When it is necessary to match N (N>1) record items, one record item can be first matched according to the principle of proximity of signal strength, and after excluding this record item, continue to match in the alternative record items according to the principle of proximity of signal strength; or in the alternative record items, sort them in ascending order of the absolute value of the difference between the signal strength of end A and the current signal strength of end A, and select the top N as the matched record items. When N is an even number, in the alternative record items, N / 2 record items can also be selected according to the difference between the signal strength of end A and the current signal strength of end A being greater than 0, and N / 2 record items can be selected according to the difference between the signal strength of end A and the current signal strength of end A being less than 0, as the N matched record items, that is, among the N corresponding relationships between the preset network status and the network speed where the difference between the signal strength and the signal strength in the current network status is the smallest, half of the differences are greater than 0 and half are less than 0, so that the predicted network speed can be more accurate.
[0069] That is: if it is necessary to match 2 record items, then according to the principle of proximity of signal strength, match 1 record item, and then match 1 more record item from the record items other than this one according to the principle of proximity of signal strength, or directly match 2 record items with the smallest absolute value of the difference from the current signal strength of end A, or select 1 record item according to the difference between the signal strength of end A (or B) and the current signal strength of end A (or B) being greater than 0, and select 1 record item according to the difference between the signal strength of end A (or B) and the current signal strength of end A (or B) being less than 0, as the 2 matched record items.
[0070] If it is necessary to match 4 record items, then according to the principle of proximity of signal strength, match 1 record item, and then match 1 more record item from the other record items other than this one according to the principle of proximity of signal strength, and so on, and then match the 3rd record item from the other record items other than the already matched record items according to the principle of proximity of signal strength until the 4th record item is matched; or directly match 4 record items with the smallest difference from the signal strength in the current network status.
[0071] For example, currently, the local end of the communication is end A, and the remote end is end B. The network status of end A is "source 1, wifi, 80", and the network status of end B is "source x, 4G, 80". It is detected that the network status of end A has changed, while the network status of end B has not changed. Then, look up Table 1 below, match the network speeds corresponding to the two signal strength values adjacent to the current signal strength under the current same signal source, and then perform calculations to obtain the predicted value at the current signal strength.
[0072] In an exemplary embodiment, when only the network status of the local end of the communication changes, match the record item according to the network status of the local end of the communication in the network speed table according to the principle of nearest matching;
[0073] When only the network status of the remote end of the communication changes, match the record item according to the network status of the remote end of the communication in the network speed table according to the principle of nearest matching;
[0074] When the network statuses of both the local end and the remote end of the communication change, select either end to match the record item according to the principle of nearest matching, or match the record item according to the network status of the local end of the communication and the network status of the remote end of the communication respectively according to the principle of nearest matching.
[0075] Since the signal strength has an impact on the network speed, that is, under a specified bandwidth, the weaker the signal strength, the lower the network speed, and it shows an approximate linear relationship (as Figure 2 shown), so the current network speed can be predicted through interpolation calculation.
[0076] In an exemplary embodiment, predicting the current network speed between the local end and the remote end of the communication according to the network speed in the matched record item includes:
[0077] When the signal strength of the record item at the matching location is the same as the current signal strength, the network speed corresponding to this record item is the current network speed between the local end and the remote end of the communication;
[0078] When the signal strength of the record item at the matching location is different from the current signal strength, the network speeds in the matched record item include the first network speed and the second network speed matched according to the local end or the remote end of the communication where the current network status has changed;
[0079] Predict the current network speed according to the first network speed, the second network speed, the first signal strength, the second signal strength, and the signal strength of the local end or the remote end of the communication where the current network status has changed;
[0080]
[0081] Among them, represents rounding down;
[0082] Among them, the first signal strength is the signal strength corresponding to the first network speed in the network speed table;
[0083] The second signal strength is the signal strength corresponding to the second network speed in the network speed table.
[0084] When the network speed includes upload speed and download speed, the upload speed and download speed are calculated separately, and the first network speed and the second network speed during the calculation are also the upload or download speed accordingly.
[0085] For example, the network status of end A is "source 1, wifi, 80", and the first row record item and the second row record item are matched according to the principle of nearest matching. The upload speed of the first row record item is 900, and the download speed is 1800; the upload speed of the second row record item is 600, and the download speed is 700. Then the download speed of the current network speed can be calculated according to the following formula:
[0086]
[0087]
[0088] Through calculation, the current upload speed can be obtained as 833 kbps and the download speed as 1555 kbps.
[0089] In an exemplary embodiment, the current network speed between the local communication end and the communication peer can be predicted according to the network speed in the matched record item, including:
[0090] When the signal strength of the record item at the matching location is different from the current signal strength, the network speed in the matched record item includes the first network speed and the second network speed matched according to the network status of the local communication end whose network status changes according to the current network status, and the third network speed and the fourth network speed matched according to the network status of the communication peer whose network status changes according to the current network status;
[0091] Predict the current network speed according to the first network speed, the second network speed, the third network speed, the fourth network speed, the first signal strength, the second signal strength, the third signal strength, the fourth signal strength, the current signal strength of the local communication end, and the current signal strength of the communication peer;
[0092]
[0093] Among them, represents rounding down;
[0094] Among them, the first signal strength is the signal strength corresponding to the first network speed in the network speed table;
[0095] The second signal strength is the signal strength corresponding to the second network speed in the network speed table;
[0096] The third signal strength is the signal strength corresponding to the third network speed in the network speed table;
[0097] The fourth signal strength is the signal strength corresponding to the fourth network speed in the network speed table.
[0098] The embodiments of the present disclosure can perform real-time prediction on the current network speed according to the current network state, so as to facilitate the real-time configuration of service parameters.
[0099] Figure 3 It is a flowchart of an example for establishing a network speed table in the embodiments of the present disclosure. As Figure 3 shown, it includes the following steps:
[0100] Step 301: Obtain the current network states of the local communication end and the communication peer end.
[0101] Step 302: Determine whether there is no record item corresponding to the interval where the current signal strength belongs in the network speed table, and whether the measurement time of the record items corresponding to at least one interval exceeds the aging period.
[0102] Step 303: Wait for the local communication end and the communication peer end to be idle.
[0103] Step 304: Measure the upload speed and download speed of the current network, and record them in the network speed table.
[0104] Among them, the aging period in step 302 is the validity period of the historical network speed. For example, if the aging period is set to 2 days, when it exceeds 2 days, the network speed of this interval is set to the aged state, and when the speed measurement condition is met, the network speed of this interval is re-measured and updated to the network speed table.
[0105] In the field of mobile Internet of Things, the communication network speed between ends depends to a large extent on characteristics such as the signal source and strength of the connection between the two ends. When large-volume service interactions occur between ends, it is necessary to configure parameters for large-volume services according to the current network speed situation. For example, when end A requests a video service from end B, video parameters such as resolution and bit rate need to be configured. When the configured video parameters exceed the current network speed between A and B, the video is prone to stuttering and other situations. And after the video service is established, there is a situation where end A and end B move. At this time, the network speed between A and B will be affected. Therefore, it is necessary to update the configuration parameters in real time.
[0106] In practical applications, there is a situation where both ends move simultaneously. Here, for the sake of simplifying the model and facilitating understanding, an example is Figure 4 shown: Assume that the movement range of end A is within the green circle range, and assume that the position of end B remains unchanged and the network state remains unchanged. When end A moves, the network signal source (such as Wifi) it connects to will sequentially switch from signal source 1 to signal source n. At the same time, as the position moves, the signal strength of the signal source also changes accordingly.
[0107] For the end-to-end connection model as Figure 4 shown, the established network speed table is exemplified in Table 1. Among them, in the signal strength column of Signal 1, the unit of signal loudness is %, and the range is 0% - 100%. To simplify the model, the precision step value of the signal strength can be set to Deta (for example, set Deta to 25), then there are 100 / Deta steps of signal strength, that is, 4 intervals. Therefore, the interval signal strengths are Interval 1 (signal strength 0 - 25), Interval 2 (signal strength 26 - 50), Interval 3 (signal strength 51 - 75), and Interval 4 (76 - 100). The network speed value within the same interval only needs to be measured once and recorded in the network speed table. For example, the network speed data in the first row of Table 1, that is, the network speed corresponding to a signal strength of 90, corresponds to Network Speed Interval 4. When its signal strength changes within the range of 76 - 100, there is no need to re-measure the network speed.
[0108] In the data of Table 1, as the position of End A moves, the connected network name and signal strength will change in real time. It is assumed that the position of End B is fixed, so the network name and signal strength remain unchanged. In Table 1, the unit of upload / download speed is kbps.
[0109] Table 1 Network Speed Table
[0110]
[0111] Figure 5 is the flowchart of network speed prediction for the embodiments of the present disclosure. As Figure 5 shown, it includes the following steps 501 - step 505:
[0112] Step 501: Monitor the network status of End A (i.e., the local communication end) and End B (i.e., the communication peer end) in real time.
[0113] Step 502: If the network status of End A changes, then execute Step 503; if the network status of End B changes, then execute Step 504; if the network statuses of both End A and End B change simultaneously, then execute Step 505.
[0114] Step 503: Match the record item in the network speed table according to the network status of End A, and predict the current network speed according to the matching result.
[0115] Step 504: Match the record item in the network speed table according to the network status of End B, and predict the current network speed according to the matching result.
[0116] Step 505: Match the record item in the network speed table according to the network statuses of End A and End B, and predict the current network speed according to the matching result; or match the record item in the network speed table according to the network status of End A or End B, and predict the current network speed according to the matching result;
[0117] In step 503, for example, the network status at end A is "source 1, wifi, 80". According to the principle of nearest matching, the first and second row record items in Table 1 are matched. The upload speed of the first row record item is 900, and the download speed is 1800; the upload speed of the second row record item is 600, and the download speed is 700. Then the download speed of the current network speed can be calculated according to the following formula:
[0118]
[0119]
[0120] Through calculation, the upload speed is obtained as 833 kbps and the download speed is 1555 kbps.
[0121] In step 505, if record items in the network speed table are matched according to the network status at end A or end B, and the current network speed is predicted according to the matching result, then according to the first network speed and the second network speed obtained by matching the communication local end or the communication peer end where the current network status changes, the current network speed is predicted according to the following formula:
[0122]
[0123] where, represents rounding down; the first signal strength is the signal strength corresponding to the first network speed in the network speed table; the second signal strength is the signal strength corresponding to the second network speed in the network speed table.
[0124] In step 505, if record items in the network speed table are matched according to the network statuses at both ends A and B, and the current network speed is predicted according to the matching result, then according to the first network speed and the second network speed obtained by matching the network status of the communication local end where the current network status changes, and the third network speed and the fourth network speed obtained by matching the network status of the communication peer end where the current network status changes, the current network speed is predicted according to the following formula:
[0125]
[0126] where, represents rounding down; the first signal strength is the signal strength corresponding to the first network speed in the network speed table; the second signal strength is the signal strength corresponding to the second network speed in the network speed table; the third signal strength is the signal strength corresponding to the third network speed in the network speed table; the fourth signal strength is the signal strength corresponding to the fourth network speed in the network speed table.
[0127] The network speed prediction method of the embodiments of the present disclosure can perform real-time prediction of the current network speed according to the current network status, so as to facilitate real-time configuration of service parameters.
[0128] Figure 6Schematic diagram of the network speed prediction device according to an embodiment of the present disclosure, as Figure 6 shown, the network speed prediction device of this embodiment includes: a memory and a processor;
[0129] The memory is configured to store a program for network speed prediction;
[0130] The processor is configured to read and execute the program for network speed prediction and execute the above-mentioned network speed prediction method.
[0131] The network speed prediction device according to an embodiment of the present disclosure can perform real-time prediction of the current network speed according to the current network state, thereby facilitating real-time configuration of service parameters.
[0132] Those of ordinary skill in the art can understand that all or part of the steps in the above method can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disc, etc. Optionally, all or part of the steps of the above embodiment can also be implemented using one or more integrated circuits. Correspondingly, each module / unit in the above embodiment can be implemented in the form of hardware or in the form of a software function module. The present disclosure is not limited to any specific combination of hardware and software.
[0133] The above is only a preferred embodiment of the present disclosure. Of course, the present disclosure can also have many other embodiments. Without departing from the spirit and essence of the present disclosure, those skilled in the art can make various corresponding changes and deformations according to the present disclosure, but these corresponding changes and deformations should all fall within the protection scope of the claims attached to the present disclosure.
Claims
1. A method for predicting network speed, characterized in that: The network status of the local communication end and the network status of the remote communication end are monitored in real time, where the network status includes signal strength and signal identification; When the network status of the local communication end and / or the network status of the remote communication end changes, the current network speed between the local communication end and the remote communication end is predicted according to the network status of the local communication end and / or the current network status of the remote communication end, and the preset corresponding relationship between the network status and the network speed; Predicting the current network speed between the local communication end and the remote communication end according to the network status of the local communication end and / or the current network status of the remote communication end, and the preset corresponding relationship between the network status and the network speed includes: When only the network status of the local communication end changes, match the preset corresponding relationship between the network status and the network speed according to the current network status of the local communication end; When only the network status of the remote communication end changes, match the preset corresponding relationship between the network status and the network speed according to the current network status of the remote communication end; When the network status of both the local communication end and the remote communication end changes, match the preset corresponding relationship between the network status and the network speed according to the signal strength of the current network status of any one end, or match the preset corresponding relationship between the network status and the network speed according to the current network status of the local communication end and the current network status of the remote communication end respectively.
2. The method according to claim 1, wherein the preset corresponding relationship between the network status and the network speed is obtained by the following method: Obtain the network status of the local communication end and the network status of the remote communication end; When the local communication end and the remote communication end meet the preset conditions, measure the network speed between the local communication end and the remote communication end, and record the network speed between the local communication end and the remote communication end, the network status of the local communication end, the network status of the remote communication end, and the measurement time as a record item.
3. The method according to claim 1, wherein predicting the current network speed between the local communication end and the remote communication end according to the network status of the local communication end and / or the current network status of the remote communication end, and the preset corresponding relationship between the network status and the network speed includes: According to the network status of the local communication end and / or the current network status of the remote communication end, match the preset corresponding relationship between the network status and the network speed according to the principle of nearest matching of signal strength; Predict the current network speed between the local communication end and the remote communication end according to the network speed in the matched preset corresponding relationship between the network status and the network speed.
4. The method according to claim 3, characterized in that: Matching the preset corresponding relationship between the network status and the network speed according to the principle of nearest matching of signal strength includes: In the preset corresponding relationship between the network status and the network speed with the same communication end and the same network identification, find the preset corresponding relationship between the network status and the network speed with the same signal strength as the signal strength in the current network status, or find N preset corresponding relationships between the network status and the network speed with the smallest difference in signal strength from the signal strength in the current network status; Wherein, N is a preset integer greater than 1.
5. The method according to claim 4, predicting the current network speed between the local communication end and the communication peer according to the network speed in the corresponding relationship between the preset network state and the network speed that is matched, includes: When the signal strength in the corresponding relationship between the preset network state and the network speed that is matched is the same as the current signal strength, the network speed in the corresponding relationship between the preset network state and the network speed that is matched is the current network speed between the local communication end and the communication peer.
6. The method according to claim 4, predicting the current network speed between the local communication end and the communication peer according to the network speed in the corresponding relationship between the preset network state and the network speed that is matched, includes: When the signal strength in the corresponding relationship between the preset network state and the network speed that is matched is different from the current signal strength, the network speed in the corresponding relationship between the preset network state and the network speed that is matched includes a first network speed and a second network speed matched according to the network state of the local communication end or the communication peer that changes according to the current network state; Predicting the current network speed according to the first network speed, the second network speed, the first signal strength, the second signal strength, and the signal strength of the local communication end or the communication peer whose network state changes according to the current network state; wherein, the first signal strength is the signal strength corresponding to the first network speed in the corresponding relationship between the preset network state and the network speed; the second signal strength is the signal strength corresponding to the second network speed in the corresponding relationship between the preset network state and the network speed.
7. The method according to claim 4, predicting the current network speed between the local communication end and the communication peer according to the network speed in the corresponding relationship between the preset network state and the network speed that is matched, includes: When the signal strength in the corresponding relationship between the preset network state and the network speed that is matched is different from the current signal strength, the network speed in the corresponding relationship between the preset network state and the network speed that is matched includes a first network speed and a second network speed matched according to the network state of the local communication end whose network state changes according to the current network state, and a third network speed and a fourth network speed matched according to the network state of the communication peer whose network state changes according to the current network state; Predicting the current network speed according to the first network speed, the second network speed, the third network speed, the fourth network speed, the first signal strength, the second signal strength, the third signal strength, the fourth signal strength, the current signal strength of the local communication end, and the current signal strength of the communication peer; wherein, the first signal strength is the signal strength corresponding to the first network speed in the corresponding relationship between the preset network state and the network speed; the second signal strength is the signal strength corresponding to the second network speed in the corresponding relationship between the preset network state and the network speed; the third signal strength is the signal strength corresponding to the third network speed in the corresponding relationship between the preset network state and the network speed; the fourth signal strength is the signal strength corresponding to the fourth network speed in the corresponding relationship between the preset network state and the network speed.
8. A network speed prediction device, comprising: A memory and a processor; characterized in that: The memory is configured to store a program for network speed prediction; The processor is configured to read the program for network speed prediction and execute the network speed prediction method according to any one of claims 1-7.
9. A computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the network speed prediction method according to any one of claims 1-7.
Citation Information
Patent Citations
WiFi hotspot selection method and device
CN111586801A
Method, apparatus and system for providing wireless network speed information
US20190014021A1