Network flow rate prediction monitoring method and device, computing equipment and storage medium

By constructing multiple network flow rate prediction models and calculating network flow rate using time series analysis, the problem of inaccurate network flow rate prediction in the prior art is solved, and more accurate network speed limit management and resource allocation are achieved.

CN118890288AInactive Publication Date: 2024-11-01WUHAN STONE INFORMATION SERVICE CO LTD
View PDF 12 Cites 0 Cited by

Patent Information

Application Number
CN202411359126.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-27
Publication Date
2024-11-01
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing network flow rate prediction methods are difficult to accurately predict network flow rates in future time periods, resulting in insufficient network speed limit management, affecting the effective allocation and planning of network resources.

Method used

By obtaining the process identifier and network flow rate data of the target application, different types of network flow rate prediction models (such as mathematical models and neural network models) are constructed, and based on time series analysis, the network flow rate within the preset time period is calculated and based on the The prediction results of multiple models determine the network flow rate limit range.

Benefits of technology

It improves the accuracy of network flow rate prediction, provides more accurate network speed limit management, helps to effectively allocate and plan network resources, and improves the accuracy of network planning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118890288A_ABST
    Figure CN118890288A_ABST
Patent Text Reader

Abstract

The invention relates to the field of network flow rate prediction and monitoring, and discloses a network flow rate prediction and monitoring method and device, computing equipment and a storage medium, and the method comprises the steps: obtaining an application name of a currently running target application and a process identifier corresponding to the application name; calculating a network flow rate when the target application runs in a preset time period; constructing a first network flow velocity prediction model and a second network flow velocity prediction model; and inputting a process identifier corresponding to a to-be-predicted target application and a to-be-predicted time period into the first network flow rate prediction model and the second network flow rate prediction model, and outputting to obtain a first predicted network flow rate and a second predicted network flow rate, and determining a network flow rate limiting range of the target application according to the first predicted network flow rate and the second predicted network flow rate. According to different network flow velocity prediction models, the predicted network flow velocity in the future time period is comprehensively obtained, a basis is provided for network planning and resource allocation, and the accuracy of network speed limitation is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of network flow rate prediction and monitoring, and more specifically to a network flow rate prediction and monitoring method, apparatus, computing device and storage medium. Background Art

[0002] Network traffic refers to the amount of network data transmitted, which describes the amount of data transmitted through a network interface per unit time. Generally speaking, traffic includes the amount of data uploaded and downloaded, usually measured in bytes, kilobytes (KB), megabytes (MB) or gigabytes (GB). Correspondingly, network flow rate is used to describe the rate at which data is transmitted in a computer network, that is, the size of the data capacity transmitted per unit time. In the Windows operating system, the process identifier of an application is a unique digital identifier assigned by the operating system to each process. This identifier is used to uniquely identify and manage processes in the system. Every time an application is started on the system, the system creates a new process for the application and assigns it a process identifier. This process identifier is unique during the life cycle of the process and can be used by the operating system for process control and management, such as adjusting the priority of the process, terminating the process, etc. Time series analysis refers to a method of arranging historical data in chronological order and predicting future data by analyzing the laws of these data changes over time. Based on the network flow rate data of the historical process of the application, time series analysis is performed on it to obtain the predicted network flow rate for the future time period, so as to make adaptive network speed limit requirements for different applications when managing network resources. Summary of the invention

[0003] The embodiments of the present application provide a network flow rate prediction and monitoring method, apparatus, computing device and storage medium, which comprehensively obtain the predicted network flow rate for future time periods based on different network flow rate prediction models, provide a basis for network planning and resource allocation, and improve the accuracy of network speed limit.

[0004] In a first aspect, an embodiment of the present application provides a network flow rate prediction and monitoring method, including: obtaining an application name of a currently running target application and a process identifier corresponding to the application name; calculating the network flow rate when the target application is running within a preset time period; constructing a first network flow rate prediction model and a second network flow rate prediction model based on the process identifier corresponding to the target application and the network flow rate; inputting the process identifier corresponding to the target application to be predicted and the time period to be predicted into the first network flow rate prediction model, and outputting a first predicted network flow rate; inputting the process identifier corresponding to the target application to be predicted and the time period to be predicted into the second network flow rate prediction model, and outputting a second predicted network flow rate, the first network flow rate prediction model and the second network flow rate prediction model being different types of models; determining the network flow rate limit range of the target application based on the first predicted network flow rate and the second predicted network flow rate.

[0005] In one embodiment, the preset time period starts with a first preset time and ends with a second preset time, and the calculating of the network flow rate when the target application is running within the preset time period includes: Acquire transmission control protocol connection information corresponding to the target application according to the process identifier; Acquire the first network flow of each transmission control protocol connection at a first preset time; Acquire the second network traffic of each transmission control protocol connection at a second preset time, wherein the difference between the first preset time and the second preset time is the interval time; The network flow rate when the target application runs within a preset time period is calculated according to the first network flow, the second network flow and the interval time.

[0006] In one embodiment, constructing a first network flow rate prediction model and a second network flow rate prediction model according to a process identifier corresponding to the target application and the network flow rate includes: Constructing a network flow rate time series data set according to the process identifier, the network flow rate and a preset time period corresponding to the network flow rate; After initial processing of the time series data in the network flow speed time series data set, a network flow speed prediction data set is obtained, wherein the time series data in the network flow speed prediction data set is a stationary sequence; Establishing a first network flow rate initial prediction model, wherein the first network flow rate initial prediction model is a mathematical model, and the first network flow rate initial prediction model includes model parameters with undetermined values; Solving the values ​​of the model parameters according to the network flow rate prediction data set, and determining a first network flow rate prediction model according to the values ​​of the model parameters; A second network flow rate prediction model is trained according to the network flow rate prediction data set to obtain a trained second network flow rate prediction model.

[0007] In one embodiment, the first network flow rate prediction initial model includes a mathematical model, and solving the values ​​of the model parameters according to the network flow rate prediction data set and determining the first network flow rate prediction model according to the values ​​of the model parameters include: defining a model selection function, wherein a value of the model selection function reflects a fitting effect of the first network flow velocity prediction model and the network flow velocity prediction data set; Determining a value group of the model parameters; Determine a first network flow rate target prediction model by taking a value group as a target value group of the model parameter; Calculating the target value of the model selection function according to the target value group of the model parameters and the network flow rate prediction data set; After completing the target value of the model selection function calculated according to each set of value groups, determining the value of the model parameter as the target value group corresponding to the lowest target value of the model selection function; The first network flow rate prediction model is determined according to the values ​​of the model parameters.

[0008] In one embodiment, the model parameters include a first parameter and a second parameter, and determining a value group of the model parameters includes: Draw a first function graph using the first function and the network flow rate prediction data set; According to the first function graph, an upper limit of the value of the first parameter is determined, and a lower limit of the value of the first parameter is determined to be 1, so as to obtain a value range of the first parameter; Draw a partial second function graph using the second function and the network flow rate prediction data set; According to the second function graph, determine the upper limit of the value of the second parameter, and determine the lower limit of the value of the second parameter to be 1, so as to obtain the value range of the second parameter; The value range of the first parameter and the value range of the second parameter are traversed respectively to determine the value group of the model parameter.

[0009] In one embodiment, determining the network flow rate limit range of the target application according to the first predicted network flow rate and the second predicted network flow rate includes: Obtaining a weighted first predicted network flow rate by multiplying the first predicted network flow rate by a first network flow rate weight corresponding to the first predicted network flow rate; Obtaining a weighted second predicted network flow rate by multiplying the second network flow rate by a second network flow rate weight corresponding to the second predicted network flow rate; The network flow rate limit range of the target application is determined according to the weighted first predicted network flow rate and the weighted second predicted network flow rate.

[0010] In one embodiment, the method further comprises: Obtaining a download task request for the target application; Obtain the requested network flow rate corresponding to the target application download task request; The network flow rate limit range is adjusted according to the requested network flow rate to respond to the download task request.

[0011] In a second aspect, an embodiment of the present application provides a network flow rate prediction and monitoring device, which has the function of implementing the network flow rate prediction and monitoring method provided in the first aspect above. The function can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions, and the modules can be software and / or hardware. In one embodiment, the network flow rate prediction and monitoring device includes: Acquisition module: used to acquire the application name of the currently running target application and the process identifier corresponding to the application name; Calculation module: used to calculate the network flow rate when the target application is running within a preset time period; Model building module: used to build a first network flow rate prediction model and a second network flow rate prediction model according to the process identifier corresponding to the target application and the network flow rate; A first output module: used for inputting the process identifier corresponding to the target application to be predicted and the time period to be predicted into the first network flow rate prediction model, and outputting a first predicted network flow rate; A second output module: used for inputting the process identifier corresponding to the target application to be predicted and the time period to be predicted into the second network flow rate prediction model, and outputting a second predicted network flow rate; Determination module: used to determine the network flow rate limit range of the target application according to the first predicted network flow rate and the second predicted network flow rate.

[0012] In one embodiment, the preset time period starts with a first preset time and ends with a second preset time, and the calculation module is specifically used to: Acquire transmission control protocol connection information corresponding to the target application according to the process identifier; Acquire the first network flow of each transmission control protocol connection at a first preset time; Acquire the second network traffic of each transmission control protocol connection at a second preset time, wherein the difference between the first preset time and the second preset time is the interval time; The network flow rate when the target application runs within a preset time period is calculated according to the first network flow, the second network flow and the interval time.

[0013] In one embodiment, the building block is specifically used for: Constructing a network flow rate time series data set according to the process identifier, the network flow rate and a preset time period corresponding to the network flow rate; After initial processing of the time series data in the network flow speed time series data set, a network flow speed prediction data set is obtained, wherein the time series data in the network flow speed prediction data set is a stationary sequence; Establishing a first network flow rate initial prediction model, wherein the first network flow rate initial prediction model is a mathematical model, and the first network flow rate initial prediction model includes model parameters with undetermined values; Solving the values ​​of the model parameters according to the network flow rate prediction data set, and determining a first network flow rate prediction model according to the values ​​of the model parameters; A second network flow rate prediction model is trained according to the network flow rate prediction data set to obtain a trained second network flow rate prediction model.

[0014] In one embodiment, the first network flow rate prediction initial model is a mathematical model, and the construction module is further specifically used for: defining a model selection function, wherein a value of the model selection function reflects a fitting effect of the first network flow velocity prediction model and the network flow velocity prediction data set; Determining a value group of the model parameters; Determine a first network flow rate target prediction model by taking a value group as a target value group of the model parameter; Calculating the target value of the model selection function according to the target value group of the model parameters and the network flow rate prediction data set; After completing the target value of the model selection function calculated according to each set of value groups, determining the value of the model parameter as the target value group corresponding to the lowest target value of the model selection function; The first network flow rate prediction model is determined according to the values ​​of the model parameters.

[0015] In one embodiment, the model parameters include a first parameter and a second parameter, and the construction module is further specifically used for: Draw a first function graph using the first function and the network flow rate prediction data set; According to the first function graph, an upper limit of the value of the first parameter is determined, and a lower limit of the value of the first parameter is determined to be 1, so as to obtain a value range of the first parameter; Draw a second function graph using the second function and the network flow rate prediction data set; According to the second function graph, determine the upper limit of the value of the second parameter, and determine the lower limit of the value of the second parameter to be 1, so as to obtain the value range of the second parameter; The value range of the first parameter and the value range of the second parameter are traversed respectively to determine the value group of the model parameter.

[0016] In one embodiment, the determining module is specifically configured to: Obtaining a weighted first predicted network flow rate by multiplying the first predicted network flow rate by a first network flow rate weight corresponding to the first predicted network flow rate; Obtaining a weighted second predicted network flow rate by multiplying the second network flow rate by a second network flow rate weight corresponding to the second predicted network flow rate; The network flow rate limit range of the target application is determined according to the weighted first predicted network flow rate and the weighted second predicted network flow rate.

[0017] In one embodiment, the device is further specifically used for: Obtaining a download task request for the target application; Obtain the requested network flow rate corresponding to the target application download task request; The network flow rate limit range is adjusted according to the requested network flow rate to respond to the download task request.

[0018] In a third aspect, an embodiment of the present application provides a computing device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the network flow rate prediction and monitoring method described in the first aspect when executing the computer program.

[0019] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which includes instructions, which, when executed on a computer, enables the computer to execute the network flow rate prediction and monitoring method as described in the first aspect.

[0020] This application comprehensively obtains the predicted network flow rate for future time periods based on different network flow rate prediction models, provides a basis for network planning and resource allocation, and improves the accuracy of network speed limit. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0022] Figure 1 This is a schematic diagram of a scenario of a network flow rate prediction and monitoring device provided in an embodiment of the present application; Figure 2 This is a flow chart of an embodiment of a network flow rate prediction and monitoring method provided in an embodiment of the present application; Figure 3 A schematic diagram of the structure of a network flow rate prediction and monitoring method device according to an embodiment of the present application; Figure 4 A schematic diagram of the structure of a network flow rate prediction and monitoring device according to an embodiment of the present application; Figure 5 A schematic diagram of the structure of a mobile phone in an embodiment of the present application; Figure 6 A schematic diagram of the structure of a server in an embodiment of the present application.

[0023] In the drawings, the same or corresponding reference numerals represent the same or corresponding parts. DETAILED DESCRIPTION

[0024] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.

[0025] In the following description, the specific embodiments of the present application will be described with reference to the steps and symbols performed by one or more computers, unless otherwise specified. Therefore, these steps and operations will be mentioned several times as being performed by a computer, and the computer execution referred to herein includes the operation of a computer processing unit by an electronic signal representing data in a structured form. This operation converts the data or maintains it at a location in the memory system of the computer, which can be reconfigured or otherwise change the operation of the computer in a manner familiar to testers in the field. The data structure maintained by the data is a physical location in the memory, which has specific characteristics defined by the data format. However, the principles of the present application are described in the above text, which does not represent a limitation, and testers in the field will understand that the various steps and operations described below can also be implemented in hardware.

[0026] The terms "module" or "unit" used herein may be considered as software objects executed on the computing system. The different components, modules, engines and services described herein may be considered as implementation objects on the computing system. The devices and methods described herein are preferably implemented in software, but may also be implemented in hardware, all within the scope of protection of this application.

[0027] It will be understood by those skilled in the art that, unless expressly stated, the singular forms "one", "said", and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present application refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may be an intermediate element. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein includes all or any unit and all combinations of one or more associated listed items.

[0028] Embodiments of the present application provide a network flow rate prediction and monitoring method, apparatus, computing device, and storage medium.

[0029] See also Figure 1 , Figure 1 A schematic diagram of a scenario of a network flow rate prediction and monitoring device provided in an embodiment of the present application, wherein the network flow rate prediction and monitoring device may include a network flow rate prediction and monitoring system 100 and a user terminal 200, wherein the network flow rate prediction and monitoring system 100 is connected via a network, and a network flow rate prediction and monitoring device is integrated in the network flow rate prediction and monitoring system 100. In the embodiment of the present application, the network flow rate prediction and monitoring system 100 may be a terminal device or a server, and the network flow rate prediction and monitoring system 100 may send a network flow rate limit range to the user terminal 200.

[0030] In the embodiment of the present application, when the network flow rate prediction monitoring system 100 is a server, the server can be an independent server, or a server network or server cluster composed of servers. For example, the server described in the embodiment of the present application includes but is not limited to a computer, a network host, a single network server, a plurality of network server sets or a cloud server composed of a plurality of servers. Wherein, the cloud server is composed of a large number of computers or network servers based on cloud computing (Cloud Computing). In the embodiment of the present application, communication between the server and the client can be achieved by any communication method, including but not limited to, mobile communication based on the third generation partnership project (3rd Generation Partnership Project, 3GPP), long term evolution (Long Term Evolution, LTE), Worldwide Interoperability for Microwave Access (Worldwide Interoperability for Microwave Access, WiMAX), or computer network communication based on TCP / IP protocol suite (TCP / IP Protocol suite, TCP / IP), User Datagram Protocol (User Datagram Protocol, UDP) protocol, etc.

[0031] It is understandable that when the network flow rate prediction monitoring system 100 used in the embodiment of the present application is a terminal device, the terminal device can be a device that includes both receiving hardware and transmitting hardware, that is, a device with receiving and transmitting hardware that can perform two-way communication on a two-way communication link. Such terminal devices may include: cellular or other communication devices, which have a single-line display or a multi-line display or a cellular or other communication device without a multi-line display. The specific network flow rate prediction monitoring system 100 can be a desktop terminal or a mobile terminal, and the network flow rate prediction monitoring system 100 can be one of a mobile phone, a tablet computer, a laptop computer, etc.

[0032] The terminal device involved in the embodiments of the present application may also refer to a device that provides voice and / or data connectivity to a user, a handheld device with a wireless connection function, or other processing devices connected to a wireless modem. For example, a mobile phone (or "cellular" phone) and a computer with a mobile terminal, for example, a portable, pocket-sized, handheld, computer-built-in or vehicle-mounted mobile device, which exchanges voice and / or data with a wireless access network. For example, personal communication service (English full name: Personal Communication service, English abbreviation: PCs) phone, cordless phone, session initiation protocol (sIP) phone, wireless local loop (Wireless Local Loop, English abbreviation: WLL) station, personal digital assistant (English full name: Personal Digital Assistant, English abbreviation: PDA) and other devices.

[0033] Those skilled in the art will understand that Figure 1 The application environment shown in the figure is only one application scenario of the present application solution and does not constitute a limitation on the application scenario of the present application solution. Other application environments may also include Figure 1 More or fewer computing devices, or computing device network connection relationships, such as Figure 1 Only one computing device is shown. It can be understood that the network flow rate prediction and monitoring device can also include one or more other computing devices, or / and one or more other computing devices connected to the network flow rate prediction and monitoring system 100 network, which is not specifically limited here.

[0034] In addition, if Figure 1 As shown, the network flow rate prediction and monitoring device may further include a memory 300 for storing data, such as storing a first predicted network flow rate and a second predicted network flow rate.

[0035] It should be noted that Figure 1 The scenario diagram of the network flow rate prediction and monitoring device shown is merely an example. The network flow rate prediction and monitoring device and scenario described in the embodiment of the present application are intended to more clearly illustrate the technical solution of the embodiment of the present application, and do not constitute a limitation on the technical solution provided in the embodiment of the present application. A person of ordinary skill in the art can know that with the evolution of the network flow rate prediction and monitoring device and the emergence of new business scenarios, the technical solution provided in the embodiment of the present application is also applicable to similar technical problems.

[0036] This application comprehensively obtains the predicted network flow rate for future time periods based on different network flow rate prediction models, provides a basis for network planning and resource allocation, and improves the accuracy of network speed limit.

[0037] In this embodiment, the network flow rate prediction and monitoring method will be described from the perspective of the network flow rate prediction and monitoring method, which can be specifically integrated into the network flow rate prediction and monitoring system 100.

[0038] The present application provides a network flow rate prediction and monitoring method, which includes: obtaining the application name of a currently running target application and the process identifier corresponding to the application name; calculating the network flow rate when the target application is running within a preset time period; constructing a first network flow rate prediction model and a second network flow rate prediction model according to the process identifier corresponding to the target application and the network flow rate; inputting the process identifier corresponding to the target application to be predicted and the time period to be predicted into the first network flow rate prediction model, and outputting a first predicted network flow rate; inputting the process identifier corresponding to the target application to be predicted and the time period to be predicted into the second network flow rate prediction model, and outputting a second predicted network flow rate, wherein the first network flow rate prediction model and the second network flow rate prediction model are different types of models; determining the network flow rate limit range of the target application according to the first predicted network flow rate and the second predicted network flow rate.

[0039] See also Figure 2 , Figure 2 This is a flow chart of an embodiment of a network flow rate prediction and monitoring method in an embodiment of the present application. The network flow rate prediction and monitoring method includes the following steps 201 to 206: 201. Obtain an application name of a currently running target application and a process identifier corresponding to the application name.

[0040] Specifically, before determining the network flow rate limit range of the target application, first collect the network flow rate data set of the target application. Optionally, this method can be applied to the Windows operating system. Optionally, this method can use the C++ programming language to implement the underlying application programming interface based on the Windows operating system to monitor the flow and flow rate of the target application. Specifically, obtain the application name of the currently running target application and the process identifier corresponding to the application name. It can be understood that the process identifier of the target application is a unique digital identifier assigned to each process by the operating system. This identifier is used to uniquely identify and manage processes in the system. Every time an application is started on the Windows system, the system will create a new process for the application and assign it a process identifier, which is unique before the corresponding process ends. Obtaining the process identifier corresponding to the target application facilitates the subsequent locking of the target application and statistical calculation of its network traffic.

[0041] 202. Calculate the network flow rate when the target application is running within a preset time period.

[0042] Specifically, according to the process identifier corresponding to the target application, the connection information of the transmission control protocol (TCP) corresponding to the target application can be obtained. TCP is a connection-oriented, byte stream-based transport layer control protocol. Optionally, a target application can have multiple TCP connections or a single TCP connection. When the target application has only a single TCP connection, the upload and download traffic of the TCP connection is obtained through the underlying application programming interface. Optionally, when obtaining the upload and download traffic of the TCP connection, the data packet transmitted by the TCP connection can be obtained, and the data packet includes information such as the amount of sent bytes and the amount of received bytes. Correspondingly, the amount of sent bytes is the corresponding upload traffic, and the amount of received bytes is the corresponding download traffic. It can be understood that network traffic refers to the sum of sent data and received data, that is, network traffic refers to the sum of sent bytes and received bytes. The upload traffic and download traffic of the TCP connection are obtained at a first preset time, and the sum of the upload traffic and the download traffic is the first network traffic; after a period of sleep, the upload traffic and download traffic of the TCP connection are obtained again at a second preset time, and the sum of the upload traffic and the download traffic at this time is the second network traffic. The interval between the first preset time and the second preset time is a preset time period. The flow difference within the preset time period is obtained by subtracting the first network flow from the second network flow, and the network flow rate of the target application in the preset time period is obtained by dividing the flow difference by the time unit of the preset time period.

[0043] Optionally, in one embodiment, in order to facilitate the subsequent time series analysis of the network flow rate, the network flow rates of multiple target applications can be collected and calculated respectively according to the process of step 202. It can be understood that after the network flow rate of the target application is calculated, the current time and the network flow rate of the target application at the current time are stored. After storing multiple groups of time and the corresponding network flow rates, the network flow rate time series data set of the target application is obtained. Optionally, there can be multiple target applications. In this case, the application name, process identifier, current time and network flow rate of the target application at the current time corresponding to the target application can be stored to form a target application network flow rate time series data set. A network flow rate prediction model is constructed and trained based on the target application network flow rate data set.

[0044] Optionally, the target application network flow rate time series data set expression is X={ , , … }.in, , , … is the network flow rate time series data set of the nth application, where n is the number of target applications. For example, if the network flow rate time series data of 10 target applications in the system are statistically calculated and stored, then n=10. ={ … }, That is, the network flow rate data of the nth application in the xth time unit. Assuming that the statistical target application's network flow rate per minute in a certain hour, then x=60, then Network flow rate data for the nth target application in the 60th minute.

[0045] 203. Construct a first network flow rate prediction model and a second network flow rate prediction model according to the process identifier corresponding to the target application and the network flow rate.

[0046] Specifically, the first network flow rate prediction model and the second network flow rate prediction model are different models. In order to improve the accuracy of network flow rate prediction, different types of models are used to use the target application network flow rate time series data set to predict the network flow rate of the target application in the future time period, and the comprehensive prediction results are used to obtain a more accurate predicted network flow rate. Optionally, the network flow rate time series data set consists of a process identifier, an application name, a network flow rate, and a preset time corresponding to the network flow rate. Optionally, the first network flow rate prediction model can be a data model, and the second network flow rate prediction model can be a neural network model. Optionally, after obtaining the network flow rate data set, the data set is preprocessed to improve data quality, reduce model complexity, and thus improve the accuracy of the prediction. Optionally, the network flow rate time series data set can be subjected to operations such as duplicate value processing, missing value processing, and data aggregation, and finally a network flow rate prediction data set is obtained. A first network flow velocity initial prediction model is established, the first network flow velocity initial prediction model is a mathematical model, and the first network flow velocity initial prediction model includes model parameters whose values ​​are undetermined. The model parameters are solved according to the network flow velocity prediction data set, and the first network flow velocity prediction model can be determined, so that the network flow velocity prediction data can be obtained according to the first network prediction model. Optionally, a second network flow velocity prediction model can be trained according to the network flow velocity prediction data set to obtain a trained second network flow velocity prediction model, so that the network flow velocity prediction data can be obtained according to the second network prediction model.

[0047] 204. Input the process identifier corresponding to the target application to be predicted and the time period to be predicted into the first network flow rate prediction model, and output a first predicted network flow rate.

[0048] Optionally, the first predicted network flow rate can be obtained by inputting either the application name of the target application to be predicted or the process identifier corresponding to the target application. Optionally, when the process identifier of the target application to be predicted is input, the corresponding application name is queried according to the process identifier, and then the application name and the time period to be predicted are input into the first network flow rate prediction model, and the first predicted network flow rate is obtained according to the model output. Specifically, the first network flow rate prediction model is a mathematical model that determines parameter values ​​according to a data set.

[0049] 205. Input the process identifier corresponding to the target application to be predicted and the time period to be predicted into the second network flow rate prediction model, and output a second predicted network flow rate.

[0050] Specifically, the first network flow rate prediction model and the second network flow rate prediction model are different types of models. Similarly, you can either input the application name of the target application to be predicted or the process identifier corresponding to the target application to obtain the second predicted network flow rate. Optionally, when the process identifier of the target application to be predicted is input, the corresponding application name is queried according to the process identifier, and then the application name and the time period to be predicted are input into the second network flow rate prediction model, and the second predicted network flow rate is obtained according to the model output. Specifically, the second network flow rate prediction model is a neural network model trained according to a data set.

[0051] 206. Determine a network flow rate limit range of the target application according to the first predicted network flow rate and the second predicted network flow rate.

[0052] Specifically, the prediction data of the first network flow rate prediction model and the second network flow rate prediction model can be verified to obtain the prediction accuracy of the first network flow rate prediction model and the second network flow rate prediction model, thereby determining the corresponding weights of the prediction data of the first network flow rate prediction model and the second network flow rate prediction model. Optionally, the first network flow rate prediction model and the second network flow rate prediction model correspond to a weight, and the weighted first network flow rate and the weighted second network flow rate can be determined according to the corresponding weights, thereby determining the flow rate limit range of the target application.

[0053] The embodiment of the present application comprehensively obtains the predicted network flow rate for the future time period based on different network flow rate prediction models, provides a basis for network planning and resource allocation, and improves the accuracy of network speed limit.

[0054] In one implementation of the present application, the preset time period starts with a first preset time and ends with a second preset time, and calculating the network flow rate when the target application runs within the preset time period includes: Obtain the transmission control protocol connection information corresponding to the target application according to the process identifier; obtain the first network flow of each transmission control protocol connection at a first preset time; obtain the second network flow of each transmission control protocol connection at a second preset time, wherein the difference between the first preset time and the second preset time is the interval time; and calculate the network flow rate of the target application when it runs within the preset time period according to the first network flow, the second network flow and the interval time.

[0055] Specifically, the preset time period is a period of time between two time points, starting from the first preset time and ending at the second preset time. For example: the first preset time is 12:00, the second preset time is 12:01, then the preset time period is the minute between 12:00-12:01. The upload and download traffic of the TCP connection is obtained through the underlying application programming interface. Optionally, when obtaining the upload and download traffic of the TCP connection, the data packet transmitted by the TCP connection can be obtained, and the data packet includes information such as the amount of bytes sent and the amount of bytes received. Correspondingly, the amount of bytes sent is the corresponding upload traffic, and the amount of bytes received is the corresponding download traffic. It can be understood that network traffic refers to the sum of the sent data and the received data, that is, network traffic refers to the sum of the sent bytes and the received bytes. The upload traffic and download traffic of the TCP connection are obtained at the first preset time, and the sum of the upload traffic and the download traffic is the first network traffic; after a period of sleep, the upload traffic and download traffic of the TCP connection are obtained again at the second preset time, and the sum of the upload traffic and the download traffic at this time is the second network traffic. The interval between the first preset time and the second preset time is the preset time period. Subtract the first network traffic from the second network traffic to obtain the traffic difference within the preset time period, and divide the traffic difference by the time unit of the preset time period to obtain the network flow rate of the target application in the preset time period. Optionally, when there are multiple TCP connections in the target application, use a loop to obtain the network traffic (upload traffic and download traffic) of each TCP connection respectively, and add the upload traffic and download traffic of multiple TCP connections to obtain the first network traffic. Similarly, use a loop operation to obtain the total traffic of multiple TCP connections, that is, the second network traffic. For example: if the first network traffic is 10MB and the second network traffic is 70MB, the difference is 60MB, and the preset time period, that is, the interval time is 60, then the network flow rate can be calculated to be 1MB / s.

[0056] The embodiment of the present application obtains the network traffic at a preset time through the transmission control protocol and calculates the network flow rate accordingly, thereby improving the accuracy of the network flow rate calculation.

[0057] In one embodiment of the present application, a first network flow rate prediction model and a second network flow rate prediction model are constructed according to a process identifier corresponding to the target application and the network flow rate, including: A network flow rate time series data set is constructed according to the process identifier, the network flow rate and the preset time period corresponding to the network flow rate; a network flow rate prediction data set is obtained after initial processing of the time series data in the network flow rate time series data set, wherein the time series data in the network flow rate prediction data set is a stationary sequence; a first network flow rate initial prediction model is established, the first network flow rate initial prediction model is a mathematical model, and the first network flow rate initial prediction model includes model parameters with undetermined values; the values ​​of the model parameters are solved according to the network flow rate prediction data set, and the first network flow rate prediction model is determined according to the values ​​of the model parameters; a second network flow rate prediction model is trained according to the network flow rate prediction data set to obtain a trained second network flow rate prediction model.

[0058] Specifically, a network flow rate time series data set can be constructed according to the process identifier and the network flow rate corresponding to the preset time period. Optionally, after obtaining the network flow rate time series data set, the time series data is initialized, and the optional initialization processing includes: duplicate value processing, missing value processing and data aggregation. Optionally, duplicate value processing refers to verifying the uniqueness of the collected data, that is, each application has only one piece of data at the same time. If duplicate values ​​appear, the duplicate values ​​are averaged, and only one piece of data is retained in the end. Optionally, missing value processing refers to checking whether there are missing values ​​in the data. If there are, the mean is used for interpolation, thereby reducing the impact of the data on the predicted value. Optionally, data aggregation processing refers to: the amount of data counted by minute is too large, and data reduction technology is used to reduce the scale and complexity of the data, while retaining the main features of the data. The data obtained is in the minute dimension, which is aggregated into the hour dimension, and the data is averaged during aggregation. Optionally, when the first network flow rate model is a mathematical model, in order to determine the value of the first network flow rate model, after completing the initial processing of the data, it is necessary to perform differential processing on the network flow rate time series data set to obtain a stationary sequence. Optionally, a verification function can be used to verify whether the time series data in the network flow rate time series data set is stable. Optionally, when the verification function is used to verify that the time series data in the network flow rate time series data set is an unsteady sequence, it is necessary to perform multi-order differences on each time series data to obtain a stable sequence after the difference, and obtain a network flow rate prediction data set based on the stable sequence. Optionally, when constructing a network flow rate prediction data set, a network flow rate verification data set can be constructed at the same time to verify the prediction results of the network flow rate prediction model. Optionally, the network flow rate verification data set can be the actual network flow rate value of the corresponding prediction time period, for example: the current time is March 1, and the network flow rate prediction data set is constructed using the network flow rate at every one-minute interval from February 1 to March 1, and the network flow rate prediction model is used to predict the network flow rate at every one-minute interval from March 2 to April 2, and the actual network flow rate of the target application at every one-minute interval from March 2 to April 2 is calculated respectively, and these network flow rate time series data are constructed as a network flow rate verification data set to verify the prediction results of the model.

[0059] Optionally, the values ​​of the model parameters of the first network prediction model are solved according to the network flow prediction data set, thereby determining the first network flow prediction model. The second network flow prediction model is trained according to the network flow prediction data set to obtain a trained second network flow prediction model. Optionally, training the second network flow prediction model with the network flow prediction data set means training the second network flow prediction model with the network flow prediction data set so that the model converges and the preset loss function converges to a preset range, thereby obtaining a trained second network flow prediction model.

[0060] The embodiment of the present application constructs two different network flow rate prediction models to facilitate subsequent prediction of network flow rate and improve the accuracy of prediction.

[0061] In one embodiment of the present application, the first network flow rate prediction initial model includes a mathematical model, and solving the values ​​of the model parameters according to the network flow rate prediction data set, and determining the first network flow rate prediction model according to the values ​​of the model parameters, includes: Define a model selection function, the value of which reflects the fitting effect of the first network flow rate prediction model and the network flow rate prediction data set; determine the value group of the model parameter; determine the first network flow rate target prediction model with one value group as the target value group of the model parameter respectively; calculate the target value of the model selection function according to the target value group of the model parameter and the network flow rate prediction data set; after completing the target value of the model selection function calculated according to each value group, determine the value of the model parameter as the target value group corresponding to the lowest target value of the model selection function; determine the first network flow rate prediction model according to the value of the model parameter.

[0062] Optionally, the first network flow rate prediction model includes a mathematical model, and the first network flow rate prediction model includes a simple moving average model, a weighted moving average model, and an autoregressive moving average model. Taking the autoregressive moving average model as an example, a model selection function is defined, and the value of the function reflects the fitting effect of the first selected first network flow rate prediction model and the network flow rate prediction data set. The better the fitting effect, the better the prediction effect of the first network flow rate prediction model. According to the function, the value group of the parameters of the first network flow rate prediction model is determined, and then the value of the selection function corresponding to the model is calculated under each value group. By comparing the value of the selection function, a group of values ​​with the best fitting effect with the network flow rate prediction data set can be obtained under different parameter value combinations. Then this group of values ​​is determined as the parameter values ​​of the first network flow rate prediction model. Optionally, there are two parameters of the first network flow rate prediction model.

[0063] The embodiment of the present application determines the parameter values ​​of the first network flow velocity prediction model with the best fitting effect by selecting a function, thereby improving the accuracy of model prediction.

[0064] In one embodiment of the present application, the model parameters include a first parameter and a second parameter, and determining a value group of the model parameters includes: Draw a first function graph using a first function and the network flow rate prediction data set; determine the upper limit of the value of the first parameter based on the first function graph, and determine the lower limit of the value of the first parameter to be 1, so as to obtain the value range of the first parameter; draw a partial second function graph using a second function and the network flow rate prediction data set; determine the upper limit of the value of the second parameter based on the second function graph, and determine the lower limit of the value of the second parameter to be 1, so as to obtain the value range of the second parameter; traverse the value range of the first parameter and the value range of the second parameter respectively, and determine the value group of the model parameter.

[0065] Specifically, when the first network flow rate prediction model is an autoregressive moving average model, it includes two parameters, namely, the first parameter and the second parameter. In order to solve and determine the values ​​of the first parameter and the second parameter, the value range of the parameters is first determined. Optionally, the first function reflects the function of the correlation between the time series in the network flow rate prediction data set and the time series after its difference, and the second function reflects the function of the correlation between the time series in the network flow rate prediction data set and the time series after its difference after the influence factor is removed. Optionally, the influence factor refers to other variables that affect the network flow rate time series data except time. Specifically, the first function graph is drawn using the first function and the network flow rate prediction data set to determine the upper limit of the value of the first parameter. Specifically, when the correlation between the time series in the network flow rate prediction data set and the time series after its difference mth order is 0 in the first function graph, the maximum value of the first parameter is determined to be m. Similarly, when the correlation between the time series in the network flow rate prediction data set and the time series after its difference nth order is 0 after the influence factor is removed, the maximum value of the second parameter is determined to be n. For example: in the first function graph, the correlation between the time series in the network flow speed prediction data set and the time series after the first-order difference is 1, the correlation between the time series in the network flow speed prediction data set and the time series after the second-order difference is 0.8, the correlation between the time series in the network flow speed prediction data set and the time series after the third-order difference is 0.77, and the correlation between the time series in the network flow speed prediction data set and the time series after the fourth-order difference is 0. It can be determined that the maximum value of the first parameter is the difference order when the correlation of the time series after difference is 0: 4.

[0066] Specifically, for example, when it is determined that the maximum value of the first parameter is 3, and the maximum value of the second parameter is 3, the value groups of the first parameter and the second parameter can be determined as: (1,1), (1,2), (1,3), (2,1), (2,2), (2,3), (3,1), (3,2) and (3,3), 9 value groups.

[0067] Optionally, after determining the values ​​of the first parameter and the second parameter, the first network flow rate prediction model is determined. A selection function can be used to select the value group that best fits the network flow rate prediction data set, i.e., has the best prediction effect, thereby determining the first network flow rate prediction model.

[0068] The embodiment of the present application determines the value range of the parameters of the first network flow rate prediction model through a function, thereby determining the first network flow rate prediction model.

[0069] In one embodiment of the present application, determining the network flow rate limit range of the target application according to the first predicted network flow rate and the second predicted network flow rate includes: A weighted first predicted network flow rate is obtained by multiplying the first predicted network flow rate by the weight of the first network flow rate corresponding to the first predicted network flow rate; a weighted second predicted network flow rate is obtained by multiplying the second network flow rate by the weight of the second network flow rate corresponding to the second predicted network flow rate; and a network flow rate limit range of the target application is determined based on the weighted first predicted network flow rate and the weighted second predicted network flow rate.

[0070] Specifically, the weight reflects the accuracy of the first predicted network flow rate and the second predicted network flow rate data. Through different weight assignments, a more accurate network flow rate limit range can be obtained by combining the first predicted network flow rate and the second predicted network flow rate. Optionally, the first predicted network flow rate weight and the second predicted network flow rate weight can be obtained by calculating the error of historical predictions. For example, after obtaining the first predicted network flow rate and the second predicted network flow rate for the next day, the actual power demand data for the next day is observed, and the data in the network flow rate verification data set is used to adjust the weights of the first predicted network flow rate and the second predicted network flow rate so that the weighted first predicted network flow rate and the second predicted network flow rate are close to the actual network flow rate. That is, according to the calculation of continuous predicted values ​​and actual values, the weights corresponding to the first predicted network flow rate and the second predicted network flow rate can be continuously adjusted to make the predicted data as close to the actual value as possible. For example, x is the first predicted network flow rate, y is the second predicted network flow rate, A is the first network flow rate weight corresponding to the first predicted network flow rate, and B is the second network flow rate weight corresponding to the second predicted network flow rate. Then the weighted first predicted network flow rate is A*x, and the weighted second predicted network flow rate is B*y. For example, the weight of the first predicted network flow rate can be 0.4, and the weight of the second predicted network flow rate can be 0.6.

[0071] Specifically, the network flow rate limit range is determined according to the weighted first network flow rate and the second network flow rate. For example, if the weighted first network flow rate is 10MB / s and the weighted second network flow rate is 12MB / s, then if the network resources are sufficient, the network flow rate limit range can be set to no more than 15MB / s. Here, only the distance is used. After obtaining the weighted first network flow rate and the weighted second network flow rate, the network speed limit can be set for different target applications according to the actual network resource allocation.

[0072] The embodiment of the present application comprehensively obtains the predicted network flow rate for the future time period based on different network flow rate prediction models, provides a basis for network planning and resource allocation, and improves the accuracy of network speed limit.

[0073] In one embodiment of the present application, the method further comprises: Obtain a download task request for the target application; obtain a requested network flow rate corresponding to the download task request for the target application; and adjust the network flow rate limit range according to the requested network flow rate to respond to the download task request.

[0074] Optionally, when the system receives a download task request sent by a target application, in order to ensure that the download task of the target application can be successfully completed, the network flow rate limit range may be adjusted according to the requested network flow rate to respond to the download task request.

[0075] Optionally, when receiving a download task request, the user list is verified, user attributes are determined, such as ordinary users or member users, and the network flow rate is adjusted accordingly to respond to the download task request according to the user attributes. For example: when a member user executes a download task, the network flow rate is set to a maximum of 10MB / s, and when an ordinary user executes a download task, the network flow rate is set to a maximum of 1MB / s.

[0076] In the embodiment of the present application, the corresponding network flow rate limit is adjusted according to the scenario to adapt to the data interaction requirements of different scenarios.

[0077] In order to facilitate better implementation of the network flow rate prediction and monitoring method provided in the embodiment of the present application, the embodiment of the present application also provides a device based on the above network flow rate prediction and monitoring method. The meanings of the terms are the same as those in the above network flow rate prediction and monitoring method, and the specific implementation details can refer to the description in the embodiment of the network flow rate prediction and monitoring method.

[0078] The network flow rate prediction and monitoring device in the embodiment of the present application has the function of realizing the network flow rate prediction and monitoring method provided in the above embodiment. The function can be realized by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions, and the modules can be software and / or hardware.

[0079] See also Figure 3 , Figure 3 The schematic diagram of the structure of the network flow rate prediction and monitoring device provided in the embodiment of the present application, the network flow rate prediction and monitoring device can be applied to a computing device in a scenario where content push is required. Specifically, the network flow rate prediction and monitoring method device 300 may include an acquisition module 301, a calculation module 302, a model building module 303, a first output module 304, a second output module 305 and a determination module 306, which are as follows: Acquisition module: used to acquire the application name of the currently running target application and the process identifier corresponding to the application name; Calculation module: used to calculate the network flow rate when the target application is running within a preset time period; Model building module: used to build a first network flow rate prediction model and a second network flow rate prediction model according to the process identifier corresponding to the target application and the network flow rate; A first output module: used for inputting the process identifier corresponding to the target application to be predicted and the time period to be predicted into the first network flow rate prediction model, and outputting a first predicted network flow rate; A second output module: used for inputting the process identifier corresponding to the target application to be predicted and the time period to be predicted into the second network flow rate prediction model, and outputting a second predicted network flow rate; Determination module: used to determine the network flow rate limit range of the target application according to the first predicted network flow rate and the second predicted network flow rate.

[0080] In one embodiment, the preset time period starts with a first preset time and ends with a second preset time, and the calculation module is specifically used to: Acquire transmission control protocol connection information corresponding to the target application according to the process identifier; Acquire the first network flow of each transmission control protocol connection at a first preset time; Acquire the second network traffic of each transmission control protocol connection at a second preset time, wherein the difference between the first preset time and the second preset time is the interval time; The network flow rate when the target application runs within a preset time period is calculated according to the first network flow, the second network flow and the interval time.

[0081] In one embodiment, the building block is specifically used for: Constructing a network flow rate time series data set according to the process identifier, the network flow rate and a preset time period corresponding to the network flow rate; After initial processing of the time series data in the network flow speed time series data set, a network flow speed prediction data set is obtained, wherein the time series data in the network flow speed prediction data set is a stationary sequence; Establishing a first network flow rate initial prediction model, wherein the first network flow rate initial prediction model is a mathematical model, and the first network flow rate initial prediction model includes model parameters with undetermined values; Solving the values ​​of the model parameters according to the network flow rate prediction data set, and determining a first network flow rate prediction model according to the values ​​of the model parameters; A second network flow rate prediction model is trained according to the network flow rate prediction data set to obtain a trained second network flow rate prediction model.

[0082] In one embodiment, the first network flow rate prediction initial model includes a mathematical model, and the building module is further specifically used for: defining a model selection function, wherein a value of the model selection function reflects a fitting effect of the first network flow velocity prediction model and the network flow velocity prediction data set; Determining a value group of the model parameters; Determine a first network flow rate target prediction model by taking a value group as a target value group of the model parameter; Calculating the target value of the model selection function according to the target value group of the model parameters and the network flow rate prediction data set; After completing the target value of the model selection function calculated according to each set of value groups, determining the value of the model parameter as the target value group corresponding to the lowest target value of the model selection function; The first network flow rate prediction model is determined according to the values ​​of the model parameters.

[0083] In one embodiment, the model parameters include a first parameter and a second parameter, and the construction module is further specifically used for: Draw a first function graph using the first function and the network flow rate prediction data set; According to the first function graph, an upper limit of the value of the first parameter is determined, and a lower limit of the value of the first parameter is determined to be 1, so as to obtain a value range of the first parameter; Draw a partial second function graph using the second function and the network flow rate prediction data set; According to the second function graph, determine the upper limit of the value of the second parameter, and determine the lower limit of the value of the second parameter to be 1, so as to obtain the value range of the second parameter; The value range of the first parameter and the value range of the second parameter are traversed respectively to determine the value group of the model parameter.

[0084] In one embodiment, the determining module is specifically configured to: Obtaining a weighted first predicted network flow rate by multiplying the first predicted network flow rate by a first network flow rate weight corresponding to the first predicted network flow rate; Obtaining a weighted second predicted network flow rate by multiplying the second network flow rate by a second network flow rate weight corresponding to the second predicted network flow rate; The network flow rate limit range of the target application is determined according to the weighted first predicted network flow rate and the weighted second predicted network flow rate.

[0085] In one embodiment, the device is further specifically used for: Obtaining a download task request for the target application; Obtain the requested network flow rate corresponding to the target application download task request; The network flow rate limit range is adjusted according to the requested network flow rate to respond to the download task request.

[0086] The embodiment of the present application comprehensively obtains the predicted network flow rate for the future time period based on different network flow rate prediction models, provides a basis for network planning and resource allocation, and improves the accuracy of network speed limit.

[0087] The above describes the network flow rate prediction and monitoring device in the embodiment of the present application from the perspective of modular functional entities. The following describes the network flow rate prediction and monitoring device in the embodiment of the present application from the perspective of hardware processing.

[0088] It should be noted that Figure 3 The physical device corresponding to the acquisition module 301 shown may be a transceiver, a radio frequency circuit, a communication module, an input / output (I / O) interface, etc., and the physical device corresponding to the calculation module 302 may be a processor.

[0089] Figure 4 The devices shown can all have Figure 3 The structure shown, when Figure 3 The network flow rate prediction and monitoring method device shown has the following features: Figure 4 When the structure shown is Figure 4 The processor and transceiver in the device can realize the same or similar functions as the calculation module 302 and the acquisition module 301 provided in the device embodiment corresponding to the device described above, Figure 4 The memory in the storage processor is used to execute the computer program that needs to be called when the network flow rate prediction and monitoring method is executed.

[0090] When the computing device in the embodiment of the present application is a terminal device, the embodiment of the present application also provides a terminal device, such as Figure 5For the sake of convenience, only the parts related to the embodiments of the present application are shown. For specific technical details not disclosed, please refer to the method part of the embodiments of the present application. The terminal device can be any terminal device including a mobile phone, a tablet computer, a personal digital assistant (PDA), a point of sales (POs), a car computer, etc., taking the terminal device as a mobile phone as an example: Figure 5 FIG. 1 is a block diagram showing a partial structure of a mobile phone related to a terminal device provided in an embodiment of the present application. Figure 5 The mobile phone includes: a radio frequency (RF) circuit 1010, a memory 1020, an input unit 1030, a display unit 1040, a sensor 1050, an audio circuit 1060, a wireless fidelity (WiFi) module 1070, a processor 1080, and a power supply 1090. Those skilled in the art will understand that Figure 5 The mobile phone structure shown in the figure does not constitute a limitation on the mobile phone, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0091] Combine the following Figure 5 A detailed introduction to the various components of the mobile phone: The RF circuit 1010 can be used for receiving and sending signals during information transmission or calls. In particular, after receiving the downlink information of the base station, it is sent to the processor 1080 for processing; in addition, the designed uplink data is sent to the base station. Generally, the RF circuit 1010 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, LNA), a duplexer, etc. In addition, the RF circuit 1010 can also communicate with the network and other devices through wireless communication. The above wireless communication can use any communication standard or protocol, including but not limited to Global system of mobile communication (Global system of mobile communication, GSM), General Packet Radio service (General Packet Radio service, GPRs), Code Division Multiple Access (Code Division Multiple Access, CDMA), Wideband Code Division Multiple Access (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE), email, short messaging service (sMs), etc.

[0092] The memory 1020 can be used to store software programs and modules. The processor 1080 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 1020. The memory 1020 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 1020 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0093] The input unit 1030 can be used to receive input digital or character information, and to generate key signal input related to the user settings and function control of the mobile phone. Specifically, the input unit 1030 may include a touch panel 1031 and other input devices 1032. The touch panel 1031, also known as a touch screen, can collect the user's touch operation on or near it (such as the user's operation on the touch panel 1031 or near the touch panel 1031 using any suitable object or accessory such as a finger, stylus, etc.), and drive the corresponding connection device according to a pre-set program. Optionally, the touch panel 1031 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the processor 1080, and can receive and execute commands sent by the processor 1080. In addition, the touch panel 1031 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 1031, the input unit 1030 may further include other input devices 1032. Specifically, the other input devices 1032 may include but are not limited to one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.

[0094] The display unit 1040 can be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 1040 may include a display panel 1041. Optionally, the display panel 1041 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. Further, the touch panel 1031 may cover the display panel 1041. When the touch panel 1031 detects a touch operation on or near it, it is transmitted to the processor 1080 to determine the type of touch event. Subsequently, the processor 1080 provides a corresponding visual output on the display panel 1041 according to the type of touch event. Although in Figure 5 In the embodiment, the touch panel 1031 and the display panel 1041 are used as two independent components to realize the input and output functions of the mobile phone, but in some embodiments, the touch panel 1031 and the display panel 1041 can be integrated to realize the input and output functions of the mobile phone.

[0095] The mobile phone may also include at least one sensor 1050, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1041 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 1041 and / or the backlight when the mobile phone is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors that can be configured in the mobile phone, such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be repeated here.

[0096] The audio circuit 1060, the speaker 1061, and the microphone 1062 can provide an audio interface between the user and the mobile phone. The audio circuit 1060 can transmit the received audio data to the speaker 1061 after converting the received audio data into an electrical signal, which is converted into a sound signal for output; on the other hand, the microphone 1062 converts the collected sound signal into an electrical signal, which is received by the audio circuit 1060 and converted into audio data, and then the audio data is output to the processor 1080 for processing, and then sent to another mobile phone through the RF circuit 1010, or the audio data is output to the memory 1020 for further processing.

[0097] Wi-Fi is a short-range wireless transmission technology. The mobile phone can help users send and receive emails, browse web pages, and access streaming media through the Wi-Fi module 1070. It provides users with wireless broadband Internet access. Figure 5 A Wi-Fi module 1070 is shown, but it is understandable that it is not an essential component of the mobile phone and can be omitted as needed without changing the essence of the invention.

[0098] The processor 1080 is the control center of the mobile phone. It uses various interfaces and lines to connect various parts of the entire mobile phone. It executes various functions of the mobile phone and processes data by running or executing software programs and / or modules stored in the memory 1020, and calling data stored in the memory 1020, so as to monitor the mobile phone as a whole. Optionally, the processor 1080 may include one or more processing units; optionally, the processor 1080 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface and application programs, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 1080.

[0099] The mobile phone also includes a power supply 1090 (such as a battery) for supplying power to various components. Optionally, the power supply can be logically connected to the processor 1080 through a power management system, thereby managing functions such as charging, discharging, and power consumption management through the power management system.

[0100] Although not shown, the mobile phone may also include a camera, a Bluetooth module, etc., which will not be described in detail here.

[0101] In the embodiment of the present application, the processor 1080 included in the mobile phone also has the function of controlling and executing the network flow rate prediction and monitoring method process executed by the above network flow rate prediction and monitoring method device.

[0102] The present application also provides a server. Figure 6 , Figure 61 is a schematic diagram of a server structure provided by an embodiment of the present application. The server 1100 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPUs) 1122 (for example, one or more processors) and memory 1132, and one or more storage media 1130 (for example, one or more mass storage devices) storing application programs 1142 or data 1144. Among them, the memory 1132 and the storage medium 1130 may be short-term storage or permanent storage. The program stored in the storage medium 1130 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the server. Furthermore, the central processing unit 1122 may be configured to communicate with the storage medium 1130 to execute a series of instruction operations in the storage medium 1130 on the server 1100.

[0103] The server 1100 may also include one or more power supplies 1126, one or more wired or wireless network interfaces 1150, one or more input and output interfaces 1158, and / or one or more operating systems 1141, such as Windows server, Mac Os X, Unix, Linux, FreeBsD, etc.

[0104] The steps in the network flow rate prediction and monitoring method in the above embodiment can be based on the Figure 6 The structure of the server 1100 is shown.

[0105] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0106] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and modules described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0107] In the several embodiments provided in the embodiments of the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms.

[0108] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0109] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can be stored in a computer-readable storage medium.

[0110] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.

[0111] The computer program product includes one or more computer instructions. When the computer program is loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, a computer, a server, or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DsL)) or wireless (e.g., infrared, wireless, microwave, etc.) means to another website site, computer, server, or data center. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a server or a data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state disk (ssD)).

[0112] The technical solutions provided in the embodiments of the present application are introduced in detail above. The principles and implementation methods of the embodiments of the present application are explained by using specific examples in the embodiments of the present application. At the same time, for those skilled in the art, according to the ideas of the embodiments of the present application, there may be changes in the specific implementation methods and application scopes. In summary, the contents of this specification should not be understood as limiting the embodiments of the present application.

Claims

1. A network flow rate prediction and monitoring method, characterized in that: The network flow rate prediction and monitoring method comprises: Obtain the application name of the currently running target application and the process identifier corresponding to the application name; Calculate the network flow rate when the target application is running within a preset time period; Constructing a first network flow rate prediction model and a second network flow rate prediction model according to the process identifier corresponding to the target application and the network flow rate; Inputting the process identifier corresponding to the target application to be predicted and the time period to be predicted into the first network flow rate prediction model, and outputting a first predicted network flow rate; Inputting the process identifier corresponding to the target application to be predicted and the time period to be predicted into the second network flow rate prediction model, and outputting a second predicted network flow rate, wherein the first network flow rate prediction model and the second network flow rate prediction model are different types of models; The network flow rate limit range of the target application is determined according to the first predicted network flow rate and the second predicted network flow rate.

2. The network flow rate prediction and monitoring method according to claim 1, characterized in that: The preset time period starts with a first preset time and ends with a second preset time, and the calculating of the network flow rate when the target application is running within the preset time period includes: Acquire transmission control protocol connection information corresponding to the target application according to the process identifier; Acquire the first network flow of each transmission control protocol connection at a first preset time; Acquire the second network traffic of each transmission control protocol connection at a second preset time, wherein the difference between the first preset time and the second preset time is the interval time; The network flow rate when the target application runs within a preset time period is calculated according to the first network flow, the second network flow and the interval time.

3. The network flow rate prediction and monitoring method according to claim 1, characterized in that: The constructing of the first network flow rate prediction model and the second network flow rate prediction model according to the process identifier corresponding to the target application and the network flow rate includes: Constructing a network flow rate time series data set according to the process identifier, the network flow rate and a preset time period corresponding to the network flow rate; After initial processing of the time series data in the network flow speed time series data set, a network flow speed prediction data set is obtained, wherein the time series data in the network flow speed prediction data set is a stationary sequence; Establishing a first network flow rate initial prediction model, wherein the first network flow rate initial prediction model is a mathematical model, and the first network flow rate initial prediction model includes model parameters with undetermined values; Solving the values ​​of the model parameters according to the network flow rate prediction data set, and determining a first network flow rate prediction model according to the values ​​of the model parameters; A second network flow rate prediction model is trained according to the network flow rate prediction data set to obtain a trained second network flow rate prediction model.

4. The network flow rate prediction and monitoring method according to claim 3 is characterized in that: The first network flow rate prediction initial model is a mathematical model, and solving the values ​​of the model parameters according to the network flow rate prediction data set and determining the first network flow rate prediction model according to the values ​​of the model parameters include: defining a model selection function, wherein a value of the model selection function reflects a fitting effect of the first network flow velocity prediction model and the network flow velocity prediction data set; Determining a value group of the model parameters; Determine a first network flow rate target prediction model by taking a value group as a target value group of the model parameter; Calculating the target value of the model selection function according to the target value group of the model parameters and the network flow rate prediction data set; After completing the target value of the model selection function calculated according to each set of value groups, determining the value of the model parameter as the target value group corresponding to the lowest target value of the model selection function; The first network flow rate prediction model is determined according to the values ​​of the model parameters.

5. The network flow rate prediction and monitoring method according to claim 4, characterized in that: The model parameters include a first parameter and a second parameter, and determining a value group of the model parameters includes: Draw a first function graph using the first function and the network flow rate prediction data set; According to the first function graph, an upper limit of the value of the first parameter is determined, and a lower limit of the value of the first parameter is determined to be 1, so as to obtain a value range of the first parameter; Draw a second function graph using the second function and the network flow rate prediction data set; According to the second function graph, determine the upper limit of the value of the second parameter, and determine the lower limit of the value of the second parameter to be 1, so as to obtain the value range of the second parameter; The value range of the first parameter and the value range of the second parameter are traversed respectively to determine the value group of the model parameter.

6. The network flow rate prediction and monitoring method according to claim 1, characterized in that: Determining the network flow rate limit range of the target application according to the first predicted network flow rate and the second predicted network flow rate includes: Obtaining a weighted first predicted network flow rate by multiplying the first predicted network flow rate by a first network flow rate weight corresponding to the first predicted network flow rate; Obtaining a weighted second predicted network flow rate by multiplying the second network flow rate by a second network flow rate weight corresponding to the second predicted network flow rate; The network flow rate limit range of the target application is determined according to the weighted first predicted network flow rate and the weighted second predicted network flow rate.

7. The network flow rate prediction and monitoring method according to claim 1, characterized in that: The method further comprises: Obtaining a download task request for the target application; Obtain the requested network flow rate corresponding to the target application download task request; The network flow rate limit range is adjusted according to the requested network flow rate to respond to the download task request.

8. A network flow rate prediction and monitoring device, characterized in that: It includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the network flow rate prediction and monitoring method as described in any one of claims 1 to 7 is implemented.

9. A computing device, characterized in that It includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the network flow rate prediction and monitoring method as described in any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium, characterized in that: The method comprises instructions, which, when executed on a computer, enable the computer to execute the network flow rate prediction and monitoring method as claimed in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Monitoring method and device for traffic of mobile terminal and client side

    CN104009892A

  • Network data flow prediction method based on ARIMA model

    CN105703954A

  • A network flow prediction method for a two-dimensional power distribution communication network

    CN109902886A

  • Combined prediction method for short-time travel requirements of online hailed car

    CN110415013A

  • Traffic statistical method and device for application program, and mobile electronic device

    CN112787828A