Network traffic prediction systems, methods, electronic devices, and storage media
By performing traffic data preprocessing and short-term forecasting at edge nodes, combined with global correlation and model adjustment on the cloud platform, the problems of transmission delay and cloud computing pressure caused by data uploading from edge nodes are solved, realizing distributed prediction and decision-making capabilities for network traffic.
Patent Information
- Application Number
- CN202611299503.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-25
- Publication Date
- 2026-11-27
AI Technical Summary
In existing network traffic prediction methods, all high-frequency real-time data from edge nodes needs to be uploaded to the cloud, which leads to a surge in transmission link load. Data transmission delay affects the real-time performance of short-term predictions, and centralized cloud processing makes it difficult to balance the needs of real-time performance and global optimization.
Edge nodes preprocess and extract features from raw traffic data to determine short-term prediction results, and send relevant data to the cloud platform. The cloud platform performs global correlation and feature extraction, and combines it with the second prediction model for long-term prediction. Edge nodes adjust their local models based on cloud feedback.
It reduces the amount of data transmitted from the edge to the cloud, lowers the cloud computing load, enables independent short-term forecasting capabilities at the edge, improves local decision-making efficiency, and allows the cloud to focus on long-term global forecasting, thus achieving distributed processing of the entire network's computing load.
Smart Images

Figure CN123185095A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of network traffic prediction technology, specifically relating to a network traffic prediction system, a network traffic prediction method, an electronic device, and a computer-readable storage medium. Background Technology
[0002] Network traffic prediction is a key technology for intelligent network operation and maintenance and resource management. Accurate traffic prediction can provide data support for operation and maintenance decisions such as bandwidth adjustment, resource expansion, and load balancing.
[0003] As network scale continues to expand, the number of edge nodes on the access network side increases significantly. Existing network traffic prediction methods typically employ a centralized architecture, where each edge node sends its collected traffic data to a cloud server, which then performs unified modeling and prediction based on historical traffic data from all nodes. The technical problems with this centralized prediction architecture are: each edge node needs to upload all collected traffic data to the cloud server, and as the number of edge nodes increases and the data collection frequency rises, data transmission overhead increases significantly. Simultaneously, the cloud server needs to process traffic data from all edge nodes and complete the prediction, resulting in a heavy cloud computing load and increased prediction response latency when the number of edge nodes is large.
[0004] On the other hand, existing cloud-edge collaborative traffic prediction solutions propose that edge nodes extract features from the collected raw traffic data and send it to the cloud, where the cloud centrally performs traffic prediction inference and distributes the results. Local operations and maintenance actions depend on the return of prediction results from the cloud, limiting the timeliness of local responses. Simultaneously, the cloud server needs to perform prediction inference separately for each edge node, resulting in significant computing pressure on the cloud in large-scale deployment scenarios. Summary of the Invention
[0005] The purpose of this invention is to provide a network traffic prediction method, a network traffic prediction device, an electronic device, and a corresponding computer-readable storage medium, which can solve the problems that the high-frequency real-time data of edge nodes needs to be uploaded to the cloud, resulting in a surge in transmission link load and the impact of data transmission delay on the real-time performance of short-term predictions; and that centralized cloud processing needs to take into account both local short-term predictions and global long-term planning, making it difficult to balance the needs of real-time performance and global optimization.
[0006] To solve the above-mentioned technical problems, the present invention is implemented as follows: In a first aspect, embodiments of the present invention provide a network traffic prediction system, the system comprising: a plurality of edge nodes and a cloud platform; The edge nodes are used for: Obtain raw traffic data; Based on the raw traffic data, preprocessed data and outlier logs are determined; Obtain a first prediction model, and determine short-term prediction results based on the preprocessed data and the first prediction model; Based on the short-term forecast results, determine local decision-making instructions and local operating status information; The short-term prediction results, the outlier logs, the local decision-making instructions, and the local operating status information are sent to the cloud platform as edge reporting data. The cloud platform is used for: Receive edge reporting data sent from the edge node; Obtain local data from the cloud; The edge-reported data is correlated with the cloud-local data to obtain globally correlated data; The global correlation data is subjected to feature extraction to obtain a global feature set; Obtain the second prediction model; Based on the short-term prediction results, the global correlation data, the global feature set, and the second prediction model, the long-term prediction results are obtained.
[0007] Optionally, the edge node is further used for: Receive global resource constraint information and global trend coefficients issued by the cloud platform; Obtain local actual traffic data, and determine the prediction deviation based on the short-term prediction results and the local actual traffic data; Based on the global resource constraint information, the global trend coefficient, and the prediction deviation, the parameters of the first prediction model are adjusted; the optimized parameters of the adjusted first prediction model are uploaded to the cloud platform. The cloud platform is also used for: The global resource constraint information and the global trend coefficient are sent to the corresponding edge nodes; and the optimization parameters uploaded by the edge nodes are received; the second prediction model is adjusted according to the optimization parameters.
[0008] Secondly, embodiments of the present invention provide a network traffic prediction method applied to edge nodes, the method comprising: Obtain raw traffic data; Based on the raw traffic data, preprocessed data and outlier logs are determined; Obtain a first prediction model, and determine short-term prediction results based on the preprocessed data and the first prediction model; Based on the short-term forecast results, determine local decision-making instructions and local operating status information; The short-term prediction results, the outlier logs, the local decision instructions, and the local operating status information are sent to the cloud platform as edge reporting data. The cloud platform then correlates the edge reporting data sent from each edge node with the local cloud data to obtain global correlation data. Features are extracted from the global correlation data to obtain a global feature set. Based on the short-term prediction results, the global correlation data, the global feature set, and the second prediction model, a long-term prediction result is obtained.
[0009] Optionally, the method further includes: Receive global resource constraint information and global trend coefficients from the cloud platform; the global resource constraint information and the global trend coefficients are determined by the cloud platform based on the long-term prediction results; Obtain local actual traffic data, and determine the prediction deviation based on the short-term prediction results and the local actual traffic data; Based on the global resource constraint information, the global trend coefficient, and the prediction bias, the parameters of the first prediction model are adjusted. The optimized parameters of the first prediction model are uploaded to the cloud platform so that the cloud platform can adjust the second prediction model according to the optimized parameters.
[0010] Optionally, determining the short-term prediction result based on the preprocessed data and the first prediction model includes: Extract the most recent N valid sampling point data from the preprocessed data; The data from the N most recent valid sampling points are input into the first prediction model; the first prediction model outputs multiple predicted flow values within a first future preset duration, which are divided according to a preset time interval. The maximum value among the multiple predicted flow values is taken as the short-term predicted throughput. The short-term forecast result is determined based on the short-term forecast throughput.
[0011] Secondly, embodiments of the present invention provide a network traffic prediction method applied to a cloud platform, the method comprising: The system receives edge-reported data from edge nodes; the edge-reported data includes short-term prediction results, outlier logs, local decision instructions, and local operating status information; the short-term prediction results are obtained by the edge nodes based on preprocessed data and a first prediction model, and the preprocessed data and the outlier logs are determined by the edge nodes based on raw traffic data; the local decision instructions and the local operating status information are determined by the edge nodes based on the short-term prediction results. Obtain local data from the cloud; The edge-reported data is correlated with the cloud-local data to obtain globally correlated data; The global correlation data is subjected to feature extraction to obtain a global feature set; Obtain the second prediction model; Based on the short-term prediction results, the global correlation data, the global feature set, and the second prediction model, the long-term prediction results are obtained.
[0012] Optionally, the method further includes: Based on the long-term forecast results, global guidance information is determined; the global guidance information includes global decision results, global resource constraint information, and global trend coefficients. The global resource constraint information and the global trend coefficient are sent to the edge nodes; The system receives optimization parameters uploaded by the edge node; the optimization parameters are parameters adjusted by the edge node based on the global resource constraint information, the global trend coefficient, and the prediction deviation, and the prediction deviation is determined by the edge node based on local actual traffic data and the short-term prediction results. The second prediction model is adjusted based on the optimization parameters and the global decision results.
[0013] Optionally, the cloud-based local data includes global topology information; The step of associating the edge-reported data with the cloud-based local data to obtain globally associated data includes: The edge-reported data is bound to the global topology information to obtain globally associated data.
[0014] Optionally, the step of extracting features from the global correlation data to obtain a global feature set includes: Based on the global correlation data, determine the average cross-regional traffic and the proportion of traffic at edge nodes; A global feature set is determined based on the average cross-regional traffic and the traffic share of the edge nodes.
[0015] Optionally, the step of predicting a long-term prediction result based on the short-term prediction result, the global correlation data, the global feature set, and the second prediction model includes: Based on the short-term prediction results, the global correlation data, and the global feature set, determine the cross-regional traffic prediction value within a second future preset time period; The cross-regional traffic forecast value is used as the long-term forecast result.
[0016] Optionally, determining the global guidance information based on the long-term prediction results includes: Based on the long-term forecast results, the global trend coefficient, global resource constraint information, and global target bandwidth are determined; the global trend coefficient represents the traffic growth trend within a future unit of time period. By comparing the global target bandwidth with the global total bandwidth, it is determined whether the global resources meet the requirements, and the global decision result is generated. The global trend coefficient, the global resource constraint information, and the global decision result are used as the global guidance information.
[0017] Fourthly, embodiments of the present invention provide an electronic device including a processor, a memory, and a program or instructions stored in the memory and executable on the processor, wherein the program or instructions, when executed by the processor, implement the steps of the method described in the second or third aspect.
[0018] Fifthly, embodiments of the present invention provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the second or third aspect.
[0019] The embodiments of the present invention have the following advantages: In this embodiment of the invention, a network traffic prediction system is introduced, comprising: several edge nodes and a cloud platform; the edge nodes acquire raw traffic data and determine preprocessed data and outlier logs, enabling data to be filtered and purified at the edge, reducing the amount of uploaded data and lowering the cloud computing load; the edge nodes determine short-term prediction results based on a first prediction model and preprocessed data, enabling the edge to have independent short-term prediction capabilities and reducing prediction response latency; the edge nodes determine local decision instructions and local operating status information based on the short-term prediction results, enabling the edge to have autonomous decision-making capabilities and improving local decision-making efficiency; the edge nodes send the short-term prediction results, outlier logs, local decision instructions, and local operating status information as edge-reported data to the cloud platform instead of uploading the original full data, reducing the amount of data transmitted from the edge to the cloud and lowering the cloud computing load; the cloud platform receives the edge-reported data and correlates it with local cloud data to obtain global correlation data and extract a global feature set, providing global information support for long-term cloud prediction; the cloud platform predicts long-term prediction results based on the short-term prediction results, global correlation data, global feature set, and a second prediction model, reducing the cloud's computing pressure and enabling the cloud to focus on long-term global prediction, thus distributing the network's computing load between the edge and the cloud. Attached Figure Description
[0020] Figure 1 This is a structural block diagram of a network traffic prediction system provided in an embodiment of the present invention; Figure 2This is a flowchart illustrating the steps of a network traffic prediction method provided in an embodiment of the present invention; Figure 3 This is a flowchart of another network traffic prediction method provided in an embodiment of the present invention. Detailed Implementation
[0021] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0022] The terms "first," "second," etc., used in the specification and claims of this invention are used to distinguish similar objects and are not used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of the invention can be implemented in orders other than those illustrated or described herein. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0023] The following description, in conjunction with the accompanying drawings, details a network traffic prediction method, a network traffic prediction device, an electronic device, and a computer-readable storage medium provided by the embodiments of the present invention through specific examples and application scenarios.
[0024] Reference Figure 1 The diagram shows a structural block diagram of a network traffic prediction system provided by an embodiment of the present invention. The system may specifically include: a plurality of edge nodes 10 and a cloud platform 11. The edge node 10 is used for: Obtain raw traffic data; based on the raw traffic data, determine preprocessed data and outlier logs; obtain a first prediction model, and determine short-term prediction results based on the preprocessed data and the first prediction model; determine local decision instructions and local operating status information based on the short-term prediction results; send the short-term prediction results, the outlier logs, the local decision instructions, and the local operating status information as edge reporting data to the cloud platform. In one alternative embodiment, edge nodes can acquire raw traffic data in real time via local interfaces (such as SNMP or Telemetry). The raw traffic data may specifically include: port ID, time index (sampling interval of 15 minutes, format yyyymmddhhmmss), incoming traffic (RX), outgoing traffic (TX), and local network element resource data (such as current port bandwidth, used bandwidth, etc.).
[0025] After acquiring the raw traffic data, the edge nodes need to preprocess it to identify preprocessed data and outlier logs. This preprocessing process includes the following steps: Step 1: Data Removal. The data preprocessing unit at the edge node performs anomaly detection and cleaning on the acquired raw traffic data. Specifically, based on a preset outlier threshold (e.g., instantaneous traffic exceeding 300% of the historical average is considered an anomaly), outlier data exceeding this threshold is deleted, along with empty data (i.e., missing values). The removed data and the reasons for removal are recorded in the outlier log.
[0026] Step 2: Volatility Calculation. Calculate the flow volatility for the continuous sampling points after the rejection process. The formula for volatility is: Volatility = (Current Value) / (Volatility / (Volatility / (Volatility / (Volatility))))))))))))))) The formula for calculating volatility is: Volatility = (Current Value) / (Volatility ... The formula for calculating volatility is: Volatility = (Current Value) / (Volatility / (Volatility))))))))) The formula for calculating volatility is: Volatility = (Current Value) / (Volatility / (Volatility))))))))) The formula for calculating volatility is: Volatility = (Current Value) / ( (Previous value) / Previous value × 100%. For example, if the RX value at 8:15 is 1.5Gbps and the RX value at 8:30 is 1.3Gbps, then the RX volatility from 8:15 to 8:30 = (1.5Gbps / Previous value) × 100%. 1.3) / 1.3 × 100% ≈ 15.4%.
[0027] Step 3: Effective Data Filtering. Based on a preset volatility filtering threshold (e.g., 5%), the data after volatility calculation is filtered. Records with volatility greater than this threshold are retained as preprocessed data, while data from stable periods with volatility less than or equal to the threshold are removed. Stable period data shows gradual changes and has less information content, while high volatility data reflects sudden or increasing trends in flow and is more valuable for subsequent forecasting. This filtering mechanism effectively reduces the amount of data while ensuring forecast accuracy.
[0028] After the above preprocessing, the edge node outputs a list of preprocessed data (including fields such as port ID, time index, incoming traffic, outgoing traffic, volatility, etc.) and an outlier log (recording the outlier data that was removed and the reasons for it).
[0029] In one optional embodiment, the first prediction model is a lightweight prediction model pre-deployed locally on the edge node. "Lightweight" means that compared to large-scale, complex models deployed in the cloud, this model has fewer parameters, lower computational complexity, and lower computational resource requirements on the edge node, enabling rapid inference under the limited computing power of the edge node. The first prediction model can be a machine learning model based on time series prediction, such as a lightweight variant of a recurrent neural network (RNN), a long short-term memory network (LSTM), a gated recurrent unit (GRU), etc., or it can be a regression model or other mathematical models suitable for short-term traffic prediction; this invention does not specifically limit its application.
[0030] "Obtaining the first prediction model" refers to the edge node reading the first prediction model that has been pre-trained and deployed on its local storage. This model can be trained locally on the edge node or trained in the cloud and then distributed to the edge node for deployment; this invention does not impose any specific limitations on this.
[0031] "Short-term prediction results" refer to the traffic prediction values for a future period output by the edge node based on local preprocessed data and inference using the first prediction model. These predictions have a small time granularity and are used to characterize the local, recent traffic change trends of the edge node. Short-term prediction results correspond to the short-term prediction tasks undertaken by the edge node, focusing on reflecting high-frequency, real-time local traffic dynamics.
[0032] When determining short-term forecast results, edge nodes use preprocessed data as input to the first forecast model. After model inference and calculation, the model outputs multiple predicted flow values for a future preset time period, divided into preset time intervals. Based on the short-term forecast results, local decision-making instructions and local operating status information are determined. In one embodiment, the local decision instruction refers to a control instruction generated by the edge node based on the short-term forecast results and the current local resource configuration status, used to guide local resource adjustment operations on the edge side. The local decision instruction is used by the edge-side execution mechanism or operation and maintenance system to perform corresponding resource adjustment actions, such as bandwidth adjustment, resource reservation, or traffic scheduling. The specific type of the local decision instruction depends on the comparison between the future traffic demand reflected in the short-term forecast results and the current local available resources: when the short-term forecast results indicate that future traffic demand may exceed the current local available resources, the local decision instruction is an adjustment instruction, used to trigger resource expansion or bandwidth increase operations; when the short-term forecast results indicate that future traffic demand is within the carrying capacity of the current local available resources, the local decision instruction is a maintenance instruction, used to maintain the current resource configuration unchanged.
[0033] The local operational status information refers to the status data recorded by the edge node before and after executing local decisions, which characterizes the current operational status of the edge node. This local operational status information includes, but is not limited to: local resource utilization (such as port bandwidth utilization), local available resource reserves, the device operational status of the edge node, and the adjustment results after executing the local decision. This local operational status information is sent to the cloud platform along with the edge-reported data, allowing the cloud platform to understand the real-time operational status of each edge node and providing a data foundation for global long-term prediction and global resource assessment.
[0034] The relationship between the local decision-making instructions and the local operating status information is as follows: the local decision-making instructions are control instructions for future actions generated by the edge node based on short-term prediction results, and the local operating status information is a record of the operating status of the edge node at the current or historical time. The local decision-making instructions are used by the edge side to execute actions, and the local operating status information is used by the cloud platform to understand the status of the edge side.
[0035] In one embodiment, the edge-reported data is a set of structured information reported by the edge node to the cloud platform. The edge-reported data includes the following four types of information: The short-term forecast result refers to the predicted value obtained by the edge node after using the first prediction model to predict its local short-term traffic. It is used to characterize the traffic demand trend of the edge node over a period of time and is provided by the cloud platform for reference in the global prediction of the local forecast of each edge node. The short-term forecast result may specifically include the prediction time index and the corresponding predicted throughput.
[0036] An outlier log refers to the log information generated by the edge node during the preprocessing of raw traffic data, recording the outlier data that was removed and the reasons for removal. This log is used to report the data quality status of the edge side to the cloud platform. The outlier log includes the identifier of the removed data and a description of the reason for removal.
[0037] Local decision instructions refer to local adjustment instructions generated by the edge node based on the short-term forecast results and local resource configuration status. These instructions characterize the control actions that the edge node intends to perform at the local level. For example, when the short-term forecast results indicate that future traffic will increase, the edge node can generate a local bandwidth adjustment instruction to instruct the execution of a local bandwidth adjustment operation.
[0038] Local operational status information refers to the resource usage information of the edge node after executing local decisions, used to characterize the current load level and resource availability of the edge node. This local operational status information may include local resource utilization rate, etc.
[0039] The edge nodes send the short-term prediction results, outlier logs, local decision instructions, and local operating status information to the cloud platform as edge-reported data. This allows the cloud platform to obtain the prediction results, data quality, local decision intentions, and operating status of each edge node required for global long-term prediction without needing to acquire the full amount of raw traffic data from the edge. This reduces the amount of data transmission from the edge to the cloud and enables the cloud to perceive the prediction status and decision actions of each edge node, providing a data foundation for subsequent global correlation analysis and long-term prediction.
[0040] The cloud platform is used for: Receive edge-reported data sent from the edge node; acquire local cloud data; associate the edge-reported data with the local cloud data to obtain global associated data; extract features from the global associated data to obtain a global feature set; acquire a second prediction model; and predict a long-term prediction result based on the short-term prediction result, the global associated data, the global feature set, and the second prediction model.
[0041] In one optional embodiment, the cloud platform communicates with one or more edge nodes and receives data reported by the edge nodes. The cloud platform has the capability to aggregate, correlate, extract features, and make long-term predictions of data from the entire network. The cloud platform receives edge-reported data sent from each edge node through a collaborative interface (such as HTTPS) and performs integrity verification (such as checksum verification) on the received data. The edge-reported data is lightweight data reported by the edge nodes after local processing, and includes at least: short-term prediction results generated locally by the edge nodes, outlier logs, local decision instructions, and local operating status information.
[0042] Cloud-based local data includes at least global topology information, core network element information, and historical global traffic data. The cloud platform associates and binds the data reported by each edge node with the global topology information in the cloud-based local data. Specifically, it binds the port identifier of the edge node with the topology link identifier to which it belongs to determine the location of each edge node in the global network topology. The associated global data is used to represent the mapping relationship between edge nodes and the entire network topology.
[0043] The cloud platform extracts features from globally correlated data to identify global features that characterize the overall network traffic situation. This global feature set is used to quantify the traffic share of each edge node within the entire network and the cross-regional traffic distribution.
[0044] The cloud platform acquires a pre-trained second prediction model. Deployed in the cloud, this second prediction model is larger than the first prediction model on the edge nodes and is used for long-term predictions based on global data. The cloud platform inputs the short-term prediction results from each edge node, global correlation data, and the global feature set into the second prediction model for inference. The second prediction model integrates the short-term prediction information from each edge node and the global topology information to output a long-term prediction result for a future period. The prediction duration of this long-term prediction result is longer than the prediction duration of the short-term prediction results on the edge nodes.
[0045] In one embodiment, the edge node is further used for: The system receives global resource constraint information and global trend coefficient from the cloud platform; acquires local actual traffic data; determines the prediction deviation based on the short-term prediction results and the local actual traffic data; adjusts the parameters of the first prediction model based on the global resource constraint information, the global trend coefficient, and the prediction deviation; and uploads the optimized parameters of the adjusted first prediction model to the cloud platform. In one alternative embodiment, the edge node is communicatively connected to the cloud platform, receives data sent by the cloud platform, and has the ability to dynamically adjust the local model based on the sent data and the actual local traffic.
[0046] The global trend coefficient is a guiding parameter generated based on long-term prediction results from the cloud platform, used to characterize the trend of network traffic changes over a future period. The global resource constraint information is used to constrain the bandwidth adjustment limit of the links to which the edge nodes belong, i.e., the physical resource limit that the edge nodes must follow when making local decisions.
[0047] Edge nodes acquire local actual traffic data through a local interface. This local actual traffic data is real-time traffic data collected by the edge node at its location. The edge node compares this local actual traffic data with the short-term prediction results previously output by the first prediction model to determine the prediction deviation. This prediction deviation quantifies the accuracy of the edge node's local short-term predictions, reflecting the degree of difference between the predicted value and the actual value in the current time period. Based on global resource constraint information, global trend coefficients, and the prediction deviation, the parameters of the first prediction model are adjusted. Edge nodes adjust the parameters of the first prediction model by considering three dimensions: global trend coefficient, global resource constraint information, and prediction bias. This ensures that the adjusted first prediction model more accurately reflects local traffic change trends in subsequent predictions, while also meeting the consistency requirements of global planning in the cloud. The edge nodes then upload the optimized parameters of the adjusted first prediction model to the cloud platform, which updates its second prediction model based on these optimized parameters.
[0048] The cloud platform is further configured to: send the global resource constraint information and the global trend coefficient to the corresponding edge nodes; and receive the optimization parameters uploaded by the edge nodes; and adjust the second prediction model according to the optimization parameters.
[0049] In one alternative embodiment, the cloud platform also has the capability to feed global information back to edge nodes to guide their local decision-making, and to optimize its own model based on feedback from edge nodes. After completing long-term predictions, the cloud platform generates global guidance parameters to guide the operation of edge nodes. These global guidance parameters include global resource constraint information and global trend coefficients. The cloud platform groups and distributes these parameters to the corresponding edge nodes according to their identifiers (such as port IDs), enabling each edge node to adaptively adjust its local prediction model and decisions based on global information.
[0050] After receiving global resource constraint information and global trend coefficients from the cloud, edge nodes dynamically fine-tune their first prediction model based on the deviation between locally collected traffic data and local short-term prediction results, generating optimized model parameters. The edge nodes then upload these optimized parameters as feedback to the cloud platform. Upon receiving the optimized parameters from each edge node, the cloud platform updates its second prediction model based on these parameters. Specifically, the cloud platform adjusts the weight parameters related to the corresponding edge node or topology link in the second prediction model according to the local prediction deviation reflected in the optimized parameters uploaded by each edge node. This allows the second prediction model to incorporate actual operational feedback from the edge side, achieving iterative optimization of the model.
[0051] This invention provides a network traffic prediction system, including several edge nodes and a cloud platform. The system acquires raw traffic data and determines preprocessed data and outlier logs at the edge, enabling data filtering and purification at the edge, reducing the amount of data uploaded and lowering the cloud's computing load. Edge nodes determine short-term prediction results based on a first prediction model and preprocessed data, giving the edge independent short-term prediction capabilities and reducing prediction response latency. Edge nodes determine local decision-making instructions and local operational status information based on the short-term prediction results, enabling autonomous decision-making and improving local decision-making efficiency. Instead of uploading the original full data, edge nodes send the short-term prediction results, outlier logs, local decision-making instructions, and local operational status information to the cloud platform as edge-reported data, reducing data transmission from the edge to the cloud and lowering the cloud's computing load. The cloud platform receives the edge-reported data and correlates it with local cloud data to obtain global correlation data and extract a global feature set, providing global information support for long-term cloud prediction. The cloud platform predicts long-term prediction results based on the short-term prediction results, global correlation data, global feature set, and a second prediction model, reducing the cloud's computing pressure and allowing the cloud to focus on long-term global prediction, thus distributing the network's computing load between the edge and the cloud.
[0052] Reference Figure 2 The diagram illustrates a flowchart of a network traffic prediction method provided by an embodiment of the present invention, applied to edge nodes. The method may specifically include the following steps: Step 201: Obtain raw traffic data; Step 202: Based on the raw traffic data, determine the preprocessed data and outlier logs; Step 203: Obtain the first prediction model, and determine the short-term prediction result based on the preprocessed data and the first prediction model; Step 204: Based on the short-term forecast results, determine the local decision-making instructions and local operating status information; Step 205: The short-term prediction results, the outlier logs, the local decision instructions, and the local operating status information are sent to the cloud platform as edge reporting data; so that the cloud platform can associate the edge reporting data sent from each edge node with the cloud local data to obtain global associated data; the global associated data is used to extract features to obtain a global feature set; and the long-term prediction results are predicted based on the short-term prediction results, the global associated data, the global feature set, and the second prediction model.
[0053] In one embodiment, the method further includes: Receive global resource constraint information and global trend coefficients from the cloud platform; the global resource constraint information and the global trend coefficients are determined by the cloud platform based on the long-term prediction results; Obtain local actual traffic data, and determine the prediction deviation based on the short-term prediction results and the local actual traffic data; Based on the global resource constraint information, the global trend coefficient, and the prediction bias, the parameters of the first prediction model are adjusted. The optimized parameters of the first prediction model are uploaded to the cloud platform so that the cloud platform can adjust the second prediction model according to the optimized parameters.
[0054] In one embodiment, step 203 may include the following sub-steps: Sub-step S11: Extract the most recent N valid sampling point data from the preprocessed data; Specifically, the edge node extracts the most recent N valid sampling points from the preprocessed valid data. The value of N can be a preset number based on actual prediction needs, such as an empirical value preset based on the historical data window length. The valid sampling points refer to the valid records that reflect the characteristics of traffic changes after the aforementioned preprocessing and filtering, excluding outlier data and stable period data that have been removed.
[0055] Sub-step S12: Input the data of the most recent N valid sampling points into the first prediction model; output multiple predicted flow values within a first future preset duration by splitting them according to a preset time interval through the first prediction model; Specifically, the edge node inputs the extracted data from the N most recent valid sampling points into the acquired first prediction model, performs inference through the first prediction model, and outputs multiple predicted flow values within a first future preset duration, divided by preset time intervals. Here, the preset time interval is the time granularity of data sampling, for example, consistent with the original data sampling interval; the first future preset duration is the time range covered by the short-term prediction on the edge side; and the multiple predicted flow values correspond to the flow prediction results of each time interval node within the first future preset duration.
[0056] Sub-step S13: Take the maximum value among the multiple predicted flow values as the short-term predicted throughput; The edge node selects the maximum value from the multiple predicted traffic values as the short-term predicted throughput. This short-term predicted throughput reflects the traffic peak that may occur within a first preset time period in the future and can serve as a reference benchmark for the edge node to adjust local resources.
[0057] Sub-step S14: Determine the short-term prediction result based on the short-term predicted throughput.
[0058] Edge nodes determine short-term prediction results based on the short-term predicted throughput. The short-term prediction results include a time index and a corresponding short-term predicted traffic value, used to characterize the traffic change trend of edge nodes within a certain time range in the future.
[0059] This invention provides a network traffic prediction method. It acquires raw traffic data at edge nodes and determines preprocessed data and outlier logs, enabling data filtering and purification at the edge, reducing the amount of data uploaded and lowering the cloud computing load. Edge nodes determine short-term prediction results based on a first prediction model and preprocessed data, giving the edge independent short-term prediction capabilities and reducing prediction response latency. Edge nodes determine local decision-making instructions and local operational status information based on the short-term prediction results, enabling autonomous decision-making and improving local decision-making efficiency. Edge nodes send the short-term prediction results, outlier logs, local decision-making instructions, and local operational status information as edge-reported data to the cloud platform instead of uploading the entire raw data, reducing data transmission from the edge to the cloud and lowering the cloud computing load. The cloud platform receives the edge-reported data and correlates it with local cloud data to obtain global correlation data and extract a global feature set, providing global information support for long-term cloud prediction. The cloud platform predicts long-term prediction results based on the short-term prediction results, global correlation data, global feature set, and a second prediction model, reducing the cloud's computing pressure and allowing the cloud to focus on long-term global prediction, thus distributing the network's computing load between the edge and the cloud.
[0060] Reference Figure 3 This diagram illustrates a flowchart of another network traffic prediction method provided by an embodiment of the present invention, applied to a cloud platform. The method may specifically include the following steps: Step 301: Receive edge-reported data sent from the edge node; the edge-reported data includes short-term prediction results, outlier logs, local decision instructions, and local operating status information; the short-term prediction results are obtained by the edge node based on preprocessed data and a first prediction model, and the preprocessed data and the outlier logs are determined by the edge node based on raw traffic data; the local decision instructions and the local operating status information are determined by the edge node based on the short-term prediction results. Step 302: Obtain local data from the cloud; Step 303: Associate the edge-reported data with the cloud-based local data to obtain globally associated data; Step 304: Extract features from the global correlation data to obtain a global feature set; Step 305: Obtain the second prediction model; Step 306: Based on the short-term prediction results, the global correlation data, the global feature set, and the second prediction model, a long-term prediction result is obtained.
[0061] In one embodiment, the method further includes: Based on the long-term forecast results, global guidance information is determined; the global guidance information includes global decision results, global resource constraint information, and global trend coefficients. The global resource constraint information and the global trend coefficient are sent to the edge nodes; The system receives optimization parameters uploaded by the edge node; the optimization parameters are parameters adjusted by the edge node based on the global resource constraint information, the global trend coefficient, and the prediction deviation, and the prediction deviation is determined by the edge node based on local actual traffic data and the short-term prediction results. The second prediction model is adjusted based on the optimization parameters and the global decision results.
[0062] In one embodiment, the cloud-based local data includes global topology information; step 303 may include the following sub-steps: The edge-reported data is bound to the global topology information to obtain globally associated data.
[0063] In one optional embodiment, the cloud-based local data includes global topology information. This global topology information describes the connection relationships, hierarchical affiliation, and link architecture between nodes in the network. Specifically, it may include the set of edge nodes included in each link, the hierarchical relationship between nodes (e.g., access-aggregation-core), link identifiers, and link capacity.
[0064] Specifically, the cloud platform acquires edge-reported data from each edge node. This edge-reported data carries the node identification information of the edge node, which uniquely identifies the edge node's identity within the network. Based on this node identification information, the cloud platform queries global topology information to determine the topology link to which the edge node belongs and its hierarchical position within that link, thus establishing a mapping relationship between each edge node and its associated topology link. The prediction results from each edge node's edge-reported data are then associated with the mapped topology link to generate globally associated data containing the edge node identifier, the identifier of its associated topology link, and the prediction result.
[0065] For example, after receiving edge-reported data from an edge node, the cloud platform, based on the edge node's identification information, queries the global topology information to determine which link the node belongs to between city A and city B. Then, it binds the edge node's prediction result to this link information. Through this binding, the prediction results of each edge node are assigned spatial attributes along the link dimension. This allows the cloud platform to know the prediction results of each edge node under each topology link, providing spatial data support for subsequent global feature extraction and long-term prediction.
[0066] In one embodiment, step 304 may include the following sub-steps: Sub-step S21: Based on the global correlation data, determine the average cross-regional traffic and the proportion of edge node traffic; Sub-step S22: Determine the global feature set based on the average cross-regional traffic and the traffic proportion of the edge nodes.
[0067] Based on the global correlation data, determine the average cross-regional traffic and the proportion of edge node traffic; based on the average cross-regional traffic and the proportion of edge node traffic, determine the global feature set.
[0068] Specifically, the global correlation data acquired by the cloud platform includes topology link information of each edge node (such as the link between City A and City B), as well as data such as the predicted throughput and resource share of each edge node. Based on this, the cloud platform statistically analyzes the traffic data of all edge nodes under the same topology link and calculates the cross-regional average traffic of that link. This average is used to characterize the overall traffic level of that link. At the same time, the cloud platform calculates the proportion of each edge node's traffic to the total traffic of its respective link, obtaining the edge node traffic share. This share is used to characterize the degree of traffic contribution of each edge node in its respective link.
[0069] After obtaining the average cross-regional traffic and the proportion of traffic at edge nodes, the cloud platform uses these two data points as components of a global feature set. This global feature set reflects the spatial distribution characteristics of network traffic, providing input for the cloud platform's long-term prediction model, enabling the model to perceive the traffic relationships between different regions and nodes.
[0070] In one embodiment, step 306 may include the following sub-steps: Sub-step S31: Based on the short-term prediction results, the global correlation data, and the global feature set, determine the cross-regional traffic prediction value within the second future preset time period; Sub-step S32: The cross-regional traffic forecast value is used as the long-term forecast result.
[0071] In one alternative embodiment, the cloud platform determines the cross-regional traffic prediction value within a second future preset time period based on the short-term prediction results, the global correlation data, and the global feature set.
[0072] Specifically, the cloud platform acquires a second prediction model, which is a global prediction model used to infer the overall cross-regional traffic trend based on historical network data and spatial topology information. The cloud platform uses the global correlation data obtained in the preceding steps (including the identifiers of each edge node, their associated topology links, predicted throughput, and resource share), the global feature set (including the average cross-regional traffic and link load rate), and the short-term prediction results reported from each edge node as inputs to the second prediction model. Simultaneously, the cloud platform also inputs historical global traffic data (e.g., historical data from the last 30 days) into the second prediction model to enable the model to learn the periodic changes and long-term trend characteristics of traffic. After inference by the second prediction model, it outputs the cross-regional traffic prediction values, broken down by day, within a second preset future timeframe, where the second preset future timeframe is longer than the first preset future timeframe.
[0073] As an example and not a limitation, the second prediction model can be implemented using a deep LSTM network combined with a topology constraint layer. The LSTM network is used to extract temporal dependencies, and the topology constraint layer is used to embed the link topology information of each edge node into the model, ensuring that the prediction results conform to the association constraints of the network topology structure. The specific time granularity of the second future preset duration and the cross-regional traffic prediction value can be configured by technical personnel according to actual needs, for example, but not limited to outputting prediction values for the next few days in days.
[0074] After obtaining the aforementioned cross-regional traffic forecast values, the cloud platform uses them as the long-term forecast result. This long-term forecast result reflects the trend of cross-regional traffic changes across the entire network over a future period and can be used in subsequent decision-making processes such as global resource assessment and capacity planning. For example, the long-term forecast result can be a traffic forecast sequence on a daily basis, with each time point corresponding to a cross-regional traffic forecast value. Based on this long-term forecast result, the cloud platform compares it with the total global bandwidth to determine whether the current network resources can support future traffic growth, thereby generating corresponding global decision results. The cloud platform can also calculate a growth coefficient on a daily basis based on the long-term forecast result and distribute it as a global trend coefficient to each edge node to guide the edge side in adaptively adjusting its local forecast model.
[0075] In one embodiment, the step of determining global guidance information based on the long-term prediction results may include the following sub-steps: Sub-step S41: Based on the long-term prediction results, determine the global trend coefficient, global resource constraint information, and global target bandwidth; the global trend coefficient represents the traffic growth trend within a future unit of time period. Specifically, the cloud platform calculates a growth coefficient based on the long-term forecast results output by the second prediction model (such as cross-regional traffic forecasts broken down by day for the next 7 days), using it as a global trend coefficient within a unit time period (e.g., by day). This global trend coefficient is used to characterize the traffic growth trend within a future unit time period; for example, if the traffic on day 3 increases by 1.2 times compared to the previous day, then the growth coefficient is 1.2.
[0076] The cloud platform also determines the global target bandwidth based on long-term forecast results. Specifically, the cloud platform obtains preset tolerance parameters and calculates the global target bandwidth based on the daily forecast throughput and tolerance. As an example, and not a limitation, global target bandwidth = daily forecast throughput × (1 + tolerance).
[0077] The cloud platform also determines global resource constraint information. This global resource constraint information is used to characterize the resource limits of the links to which each edge node belongs, such as the maximum bandwidth of the link to which the edge node belongs.
[0078] Sub-step S42: By comparing the global target bandwidth with the global total bandwidth, determine whether the global resources meet the requirements, and generate the global decision result; Specifically, the cloud platform obtains the total global bandwidth, which represents the upper limit of the physical bandwidth currently available in the cloud platform's global network architecture. The cloud platform compares the target global bandwidth with the total global bandwidth. If the target global bandwidth is less than or equal to the total global bandwidth, it indicates that global resources can meet future predicted traffic demands, and a global decision result indicating that no expansion is needed is generated. If the target global bandwidth is greater than the total global bandwidth, it indicates that global resources are insufficient to meet future predicted traffic demands, and a global decision result indicating that a resource expansion request needs to be triggered is generated.
[0079] Sub-step S43: The global trend coefficient, the global resource constraint information, and the global decision result are used as the global guidance information.
[0080] Specifically, the cloud platform uses the aforementioned global trend coefficient, global resource constraint information, and global decision results as global guidance information. The global trend coefficient and global resource constraint information are distributed by the cloud platform to the corresponding edge nodes to guide model fine-tuning and local decision verification. The global decision results are used by the cloud platform itself to instruct its own resource planning strategies, such as whether to trigger resource expansion requests or generate resource monitoring plans.
[0081] This invention provides a network traffic prediction method. It acquires raw traffic data at edge nodes and determines preprocessed data and outlier logs, enabling data filtering and purification at the edge, reducing the amount of data uploaded and lowering the cloud computing load. Edge nodes determine short-term prediction results based on a first prediction model and preprocessed data, giving the edge independent short-term prediction capabilities and reducing prediction response latency. Edge nodes determine local decision-making instructions and local operational status information based on the short-term prediction results, enabling autonomous decision-making and improving local decision-making efficiency. Edge nodes send the short-term prediction results, outlier logs, local decision-making instructions, and local operational status information as edge-reported data to the cloud platform instead of uploading the entire raw data, reducing data transmission from the edge to the cloud and lowering the cloud computing load. The cloud platform receives the edge-reported data and correlates it with local cloud data to obtain global correlation data and extract a global feature set, providing global information support for long-term cloud prediction. The cloud platform predicts long-term prediction results based on the short-term prediction results, global correlation data, global feature set, and a second prediction model, reducing the cloud's computing pressure and allowing the cloud to focus on long-term global prediction, thus distributing the network's computing load between the edge and the cloud.
[0082] It should be noted that the network traffic prediction method provided in this embodiment of the invention can be executed by a network traffic prediction device or a control module within that device for executing the method of loading network traffic prediction. This embodiment of the invention uses the execution of the method of loading network traffic prediction by a network traffic prediction device as an example to illustrate the network traffic prediction method provided in this embodiment of the invention.
[0083] This invention also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described network traffic prediction method embodiments and achieve the same technical effect. To avoid repetition, they will not be described again here.
[0084] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0085] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of the present invention is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0086] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0087] The embodiments of the present invention have been described above with reference to the accompanying drawings. However, the present invention is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of the present invention without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of the present invention.
Claims
1. A network traffic prediction system, characterized in that, include: Several edge nodes and cloud platforms; The edge nodes are used for: Obtain raw traffic data; Based on the raw traffic data, preprocessed data and outlier logs are determined; Obtain a first prediction model, and determine short-term prediction results based on the preprocessed data and the first prediction model; Based on the short-term forecast results, determine local decision-making instructions and local operating status information; The short-term prediction results, the outlier logs, the local decision-making instructions, and the local operating status information are sent to the cloud platform as edge reporting data. The cloud platform is used for: Receive edge reporting data sent from the edge node; Obtain local data from the cloud; The edge-reported data is correlated with the cloud-local data to obtain globally correlated data; The global correlation data is subjected to feature extraction to obtain a global feature set; Obtain the second prediction model; Based on the short-term prediction results, the global correlation data, the global feature set, and the second prediction model, the long-term prediction results are obtained.
2. The network traffic prediction system according to claim 1, characterized in that, The edge node is also used for: Receive global resource constraint information and global trend coefficients issued by the cloud platform; Obtain local actual traffic data, and determine the prediction deviation based on the short-term prediction results and the local actual traffic data; Based on the global resource constraint information, the global trend coefficient, and the prediction deviation, the parameters of the first prediction model are adjusted; the optimized parameters of the adjusted first prediction model are uploaded to the cloud platform. The cloud platform is also used for: The global resource constraint information and the global trend coefficient are sent to the corresponding edge nodes; and the optimization parameters uploaded by the edge nodes are received; the second prediction model is adjusted according to the optimization parameters.
3. A network traffic prediction method, characterized in that, Applied to edge nodes, the method includes: Obtain raw traffic data; Based on the raw traffic data, preprocessed data and outlier logs are determined; Obtain a first prediction model, and determine short-term prediction results based on the preprocessed data and the first prediction model; Based on the short-term forecast results, determine local decision-making instructions and local operating status information; The short-term prediction results, the outlier logs, the local decision instructions, and the local operating status information are sent to the cloud platform as edge reporting data. The cloud platform then correlates the edge reporting data sent from each edge node with the local cloud data to obtain global correlation data. Features are extracted from the global correlation data to obtain a global feature set. Based on the short-term prediction results, the global correlation data, the global feature set, and the second prediction model, a long-term prediction result is obtained.
4. The network traffic prediction method according to claim 3, characterized in that, The method further includes: Receive global resource constraint information and global trend coefficients from the cloud platform; the global resource constraint information and the global trend coefficients are determined by the cloud platform based on the long-term prediction results; Obtain local actual traffic data, and determine the prediction deviation based on the short-term prediction results and the local actual traffic data; Based on the global resource constraint information, the global trend coefficient, and the prediction bias, the parameters of the first prediction model are adjusted. The optimized parameters of the first prediction model are uploaded to the cloud platform so that the cloud platform can adjust the second prediction model according to the optimized parameters.
5. The network traffic prediction method according to claim 3, characterized in that, The step of determining the short-term prediction result based on the preprocessed data and the first prediction model includes: Extract the most recent N valid sampling point data from the preprocessed data; The data from the N most recent valid sampling points are input into the first prediction model; the first prediction model outputs multiple predicted flow values within a first future preset duration, which are divided according to a preset time interval. The maximum value among the multiple predicted flow values is taken as the short-term predicted throughput. The short-term forecast result is determined based on the short-term forecast throughput.
6. A network traffic prediction method, characterized in that, Applied to a cloud platform, the method includes: The system receives edge-reported data from edge nodes; the edge-reported data includes short-term prediction results, outlier logs, local decision instructions, and local operating status information; the short-term prediction results are obtained by the edge nodes based on preprocessed data and a first prediction model, and the preprocessed data and the outlier logs are determined by the edge nodes based on raw traffic data; the local decision instructions and the local operating status information are determined by the edge nodes based on the short-term prediction results. Obtain local data from the cloud; The edge-reported data is correlated with the cloud-local data to obtain globally correlated data; The global correlation data is subjected to feature extraction to obtain a global feature set; Obtain the second prediction model; Based on the short-term prediction results, the global correlation data, the global feature set, and the second prediction model, the long-term prediction results are obtained.
7. The network traffic prediction method according to claim 6, characterized in that, The method further includes: Based on the long-term forecast results, global guidance information is determined; the global guidance information includes global decision results, global resource constraint information, and global trend coefficients. The global resource constraint information and the global trend coefficient are sent to the edge nodes; The system receives optimization parameters uploaded by the edge node; the optimization parameters are parameters adjusted by the edge node based on the global resource constraint information, the global trend coefficient, and the prediction deviation, and the prediction deviation is determined by the edge node based on local actual traffic data and the short-term prediction results. The second prediction model is adjusted based on the optimization parameters and the global decision results.
8. The network traffic prediction method according to claim 6, characterized in that, The cloud-based local data includes global topology information; The step of associating the edge-reported data with the cloud-based local data to obtain globally associated data includes: The edge-reported data is bound to the global topology information to obtain globally associated data.
9. The network traffic prediction method according to claim 6, characterized in that, The step of extracting features from the globally correlated data to obtain a global feature set includes: Based on the global correlation data, determine the average cross-regional traffic and the proportion of traffic at edge nodes; A global feature set is determined based on the average cross-regional traffic and the traffic share of the edge nodes.
10. The network traffic prediction method according to claim 6, characterized in that, The step of predicting long-term prediction results based on the short-term prediction results, the global correlation data, the global feature set, and the second prediction model includes: Based on the short-term prediction results, the global correlation data, and the global feature set, determine the cross-regional traffic prediction value within a second future preset time period; The cross-regional traffic forecast value is used as the long-term forecast result.
11. The network traffic prediction method according to claim 7, characterized in that, The step of determining global guidance information based on the long-term prediction results includes: Based on the long-term forecast results, the global trend coefficient, global resource constraint information, and global target bandwidth are determined; the global trend coefficient represents the traffic growth trend within a future unit of time period. By comparing the global target bandwidth with the global total bandwidth, it is determined whether the global resources meet the requirements, and the global decision result is generated. The global trend coefficient, the global resource constraint information, and the global decision result are used as the global guidance information.
12. An electronic device, characterized in that, It includes a processor, a memory, and a program or instructions stored in the memory and executable on the processor, wherein the program or instructions, when executed by the processor, implement the steps of the network traffic prediction method as described in any one of claims 3-5 or 6-11.
13. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions that, when executed by a processor, implement the steps of the network traffic prediction method as described in any one of claims 3-5 or 6-11.
