Adaptive optimization method and apparatus for real-time communication networks

By constructing a mirror model for network state prediction and simulation, the optimization deficiencies of WebRTC real-time communication networks were addressed, thereby improving the quality and stability of real-time video communication.

CN123185071APending Publication Date: 2026-11-27SHENZHEN JOOAN TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611658002.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-26
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In existing technologies, WebRTC real-time communication networks cannot be optimized in a timely and reliable manner, resulting in a decline in user experience. In particular, they are slow to respond when network conditions deteriorate, cannot predict network changes, and lack global optimization strategies and cross-layer collaborative optimization mechanisms.

Method used

A mirror model of a real-time communication network is constructed. The network state is predicted using the mirror model, a virtual network environment is generated, the performance of various coding parameter combinations is simulated, the target coding parameter combination is determined, and adaptive optimization is achieved.

Benefits of technology

It improves the quality and stability of real-time video communication by intelligently optimizing encoding and transmission strategies in a virtual environment, predicting network changes and making proactive adjustments, thereby enhancing response speed and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123185071A_ABST
    Figure CN123185071A_ABST
Patent Text Reader

Abstract

The application relates to a real-time communication network adaptive optimization method and device, which comprises the following steps: determining a mirror model corresponding to a real-time communication network at present, acquiring historical state information corresponding to the real-time communication network at present, then acquiring a network state prediction result of the real-time communication network in a future period according to the mirror model and the historical state information, then acquiring a plurality of to-be-evaluated encoding parameter combinations corresponding to the real-time communication network, then generating a virtual network environment in the mirror model according to the network state prediction result; in the virtual network environment, at least one of media encoding simulation, media transmission simulation and media decoding simulation is carried out on the plurality of to-be-evaluated encoding parameter combinations respectively, and simulation results are obtained; the simulation result corresponding to each to-be-evaluated encoding parameter combination is taken as a simulation result, then a target encoding parameter combination is determined according to the simulation result. Therefore, the quality and stability of real-time video communication can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of real-time communication network technology, and in particular to an adaptive optimization method and apparatus for real-time communication networks. Background Technology

[0002] WebRTC (Web Real-Time Communication), as an open real-time communication technology standard, is applied to various real-time audio and video communication scenarios such as video conferencing, online education, and live interactive streaming. WebRTC's advantage lies in its ability to achieve end-to-end real-time communication within a browser without the need for plugins, supporting audio, video, and data transmission. Therefore, ensuring the quality and stability of WebRTC real-time video communication is crucial.

[0003] In related technologies, congestion control algorithms are typically used to optimize WebRTC. This approach generally relies on reactive adjustments based on packet loss and latency feedback, making it impossible to predict network changes in advance. Therefore, when network conditions deteriorate, the system struggles to respond promptly, leading to a decline in user experience.

[0004] Therefore, how to optimize real-time communication networks in a timely and reliable manner is a problem that needs to be solved. Summary of the Invention

[0005] Therefore, it is necessary to provide an adaptive optimization method and apparatus for real-time communication networks that can reliably and timely optimize real-time communication networks, addressing the aforementioned technical problems.

[0006] Firstly, this application provides an adaptive optimization method for real-time communication networks, comprising:

[0007] Determine the mirror model corresponding to the real-time communication network and obtain the historical state information corresponding to the real-time communication network, wherein the mirror model is a virtualization model corresponding to the real-time communication network;

[0008] Based on the mirror model and the historical state information, the network state prediction result of the real-time communication network in the future time period is obtained;

[0009] Obtain multiple combinations of encoding parameters to be evaluated corresponding to the real-time communication network;

[0010] Based on the network state prediction results, a virtual network environment is generated in the mirror model;

[0011] In the virtual network environment, at least one of media encoding simulation, media transmission simulation, and media decoding simulation is performed on the plurality of encoding parameter combinations to be evaluated, so as to obtain the simulation result corresponding to each encoding parameter combination to be evaluated;

[0012] The simulation results corresponding to each combination of the coding parameters to be evaluated are used as the simulation results;

[0013] The target coding parameter combination is determined based on the simulation results, wherein the target coding parameter combination is used for adaptive optimization of the real-time communication network.

[0014] In one embodiment, obtaining the network state prediction result of the real-time communication network for a future time period based on the mirror model and the historical state information includes:

[0015] Based on the mirror model, the topology of the real-time communication network is determined, and the topology includes multiple nodes and the connection relationships between the multiple nodes;

[0016] Collect historical state information of the real-time communication network during historical time periods;

[0017] Feature extraction is performed on the historical state information to obtain the node features corresponding to the multiple nodes;

[0018] By inputting the node features and the topology into a pre-built network state prediction model, the network state prediction results of the real-time communication network in future time periods are obtained.

[0019] In one embodiment, obtaining the multiple combinations of encoding parameters to be evaluated corresponding to the real-time communication network includes:

[0020] Obtain at least one of the following: network status parameters of the real-time communication network, video content characteristics of the video content carried by the real-time communication network, and user service quality requirements corresponding to the real-time communication network.

[0021] The plurality of encoding parameter combinations to be evaluated are generated based on at least one of the network state parameters, the video content features, and the user service quality requirements.

[0022] In one embodiment, determining the target coding parameter combination based on the simulation results includes:

[0023] Based on the simulation results, the scores of the multiple combinations of coding parameters to be evaluated are determined on preset dimensions, wherein the preset dimensions include at least two of the following: quality dimension, latency dimension, bandwidth dimension, and robustness dimension.

[0024] The target coding parameter combination is determined from the plurality of coding parameter combinations to be evaluated based on their scores on a preset dimension.

[0025] In one embodiment, the method further includes:

[0026] Detect whether the topology, link status, and node status of the real-time communication network have changed;

[0027] When changes are detected in the topology, link status, and node status of the real-time communication network, the mirror model is incrementally updated to keep the mirror model synchronized with the real-time communication network in time.

[0028] In one embodiment, the method further includes:

[0029] Based on the network state prediction results, determine the optimized operation for at least one of the terminal side, edge side, and cloud side;

[0030] Perform optimization operations on at least one of the terminal side, edge side, and cloud;

[0031] The optimization operation includes at least one of the following:

[0032] The control terminal adjusts the encoding parameters based on the network state prediction results.

[0033] The control edge can cache media data, switch transmission paths, or perform media transcoding based on the network state prediction results.

[0034] The cloud control system performs resource scheduling, session migration, or route adjustment based on the network status prediction results.

[0035] In one embodiment, the method further includes:

[0036] The target encoding parameter combination is sent to at least one node in the real-time communication network, so that the at least one node performs at least one of the following operations based on the target encoding parameter combination:

[0037] Configure encoding side parameters;

[0038] Adjust transmission control parameters;

[0039] Configure error protection policies;

[0040] Perform network traffic scheduling.

[0041] In one embodiment, the method further includes:

[0042] The mirror model provides an interaction interface, which includes at least one of a first interface, a second interface, and a third interface.

[0043] The first interface is used to provide the application layer with at least one of network status query, network status prediction result acquisition, and control command issuance;

[0044] The second interface is used to receive real-time status update data from the real-time communication network;

[0045] The third interface is used to perform strategy simulation, performance prediction, or optimization scheme verification in the mirror model.

[0046] Secondly, this application also provides an adaptive optimization device for a real-time communication network, comprising:

[0047] The first acquisition module is used to determine the current mirror model corresponding to the real-time communication network and acquire the current historical state information of the real-time communication network, wherein the mirror model is a virtualization model corresponding to the real-time communication network.

[0048] The second acquisition module is used to acquire the network state prediction result of the real-time communication network in a future time period based on the mirror model and the historical state information.

[0049] The third acquisition module is used to acquire multiple combinations of encoding parameters to be evaluated corresponding to the real-time communication network;

[0050] The simulation module is used to generate a virtual network environment in the mirror model based on the network state prediction results; in the virtual network environment, at least one of media encoding simulation, media transmission simulation, and media decoding simulation is performed on the multiple combinations of encoding parameters to be evaluated to obtain simulation results corresponding to each combination of encoding parameters to be evaluated; and the simulation results corresponding to each combination of encoding parameters to be evaluated are used as simulation results.

[0051] The determination module is used to determine the target coding parameter combination based on the simulation results, wherein the target coding parameter combination is used for adaptive optimization of the real-time communication network.

[0052] Thirdly, this application also provides a computer device. The computer device includes a memory and a processor, the memory storing a computer program that, when executed by the processor, implements the steps of the method described above.

[0053] Fourthly, this application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, which, when executed by a processor, implements the steps of the above-described method.

[0054] Fifthly, this application also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, implements the steps of the above-described method.

[0055] The aforementioned adaptive optimization method for real-time communication networks first determines the current mirror model of the real-time communication network and obtains its historical state information. The mirror model is a virtualized model corresponding to the real-time communication network. Then, based on the mirror model and historical state information, the network state prediction result for the real-time communication network in the future time period is obtained. Next, multiple coding parameter combinations to be evaluated for the real-time communication network are obtained. Then, using the mirror model, the multiple coding parameter combinations to be evaluated are simulated based on the network state prediction result to obtain the simulation result. Finally, the target coding parameter combination is determined based on the simulation result. The target coding parameter combination is used for adaptive optimization of the real-time communication network.

[0056] In this way, by constructing a mirror model of the real-time communication network, accurate prediction of network status can be achieved. Based on the predicted network status, a virtual network environment is constructed within the mirror model. In this virtual environment, encoding, decoding, and transmission simulation tests are carried out on various candidate coding parameter combinations. Without interfering with real real-time communication services, the expected performance of each parameter combination is evaluated in advance, providing a reliable basis for selecting the optimal coding parameters. Combined with mirror model simulation, intelligent optimization of coding and transmission strategies is achieved, thereby improving the quality and stability of real-time video communication. Attached Figure Description

[0057] To more clearly illustrate the technical solutions in the embodiments or related technologies of this application, the accompanying drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0058] Figure 1 This is a flowchart illustrating an adaptive optimization method for a real-time communication network in one embodiment.

[0059] Figure 2 This is a schematic diagram of the architecture of a real-time communication network adaptive optimization system in one embodiment.

[0060] Figure 3 This is a structural block diagram of an adaptive optimization device for a real-time communication network in one embodiment;

[0061] Figure 4 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation

[0062] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0063] It should be noted that the terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this disclosure are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this disclosure described herein can be implemented in orders other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.

[0064] It should be noted that in WebRTC end-to-end real-time audio and video communication scenarios, traditional adaptive transmission schemes have the following drawbacks: 1. They rely on passive adjustment based on feedback information such as packet loss and latency, making it impossible to predict future network changes. Parameter adjustments are only performed after significant anomalies occur due to network deterioration, resulting in response latency exceeding 100ms. This makes it difficult to meet the requirements of low-latency real-time communication, causing video stuttering, screen tearing, and a degraded user experience. 2. End-to-end communication nodes can only obtain local link information and cannot perceive the overall network topology and global network status. They can only make decisions based on local information, making it difficult to obtain the globally optimal strategy. 3. Existing optimization modules are independent, with the encoding layer, transport layer, and application layer adjusting parameters separately. There is a lack of a unified cross-layer collaborative optimization mechanism, resulting in a single optimization strategy and an inability to achieve joint control of encoding and transmission.

[0065] Current improvement solutions still have limitations. For example, rule-based optimization relies on manually preset rules, has poor generalization ability, and is difficult to adapt to complex and ever-changing network environments. Single-point optimization only improves a single link, such as encoding or transmission, and cannot achieve end-to-end full-link optimization. All of the above solutions are passive response mechanisms, relying on historical feedback data to complete adjustments, unable to predict network fluctuations in advance, and encoding strategies and transmission control are independent of each other, lacking a cross-layer collaborative optimization mechanism between encoding and transmission.

[0066] To address this, this application proposes an adaptive optimization method for real-time communication networks. By constructing a mirror model of the real-time communication network, it achieves accurate prediction of network status. Combined with mirror model simulation, it realizes intelligent optimization of encoding and transmission strategies, thereby improving the quality and stability of real-time video communication and thus solving at least one of the technical problems mentioned in the above-mentioned technical background.

[0067] In one embodiment, such as Figure 1As shown, an adaptive optimization method for real-time communication networks is provided. This embodiment illustrates the application of this method to a terminal. It is understood that this method can also be applied to a server, and to a system including both a terminal and a server, and is implemented through interaction between the terminal and the server. The terminal can be, but is not limited to, various personal computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices can include smart speakers, smart TVs, smart air conditioners, smart vehicle devices, radar devices, etc. Portable wearable devices can include smartwatches, smart bracelets, head-mounted devices, etc. In this embodiment, the method includes the following steps:

[0068] Step 101: Determine the mirror model corresponding to the real-time communication network and obtain the historical state information corresponding to the real-time communication network.

[0069] The mirror model is a virtualized model corresponding to the real-time communication network. This mirror model is used to map the operating state of the real-time communication network in a virtual space, enabling subsequent network state prediction, policy simulation, and policy decision-making to be carried out in the virtual environment constructed by the mirror model.

[0070] Among them, the mirror model is a network digital twin model corresponding to the real-time communication network.

[0071] In one possible implementation, the mirror model may include at least one of the topology, link status, and node status of the real-time communication network.

[0072] In this context, the topology represents multiple nodes in a real-time communication network and the connections between them. Link status represents the operating parameters of communication links in the real-time communication network, including but not limited to at least one of bandwidth, latency, jitter, and packet loss rate. Node status represents the operating parameters of nodes in the real-time communication network, including but not limited to at least one of node load, processing capacity, and available resources.

[0073] In one possible implementation, the mirror model can use a graph structure to model the real-time communication network. Specifically, at least one of the terminal devices, edge nodes, switching devices, routing devices, and servers in the real-time communication network can be abstracted as nodes in the graph structure, and the communication connections between these nodes can be abstracted as edges in the graph structure. The nodes and edges in the graph structure can be associated with corresponding state information, so that network state prediction can be performed subsequently based on the graph structure.

[0074] In one possible implementation, the mirror model may include at least two of the following layers: a physical network layer, a virtual network layer, and a control execution layer. The physical network layer is used to collect state data from the real-time communication network; the virtual network layer is used to construct and maintain the mirror model based on the state data; and the control execution layer is used to generate control commands based on a subsequently determined target strategy and distribute these commands to at least one node in the real-time communication network.

[0075] In one possible implementation, an interaction interface is provided through a mirror model to enable interaction with external systems. The interaction interface includes at least one of a first interface, a second interface, and a third interface.

[0076] The first interface is used to provide the application layer with at least one of network status query, network status prediction result acquisition and control command issuance; the second interface is used to receive real-time status update data from the real-time communication network; and the third interface is used to perform policy simulation, performance prediction or optimization scheme verification in the mirror model.

[0077] Optionally, the first interface, the second interface, and the third interface are the northbound interface, the southbound interface, and the simulation interface, respectively.

[0078] In one possible implementation, the mirror model can be updated based on changes in the state of the real-time communication network. Specifically, changes in the topology, link states, and node states of the real-time communication network can be detected. If changes are detected, the mirror model is incrementally updated to maintain time synchronization between the mirror model and the real-time communication network.

[0079] Incremental updates can be performed only on the parts that have changed, without requiring a full reconstruction of the mirror model, thus reducing update overhead.

[0080] In one possible implementation, the mirror model and the real-time communication network can be synchronized in time. Specifically, a time synchronization protocol can be used to ensure that the time reference of the mirror model is consistent with the time reference of the real-time communication network, so that the subsequently acquired network state prediction results can correspond to the actual running time of the real-time communication network.

[0081] Historical state information is used to represent the state of the real-time communication network up to the current moment. In one possible implementation, the historical state information may include state data of the real-time communication network within a preset historical time window. The preset historical time window can be set according to actual needs, for example, it can be set to tens of seconds or several minutes. The historical state information may include at least one of bandwidth, latency, jitter, packet loss rate, and node load.

[0082] In one possible implementation, historical state information can be obtained from the mirror model, from the acquisition module of the real-time communication network, or from the state update data received from the southbound interface of the mirror model.

[0083] In one possible implementation, historical state information can include state data corresponding to multiple nodes. For example, for each node in a real-time communication network, at least one of the node's bandwidth, latency, jitter, packet loss rate, and node load within a preset historical time window can be obtained as the historical state information corresponding to that node.

[0084] Step 102: Based on the mirror model and historical state information, obtain the network state prediction results of the real-time communication network in the future time period.

[0085] In some embodiments, the topology of the real-time communication network can be determined based on the mirror model. The topology includes multiple nodes and the connection relationships between the nodes. Then, historical state information of the real-time communication network in historical time periods is collected. After that, feature extraction is performed on the historical state information to obtain the node features corresponding to multiple nodes. The node features and the topology are input into a pre-built network state prediction model to obtain the network state prediction result of the real-time communication network in future time periods.

[0086] Among them, the network state prediction result is used to represent the network state that the real-time communication network may experience in the future.

[0087] The future time period can be any time period after the current time.

[0088] In one possible implementation, the future time period may include at least one point in time within the next 500 milliseconds to 2 seconds.

[0089] In one possible implementation, the network state prediction results may include at least one of the following: available bandwidth for a future time period, end-to-end latency for a future time period, jitter for a future time period, packet loss rate for a future time period, and node load for a future time period.

[0090] In one possible implementation, the topology of the real-time communication network can be determined based on a mirror model. The topology includes multiple nodes and the connections between them. Each node can correspond to at least one of the following in the real-time communication network: terminal devices, edge nodes, switching devices, routing devices, and servers. The connections between the nodes can correspond to communication links in the real-time communication network.

[0091] Furthermore, feature extraction can be performed on historical state information to obtain node features corresponding to multiple nodes.

[0092] Node features are used to represent the state of the corresponding node. Node features may include at least one of the following: bandwidth features, latency features, jitter features, packet loss features, node load features, and time features.

[0093] In one possible implementation, bandwidth characteristics may include at least one of bandwidth mean, bandwidth variance, bandwidth variation trend, and bandwidth periodicity. Latency characteristics may include at least one of average latency, latency jitter, maximum latency, and minimum latency. Packet loss characteristics may include at least one of packet loss rate, packet loss interval, and packet loss burstiness. Node load characteristics may include at least one of CPU utilization, memory utilization, and network interface utilization. Time characteristics may include at least one of time period identifier, weekday identifier, weekend identifier, and holiday identifier.

[0094] Specifically, the extracted features can be normalized and used as node features. The node features and topology can then be input into a pre-built network state prediction model to obtain the network state prediction results for the real-time communication network in the future.

[0095] The network state prediction model may include at least one of the following: machine learning model, deep learning model, graph neural network model, and time series prediction model.

[0096] Optionally, a graph neural network can be used as the network state prediction model. A graph neural network can aggregate features among multiple nodes based on the topology to obtain aggregated features, and then determine the network state prediction result for the real-time communication network in future time periods based on these aggregated features.

[0097] In one possible implementation, a graph neural network may include an input layer, a graph convolutional layer, a temporal prediction layer, and an output layer. The input layer receives node features corresponding to multiple nodes, the graph convolutional layer aggregates inter-node features based on the topology, the temporal prediction layer performs temporal modeling on the aggregated features, and the output layer outputs the network state prediction result.

[0098] In one possible implementation, the graph convolutional layers can employ a graph attention network. The graph attention network can include multiple graph attention layers, each of which can include multiple attention heads. The temporal prediction layer can employ a Transformer architecture to support prediction outputs at multiple time steps.

[0099] In one possible implementation, the network state prediction model can output network state prediction results for multiple future time points. For example, the network state prediction model can output network state prediction results for at least one of the following time points: 500 milliseconds, 1 second, 1.5 seconds, and 2 seconds in the future.

[0100] In one possible implementation, the network state prediction model can be obtained through training. Training may include: using mean squared error as a loss function, using the Adam optimizer for parameter updates, using historical network state data as a training set, and using another portion of historical network state data as a validation set. The training set may include at least one of normal network state data and abnormal network state data.

[0101] For example, the network state prediction model can be trained using a deep learning framework. The loss function can be the mean squared error (MSE) to measure the difference between the predicted and the true values. The optimizer is the Adam optimizer with a learning rate of 0.0001. The training data uses network state data from the past 6 months as the training set, which includes normal network states and various abnormal scenarios. The validation data uses network state data from the most recent month as the validation set to evaluate the model's generalization ability.

[0102] Therefore, after inputting node features and topology into the pre-built network state prediction model, the graph convolutional layer of the network state prediction model can be used to aggregate the features between multiple nodes, the temporal prediction layer of the network state prediction model can be used to perform temporal modeling of the aggregated features, and the output layer of the network state prediction model can be used to output the network state prediction results of the real-time communication network in the future time period.

[0103] Step 103: Obtain multiple combinations of encoding parameters to be evaluated corresponding to the real-time communication network.

[0104] In some embodiments, at least one of the following is first obtained: network status parameters of the real-time communication network, video content characteristics of the video content carried by the real-time communication network, and user service quality requirements corresponding to the real-time communication network. Then, multiple combinations of encoding parameters to be evaluated are generated based on at least one of the network status parameters, video content characteristics, and user service quality requirements.

[0105] The combination of coding parameters to be evaluated is used for simulation using a mirror model in subsequent steps.

[0106] The network status parameters may include current bandwidth, current latency, current jitter, current packet loss rate, and network status prediction results.

[0107] The video content features may include resolution, frame rate, content complexity, and keyframe interval.

[0108] User service quality requirements may include maximum latency threshold, minimum bitrate requirement, maximum jitter threshold, and target image quality level.

[0109] The combination of encoding parameters may include at least one of the following parameters: quantization parameter, frame rate, resolution, image group size, and bitrate mode.

[0110] In one possible implementation, the quantization parameter ranges from 20 to 40, with a step size of 2. The frame rate ranges from 15 frames per second to 60 frames per second, with a step size of 5 frames per second. The resolution is selected from 480p, 720p, 1080p, and 4K. The group size ranges from 30 to 120 frames per second, with a step size of 10 frames per second. The bitrate mode is selected from constant bitrate, variable bitrate, and constrained variable bitrate.

[0111] In one possible implementation, the preset set of bitrate modes may include constant bitrate, variable bitrate, and constrained variable bitrate.

[0112] In one possible implementation, when generating multiple combinations of coding parameters to be evaluated, the bit rate range can be determined based on the predicted bandwidth in the network state prediction results, and multiple combinations of coding parameters to be evaluated can be generated based on the bit rate range.

[0113] In one possible implementation, multiple generated combinations of encoding parameters to be evaluated can be filtered based on the user's quality of service requirements, and combinations of encoding parameters that do not meet the user's quality of service requirements can be removed.

[0114] Step 104: Based on the network state prediction results, generate a virtual network environment in the mirror model.

[0115] In some embodiments, a virtual network environment is first generated in the mirror model based on the network state prediction results. In the virtual network environment, at least one of media encoding simulation, media transmission simulation, and media decoding simulation is performed on multiple combinations of encoding parameters to be evaluated to obtain the simulation results corresponding to each combination of encoding parameters to be evaluated. The simulation results corresponding to each combination of encoding parameters to be evaluated are used as the simulation results.

[0116] The simulation results are used to represent the expected performance of multiple combinations of coding parameters to be evaluated in the future network state represented by the network state prediction results.

[0117] In one possible implementation, generating a virtual network environment in the mirror model based on the network state prediction results may include: configuring virtual link parameters and virtual node parameters in the mirror model based on at least one of the predicted bandwidth, predicted latency, predicted jitter, and predicted packet loss rate in the network state prediction results to obtain the virtual network environment.

[0118] Step 105: In a virtual network environment, perform at least one of media encoding simulation, media transmission simulation, and media decoding simulation on multiple combinations of encoding parameters to be evaluated, and obtain the simulation results corresponding to each combination of encoding parameters to be evaluated.

[0119] In one possible implementation, media encoding simulation may include: encoding video content using a virtual encoder to obtain encoded bitstream data. Media transmission simulation may include: transmitting the encoded bitstream data in a virtual network environment and recording at least one of latency, packet loss, and jitter during transmission. Media decoding simulation may include: decoding the received bitstream data using a virtual decoder and measuring the quality of the decoded video.

[0120] Step 106: Use the simulation results corresponding to each combination of coding parameters to be evaluated as the simulation results.

[0121] The simulation results may include at least one of the following: media quality indicators, transmission delay indicators, bandwidth usage indicators, packet loss resistance indicators, jitter resistance indicators, and resource consumption indicators.

[0122] Specifically, a virtual network environment can be generated in the mirror model based on the network state prediction results. In the virtual network environment, at least one of media encoding simulation, media transmission simulation, and media decoding simulation is performed on multiple combinations of encoding parameters to be evaluated to obtain the simulation results corresponding to each combination of encoding parameters to be evaluated. Then, based on the simulation results corresponding to each combination of encoding parameters to be evaluated, at least one of the following indicators is determined as the simulation results: media quality indicator, transmission delay indicator, bandwidth usage indicator, packet loss resistance indicator, jitter resistance indicator, and resource consumption indicator.

[0123] Step 107: Determine the target coding parameter combination based on the simulation results. The target coding parameter combination is used for adaptive optimization of the real-time communication network.

[0124] Specifically, the target coding parameter combination can be determined from multiple combinations of coding parameters to be evaluated based on simulation results.

[0125] Among them, the target coding parameter combination is used for adaptive optimization of real-time communication networks.

[0126] In one possible implementation, the scores of multiple coding parameter combinations to be evaluated on a preset dimension can be determined first based on the simulation results. Then, based on the scores of the multiple coding parameter combinations to be evaluated on the preset dimension, the target coding parameter combination can be determined from the multiple coding parameter combinations to be evaluated.

[0127] The preset dimensions include at least two of the following: quality dimension, latency dimension, bandwidth dimension, and robustness dimension.

[0128] The quality dimension score can be determined based on at least one of peak signal-to-noise ratio, structural similarity, and mean opinion score. The latency dimension score can be determined based on the degree of matching between end-to-end latency and user service quality requirements. The bandwidth dimension score can be determined based on the degree of matching between bit rate and available bandwidth. The robustness dimension score can be determined based on tolerance to packet loss and jitter.

[0129] For example, the scores of multiple coding parameter combinations to be evaluated on a preset dimension can be weighted and summed to obtain the comprehensive scores corresponding to the multiple coding parameter combinations to be evaluated, and the coding parameter combinations whose comprehensive scores meet the preset conditions are determined as the target coding parameter combinations.

[0130] The preset conditions may include at least one of the following: the highest comprehensive score, the comprehensive score not lower than a preset threshold, and the comprehensive score meeting the user's service quality requirements.

[0131] It should be noted that the target encoding parameter combination can maximize video quality and transmission efficiency while meeting the user's quality of service requirements.

[0132] In one possible implementation, optimization operations for at least one of the terminal side, edge side, and cloud side can be determined based on network state prediction results, and these optimization operations can be executed.

[0133] In one possible implementation, the optimization operation includes at least one of the following: the control terminal side adjusts the encoding parameters based on the network state prediction results; the control edge side caches media data, switches transmission paths, or performs media transcoding based on the network state prediction results; and the control cloud performs resource scheduling, session migration, or route adjustment based on the network state prediction results.

[0134] In one possible implementation, the target coding parameter combination can be sent to at least one node in the real-time communication network, so that at least one node performs at least one of the following operations based on the target coding parameter combination: configuring coding side parameters; adjusting transmission control parameters; configuring error protection policies; and performing network traffic scheduling.

[0135] In one possible implementation, the target encoding parameter combination can be sent to at least one node via the WebRTC interface to update the encoder configuration, which includes at least one of maximum bitrate, minimum bitrate, and maximum frame rate.

[0136] In one possible implementation, at least one of the target delay and bandwidth prediction parameters of the congestion control algorithm can be adjusted while the target coding parameter combination is being issued.

[0137] The aforementioned adaptive optimization method for real-time communication networks first determines the current mirror model of the real-time communication network and obtains its historical state information. The mirror model is a virtualized model corresponding to the real-time communication network. Then, based on the mirror model and historical state information, the network state prediction result for the real-time communication network in the future time period is obtained. Next, multiple coding parameter combinations to be evaluated for the real-time communication network are obtained. Then, using the mirror model, the multiple coding parameter combinations to be evaluated are simulated based on the network state prediction result to obtain the simulation result. Finally, the target coding parameter combination is determined based on the simulation result. The target coding parameter combination is used for adaptive optimization of the real-time communication network.

[0138] In this way, by constructing a mirror model of the real-time communication network, accurate prediction of network status can be achieved. Based on the predicted network status, a virtual network environment is constructed within the mirror model. In this virtual environment, encoding, decoding, and transmission simulation tests are carried out on various candidate coding parameter combinations. Without interfering with real real-time communication services, the expected performance of each parameter combination is evaluated in advance, providing a reliable basis for selecting the optimal coding parameters. Combined with mirror model simulation, intelligent optimization of coding and transmission strategies is achieved, thereby improving the quality and stability of real-time video communication.

[0139] It should be understood that although the steps in the flowcharts of the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0140] Figure 2 This is a schematic diagram of the architecture of a real-time communication network adaptive optimization system provided in an embodiment of the present invention. Figure 2As shown, the system comprises, from top to bottom, a WebRTC terminal device, a deep learning network state prediction module, an adaptive coding strategy generation module, and an intelligent transmission control module. The WebRTC terminal device includes a video acquisition module, a device status monitoring module, and an audio acquisition module, used to collect video data, audio data, and terminal device status information. The deep learning network state prediction module includes a bandwidth predictor, a latency predictor, and a packet loss rate predictor, used to predict the bandwidth, latency, and packet loss rate of the real-time communication network in future time periods based on the data collected by the terminal device. The adaptive coding strategy generation module includes a PPO reinforcement learning decision engine, used to generate adaptive coding strategies based on network state prediction results and device status information. The intelligent transmission control module includes a dynamic congestion control unit, an adaptive retransmission unit, and an intelligent routing unit, used to adjust transmission control parameters according to the adaptive coding strategy to achieve adaptive optimization of the real-time communication network.

[0141] Based on the same inventive concept, this application also provides an adaptive optimization apparatus for a real-time communication network for implementing the adaptive optimization method for the real-time communication network described above. The solution provided by this apparatus is similar to the implementation described in the above method; therefore, the specific limitations in one or more embodiments of the adaptive optimization apparatus for real-time communication networks provided below can be found in the limitations of the adaptive optimization method for real-time communication networks described above, and will not be repeated here.

[0142] In one exemplary embodiment, such as Figure 3 As shown, an adaptive optimization device 300 for a real-time communication network is provided, comprising:

[0143] The first acquisition module 310 is used to determine the mirror model currently corresponding to the real-time communication network and acquire the historical state information currently corresponding to the real-time communication network, wherein the mirror model is a virtualization model corresponding to the real-time communication network.

[0144] The second acquisition module 320 is used to acquire the network state prediction result of the real-time communication network in a future time period based on the mirror model and the historical state information.

[0145] The third acquisition module 330 is used to acquire multiple combinations of encoding parameters to be evaluated corresponding to the real-time communication network;

[0146] The simulation module 340 is used to generate a virtual network environment in the mirror model based on the network state prediction result, and to perform at least one of media encoding simulation, media transmission simulation and media decoding simulation on the multiple coding parameter combinations to be evaluated in the virtual network environment, so as to obtain the simulation result corresponding to each coding parameter combination to be evaluated, and to use the simulation result corresponding to each coding parameter combination to be evaluated as the simulation result.

[0147] The determination module 350 is used to determine the target coding parameter combination based on the simulation results, wherein the target coding parameter combination is used for adaptive optimization of the real-time communication network.

[0148] Optionally, the second acquisition module includes:

[0149] The topology determination submodule is used to determine the topology of the real-time communication network based on the mirror model, wherein the topology includes multiple nodes and the connection relationships between the multiple nodes; the acquisition submodule is used to acquire historical state information of the real-time communication network in historical time periods; the feature extraction submodule is used to extract features from the historical state information to obtain node features corresponding to the multiple nodes; and the prediction submodule is used to input the node features and the topology into a pre-built network state prediction model to obtain the network state prediction result of the real-time communication network in future time periods.

[0150] Optionally, the third acquisition module includes:

[0151] The parameter acquisition submodule is used to acquire at least one of the network status parameters of the real-time communication network, the video content characteristics of the video content carried by the real-time communication network, and the user service quality requirements corresponding to the real-time communication network; the combination generation submodule is used to generate the multiple combinations of encoding parameters to be evaluated based on at least one of the network status parameters, the video content characteristics, and the user service quality requirements.

[0152] Optionally, the determining module includes:

[0153] The scoring submodule is used to determine the scores of the plurality of coding parameter combinations to be evaluated on preset dimensions based on the simulation results, wherein the preset dimensions include at least two of the following dimensions: quality dimension, latency dimension, bandwidth dimension, and robustness dimension; the target determination submodule is used to determine the target coding parameter combination from the plurality of coding parameter combinations to be evaluated based on the scores of the plurality of coding parameter combinations to be evaluated on the preset dimensions.

[0154] Optionally, the device may also include a mirror update module;

[0155] The mirror update module is used to detect whether the topology, link status, and node status of the real-time communication network have changed; when changes are detected in the topology, link status, and node status of the real-time communication network, the mirror model is incrementally updated to keep the mirror model synchronized with the real-time communication network in time.

[0156] Optionally, the device may also include a collaborative optimization module;

[0157] The collaborative optimization module is used to determine optimization operations for at least one of the terminal side, edge side, and cloud side based on the network state prediction results, and to execute the optimization operations for at least one of the terminal side, edge side, and cloud side; wherein, the optimization operations include at least one of the following: controlling the terminal side to adjust encoding parameters according to the network state prediction results; controlling the edge side to cache media data, switch transmission paths, or perform media transcoding according to the network state prediction results; and controlling the cloud side to perform resource scheduling, session migration, or route adjustment according to the network state prediction results.

[0158] Optionally, the device may also include a dispatch execution module;

[0159] The delivery execution module is used to deliver the target encoding parameter combination to at least one node in the real-time communication network, so that the at least one node performs at least one of the following operations based on the target encoding parameter combination: configuring encoding side parameters; adjusting transmission control parameters; configuring error protection strategies; and performing network traffic scheduling.

[0160] Optionally, the device may also include an interface providing module;

[0161] The interface providing module is used to provide an interaction interface through the mirror model. The interaction interface includes at least one of a first interface, a second interface, and a third interface. The first interface is used to provide at least one of network status query, network status prediction result acquisition, and control command issuance to the application layer. The second interface is used to receive real-time status update data from the real-time communication network. The third interface is used to perform strategy simulation, performance prediction, or optimization scheme verification in the mirror model.

[0162] Each module in the aforementioned adaptive optimization device for real-time communication networks can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the operations corresponding to each module.

[0163] In one exemplary embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 4 As shown, the computer device includes a processor, memory, input / output interfaces, a communication interface, a display unit, and an input device. The processor, memory, and input / output interfaces are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interfaces. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The input / output interfaces are used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements an adaptive optimization method for a real-time communication network. The display unit is used to form a visually visible image and can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.

[0164] Those skilled in the art will understand that Figure 4 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0165] In one embodiment, a computer device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above method embodiments.

[0166] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the steps in the above method embodiments.

[0167] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.

[0168] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.

[0169] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments described above. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0170] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0171] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. An adaptive optimization method for real-time communication networks, characterized in that, include: Determine the mirror model corresponding to the real-time communication network and obtain the historical state information corresponding to the real-time communication network, wherein the mirror model is a virtualization model corresponding to the real-time communication network; Based on the mirror model and the historical state information, the network state prediction result of the real-time communication network in the future time period is obtained; Obtain multiple combinations of encoding parameters to be evaluated corresponding to the real-time communication network; Based on the network state prediction results, a virtual network environment is generated in the mirror model; In the virtual network environment, at least one of media encoding simulation, media transmission simulation, and media decoding simulation is performed on the plurality of encoding parameter combinations to be evaluated, so as to obtain the simulation result corresponding to each encoding parameter combination to be evaluated; The simulation results corresponding to each combination of the coding parameters to be evaluated are used as the simulation results; The target coding parameter combination is determined based on the simulation results, wherein the target coding parameter combination is used for adaptive optimization of the real-time communication network.

2. The method according to claim 1, characterized in that, The step of obtaining the network state prediction result of the real-time communication network for a future time period based on the mirror model and the historical state information includes: Based on the mirror model, the topology of the real-time communication network is determined, and the topology includes multiple nodes and the connection relationships between the multiple nodes; Collect historical state information of the real-time communication network during historical time periods; Feature extraction is performed on the historical state information to obtain the node features corresponding to the multiple nodes; By inputting the node features and the topology into a pre-built network state prediction model, the network state prediction results of the real-time communication network in future time periods are obtained.

3. The method according to claim 1, characterized in that, The step of obtaining multiple combinations of encoding parameters to be evaluated corresponding to the real-time communication network includes: Obtain at least one of the following: network status parameters of the real-time communication network, video content characteristics of the video content carried by the real-time communication network, and user service quality requirements corresponding to the real-time communication network. The plurality of encoding parameter combinations to be evaluated are generated based on at least one of the network state parameters, the video content features, and the user service quality requirements.

4. The method according to claim 1, characterized in that, The step of determining the target coding parameter combination based on the simulation results includes: Based on the simulation results, the scores of the multiple combinations of coding parameters to be evaluated are determined on preset dimensions, wherein the preset dimensions include at least two of the following: quality dimension, latency dimension, bandwidth dimension, and robustness dimension. The target coding parameter combination is determined from the plurality of coding parameter combinations to be evaluated based on their scores on a preset dimension.

5. The method according to claim 1, characterized in that, Also includes: Detect whether the topology, link status, and node status of the real-time communication network have changed; When changes are detected in the topology, link status, and node status of the real-time communication network, the mirror model is incrementally updated to keep the mirror model synchronized with the real-time communication network in time.

6. The method according to claim 1, characterized in that, Also includes: Based on the network state prediction results, determine the optimized operation for at least one of the terminal side, edge side, and cloud side; Perform optimization operations on at least one of the terminal side, edge side, and cloud; The optimization operation includes at least one of the following: The control terminal adjusts the encoding parameters based on the network state prediction results. The control edge can cache media data, switch transmission paths, or perform media transcoding based on the network state prediction results. The cloud control system performs resource scheduling, session migration, or route adjustment based on the network status prediction results.

7. The method according to any one of claims 1-6, characterized in that, Also includes: The target encoding parameter combination is sent to at least one node in the real-time communication network, so that the at least one node performs at least one of the following operations based on the target encoding parameter combination: Configure encoding side parameters; Adjust transmission control parameters; Configure error protection policies; Perform network traffic scheduling.

8. The method according to any one of claims 1-6, characterized in that, Also includes: The mirror model provides an interaction interface, which includes at least one of a first interface, a second interface, and a third interface. The first interface is used to provide the application layer with at least one of network status query, network status prediction result acquisition, and control command issuance; The second interface is used to receive real-time status update data from the real-time communication network; The third interface is used to perform strategy simulation, performance prediction, or optimization scheme verification in the mirror model.

9. An adaptive optimization device for a real-time communication network, characterized in that, include: The first acquisition module is used to determine the current mirror model corresponding to the real-time communication network and acquire the current historical state information of the real-time communication network, wherein the mirror model is a virtualization model corresponding to the real-time communication network. The second acquisition module is used to acquire the network state prediction result of the real-time communication network in a future time period based on the mirror model and the historical state information. The third acquisition module is used to acquire multiple combinations of encoding parameters to be evaluated corresponding to the real-time communication network; The simulation module is used to generate a virtual network environment in the mirror model based on the network state prediction results; in the virtual network environment, at least one of media encoding simulation, media transmission simulation, and media decoding simulation is performed on the multiple combinations of encoding parameters to be evaluated to obtain simulation results corresponding to each combination of encoding parameters to be evaluated; and the simulation results corresponding to each combination of encoding parameters to be evaluated are used as simulation results. The determination module is used to determine the target coding parameter combination based on the simulation results, wherein the target coding parameter combination is used for adaptive optimization of the real-time communication network.

10. The apparatus according to claim 9, characterized in that, The second acquisition module is specifically used for: Based on the mirror model, the topology of the real-time communication network is determined, and the topology includes multiple nodes and the connection relationships between the multiple nodes; Collect historical state information of the real-time communication network during historical time periods; Feature extraction is performed on the historical state information to obtain the node features corresponding to the multiple nodes; By inputting the node features and the topology into a pre-built network state prediction model, the network state prediction results of the real-time communication network in future time periods are obtained.