CN111641959A - Method and device for detecting network environment information - Google Patents

Method and device for detecting network environment information Download PDF

Info

Publication number
CN111641959A
CN111641959A CN202010283127.4A CN202010283127A CN111641959A CN 111641959 A CN111641959 A CN 111641959A CN 202010283127 A CN202010283127 A CN 202010283127A CN 111641959 A CN111641959 A CN 111641959A
Authority
CN
China
Prior art keywords
network
network environment
target
data
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010283127.4A
Other languages
Chinese (zh)
Inventor
罗熹之
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN202010283127.4A priority Critical patent/CN111641959A/en
Publication of CN111641959A publication Critical patent/CN111641959A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design
    • H04L41/145Network analysis or design involving simulating, designing, planning or modelling of a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design
    • H04L41/147Network analysis or design for predicting network behaviour
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • H04L43/0894Packet rate

Abstract

The application relates to a method and a device for detecting network environment information, wherein the method comprises the following steps: acquiring network request data of a target application, wherein the network request data comprises time information and data volume information of a network request initiated by the target application; determining a target network request speed of the target application according to the network request data; and predicting the network environment information of the network environment in which the target application is positioned according to the target network request speed. The method and the device solve the technical problem that the detection accuracy rate of the applied network environment information is low.

Description

Method and device for detecting network environment information
Technical Field
The present application relates to the field of computers, and in particular, to a method and an apparatus for detecting network environment information.
Background
In any network environment, no matter a wireless network (wifi) or a cellular network, a terminal device actually has a weak network problem, that is, a problem of high packet loss rate or high delay, so that a user cannot access a service. For the weak network problem, a weak network detection scheme is required to find the situation that the service cannot be provided, so that corresponding processing is performed.
The current weak network detection schemes are divided into passive detection and active detection. The active detection mode is to determine the network environment by detecting the RTT (Round-Trip Time). The problem with this approach is that it requires additional network overhead and, if detection is to be continued, ongoing network costs. Passive detection is mostly determined by monitoring the network speed of the network card of the terminal device, and when the network speed of the network card is too low, the network card is considered to be a weak network. However, this method can only detect the overall network environment of the terminal device, and different applications installed on the terminal device may have different requirements for the network environment, and the passive detection method cannot accurately and finely analyze the network environments of different applications, resulting in lower detection accuracy.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The application provides a method and a device for detecting network environment information, which are used for at least solving the technical problem of low detection accuracy of the applied network environment information in the related technology.
According to an aspect of an embodiment of the present application, there is provided a method for detecting network environment information, including:
acquiring network request data of a target application, wherein the network request data comprises time information and data volume information of a network request initiated by the target application;
determining a target network request speed of the target application according to the network request data;
and predicting the network environment information of the network environment in which the target application is positioned according to the target network request speed.
Optionally, the obtaining the network request data of the target application includes:
obtaining performance data for each network request of the target application, wherein the performance data comprises: server delay time, downlink download time and downlink download data volume;
determining the server delay time, the downlink download time and the downlink download data volume as the network request data under the condition that the downlink download data volume is greater than or equal to the target data volume;
and under the condition that the volume of the downlink download data is smaller than the target volume of the data, determining the delay time of the server, the downlink download time and the target volume of the data as the network request data.
Optionally, the time information includes a downlink download time and a server delay time, and the data amount information includes a downlink download data volume, where determining the target network request speed of the target application according to the network request data includes:
determining the sum of the downlink downloading time and the server delay time as network request time;
and determining the ratio of the downlink download data volume to the network request time as the target network request speed.
Optionally, predicting the network environment information of the network environment in which the target application is located according to the target network request speed includes:
fitting the target network request speed to obtain a network transmission speed;
and determining the network environment information according to the target network environment level of the network transmission speed falling into a plurality of network environment levels.
Optionally, fitting the target network request speed to obtain the network transmission speed includes:
inputting the target network request speed with a time sequence into an exponential smoothing model, wherein the exponential smoothing model is used for carrying out exponential smoothing processing on the time sequence of data to obtain real-time data;
and acquiring the network transmission speed output by the exponential smoothing model.
Optionally, the determining the network environment information according to the target network environment level in which the network transmission speed falls among the plurality of network environment levels comprises:
acquiring a target network environment level of the network transmission speed falling into the plurality of network environment levels;
determining the target network environment level as the network environment information under the condition that the number of the obtained continuous same target network environment levels is greater than or equal to the target number;
and determining the historical network environment level as the network environment information under the condition that the number of the obtained continuous same target network environment levels is less than the target number.
Optionally, the determining the network environment information according to the target network environment level in which the network transmission speed falls among a plurality of network environment levels comprises:
determining the target network environment level into which the network transmission speed falls among the plurality of network environment levels;
determining the target network environment level as the network environment information when the network transmission speed is greater than or equal to N times of an upper limit value of a historical network environment level, or the network transmission speed is less than or equal to M times of a lower limit value of the historical network environment level;
and determining the historical network environment level as the network environment information when the network transmission speed is less than N times of the upper limit value of the historical network environment level, or the network transmission speed is greater than M times of the lower limit value of the historical network environment level, wherein N is greater than 1, and M is greater than 0 and less than 1.
Optionally, after predicting the network environment information of the network environment in which the target application is located according to the target network request speed, the method further includes:
acquiring target application operation corresponding to the network environment information from the network environment and the application operation with the corresponding relation, wherein the target application operation is used for improving the network environment information;
and executing the target application operation on the target application.
According to another aspect of the embodiments of the present application, there is also provided a device for detecting network environment information, including:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring network request data of a target application, and the network request data comprises time information and data volume information of a network request initiated by the target application;
the determining module is used for determining the target network request speed of the target application according to the network request data;
and the prediction module is used for predicting the network environment information of the network environment in which the target application is positioned according to the target network request speed.
According to another aspect of the embodiments of the present application, there is also provided a storage medium including a stored program which, when executed, performs the above-described method.
According to another aspect of the embodiments of the present application, there is also provided an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the above method through the computer program.
In the embodiment of the application, network request data of a target application is acquired, wherein the network request data comprises time information and data volume information of a network request initiated by the target application; determining a target network request speed of the target application according to the network request data; the method for predicting the network environment information of the network environment in which the target application is located according to the target network request speed determines the current target network request speed of the target application by acquiring the network request data of each target application, and predicts the network environment information of the network in which the target application is currently located according to the target network request speed, so that the aim of refining the prediction of the network environment to each target application is fulfilled, the network environment information predicted by using the network request data of the target application can accurately reflect the current data transmission condition of the application, the predicted network environment information is more accurate, the technical effect of improving the detection accuracy of the applied network environment information is achieved, and the technical problem of low detection accuracy of the applied network environment information is solved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a schematic diagram of a hardware environment of a detection method of network environment information according to an embodiment of the present application;
fig. 2 is a flowchart of an alternative network environment information detection method according to an embodiment of the present application;
FIG. 3 is a schematic diagram of an exponential smoothing model according to an alternative embodiment of the present application;
FIG. 4 is a schematic diagram of a weak network environment detection process according to an alternative embodiment of the present application;
fig. 5 is a schematic diagram of an alternative network environment information detection apparatus according to an embodiment of the present application;
and
fig. 6 is a block diagram of a terminal according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to an aspect of embodiments of the present application, an embodiment of a method for detecting network environment information is provided.
Alternatively, in this embodiment, the method for detecting network environment information may be applied to a hardware environment formed by the terminal 101 and the server 103 as shown in fig. 1. As shown in fig. 1, a server 103 is connected to a terminal 101 through a network, which may be used to provide services (such as game services, application services, etc.) for the terminal or a client installed on the terminal, and a database may be provided on the server or separately from the server for providing data storage services for the server 103, and the network includes but is not limited to: the terminal 101 is not limited to a PC, a mobile phone, a tablet computer, and the like. The method for detecting network environment information according to the embodiment of the present application may be executed by the server 103, the terminal 101, or both the server 103 and the terminal 101. The terminal 101 executing the method for detecting network environment information according to the embodiment of the present application may also be executed by a client installed thereon.
Fig. 2 is a flowchart of an alternative network environment information detection method according to an embodiment of the present application, and as shown in fig. 2, the method may include the following steps:
step S202, network request data of a target application is obtained, wherein the network request data comprises time information and data volume information of a network request initiated by the target application;
step S204, determining the target network request speed of the target application according to the network request data;
step S206, predicting the network environment information of the network environment where the target application is located according to the target network request speed.
Through the steps S202 to S206, the current target network request speed of the target application is determined by obtaining the network request data of each target application, and the network environment information of the network where the target application is currently located is predicted according to the target network request speed, so that the purpose of refining the prediction of the network environment to each target application is achieved, and the network environment information predicted by using the network request data of the target application can accurately reflect the current data transmission condition of the application, so that the predicted network environment information is more accurate, the technical effect of improving the detection accuracy of the network environment information of the application is achieved, and the technical problem of low detection accuracy of the network environment information of the application is solved.
Further, the network resource can be solved by directly using the generated network request data as an input source without any additional network cost.
In the technical solution provided in step S202, the target application may be, but is not limited to, any type of application program. Such as: multimedia applications, financial applications, shopping applications, instant messaging applications, gaming applications, reading applications, travel applications, and the like.
Optionally, in this embodiment, the network request data includes time information and data amount information of a network request initiated by the target application, such as: the time information may include, but is not limited to, a download time and a server delay time, and the data amount information may include, but is not limited to, a download data volume.
In the technical solution provided in step S204, the manner of determining the target network request speed may include, but is not limited to, acquiring a ratio of the data amount information to the time information as the target network request speed.
In the technical solution provided in step S206, the manner of predicting the network environment information may include, but is not limited to, fitting the network transmission speed, and dividing the level of the network transmission speed according to the fitting result.
As an alternative embodiment, the obtaining the network request data of the target application includes:
s1, obtaining performance data of each network request of the target application, where the performance data includes: server delay time, downlink download time and downlink download data volume;
s2, determining the server delay time, the downlink download time and the downlink download data volume as the network request data when the downlink download data volume is greater than or equal to the target data volume;
s3, determining the server delay time, the downlink download time and the target data volume as the network request data when the downlink download data volume is smaller than the target data volume.
Optionally, in this embodiment, performance data may be collected by establishing performance monitoring for the network request, and the performance data may include, but is not limited to: server latency, download time and download data volume, etc.
Alternatively, in this embodiment, the server latency time may refer to the time between the completion of the request data transmission and the receipt of the first response packet.
Optionally, in this embodiment, the optimization processing may be performed on the downlink download data volume, and when the downlink download data volume is smaller than the target data volume, the target data volume is used as the network request data, for example: the data volume downloaded downstream is less than 8KB, rounding up to 8 KB.
Optionally, in this embodiment, for an interface with a downlink data volume of 0, that is, a failed interface, the downlink data volume may be processed to be a minimum value, so that the speed tends to 0.
As an optional embodiment, the time information includes a download time and a server delay time, and the data amount information includes a download data volume, wherein determining the target network request speed of the target application according to the network request data includes:
s1, determining the sum of the downlink downloading time and the server delay time as the network request time;
and S2, determining the ratio of the volume of the downlink download data to the network request time as the target network request speed.
Optionally, in this embodiment, only the downlink download speed may be calculated as the network transmission speed of the application, and the downlink download time and the server delay time are combined into the download time, so that the server delay time, i.e., the response delay, is also included in the network request speed calculation, which can truly reflect the user experience.
Optionally, in this embodiment, the sum of the downlink download time and the server delay time may refer to, but is not limited to, a weighted sum of the downlink download time and the server delay time, and the weight may be determined according to an actual application scenario.
As an alternative embodiment, predicting the network environment information of the network environment in which the target application is located according to the target network request speed includes:
s1, fitting the target network request speed to obtain a network transmission speed;
s2, determining the network environment information according to the target network environment level of the network transmission speed in a plurality of network environment levels.
Optionally, in this embodiment, the network transmission speed of the application may be divided into a plurality of levels, but is not limited to, that is, a plurality of network environment levels may be obtained.
For example: the network transmission speed is classified, and the network transmission speed of no network or 2G is divided into verypoor which is used for indicating that the request cannot be completed. The 3G level network transmission speed is divided into Poor, which is used for indicating that a small-volume data interface can be basically completed, and the pictures and the like consume long time and have low success probability. The network transmission speed of Wifi or 4G level is divided into modem/Good/excelent, which is used to represent that the interface request can be smoothly completed. Each level may also be subdivided, for example, to divide the thresholds of network transmission speed corresponding to modem, Good and Excellent, respectively.
As an optional embodiment, fitting the target network request speed to obtain the network transmission speed includes:
s1, inputting the target network request speed with time sequence into an exponential smoothing model, wherein the exponential smoothing model is used for carrying out exponential smoothing processing on the time sequence of data to obtain real-time data;
s2, obtaining the network transmission speed output by the exponential smoothing model.
Optionally, in this embodiment, the obtained target network request speed may be, but is not limited to, exponentially smoothed based on the time series, so as to obtain a real-time fitted network transmission speed.
Optionally, in this embodiment, the target network request speed having the time sequence may be, but is not limited to, a time sequence, that is, the target network request speed is a set of observed values or recorded values of the network request speeds arranged in the sequence of events.
Optionally, in this embodiment, the exponential smoothing model may include, but is not limited to: a first order exponential smoothing model, a second order exponential smoothing model, a third order exponential smoothing model, and so forth.
In an alternative embodiment, an optional target network request speed fitting process is provided, fig. 3 is a schematic diagram of an exponential smoothing model according to an alternative embodiment of the present application, as shown in fig. 3, count is a count value, value is a network transmission speed, new _ value is a target network request speed, delay _ constant is a delay factor, and cutoff is a count threshold, and the initialization values of the model may be, but are not limited to, count 0, value-1, decay _ constant 0.2, and cutoff 1/decay _ constant. The predicted value of the network transmission speed can be obtained through the exponential smoothing model.
As an alternative embodiment, the determining the network environment information according to the target network environment level in which the network transmission speed falls among the plurality of network environment levels includes:
s1, obtaining the target network environment level of the network transmission speed in the plurality of network environment levels;
s2, determining the target network environment level as the network environment information under the condition that the number of the obtained continuous same target network environment levels is greater than or equal to the target number;
and S3, determining the historical network environment level as the network environment information under the condition that the number of the obtained continuous same target network environment levels is less than the target number.
Optionally, in this embodiment, the network environment level is calculated according to the network transmission speed obtained after smoothing, and the new network environment level is accumulated to be more than a target number (for example, 5) before being effective. Therefore, the network environment level is smoothed, and random fluctuation of the network environment level can be reduced.
As an alternative embodiment, the determining the network environment information according to the target network environment level into which the network transmission speed falls among a plurality of network environment levels includes:
s1, determining the target network environment level in which the network transmission speed falls in the plurality of network environment levels;
s2, determining the target network environment level as the network environment information when the network transmission speed is greater than or equal to N times an upper limit value of a historical network environment level, or when the network transmission speed is less than or equal to M times a lower limit value of the historical network environment level;
and S3, determining the historical network environment level as the network environment information when the network transmission speed is less than N times of the upper limit value of the historical network environment level, or the network transmission speed is greater than M times of the lower limit value of the historical network environment level, wherein N is greater than 1, and M is greater than 0 and less than 1.
Optionally, in this embodiment, if the boundary value between the obtained new predicted value of the network transmission speed and the historical network environment level is greatly different, the target network environment level corresponding to the new predicted value of the network transmission speed may be directly validated.
For example: [15KB/s,30KB/s ] is a range of moderate classes, and when the fitted value of the network transmission speed is greater than 30 × 1.2 — 36KB/s, or less than 15 × 0.8 — 12KB/s, it is considered that the change is significant, and the target network environment class can be directly validated.
As an optional embodiment, after predicting the network environment information of the network environment in which the target application is located according to the target network request speed, the method further includes:
s1, obtaining target application operation corresponding to the network environment information from the network environment and application operation having corresponding relation, wherein the target application operation is used for improving the network environment information;
s2, executing the target application operation on the target application.
Optionally, in this embodiment, different network environment information may correspond to different application operations, but is not limited to corresponding different application operations, and after a target application operation corresponding to the network environment information is obtained, the target application operation may be performed on the target application to improve the network environment of the target application. Such as: a retry mechanism is automatically initiated when the network level indicated by the network environment information is low, and so on.
Fig. 4 is a schematic diagram of a detection process of a weak network environment according to an optional embodiment of the present application, and as shown in fig. 4, performance monitoring is established for a network request, and performance data is collected: server delay time, downlink download time, and downlink download data volume. The downstream download speed is calculated in Kbyte units. And rounding up the small volume data. Such as: if the request is successful, it is determined whether the downstream data volume is greater than 8KB, and if it is less than 8KB, the downstream data volume is corrected to 8 KB. If the request fails, whether the volume of the downlink download data is larger than 10 bytes is judged, and if the volume of the downlink download data is smaller than 10 bytes, the volume of the downlink download data is corrected to 10 bytes. If the data volume is larger than 10 bytes, judging whether the data volume is larger than 8KB, and if the data volume is smaller than 8KB, correcting the data volume to be 8 KB.
And sending the delay time of the server, the downlink download time and the volume of the processed downlink download data into an exponential smoothing model, and converting the exponential smoothing model into smoothed data. The delay factor of the exponential smoothing model is 0.2, which is an empirical value after simulation test by comprehensively considering the smoothing effect and the response sensitivity. The established numerical value interval corresponding to the network environment grade can be valued by simulating various network environment experiences.
And calculating the network speed grade of the smoothed data, and determining that the new network speed grade is effective only when the number of the requests for accumulating the new network speed grade exceeds 5. In this way, the wire speed level can be smoothed to reduce the random fluctuation of the level. Or the smoothed new network speed (i.e. the predicted new network transmission speed) is significantly different from the boundary value of the historical network level, for example: the new network speed obtained after smoothing is obviously greater than the upper limit value of the current network level or obviously less than the lower limit value of the current network level, and the new network environment level can also be determined to be directly effective.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
According to another aspect of the embodiment of the present application, there is also provided a device for detecting network environment information, which is used for implementing the method for detecting network environment information. Fig. 5 is a schematic diagram of an alternative network environment information detection apparatus according to an embodiment of the present application, and as shown in fig. 5, the apparatus may include:
a first obtaining module 52, configured to obtain network request data of a target application, where the network request data includes time information and data amount information of a network request initiated by the target application;
a determining module 54, configured to determine a target network request speed of the target application according to the network request data;
and the predicting module 56 is used for predicting the network environment information of the network environment in which the target application is positioned according to the target network request speed.
It should be noted that the first obtaining module 52 in this embodiment may be configured to execute step S202 in this embodiment, the determining module 54 in this embodiment may be configured to execute step S204 in this embodiment, and the predicting module 56 in this embodiment may be configured to execute step S206 in this embodiment.
It should be noted here that the modules described above are the same as the examples and application scenarios implemented by the corresponding steps, but are not limited to the disclosure of the above embodiments. It should be noted that the modules described above as a part of the apparatus may operate in a hardware environment as shown in fig. 1, and may be implemented by software or hardware.
Through the modules, the current target network request speed of the target application is determined by obtaining the network request data of each target application, the network environment information of the network where the target application is located at present is predicted according to the target network request speed, the purpose of refining the prediction of the network environment to each target application is achieved, the network environment information is predicted by using the network request data of the target application, the current data transmission condition of the application can be accurately reflected, the predicted network environment information is more accurate, the technical effect of improving the detection accuracy of the applied network environment information is achieved, and the technical problem that the detection accuracy of the applied network environment information is low is solved.
As an alternative embodiment, the first obtaining module includes:
an obtaining unit, configured to obtain performance data of each network request of the target application, where the performance data includes: server delay time, downlink download time and downlink download data volume;
a first determining unit, configured to determine, when the volume of the downlink download data is greater than or equal to a target volume of data, the server delay time, the downlink download time, and the volume of the downlink download data as the network request data;
a second determining unit, configured to determine, when the volume of the downlink download data is smaller than the target volume of data, the server delay time, the downlink download time, and the target volume of data as the network request data.
As an optional embodiment, the time information includes a download time and a server delay time, and the data amount information includes a download data volume, wherein the determining module includes:
a third determining unit, configured to determine a sum of the downlink download time and the server delay time as a network request time;
a fourth determining unit, configured to determine a ratio of the downlink download data volume to the network request time as the target network request speed.
As an alternative embodiment, the prediction module comprises:
the fitting unit is used for fitting the target network request speed to obtain a network transmission speed;
a fifth determining unit, configured to determine the network environment information according to a target network environment level in which the network transmission speed falls among a plurality of network environment levels.
As an alternative embodiment, the fitting unit is configured to:
inputting the target network request speed with a time sequence into an exponential smoothing model, wherein the exponential smoothing model is used for carrying out exponential smoothing processing on the time sequence of data to obtain real-time data;
and acquiring the network transmission speed output by the exponential smoothing model.
As an alternative embodiment, the fifth determining unit is configured to:
acquiring a target network environment level of the network transmission speed falling into the plurality of network environment levels;
determining the target network environment level as the network environment information under the condition that the number of the obtained continuous same target network environment levels is greater than or equal to the target number;
and determining the historical network environment level as the network environment information under the condition that the number of the obtained continuous same target network environment levels is less than the target number.
As an alternative embodiment, the fifth determining unit is configured to:
determining the target network environment level into which the network transmission speed falls among the plurality of network environment levels;
determining the target network environment level as the network environment information when the network transmission speed is greater than or equal to N times of an upper limit value of a historical network environment level, or the network transmission speed is less than or equal to M times of a lower limit value of the historical network environment level;
and determining the historical network environment level as the network environment information when the network transmission speed is less than N times of the upper limit value of the historical network environment level, or the network transmission speed is greater than M times of the lower limit value of the historical network environment level, wherein N is greater than 1, and M is greater than 0 and less than 1.
As an alternative embodiment, the apparatus further comprises:
a second obtaining module, configured to obtain, after predicting network environment information of a network environment where the target application is located according to the target network request speed, a target application operation corresponding to the network environment information from a network environment and an application operation having a correspondence relationship, where the target application operation is used to improve the network environment information;
and the execution module is used for executing the target application operation on the target application.
It should be noted here that the modules described above are the same as the examples and application scenarios implemented by the corresponding steps, but are not limited to the disclosure of the above embodiments. It should be noted that the modules described above as a part of the apparatus may be operated in a hardware environment as shown in fig. 1, and may be implemented by software, or may be implemented by hardware, where the hardware environment includes a network environment.
According to another aspect of the embodiment of the present application, there is also provided a server or a terminal for implementing the method for detecting network environment information.
Fig. 6 is a block diagram of a terminal according to an embodiment of the present application, and as shown in fig. 6, the terminal may include: one or more processors 601 (only one of which is shown), a memory 603, and a transmission device 605. as shown in fig. 6, the terminal may further include an input-output device 607.
The memory 603 may be used to store software programs and modules, such as program instructions/modules corresponding to the method and apparatus for detecting network environment information in the embodiment of the present application, and the processor 601 executes various functional applications and data processing by running the software programs and modules stored in the memory 603, that is, implements the method for detecting network environment information. The memory 603 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 603 may further include memory located remotely from the processor 601, which may be connected to the terminal through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The above-mentioned transmission device 605 is used for receiving or sending data via a network, and may also be used for data transmission between a processor and a memory. Examples of the network may include a wired network and a wireless network. In one example, the transmission device 605 includes a Network adapter (NIC) that can be connected to a router via a Network cable and other Network devices to communicate with the internet or a local area Network. In one example, the transmission device 605 is a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
Among them, the memory 603 is used to store an application program, in particular.
The processor 601 may call the application stored in the memory 603 through the transmission device 605 to perform the following steps:
acquiring network request data of a target application, wherein the network request data comprises time information and data volume information of a network request initiated by the target application;
determining a target network request speed of the target application according to the network request data;
and predicting the network environment information of the network environment in which the target application is positioned according to the target network request speed.
By adopting the embodiment of the application, a scheme for detecting the network environment information is provided. The method comprises the steps of determining the current target network request speed of the target application by acquiring the network request data of each target application, predicting the network environment information of the network where the target application is located according to the target network request speed, achieving the purpose of refining the prediction of the network environment to each target application, and accurately reflecting the current data transmission condition of the application by predicting the network environment information by using the network request data of the target application, so that the predicted network environment information is more accurate, the technical effect of improving the detection accuracy of the applied network environment information is realized, and the technical problem of low detection accuracy of the applied network environment information is solved.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment is not described herein again.
It can be understood by those skilled in the art that the structure shown in fig. 6 is only an illustration, and the terminal may be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, and a Mobile Internet Device (MID), a PAD, etc. Fig. 6 is a diagram illustrating a structure of the electronic device. For example, the terminal may also include more or fewer components (e.g., network interfaces, display devices, etc.) than shown in FIG. 6, or have a different configuration than shown in FIG. 6.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
Embodiments of the present application also provide a storage medium. Alternatively, in this embodiment, the storage medium may be a program code for executing the method for detecting network environment information.
Optionally, in this embodiment, the storage medium may be located on at least one of a plurality of network devices in a network shown in the above embodiment.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps:
acquiring network request data of a target application, wherein the network request data comprises time information and data volume information of a network request initiated by the target application;
determining a target network request speed of the target application according to the network request data;
and predicting the network environment information of the network environment in which the target application is positioned according to the target network request speed.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment is not described herein again.
Optionally, in this embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a storage medium, and including instructions for causing one or more computer devices (which may be personal computers, servers, network devices, or the like) to execute all or part of the steps of the method described in the embodiments of the present application.
In the above embodiments of the present application, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

Claims (11)

1. A method for detecting network environment information is characterized by comprising the following steps:
acquiring network request data of a target application, wherein the network request data comprises time information and data volume information of a network request initiated by the target application;
determining a target network request speed of the target application according to the network request data;
and predicting the network environment information of the network environment in which the target application is positioned according to the target network request speed.
2. The method of claim 1, wherein obtaining the network request data for the target application comprises:
obtaining performance data for each network request of the target application, wherein the performance data comprises: server delay time, downlink download time and downlink download data volume;
determining the server delay time, the downlink download time and the downlink download data volume as the network request data under the condition that the downlink download data volume is greater than or equal to the target data volume;
and under the condition that the volume of the downlink download data is smaller than the target volume of the data, determining the delay time of the server, the downlink download time and the target volume of the data as the network request data.
3. The method of claim 1, wherein the time information comprises a download time and a server latency time, wherein the data volume information comprises a download data volume, and wherein determining a target network request speed for the target application from the network request data comprises:
determining the sum of the downlink downloading time and the server delay time as network request time;
and determining the ratio of the downlink download data volume to the network request time as the target network request speed.
4. The method of claim 1, wherein predicting the network environment information of the network environment in which the target application is located according to the target network request speed comprises:
fitting the target network request speed to obtain a network transmission speed;
and determining the network environment information according to the target network environment level of the network transmission speed falling into a plurality of network environment levels.
5. The method of claim 4, wherein fitting the target network request speed to obtain the network transmission speed comprises:
inputting the target network request speed with a time sequence into an exponential smoothing model, wherein the exponential smoothing model is used for carrying out exponential smoothing processing on the time sequence of data to obtain real-time data;
and acquiring the network transmission speed output by the exponential smoothing model.
6. The method of claim 4, wherein determining the network environment information according to the target network environment level into which the network transmission speed falls among a plurality of network environment levels comprises:
acquiring a target network environment level of the network transmission speed falling into the plurality of network environment levels;
determining the target network environment level as the network environment information under the condition that the number of the obtained continuous same target network environment levels is greater than or equal to the target number;
and determining the historical network environment level as the network environment information under the condition that the number of the obtained continuous same target network environment levels is less than the target number.
7. The method of claim 4, wherein determining the network environment information according to the target network environment level into which the network transmission speed falls among a plurality of network environment levels comprises:
determining the target network environment level into which the network transmission speed falls among the plurality of network environment levels;
determining the target network environment level as the network environment information when the network transmission speed is greater than or equal to N times of an upper limit value of a historical network environment level, or the network transmission speed is less than or equal to M times of a lower limit value of the historical network environment level;
and determining the historical network environment level as the network environment information when the network transmission speed is less than N times of the upper limit value of the historical network environment level, or the network transmission speed is greater than M times of the lower limit value of the historical network environment level, wherein N is greater than 1, and M is greater than 0 and less than 1.
8. The method according to any one of claims 1 to 7, wherein after predicting network environment information of a network environment in which the target application is located according to the target network request speed, the method further comprises:
acquiring target application operation corresponding to the network environment information from the network environment and the application operation with the corresponding relation, wherein the target application operation is used for improving the network environment information;
and executing the target application operation on the target application.
9. An apparatus for detecting network environment information, comprising:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring network request data of a target application, and the network request data comprises time information and data volume information of a network request initiated by the target application;
the determining module is used for determining the target network request speed of the target application according to the network request data;
and the prediction module is used for predicting the network environment information of the network environment in which the target application is positioned according to the target network request speed.
10. A storage medium, characterized in that the storage medium comprises a stored program, wherein the program when executed performs the method of any of the preceding claims 1 to 8.
11. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor executes the method of any of the preceding claims 1 to 8 by means of the computer program.
CN202010283127.4A 2020-04-10 2020-04-10 Method and device for detecting network environment information Pending CN111641959A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010283127.4A CN111641959A (en) 2020-04-10 2020-04-10 Method and device for detecting network environment information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010283127.4A CN111641959A (en) 2020-04-10 2020-04-10 Method and device for detecting network environment information

Publications (1)

Publication Number Publication Date
CN111641959A true CN111641959A (en) 2020-09-08

Family

ID=72330591

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010283127.4A Pending CN111641959A (en) 2020-04-10 2020-04-10 Method and device for detecting network environment information

Country Status (1)

Country Link
CN (1) CN111641959A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113765993A (en) * 2021-05-12 2021-12-07 腾讯科技(北京)有限公司 Downloading speed prediction method, device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040255019A1 (en) * 2000-09-28 2004-12-16 Intel Corporation, A Delaware Corporation Speed sensitive content delivery in a client-server network
CN104980312A (en) * 2014-04-04 2015-10-14 维珍奈尼思(格伦罗西斯)有限公司 A Portable Testing Apparatus And Method
CN110913442A (en) * 2019-12-06 2020-03-24 Oppo广东移动通信有限公司 Network switching method and device, electronic equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040255019A1 (en) * 2000-09-28 2004-12-16 Intel Corporation, A Delaware Corporation Speed sensitive content delivery in a client-server network
CN104980312A (en) * 2014-04-04 2015-10-14 维珍奈尼思(格伦罗西斯)有限公司 A Portable Testing Apparatus And Method
CN110913442A (en) * 2019-12-06 2020-03-24 Oppo广东移动通信有限公司 Network switching method and device, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113765993A (en) * 2021-05-12 2021-12-07 腾讯科技(北京)有限公司 Downloading speed prediction method, device and storage medium
CN113765993B (en) * 2021-05-12 2024-05-07 腾讯科技(北京)有限公司 Download speed prediction method, device and storage medium

Similar Documents

Publication Publication Date Title
CN109451002B (en) CDN node selection method and equipment
CN110609937A (en) Crawler identification method and device
CN109002424B (en) File format conversion method and device, computer equipment and storage medium
CN105072139B (en) Recommend method and apparatus
CN114095567B (en) Data access request processing method and device, computer equipment and medium
CN109859002B (en) Product pushing method, device, computer equipment and storage medium
CN107832142B (en) Resource allocation method and equipment for application program
CN107634850B (en) A kind of application state acquisition methods and its equipment, storage medium, server
CN112584422B (en) Method and device for acquiring performance of 5G terminal
CN113434293A (en) Method and apparatus for processing repeat request, storage medium, and electronic apparatus
CN111651140B (en) Service method and device based on workflow
CN105553770B (en) Data acquisition control method and device
CN111984733A (en) Data transmission method and device based on block chain and storage medium
CN111212031A (en) Control method and device for interface access frequency, electronic equipment and storage medium
CN111641959A (en) Method and device for detecting network environment information
CN111694703A (en) Cache region management method and device and computer equipment
CN112596985A (en) IT asset detection method, device, equipment and medium
CN108647139B (en) System test method, device, storage medium and electronic device
CN106209435A (en) The monitor method of request queue and device
CN108632054B (en) Information transmission quantity prediction method and device
CN112631577B (en) Model scheduling method, model scheduler and model safety test platform
CN113746920A (en) Data forwarding method and device, electronic equipment and computer readable storage medium
CN113626402A (en) Log data acquisition method and device, electronic equipment and storage medium
CN114500484A (en) Page rendering method and device, electronic equipment and readable medium
CN110754076B (en) Method and device for determining brushing amount terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200908