Method and device for improving WebRTC communication stability of Internet of Vehicles and electronic equipment
Through network quality prediction and dynamic adjustment of WebRTC parameters and multi-path utilization, the stability and delay problems of WebRTC communication in the Internet of Vehicles environment are solved, and stable and efficient communication under high-speed mobile and unstable networks are achieved.
Patent Information
- Application Number
- CN202410922878.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-10
- Publication Date
- 2024-10-11
AI Technical Summary
In the Internet of Vehicles environment, WebRTC communication has problems of communication interruption, delay and low efficiency under high-speed movement and unstable network conditions. The existing technology lacks effective network prediction, parameter optimization and multi-path utilization capabilities.
By obtaining vehicle location, network usage and external environment information, use the network quality prediction model to predict future network quality, and dynamically adjust WebRTC parameters and data transmission paths, including cellular networks, Wi-Fi and satellite communications, monitor and switch paths to ensure Communication stability.
It achieves stable and low-latency WebRTC communication under high-speed movement and unstable network conditions, improves the continuity and efficiency of communication, and adapts to complex driving environments and network changes.
Smart Images

Figure CN118764468A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of Internet of Vehicles, and in particular to a method, device and electronic device for improving the stability of WebRTC communication in Internet of Vehicles. Background Art
[0002] With the rapid development of Internet of Vehicles technology, real-time communication plays an increasingly important role in intelligent transportation systems. Web Real-Time Communication (WebRTC) technology, as a technology that supports web browsers for real-time voice calls, video chats, and peer-to-peer sharing, has been widely used in vehicle communication systems. It allows direct end-to-end communication without the need for additional plug-ins or applications, which greatly promotes the development and popularization of audio and video applications.
[0003] However, in the Internet of Vehicles environment, especially in high-speed moving vehicles, WebRTC faces a series of challenges. First, the frequent network switching caused by high-speed movement of vehicles will cause communication interruptions and unstable connections; second, the insufficient network coverage in remote areas or areas with imperfect infrastructure further exacerbates this problem. These challenges have put forward higher requirements for the stability and latency of real-time communication.
[0004] Although WebRTC technology provides a foundation for Internet of Vehicles communications, it still has obvious shortcomings when dealing with high-speed mobile scenarios and unstable network environments. Current solutions mostly rely on static network conditions and limited optimization strategies, and lack the ability to dynamically adapt to network changes. There are the following problems:
[0005] Insufficient network prediction: Existing technologies lack an effective mechanism to predict the network quality at the vehicle’s location, including upcoming signal weaknesses and potential communication disconnection areas;
[0006] Parameter optimization limitations: WebRTC parameter adjustment strategies are not flexible enough and cannot be dynamically optimized according to real-time network status, such as encoding bit rate and packet size, which affects the efficiency and stability of data transmission;
[0007] Single network path dependence: Relying on a single network access point for data transmission, failing to fully utilize resources in a multi-network environment, such as the complementary advantages of cellular networks and Wi-Fi, resulting in the inability to ensure communication continuity when network quality degrades;
[0008] Insufficient environmental perception: Existing solutions fail to fully consider the role of the vehicle’s own sensor data and external environmental information in network selection and data transmission optimization, and fail to provide the communication strategy that best suits the current driving conditions.
[0009] In summary, in the Internet of Vehicles environment, how to provide a more stable and low-latency WebRTC communication solution for high-speed movement and unstable network conditions has become a technical problem that needs to be solved urgently. Summary of the invention
[0010] In view of this, the purpose of the present invention is to provide a method, device and electronic device for improving the stability of WebRTC communication in the Internet of Vehicles, so as to alleviate the technical problem that the prior art cannot provide a stable and low-latency WebRTC communication solution for high-speed movement and unstable network conditions.
[0011] In a first aspect, an embodiment of the present invention provides a method for improving the stability of WebRTC communication in an Internet of Vehicles, which is applied to a WebRTC communication system. The method includes:
[0012] Acquire the current location data, network usage and external environment information of the vehicle during driving, and use the network quality prediction model to predict the network quality of the current location data, the network usage and the external environment information, so as to obtain the network quality that the vehicle will encounter at a preset time in the future and the network quality of each data transmission path;
[0013] Dynamically adjust WebRTC parameters based on the network quality that the vehicle will encounter at a preset time in the future;
[0014] According to the network quality of each of the data transmission paths and the current transmission task, a target data transmission path is determined in the data transmission path, and data transmission is performed through the target data transmission path, wherein the target data transmission path includes at least one of the following: a cellular network transmission path, a Wi-Fi transmission path, and a satellite communication path;
[0015] monitoring the network quality of the target data transmission path, and if the network quality of the target data transmission path drops to a preset network quality threshold, determining a backup data transmission path from the data transmission path, and performing data transmission through the backup data transmission path, wherein the backup data transmission path is a data transmission path different from the target data transmission path among the cellular network transmission path, the Wi-Fi transmission path, and the satellite communication path;
[0016] Acquire vehicle status data and the external environment information during vehicle driving, and determine whether there are factors affecting network quality according to the vehicle status data and the external environment information, wherein the factors affecting network quality include: the vehicle entering a high-speed driving state, the vehicle making a sharp turn, congestion on the current road, and weather factors affecting network quality;
[0017] Adjust WebRTC parameters and data transmission paths again based on whether there are factors affecting network quality.
[0018] Furthermore, the network quality that the vehicle will encounter at a preset time in the future includes at least: signal strength, expected delay, and connection stability; dynamically adjusting WebRTC parameters according to the network quality that the vehicle will encounter at a preset time in the future includes:
[0019] Get the correspondence between signal strength range, expected delay range, and connection stability range and WebRTC parameters;
[0020] The target signal strength range to which the signal strength belongs, the target expected delay range to which the expected delay belongs, and the target connection stability range to which the connection stability belongs are determined according to the corresponding relationship, and the corresponding target WebRTC parameters are determined according to the target signal strength range, the target expected delay range, and the target connection stability range, and then the WebRTC parameters are adjusted according to the target WebRTC parameters, wherein the WebRTC parameters include: encoding bit rate, data packet size, and number of retransmissions.
[0021] Further, according to the network quality of each of the data transmission paths and the current transmission task, determining a target data transmission path in the data transmission paths includes:
[0022] Determining an optimal data transmission path among the data transmission paths according to the network quality of each of the data transmission paths;
[0023] Determining whether the optimal data transmission path satisfies the current transmission task;
[0024] If satisfied, the optimal data transmission path is used as the target data transmission path;
[0025] If not, the optimal data transmission path and the suboptimal data transmission path are used as the target data transmission path, wherein the network quality of the suboptimal data transmission path is worse than the network quality of the optimal data transmission path.
[0026] Further, the vehicle status data includes: driving speed, acceleration, direction; the external environment information includes: traffic flow information, weather conditions; determining whether there are factors affecting network quality based on the vehicle status data and the external environment information includes:
[0027] determining whether the vehicle enters a high-speed driving state according to the driving speed and the acceleration;
[0028] determining whether the vehicle is making a sharp turn based on the driving speed, the acceleration and the direction;
[0029] Determining whether there is congestion on the current road according to the traffic flow information;
[0030] Determine whether there are weather factors that affect network quality according to the weather conditions, wherein the weather factors that affect network quality include: heavy rain and haze.
[0031] Furthermore, WebRTC parameters are adjusted again based on whether there are factors that affect network quality, including:
[0032] If the vehicle enters a high-speed driving state or makes a sharp turn, the encoding bit rate in the WebRTC parameter is reduced, and / or the data packet size in the WebRTC parameter is reduced, and / or the number of retransmissions in the WebRTC parameter is increased;
[0033] If the current road is congested, increase the encoding bit rate in the WebRTC parameters;
[0034] If there are weather factors that affect the network quality, the data packet size in the WebRTC parameters is reduced and the number of retransmissions in the WebRTC parameters is increased.
[0035] Furthermore, the data transmission path is adjusted again according to whether there are factors that affect the network quality, including:
[0036] If the current road is congested, the cellular network transmission path and / or the Wi-Fi transmission path are used as the target data transmission path;
[0037] If the vehicle enters a high-speed driving state or makes a sharp turn, the cellular network transmission path is used as the target data transmission path.
[0038] Furthermore, the method further comprises:
[0039] Obtaining vehicle location data samples, network usage data samples, and external environment information samples;
[0040] Performing data preprocessing on the vehicle position data sample, the network usage data sample and the external environment information sample to obtain processed vehicle position data samples, processed network usage data samples and processed external environment information samples;
[0041] The processed vehicle position data samples, the processed network usage data samples and the processed external environment information samples are used to train the original network quality prediction model to obtain the network quality prediction model.
[0042] In a second aspect, an embodiment of the present invention further provides a device for improving the stability of WebRTC communication in an Internet of Vehicles, which is applied to a WebRTC communication system, and the device includes:
[0043] A network quality prediction unit, used to obtain current position data, network usage and external environment information during the driving process of the vehicle, and use a network quality prediction model to predict the network quality of the current position data, the network usage and the external environment information, so as to obtain the network quality that the vehicle will encounter at a preset time in the future and the network quality of each data transmission path;
[0044] A first dynamic adjustment unit, configured to dynamically adjust WebRTC parameters according to network quality that the vehicle will encounter at a preset time in the future;
[0045] A first determining unit, configured to determine a target data transmission path in the data transmission path according to the network quality of each of the data transmission paths and a current transmission task, and perform data transmission through the target data transmission path, wherein the target data transmission path includes at least one of the following: a cellular network transmission path, a Wi-Fi transmission path, and a satellite communication path;
[0046] a second determining unit, configured to monitor the network quality of the target data transmission path, and if the network quality of the target data transmission path drops to a preset network quality threshold, determine a backup data transmission path from the data transmission path, and perform data transmission through the backup data transmission path, wherein the backup data transmission path is a data transmission path different from the target data transmission path among the cellular network transmission path, the Wi-Fi transmission path, and the satellite communication path;
[0047] a third determination unit, configured to obtain vehicle state data and the external environment information during vehicle driving, and determine whether there are factors affecting network quality according to the vehicle state data and the external environment information, wherein the factors affecting network quality include: the vehicle entering a high-speed driving state, the vehicle making a sharp turn, congestion on the current road, and weather factors affecting network quality;
[0048] The second dynamic adjustment unit is used to adjust the WebRTC parameters and the data transmission path again according to whether there are factors affecting the network quality.
[0049] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any one of the methods described in the first aspect when executing the computer program.
[0050] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to execute any method described in the first aspect above.
[0051] In an embodiment of the present invention, a method for improving the stability of WebRTC communication in an Internet of Vehicles is provided, which is applied to a WebRTC communication system. The method comprises: obtaining current location data, network usage and external environment information during the driving process of the vehicle, and using a network quality prediction model to predict the network quality of the current location data, network usage and external environment information, so as to obtain the network quality that the vehicle will encounter at a preset time in the future and the network quality of each data transmission path; dynamically adjusting WebRTC parameters according to the network quality that the vehicle will encounter at a preset time in the future; determining a target data transmission path in the data transmission path according to the network quality of each data transmission path and the current transmission task, and performing data transmission through the target data transmission path, wherein the target data transmission path comprises at least one of the following: a cellular network transmission path, a Wi-Fi transmission path and a satellite communication path; monitoring the network quality of the target data transmission path, if the network quality of the target data transmission path drops to a preset network quality threshold, determining an alternative data transmission path from the data transmission path, and transmitting data through the alternative data transmission path, wherein the alternative data transmission path is a data transmission path different from the target data transmission path among the cellular network transmission path, the Wi-Fi transmission path, and the satellite communication path; obtaining vehicle status data and external environment information during vehicle driving, and determining whether there are factors affecting the network quality based on the vehicle status data and the external environment information, wherein the factors affecting the network quality include: the vehicle entering a high-speed driving state, the vehicle making a sharp turn, congestion on the current road, and weather factors affecting the network quality; adjusting the WebRTC parameters and the data transmission path again based on whether there are factors affecting the network quality. From the above description, it can be seen that in the method for improving the stability of WebRTC communication in the Internet of Vehicles of the present invention, WebRTC parameters and data transmission paths are optimized by integrating network quality prediction models, dynamically adjusting WebRTC parameters, data transmission mechanisms of multiple data transmission paths, and vehicle and environmental perception, thereby achieving comprehensive optimization of WebRTC communication in the Internet of Vehicles environment, and providing a more stable and low-latency WebRTC communication solution for high-speed movement and unstable network conditions, thereby alleviating the technical problem that the prior art cannot provide a stable and low-latency WebRTC communication solution for high-speed movement and unstable network conditions. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0053] Figure 1 A flowchart of a method for improving the stability of WebRTC communication in an Internet of Vehicles provided by an embodiment of the present invention;
[0054] Figure 2 A schematic diagram of a device for improving the stability of WebRTC communication in an Internet of Vehicles provided by an embodiment of the present invention;
[0055] Figure 3 A schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0056] The technical solution of the present invention will be clearly and completely described below in conjunction with the embodiments. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0057] Traditional technologies cannot provide stable and low-latency WebRTC communication solutions for high-speed mobile and unstable network conditions.
[0058] Based on this, in the method for improving the stability of WebRTC communication in the Internet of Vehicles of the present invention, WebRTC parameters and data transmission paths are optimized by integrating network quality prediction models, dynamically adjusting WebRTC parameters, data transmission mechanisms of multiple data transmission paths, and vehicle and environmental perception, thereby achieving comprehensive optimization of WebRTC communication in the Internet of Vehicles environment, and providing a more stable and low-latency WebRTC communication solution for high-speed movement and unstable network conditions.
[0059] To facilitate understanding of this embodiment, a method for improving the stability of WebRTC communication in an Internet of Vehicles disclosed in an embodiment of the present invention is first introduced in detail.
[0060] Embodiment 1:
[0061] According to an embodiment of the present invention, an embodiment of a method for improving the stability of WebRTC communication in an Internet of Vehicles is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in an order different from that shown here.
[0062] Figure 1 is a flow chart of a method for improving the stability of WebRTC communication in an Internet of Vehicles according to an embodiment of the present invention. Figure 1 As shown, the method comprises the following steps:
[0063] Step S102, obtaining the current location data, network usage and external environment information of the vehicle during driving, and using the network quality prediction model to predict the network quality of the current location data, network usage and external environment information, to obtain the network quality that the vehicle will encounter at a preset time in the future and the network quality of each data transmission path;
[0064] In an embodiment of the present invention, the method for improving the stability of WebRTC communication in the Internet of Vehicles can be applied to the WebRTC communication system. During the driving of the vehicle, the vehicle's location data (i.e., the current location data of the vehicle during driving), network usage and external environment information are continuously collected. The above network usage can specifically include: signal strength, network type, connection speed, delay, connection stability, and the above external environment information can specifically include: traffic flow information (such as congestion, smoothness), weather conditions (such as sunny days, rainy days, haze, etc.) and surrounding environment (such as cities, suburbs, mountains).
[0065] The current position data, network usage and external environment information of the above-mentioned vehicle during driving are input into the network quality prediction model. The network quality prediction model predicts the network quality based on the above-mentioned data input in real time, and obtains the network quality that the vehicle will encounter at a preset time in the future (that is, the network quality that is about to be encountered, including: signal strength, expected delay and connection stability) and the network quality of each data transmission path.
[0066] The above-mentioned data transmission paths may specifically include: cellular network transmission path, Wi-Fi transmission path and satellite communication path. During actual driving, the data transmission paths are determined based on all the network access points currently available to the vehicle. If the network access points are cellular network, Wi-Fi and satellite communication, the corresponding data transmission paths are cellular network transmission path, Wi-Fi transmission path and satellite communication path.
[0067] The above-mentioned cellular networks include 4G and 5G networks; the above-mentioned Wi-Fi refers to public Wi-Fi hotspots or in-vehicle Wi-Fi systems near the vehicle; the above-mentioned satellite communications are used as a reliable alternative in remote areas or areas with poor network coverage.
[0068] The network quality of each of the above data transmission paths specifically includes: connection speed, latency, and connection stability of each data transmission path. Connection speed refers to the upload and download speed of each data transmission path; latency refers to the delay time (ping value) of each data transmission path; connection stability refers to the signal strength fluctuation, disconnection frequency, etc. of each data transmission path.
[0069] Step S104, dynamically adjusting WebRTC parameters according to the network quality that the vehicle will encounter at a preset time in the future;
[0070] Specifically, for example, when it is predicted that the signal strength will become weak, the system can reduce the video encoding bit rate in advance to reduce the amount of data transmission, thereby ensuring the stability of the video call;
[0071] When an increase in expected network delay is predicted, the system can adjust the size of the data packet and the number of retransmissions to reduce the impact of delay on communication quality.
[0072] In this way, the system can dynamically adjust communication parameters according to real-time changing network conditions while the vehicle is driving, ensuring the stability and low latency of WebRTC communication.
[0073] This process is the process of dynamic WebRTC parameter adjustment. According to the output of the network quality prediction model, the key communication parameters of WebRTC are automatically adjusted, including but not limited to: encoding bit rate, data packet size and number of retransmissions (these parameters are sensitive to changes in network quality, so they are used as key communication parameters of WebRTC, i.e., WebRTC parameters in the present invention). In this way, even in poor network conditions, communication stability and low latency can be maintained.
[0074] Coding bit rate: refers to the transmission rate of audio and video data after encoding. The higher the bit rate, the better the audio and video quality, but the larger the bandwidth required. Too low a bit rate may result in blurry images and reduced sound quality.
[0075] Packet size: refers to the size of each packet. Larger packets can improve transmission efficiency, but are more likely to be lost when the network is not in good condition. Smaller packets have lower transmission efficiency, but are more likely to be successfully transmitted in an unstable network environment.
[0076] Retransmission times: refers to the retransmission mechanism after a data packet is lost. Too many retransmission times will increase latency, but can improve the reliability of data transmission.
[0077] Step S106, determining a target data transmission path in the data transmission path according to the network quality of each data transmission path and the current transmission task, and performing data transmission through the target data transmission path, wherein the target data transmission path includes at least one of the following: a cellular network transmission path, a Wi-Fi transmission path, and a satellite communication path;
[0078] Specifically, the present invention provides a multi-path data transmission mechanism that allows WebRTC communication to transmit data simultaneously through multiple network access points (e.g., cellular network, Wi-Fi, satellite communication, etc.). This mechanism improves the reliability and stability of communication by intelligently selecting the best data transmission path or using multiple data transmission paths simultaneously to share data flow.
[0079] Step S108, monitoring the network quality of the target data transmission path, and if the network quality of the target data transmission path drops to a preset network quality threshold, determining a backup data transmission path from the data transmission path, and performing data transmission through the backup data transmission path, wherein the backup data transmission path is a data transmission path different from the target data transmission path among a cellular network transmission path, a Wi-Fi transmission path, and a satellite communication path;
[0080] Specifically, during the communication process, if the target data transmission path fails, it will automatically switch to the backup data transmission path to ensure the continuity of communication. In specific implementation, the network quality of the target data transmission path (including: connection speed, delay, connection stability) is continuously monitored. If the network quality of the target data transmission path drops to a preset network quality threshold (for example, a sudden increase in delay, frequent disconnection, etc., which can be determined in the form of a preset network quality threshold), the fault switching mechanism will be activated and a backup data transmission path with better quality will be selected for switching to ensure uninterrupted data transmission.
[0081] Step S110, obtaining vehicle state data and external environment information during vehicle driving, and determining whether there are factors affecting network quality according to the vehicle state data and external environment information, wherein the factors affecting network quality include: the vehicle entering a high-speed driving state, the vehicle making a sharp turn, congestion on the current road, and weather factors affecting network quality;
[0082] Specifically, the WebRTC communication system of the present invention integrates the vehicle's own sensor data (i.e., vehicle status data during vehicle travel, such as speed, direction, acceleration, etc.) and external environmental information (such as traffic conditions and weather information) to further optimize the WebRTC communication strategy. Using this information, the system can more accurately predict and adapt to upcoming network conditions and dynamically select the most appropriate WebRTC parameters and data transmission paths.
[0083] Step S112: Adjust the WebRTC parameters and data transmission path again according to whether there are factors that affect the network quality.
[0084] In an embodiment of the present invention, a method for improving the stability of WebRTC communication in an Internet of Vehicles is provided, which is applied to a WebRTC communication system. The method comprises: obtaining current location data, network usage and external environment information during the driving process of the vehicle, and using a network quality prediction model to predict the network quality of the current location data, network usage and external environment information, so as to obtain the network quality that the vehicle will encounter at a preset time in the future and the network quality of each data transmission path; dynamically adjusting WebRTC parameters according to the network quality that the vehicle will encounter at a preset time in the future; determining a target data transmission path in the data transmission path according to the network quality of each data transmission path and the current transmission task, and performing data transmission through the target data transmission path, wherein the target data transmission path comprises at least one of the following: a cellular network transmission path, a Wi-Fi transmission path and a satellite communication path; monitoring the network quality of the target data transmission path, if the network quality of the target data transmission path drops to a preset network quality threshold, determining an alternative data transmission path from the data transmission path, and transmitting data through the alternative data transmission path, wherein the alternative data transmission path is a data transmission path different from the target data transmission path among the cellular network transmission path, the Wi-Fi transmission path, and the satellite communication path; obtaining vehicle status data and external environment information during vehicle driving, and determining whether there are factors affecting the network quality based on the vehicle status data and the external environment information, wherein the factors affecting the network quality include: the vehicle entering a high-speed driving state, the vehicle making a sharp turn, congestion on the current road, and weather factors affecting the network quality; adjusting the WebRTC parameters and the data transmission path again based on whether there are factors affecting the network quality. From the above description, it can be seen that in the method for improving the stability of WebRTC communication in the Internet of Vehicles of the present invention, WebRTC parameters and data transmission paths are optimized by integrating network quality prediction models, dynamically adjusting WebRTC parameters, data transmission mechanisms of multiple data transmission paths, and vehicle and environmental perception, thereby achieving comprehensive optimization of WebRTC communication in the Internet of Vehicles environment, and providing a more stable and low-latency WebRTC communication solution for high-speed movement and unstable network conditions, thereby alleviating the technical problem that the prior art cannot provide a stable and low-latency WebRTC communication solution for high-speed movement and unstable network conditions.
[0085] The above content briefly introduces the method for improving the stability of WebRTC communication in the Internet of Vehicles of the present invention. The specific contents involved are described in detail below.
[0086] In an optional embodiment of the present invention, the network quality that the vehicle will encounter at a preset time in the future includes at least: signal strength, expected delay, and connection stability; dynamically adjusting the WebRTC parameters according to the network quality that the vehicle will encounter at a preset time in the future specifically includes the following steps:
[0087] (1) Obtain the correspondence between the signal strength range, expected delay range, and connection stability range and WebRTC parameters;
[0088] Specifically, the above correspondence is set through experience or a large number of experiments. Pre-formulate corresponding parameter adjustment strategies (such as the above correspondence). In short, reduce the bit rate before the network conditions are expected to deteriorate, or increase the packet size when the network is stable to improve transmission efficiency. Dynamically adjust WebRTC parameters based on the predicted results of the network quality that the vehicle will encounter at a preset time in the future and the above correspondence to maintain communication stability and reduce latency.
[0089] (2) Determine a target signal strength range to which the signal strength belongs, a target expected delay range to which the expected delay belongs, and a target connection stability range to which the connection stability belongs according to the corresponding relationship, and determine corresponding target WebRTC parameters according to the target signal strength range, the target expected delay range, and the target connection stability range, and then adjust the WebRTC parameters according to the target WebRTC parameters, wherein the WebRTC parameters include: encoding bit rate, data packet size, and number of retransmissions.
[0090] The principles followed by the above parameter adjustment strategy are:
[0091] When network conditions are expected to deteriorate:
[0092] Lower the encoding bit rate: Reduce the amount of data transmitted, reduce the network load, and ensure that audio and video communications remain stable even when the signal is weak.
[0093] Reduce data packet size: Improve data packet transmission success rate, reduce packet loss, and maintain communication quality.
[0094] Increase the number of retransmissions: When the network fluctuates greatly, multiple retransmissions are performed to ensure that data arrives smoothly.
[0095] When network conditions are expected to improve:
[0096] Increase the encoding bit rate: Improve audio and video quality and provide a better user experience.
[0097] Increase the packet size: improve transmission efficiency and reduce packet overhead.
[0098] Reduce the number of retransmissions: When the network is stable, reduce unnecessary retransmission operations and reduce latency.
[0099] Dynamic parameter adjustment: When it is predicted that the signal strength will weaken and the delay will increase, the system automatically reduces the video encoding bit rate, reduces the data packet size, and increases the number of retransmissions; when it is predicted that the network conditions will improve, the system automatically increases the video encoding bit rate, increases the data packet size, and reduces the number of retransmissions.
[0100] The following example illustrates the process of dynamically adjusting WebRTC parameters:
[0101] Assume that a car is traveling from the city center to the suburbs. The network quality prediction and WebRTC parameter adjustment process are as follows:
[0102] Determine the WebRTC parameters that need to be adjusted: encoding bit rate, packet size, and number of retransmissions;
[0103] Strategy Development:
[0104] Before network conditions deteriorate (for example, when moving from a city to a suburb), develop strategies to reduce encoding bit rates, packet sizes, and increase retransmission times.
[0105] Before network conditions improve (for example, when returning to the city from the suburbs), pre-plan strategies to increase the encoding bit rate, increase the packet size, and reduce the number of retransmissions.
[0106] Dynamic Adjustment:
[0107] Network conditions are expected to deteriorate: As the vehicle moves from the city to the suburbs, the network quality prediction model predicts that signal strength will weaken and latency will increase. The system automatically makes the following adjustments:
[0108] Reduce the video encoding bitrate from 5000kbps to 3000kbps;
[0109] Reduce the packet size from 1500 bytes to 1000 bytes;
[0110] Increase the number of retransmissions from 2 to 4.
[0111] Network conditions are expected to improve: When the vehicle returns from the suburbs to the city, the network quality prediction model predicts that signal strength will increase and latency will decrease. The system automatically performs the following adjustments:
[0112] Increase the video encoding bitrate from 3000kbps to 5000kbps;
[0113] Increase the packet size from 1000 to 1500 bytes;
[0114] Reduce the number of retransmissions from 4 to 2.
[0115] Through this dynamic adjustment algorithm, the system can automatically optimize WebRTC communication parameters according to real-time changes in network conditions, ensuring a stable, low-latency communication experience under any network conditions.
[0116] In an optional embodiment of the present invention, determining a target data transmission path in the data transmission path according to the network quality of each data transmission path and the current transmission task specifically includes the following steps:
[0117] (1) determining an optimal data transmission path among the data transmission paths according to the network quality of each data transmission path;
[0118] (2) Determine whether the optimal data transmission path meets the current transmission task;
[0119] (3) If satisfied, the optimal data transmission path is used as the target data transmission path;
[0120] (4) If not, the optimal data transmission path and the second-best data transmission path are used as the target data transmission path, wherein the network quality of the second-best data transmission path is worse than the network quality of the optimal data transmission path.
[0121] Specifically, the system can intelligently select the best data transmission path or use multiple data transmission paths simultaneously to balance the load and increase redundancy.
[0122] Single path selection: If a data transmission path performs best in terms of connection speed, latency, and connection stability, the system will select this data transmission path (i.e., the target data transmission path) as the main transmission channel.
[0123] Multi-path transmission: If no single data transmission path can meet the requirements, the system can use multiple data transmission paths at the same time to distribute data streams to different network channels. For example:
[0124] The video data is transmitted via Wi-Fi, because Wi-Fi has fast speed and low latency under current circumstances.
[0125] The audio data is transmitted through the cellular network because the audio data volume is small and the tolerance to delay is higher.
[0126] Use satellite communications as a backup data transmission path in case there are issues with Wi-Fi or cellular networks.
[0127] The following is an example:
[0128] Assume that a car is traveling from a city to a rural area, and its multipath data transmission mechanism is as follows:
[0129] Path identification: The vehicle recognizes that the currently available networks are 4G network, nearby public Wi-Fi and on-board satellite communication.
[0130] Path evaluation:
[0131] 4G network: upload speed 20Mbps, download speed 25Mbps, latency 50ms, and relatively stable signal strength.
[0132] Public Wi-Fi: Upload speed 15Mbps, download speed 30Mbps, latency 30ms, but signal strength fluctuates greatly.
[0133] Satellite communication: upload speed 5Mbps, download speed 10Mbps, delay 500ms, very stable.
[0134] Smart Selection:
[0135] The system decided to mainly use 4G network to transmit data because of its better speed and latency and stable signal.
[0136] Video data is mainly transmitted through the 4G network, and some video data is diverted through Wi-Fi to increase the transmission speed.
[0137] Audio data is mainly transmitted through the 4G network, and is set to automatically switch to Wi-Fi when the 4G network is unstable.
[0138] Satellite communication is used as a backup data transmission path and is set to be enabled when both 4G and Wi-Fi have problems.
[0139] Failover:
[0140] During driving, the vehicle enters an area with weak 4G signals, and the 4G network delay increases and the speed decreases.
[0141] The system detects that the 4G network quality has deteriorated and automatically switches the video and audio data to Wi-Fi transmission.
[0142] If there is also a problem with the Wi-Fi signal, the system automatically starts satellite communication to ensure the continuity of communication.
[0143] Through this multi-path data transmission mechanism, vehicles can dynamically adjust the data transmission path under different network conditions to ensure the stability and low latency of WebRTC communication.
[0144] In an optional embodiment of the present invention, the vehicle status data includes: driving speed, acceleration, direction; the external environment information includes: traffic flow information, weather conditions; determining whether there are factors affecting network quality based on the vehicle status data and the external environment information specifically includes the following steps:
[0145] (1) Determine whether the vehicle has entered a high-speed driving state based on the driving speed and acceleration;
[0146] (2) Determine whether the vehicle is making a sharp turn based on speed, acceleration, and direction;
[0147] (3) Determine whether there is congestion on the current road based on traffic flow information;
[0148] (4) Determine whether there are weather factors that affect network quality based on weather conditions. Weather factors that affect network quality include heavy rain and haze.
[0149] In an optional embodiment of the present invention, the WebRTC parameters are adjusted again according to whether there are factors affecting the network quality, specifically including the following steps:
[0150] (1) If the vehicle enters a high-speed driving state or makes a sharp turn, the encoding bit rate in the WebRTC parameters is reduced, and / or the data packet size in the WebRTC parameters is reduced, and / or the number of retransmissions in the WebRTC parameters is increased;
[0151] (2) If the current road is congested, increase the encoding bit rate in the WebRTC parameters;
[0152] (3) If there are weather factors that affect network quality, reduce the packet size in the WebRTC parameters and increase the number of retransmissions in the WebRTC parameters.
[0153] In an optional embodiment of the present invention, adjusting the data transmission path again according to whether there are factors affecting the network quality specifically includes the following steps:
[0154] (1) If the current road is congested, the cellular network transmission path and / or the Wi-Fi transmission path are used as the target data transmission path;
[0155] (2) If the vehicle enters a high-speed driving state or makes a sharp turn, the cellular network transmission path is used as the target data transmission path.
[0156] The following is a detailed introduction to the process of optimizing WebRTC communication by vehicle and environment perception:
[0157] Perception data collection: Utilizes the vehicle’s built-in sensors and external information sources to collect data about vehicle status data (e.g., speed, acceleration, direction) and external environment information (e.g., traffic flow information, weather conditions).
[0158] Data analysis and decision-making: Analyze the collected perception data and make real-time adjustments to the current communication strategy. For example, if it is detected that the vehicle is about to enter a high-speed driving state, the system can adjust the WebRTC parameters in advance to adapt to possible changes in network quality. Dynamically optimize the data transmission strategy based on vehicle status data and external environment information. For example, in traffic congestion areas, give priority to network channels with higher stability to reduce possible communication interruptions.
[0159] Perception data collection:
[0160] First, the vehicle's own sensor data and external environment information need to be collected so that the system can fully understand the current vehicle status and surrounding environment. The specific steps are as follows:
[0161] 1. Vehicle status data:
[0162] Speed: Get the vehicle's current speed through the vehicle speed sensor.
[0163] Acceleration: The acceleration of the vehicle is obtained through the acceleration sensor.
[0164] Direction: Get the vehicle's direction of travel through a gyroscope or electronic compass.
[0165] 2. External environment information:
[0166] Traffic flow: Obtain traffic flow information on the current road through the navigation API to identify whether there is congestion.
[0167] Weather conditions: Get the current weather conditions through external weather service API, such as sunny, rainy, foggy, etc.
[0168] 3. Data analysis and decision making
[0169] After collecting the perception data, the system needs to analyze the data. The specific steps are as follows:
[0170] Data Analysis:
[0171] Based on the vehicle's speed, acceleration data and direction, determine whether the vehicle is about to enter a high-speed driving state or make a sharp turn.
[0172] Based on the traffic flow data, determine whether there is congestion on the current road.
[0173] Based on the weather information, determine whether there are weather factors that affect the network quality, such as heavy rain or haze.
[0174] Decision Making:
[0175] If the system detects that the vehicle is about to enter a high-speed driving state, it predicts that network switching will be more frequent, which may cause network quality to deteriorate. The system reduces the encoding bit rate of WebRTC in advance and reduces the amount of data transmission to adapt to possible network fluctuations.
[0176] If the system detects congestion on the road ahead, it predicts that the vehicle will stay in a relatively fixed position for a period of time. At this time, the system can increase the encoding bit rate and improve the video and audio quality because the network quality is relatively stable.
[0177] If bad weather is detected, such as heavy rain or haze, the system predicts that the network signal may be disturbed. At this time, the system adjusts the data packet size and retransmission times in advance to ensure the stability of data transmission.
[0178] Optimize transfer execution:
[0179] According to the vehicle status and environmental conditions, the system dynamically optimizes the data transmission strategy to ensure the continuity and quality of communication. The specific steps are as follows:
[0180] 1. Path selection:
[0181] In traffic congestion areas, give priority to network channels with higher stability, such as Wi-Fi or 5G networks, to reduce possible communication interruptions.
[0182] On highways, give priority to cellular networks with wider coverage, such as 4G or 5G networks, to ensure communication continuity.
[0183] 2. Parameter adjustment:
[0184] Dynamically adjust the encoding bit rate, data packet size, and retransmission strategy of WebRTC parameters according to the vehicle status. For example, when driving at high speed, reduce the encoding bit rate and data packet size, and increase the number of retransmissions to adapt to frequent network switching.
[0185] For example:
[0186] Assume that a car is driving from the city center to the suburbs. The vehicle and environment perception optimization process is as follows:
[0187] 1. Perception data collection:
[0188] The vehicle's current speed is 80km / h and its acceleration is 1m / s 2 , the travel direction is north.
[0189] There was traffic congestion on the road ahead and the speed sensor showed that the speed had dropped to 20km / h.
[0190] The weather is currently clear and the weather sensors show no rain or fog.
[0191] 2. Data analysis and decision making:
[0192] The system detects that the vehicle is about to enter a high-speed driving state and predicts that network switching will become more frequent, which may cause network quality to deteriorate. The encoding bit rate of WebRTC is reduced to 3000kbps in advance to reduce data transmission.
[0193] The system detects that the road ahead is congested and predicts that the vehicle will stay in a relatively fixed position for a period of time. At this time, the encoding bit rate is increased to 5000kbps to improve the video and audio quality.
[0194] The weather is fine and no special adjustment of communication parameters is required.
[0195] 3. Optimize transmission strategy:
[0196] On highways, the system gives priority to 5G networks with wider coverage to ensure communication continuity.
[0197] On urban roads, due to traffic congestion, the system gives priority to Wi-Fi networks with higher stability to reduce possible communication interruptions.
[0198] Dynamically adjust WebRTC parameters based on real-time network quality and vehicle status. For example, when driving at high speed, reduce the data packet size to 1000 bytes and increase the number of retransmissions to 3 times to adapt to frequent network switching.
[0199] Through this vehicle and environment perception optimization, the system can more accurately predict and adapt to upcoming network conditions, dynamically select the most appropriate communication parameters and network paths, and ensure the stability and low latency of WebRTC communications.
[0200] In an optional embodiment of the present invention, the method further comprises the following steps:
[0201] (1) Obtaining vehicle location data samples, network usage data samples, and external environment information samples;
[0202] (2) performing data preprocessing on the vehicle location data samples, the network usage data samples, and the external environment information samples to obtain processed vehicle location data samples, processed network usage data samples, and processed external environment information samples;
[0203] (3) The processed vehicle location data samples, the processed network usage data samples and the processed external environment information samples are used to train the original network quality prediction model to obtain a network quality prediction model.
[0204] Specifically, data collection (for model training): continuously collect vehicle location data, network usage data (such as signal strength, network type, connection speed), and external environment information (such as weather conditions, traffic conditions).
[0205] Model training: Use the collected data to train a machine learning model, such as a support vector machine or a deep neural network, to predict network quality at a given location and time.
[0206] Real-time prediction: While driving, the vehicle inputs the current location, network usage, and environmental information into the trained model in real time to predict the network quality it will encounter and make decisions accordingly.
[0207] Data Collection:
[0208] In order to build a network quality prediction model based on machine learning, a large amount of relevant data is first required. The steps for data collection are as follows:
[0209] Vehicle location data (i.e. vehicle location data samples): Use GPS devices to continuously record the vehicle’s geographic location, including longitude, latitude, and altitude. This data can help the model identify the characteristics of network signals in different geographic locations.
[0210] Network usage data (i.e., network usage data samples): collects network usage data of the vehicle at different locations and times, including: signal strength (RSSI), network type (e.g., 4G, 5G, Wi-Fi), connection speed (uplink and downlink bandwidth), latency (ping value), and connection stability (e.g., disconnection frequency).
[0211] External environment information (i.e., external environment information samples): obtain weather conditions (e.g., sunny, rainy, foggy, etc.), traffic flow information (e.g., congested, smooth), and surrounding environment (e.g., city, suburb, mountain). These data can be obtained from the weather service API and navigation API.
[0212] Model training:
[0213] After data collection is complete, start training the model:
[0214] Data preprocessing: Clean and preprocess the collected data, for example, handle missing values, normalize data, remove outliers, etc. Then divide the data into training set, validation set, and test set.
[0215] Select model: Choose a suitable machine learning model for training, using a deep neural network (DNN).
[0216] Training model: Input the preprocessed data into the DNN model for training. By inputting processed vehicle location data samples, processed network usage data samples, and processed external environment information samples, the model learns the law of network quality changes under different conditions.
[0217] Model validation: Use the validation set to evaluate the model and adjust the model parameters to improve prediction accuracy. Validation metrics include: prediction accuracy, recall rate, and F1 score.
[0218] Model testing: The final model is evaluated using the test set to ensure that the model performs well on unseen data.
[0219] Real-time prediction:
[0220] After the model training is completed and verified to be effective, it is deployed to the vehicle system for real-time prediction.
[0221] For example, suppose a car is driving from the city center to the suburbs. The network quality prediction process is as follows:
[0222] Data Collection: The vehicle recorded the following data at multiple locations in the city center and suburbs:
[0223] Vehicle location data sample: longitude and latitude of city center and suburbs.
[0224] Network usage data sample: the signal strength in the city center is -70dBm and the connection speed is 20Mbps; the signal strength in the suburbs is -85dBm and the connection speed is 5Mbps.
[0225] Sample external environment information: The weather in the city center is clear and the traffic is smooth; the weather in the suburbs is cloudy and the traffic volume is light.
[0226] Model training: Through a large amount of similar data collected previously, the model learned the changing patterns of network quality in different locations in cities and suburbs and under different weather conditions.
[0227] Real-time prediction: When the vehicle drives from the city center to the suburbs, the system inputs the current GPS location, current signal strength, current connection speed and external weather information (cloudy) into the model in real time.
[0228] Prediction result: The model predicts that the vehicle is about to enter an area with weak signal strength and high network latency.
[0229] Adjustment measures: Based on the prediction results, the system reduces the bit rate of WebRTC video calls in advance, thereby reducing data transmission and maintaining call quality; at the same time, when the network quality further deteriorates, it automatically switches to the backup 4G network path.
[0230] The method for improving the stability of WebRTC communication in Internet of Vehicles of the present invention includes:
[0231] Data collection and analysis: Continuously collect vehicle location data, network usage data, and external environment information to provide the data required for training and real-time analysis of network quality prediction models.
[0232] Real-time network quality prediction: The network quality prediction model analyzes the current network status, vehicle location, and external environment information in real time, predicts the network quality problems that may be encountered next, and provides an instant network status prediction report.
[0233] Dynamic parameter adjustment: Based on network prediction results, the dynamic parameter adjustment algorithm automatically optimizes WebRTC communication parameters to adapt to the predicted network conditions, ensuring stability and low latency during communication.
[0234] Multi-path transmission decision: The multi-path data transmission mechanism intelligently selects the best data transmission path or distributes data streams to multiple paths based on network conditions and communication requirements to ensure communication continuity and high efficiency.
[0235] Environment-aware communication optimization: Utilize vehicle and environment-aware data to further adjust communication strategies. For example, when frequent network switching due to high-speed movement is predicted, fast retransmission of data packets can be prepared in advance, or when poor network coverage on a specific road section is foreseen, data can be transmitted through other network paths in advance.
[0236] Example: Suppose a car is traveling from an urban area to a remote area, and the system predicts through the network quality prediction model that the network environment it will encounter is poor. Subsequently, the dynamic WebRTC parameter adjustment algorithm reduces the bit rate of data transmission, and the multipath data transmission mechanism is activated, increasing the proportion of data transmission through satellite communication to ensure the stability of communication. At the same time, the vehicle and environment perception module monitors the increase in vehicle speed and predicts that network switching will be more frequent, so the system further optimizes the data packet retransmission strategy and reduces communication delays. In this way, even in poor network conditions, WebRTC communication can be guaranteed to be stable and low-latency.
[0237] The present invention comprehensively optimizes WebRTC communication in the Internet of Vehicles environment by integrating a network quality prediction model, a dynamic WebRTC parameter adjustment algorithm, a multi-path data transmission mechanism, and vehicle and environment perception optimization, bringing the following beneficial effects:
[0238] Significant improvement in communication stability: By predicting network conditions in real time and dynamically adjusting communication parameters, the present invention effectively reduces communication interruptions and quality degradation caused by network instability, ensuring that stable communication connections can be maintained even under high-speed movement or in complex and changing network environments.
[0239] Significant reduction in communication delay: By utilizing dynamic parameter adjustment and multi-path transmission mechanism, the present invention can select the optimal transmission path according to the real-time network status, reduce the delay of data transmission, and ensure that the needs of real-time communication are met, especially for application scenarios requiring high real-time performance, such as remote driving and emergency response systems.
[0240] Improvement of data transmission efficiency: By intelligently selecting the best network path and dynamically adjusting parameters such as the encoding bit rate according to the network quality, the present invention improves the efficiency of data transmission, reduces the data retransmission rate and delay caused by poor network quality, effectively saves bandwidth resources, and reduces network congestion.
[0241] Cost saving: While ensuring communication quality, the multi-path data transmission mechanism and environment-aware optimization strategy can also intelligently select the most cost-effective network path based on real-time network conditions and data transmission requirements, saving data transmission costs for users.
[0242] Improved user experience: Stable and low-latency communications directly improve the user experience of connected car services. Whether it is in-car entertainment, real-time navigation or remote monitoring, users can enjoy smoother and more reliable services.
[0243] Enhanced adaptability and universality: The present invention is not only applicable to Internet of Vehicles applications in urban areas, but also takes into account the special needs of remote areas or areas with imperfect infrastructure. By improving the adaptability and universality of communication technology, the application scope of Internet of Vehicles technology is broadened.
[0244] The present invention has the following main points:
[0245] Network quality prediction model based on machine learning: Use historical and real-time data (including: vehicle location, network usage, external environment information, etc.) to train machine learning models to predict network conditions (such as signal strength, expected delay) in real time to optimize WebRTC communication parameters. This technical point can prepare and adapt in advance in a changing network environment, which is the key to improving communication stability and reducing delays.
[0246] Dynamic WebRTC parameter adjustment algorithm: Based on the output of the network quality prediction model, the key parameters of WebRTC communication (such as encoding bit rate, packet size, retransmission strategy, etc.) are dynamically adjusted to adapt to changes in real-time network conditions. This technical feature is crucial for optimizing communication performance in real time and ensuring stability and low latency during communication.
[0247] Multi-path data transmission mechanism: Combine multiple network access points (cellular network, Wi-Fi, satellite communication, etc.) for data transmission, and improve the reliability and efficiency of communication by intelligently selecting the best transmission path or using multi-path transmission. This mechanism can automatically switch to other paths when a problem occurs on one path, significantly improving the stability and continuity of communication.
[0248] Vehicle and environment perception optimization: Integrate the vehicle's own sensor data (such as speed, direction) and external environment information (such as traffic conditions, weather information) to further optimize the communication strategy. This technical point uses real-time data to dynamically adjust communication parameters and select transmission paths to adapt to complex and changing driving environments and network conditions.
[0249] System design that integrates the above technical features: The above technical features are integrated into a system to form a complete solution that can not only respond to current network conditions, but also predict and adapt to future changes in the network environment. This system design provides a framework for optimizing WebRTC communications in all aspects, ensuring stable and low-latency communications under various conditions.
[0250] Embodiment 2:
[0251] An embodiment of the present invention also provides a device for improving the stability of WebRTC communication in an Internet of Vehicles. The device for improving the stability of WebRTC communication in an Internet of Vehicles is mainly used to execute the method for improving the stability of WebRTC communication in an Internet of Vehicles provided in the first embodiment of the present invention. The device for improving the stability of WebRTC communication in an Internet of Vehicles provided in an embodiment of the present invention is specifically introduced below.
[0252] Figure 2 is a schematic diagram of a device for improving the stability of WebRTC communication in an Internet of Vehicles according to an embodiment of the present invention, such as Figure 2 As shown, the device mainly includes: a network quality prediction unit 10, a first dynamic adjustment unit 20, a first determination unit 30, a second determination unit 40, a third determination unit 50 and a second dynamic adjustment unit 60, wherein:
[0253] A network quality prediction unit is used to obtain the current location data, network usage and external environment information of the vehicle during driving, and use the network quality prediction model to predict the network quality of the current location data, network usage and external environment information, so as to obtain the network quality that the vehicle will encounter at a preset time in the future and the network quality of each data transmission path;
[0254] A first dynamic adjustment unit, configured to dynamically adjust WebRTC parameters according to network quality that the vehicle will encounter at a preset time in the future;
[0255] A first determining unit is used to determine a target data transmission path in the data transmission path according to the network quality of each data transmission path and the current transmission task, and to perform data transmission through the target data transmission path, wherein the target data transmission path includes at least one of the following: a cellular network transmission path, a Wi-Fi transmission path, and a satellite communication path;
[0256] a second determination unit, configured to monitor the network quality of a target data transmission path, and if the network quality of the target data transmission path drops to a preset network quality threshold, determine a backup data transmission path from the data transmission path, and perform data transmission through the backup data transmission path, wherein the backup data transmission path is a data transmission path different from the target data transmission path among a cellular network transmission path, a Wi-Fi transmission path, and a satellite communication path;
[0257] The third determination unit is used to obtain vehicle state data and external environment information during the driving process of the vehicle, and determine whether there are factors affecting the network quality according to the vehicle state data and the external environment information, wherein the factors affecting the network quality include: the vehicle entering a high-speed driving state, the vehicle making a sharp turn, the current road being congested, and the weather factors affecting the network quality;
[0258] The second dynamic adjustment unit is used to adjust the WebRTC parameters and the data transmission path again according to whether there are factors affecting the network quality.
[0259] In an embodiment of the present invention, a device for improving the stability of WebRTC communication in an Internet of Vehicles is provided, which is applied to a WebRTC communication system. The device comprises: obtaining current position data, network usage and external environment information during the driving process of the vehicle, and using a network quality prediction model to predict the network quality of the current position data, network usage and external environment information, so as to obtain the network quality that the vehicle will encounter at a preset time in the future and the network quality of each data transmission path; dynamically adjusting WebRTC parameters according to the network quality that the vehicle will encounter at a preset time in the future; determining a target data transmission path in the data transmission path according to the network quality of each data transmission path and the current transmission task, and performing data transmission through the target data transmission path, wherein the target data transmission path comprises at least one of the following: a cellular network transmission path, a Wi-Fi transmission path and a satellite communication path; monitoring the network quality of the target data transmission path, if the network quality of the target data transmission path drops to a preset network quality threshold, determining an alternative data transmission path from the data transmission path, and transmitting data through the alternative data transmission path, wherein the alternative data transmission path is a data transmission path different from the target data transmission path among the cellular network transmission path, the Wi-Fi transmission path, and the satellite communication path; obtaining vehicle status data and external environment information during vehicle driving, and determining whether there are factors affecting the network quality based on the vehicle status data and the external environment information, wherein the factors affecting the network quality include: the vehicle entering a high-speed driving state, the vehicle making a sharp turn, congestion on the current road, and weather factors affecting the network quality; adjusting the WebRTC parameters and the data transmission path again based on whether there are factors affecting the network quality. From the above description, it can be seen that in the device for improving the stability of WebRTC communication in the Internet of Vehicles of the present invention, WebRTC parameters and data transmission paths are optimized by integrating network quality prediction models, dynamically adjusting WebRTC parameters, data transmission mechanisms of multiple data transmission paths, and vehicle and environmental perception, thereby achieving comprehensive optimization of WebRTC communication in the Internet of Vehicles environment, and providing a more stable and low-latency WebRTC communication solution for high-speed movement and unstable network conditions, thereby alleviating the technical problem that the prior art cannot provide a stable and low-latency WebRTC communication solution for high-speed movement and unstable network conditions.
[0260] Optionally, the network quality that the vehicle will encounter at a preset time in the future includes at least: signal strength, expected delay and connection stability; the first dynamic adjustment unit is also used to: obtain the correspondence between the signal strength range, expected delay range and connection stability range and the WebRTC parameters; determine the target signal strength range to which the signal strength belongs, the target expected delay range to which the expected delay belongs, and the target connection stability range to which the connection stability belongs according to the correspondence, and determine the corresponding target WebRTC parameters according to the target signal strength range, the target expected delay range and the target connection stability range, and then adjust the WebRTC parameters according to the target WebRTC parameters, wherein the WebRTC parameters include: encoding bit rate, data packet size and number of retransmissions.
[0261] Optionally, the first determination unit is also used to: determine the optimal data transmission path in the data transmission path according to the network quality of each data transmission path; determine whether the optimal data transmission path meets the current transmission task; if so, use the optimal data transmission path as the target data transmission path; if not, use the optimal data transmission path and the suboptimal data transmission path as the target data transmission paths, wherein the network quality of the suboptimal data transmission path is worse than the network quality of the optimal data transmission path.
[0262] Optionally, the vehicle status data includes: driving speed, acceleration, direction; the external environment information includes: traffic flow information, weather conditions; the third determination unit is also used to: determine whether the vehicle enters a high-speed driving state based on the driving speed and acceleration; determine whether the vehicle makes a sharp turn based on the driving speed, acceleration and direction; determine whether there is congestion on the current road based on the traffic flow information; determine whether there are weather factors that affect the network quality based on the weather conditions, wherein the weather factors that affect the network quality include: heavy rain and haze.
[0263] Optionally, the second dynamic adjustment unit is also used to: if the vehicle enters a high-speed driving state or makes a sharp turn, reduce the encoding bit rate in the WebRTC parameters, and / or reduce the data packet size in the WebRTC parameters, and / or increase the number of retransmissions in the WebRTC parameters; if there is congestion on the current road, increase the encoding bit rate in the WebRTC parameters; if there are weather factors that affect the network quality, reduce the data packet size in the WebRTC parameters and increase the number of retransmissions in the WebRTC parameters.
[0264] Optionally, the second dynamic adjustment unit is also used to: if there is congestion on the current road, use the cellular network transmission path and / or the Wi-Fi transmission path as the target data transmission path; if the vehicle enters a high-speed driving state or makes a sharp turn, use the cellular network transmission path as the target data transmission path.
[0265] Optionally, the device is also used to: obtain vehicle position data samples, network usage data samples and external environment information samples; perform data preprocessing on the vehicle position data samples, network usage data samples and external environment information samples to obtain processed vehicle position data samples, processed network usage data samples and processed external environment information samples; use the processed vehicle position data samples, processed network usage data samples and processed external environment information samples to train the original network quality prediction model to obtain a network quality prediction model.
[0266] The device provided in the embodiment of the present invention has the same implementation principle and technical effects as those of the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the device embodiment, reference may be made to the corresponding contents in the aforementioned method embodiment.
[0267] like Figure 3 As shown, an electronic device 600 provided in an embodiment of the present application includes: a processor 601, a memory 602 and a bus, wherein the memory 602 stores machine-readable instructions executable by the processor 601. When the electronic device is running, the processor 601 communicates with the memory 602 through the bus, and the processor 601 executes the machine-readable instructions to perform the steps of the method for improving the stability of WebRTC communication in the Internet of Vehicles as described above.
[0268] Specifically, the above-mentioned memory 602 and processor 601 can be general-purpose memory and processor, which are not specifically limited here. When the processor 601 runs the computer program stored in the memory 602, it can execute the above-mentioned method for improving the stability of WebRTC communication in the Internet of Vehicles.
[0269] The processor 601 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 601. The above processor 601 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module may be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 602, and the processor 601 reads the information in the memory 602 and completes the steps of the above method in combination with its hardware.
[0270] Corresponding to the above-mentioned method for improving the stability of WebRTC communication in the Internet of Vehicles, an embodiment of the present application also provides a computer-readable storage medium, which stores machine-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to execute the steps of the above-mentioned method for improving the stability of WebRTC communication in the Internet of Vehicles.
[0271] The device for improving the stability of WebRTC communication in the Internet of Vehicles provided in the embodiment of the present application can be specific hardware on the device or software or firmware installed on the device. The implementation principle and technical effects of the device provided in the embodiment of the present application are the same as those of the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the device embodiment, reference can be made to the corresponding contents in the aforementioned method embodiment. Technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above can all refer to the corresponding processes in the aforementioned method embodiment, and will not be repeated here.
[0272] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0273] For another example, the flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the device, method and computer program product according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or the flowchart, and the combination of the boxes in the block diagram and / or the flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0274] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0275] In addition, each functional unit in the embodiments provided in the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0276] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can essentially or partly contribute to the prior art or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including a number of instructions for an electronic device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the vehicle marking method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program codes.
[0277] It should be noted that similar numbers and letters represent similar items in the following figures. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. In addition, the terms "first", "second", "third", etc. are only used to distinguish the description and are not to be understood as indicating or implying relative importance.
[0278] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solution of the present application, rather than to limit it. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the aforementioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solution recorded in the aforementioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solution deviate from the scope of the technical solution of the embodiment of the present application. They should all be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A method for improving the stability of WebRTC communication in Internet of Vehicles, characterized in that: Applied to a WebRTC communication system, the method comprises: Acquire the current location data, network usage and external environment information of the vehicle during driving, and use the network quality prediction model to predict the network quality of the current location data, the network usage and the external environment information, so as to obtain the network quality that the vehicle will encounter at a preset time in the future and the network quality of each data transmission path; Dynamically adjust WebRTC parameters based on the network quality that the vehicle will encounter at a preset time in the future; According to the network quality of each of the data transmission paths and the current transmission task, a target data transmission path is determined in the data transmission path, and data transmission is performed through the target data transmission path, wherein the target data transmission path includes at least one of the following: a cellular network transmission path, a Wi-Fi transmission path, and a satellite communication path; monitoring the network quality of the target data transmission path, and if the network quality of the target data transmission path drops to a preset network quality threshold, determining a backup data transmission path from the data transmission path, and performing data transmission through the backup data transmission path, wherein the backup data transmission path is a data transmission path different from the target data transmission path among the cellular network transmission path, the Wi-Fi transmission path, and the satellite communication path; Acquire vehicle status data and the external environment information during vehicle driving, and determine whether there are factors affecting network quality according to the vehicle status data and the external environment information, wherein the factors affecting network quality include: the vehicle entering a high-speed driving state, the vehicle making a sharp turn, congestion on the current road, and weather factors affecting network quality; Adjust WebRTC parameters and data transmission paths again based on whether there are factors affecting network quality.
2. The method according to claim 1, characterized in that The network quality that the vehicle will encounter at a preset time in the future includes at least: signal strength, expected delay, and connection stability; dynamically adjusting WebRTC parameters according to the network quality that the vehicle will encounter at a preset time in the future includes: Get the correspondence between signal strength range, expected delay range, and connection stability range and WebRTC parameters; The target signal strength range to which the signal strength belongs, the target expected delay range to which the expected delay belongs, and the target connection stability range to which the connection stability belongs are determined according to the corresponding relationship, and the corresponding target WebRTC parameters are determined according to the target signal strength range, the target expected delay range, and the target connection stability range, and then the WebRTC parameters are adjusted according to the target WebRTC parameters, wherein the WebRTC parameters include: encoding bit rate, data packet size, and number of retransmissions.
3. The method according to claim 1, characterized in that: Determining a target data transmission path in the data transmission path according to the network quality of each of the data transmission paths and the current transmission task includes: Determining an optimal data transmission path among the data transmission paths according to the network quality of each of the data transmission paths; Determining whether the optimal data transmission path satisfies the current transmission task; If satisfied, the optimal data transmission path is used as the target data transmission path; If not, the optimal data transmission path and the suboptimal data transmission path are used as the target data transmission path, wherein the network quality of the suboptimal data transmission path is worse than the network quality of the optimal data transmission path.
4. The method according to claim 1, characterized in that: The vehicle status data includes: driving speed, acceleration, direction; the external environment information includes: traffic flow information, weather conditions; determining whether there are factors affecting network quality based on the vehicle status data and the external environment information includes: determining whether the vehicle enters a high-speed driving state according to the driving speed and the acceleration; determining whether the vehicle is making a sharp turn based on the driving speed, the acceleration and the direction; Determining whether there is congestion on the current road according to the traffic flow information; Determine whether there are weather factors that affect network quality according to the weather conditions, wherein the weather factors that affect network quality include: heavy rain and haze.
5. The method according to claim 4, characterized in that Adjust WebRTC parameters again based on whether there are factors that affect network quality, including: If the vehicle enters a high-speed driving state or makes a sharp turn, the encoding bit rate in the WebRTC parameter is reduced, and / or the data packet size in the WebRTC parameter is reduced, and / or the number of retransmissions in the WebRTC parameter is increased; If the current road is congested, increase the encoding bit rate in the WebRTC parameters; If there are weather factors that affect the network quality, the data packet size in the WebRTC parameters is reduced and the number of retransmissions in the WebRTC parameters is increased.
6. The method according to claim 4, characterized in that Adjust the data transmission path again based on whether there are factors that affect network quality, including: If the current road is congested, the cellular network transmission path and / or the Wi-Fi transmission path are used as the target data transmission path; If the vehicle enters a high-speed driving state or makes a sharp turn, the cellular network transmission path is used as the target data transmission path.
7. The method according to claim 1, characterized in that The method further comprises: Obtaining vehicle location data samples, network usage data samples, and external environment information samples; Performing data preprocessing on the vehicle position data sample, the network usage data sample and the external environment information sample to obtain processed vehicle position data samples, processed network usage data samples and processed external environment information samples; The processed vehicle position data samples, the processed network usage data samples and the processed external environment information samples are used to train the original network quality prediction model to obtain the network quality prediction model.
8. A device for improving the stability of WebRTC communication in an Internet of Vehicles, characterized in that: Applied to a WebRTC communication system, the device comprises: A network quality prediction unit, used to obtain current position data, network usage and external environment information during the driving process of the vehicle, and use a network quality prediction model to predict the network quality of the current position data, the network usage and the external environment information, so as to obtain the network quality that the vehicle will encounter at a preset time in the future and the network quality of each data transmission path; A first dynamic adjustment unit, configured to dynamically adjust WebRTC parameters according to network quality that the vehicle will encounter at a preset time in the future; A first determining unit, configured to determine a target data transmission path in the data transmission path according to the network quality of each of the data transmission paths and a current transmission task, and perform data transmission through the target data transmission path, wherein the target data transmission path includes at least one of the following: a cellular network transmission path, a Wi-Fi transmission path, and a satellite communication path; a second determining unit, configured to monitor the network quality of the target data transmission path, and if the network quality of the target data transmission path drops to a preset network quality threshold, determine a backup data transmission path from the data transmission path, and perform data transmission through the backup data transmission path, wherein the backup data transmission path is a data transmission path different from the target data transmission path among the cellular network transmission path, the Wi-Fi transmission path, and the satellite communication path; a third determination unit, configured to obtain vehicle state data and the external environment information during vehicle driving, and determine whether there are factors affecting network quality according to the vehicle state data and the external environment information, wherein the factors affecting network quality include: the vehicle entering a high-speed driving state, the vehicle making a sharp turn, congestion on the current road, and weather factors affecting network quality; The second dynamic adjustment unit is used to adjust the WebRTC parameters and the data transmission path again according to whether there are factors affecting the network quality.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to execute the method according to any one of claims 1 to 7.
Citation Information
Cited By
P2p remote communication method
CN119892845A
A method of p2p telecommunication
CN119892845B
Multi-heterogeneous robot underground space detection autonomous task planning method under dynamic networking
CN120122661A
Intelligent automobile high-speed data signal transmission method in complex interference environment
CN121509365A
Video stable transmission method and system in high-speed moving scene and electronic equipment
CN121604025A
