Vehicle data transmission control method and device and medium
By building a Mesh network at edge computing nodes, optimizing resource utilization and channel selection, the problem of vehicle data transmission delay is solved, and fast response and efficient transmission is achieved.
Patent Information
- Application Number
- CN202510401228.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-01
- Publication Date
- 2025-07-29
AI Technical Summary
Traditional vehicle data transmission methods rely on cloud computing centers to cause delay problems, especially in dense vehicle areas with limited network bandwidth, which cannot meet the high concurrent transmission needs.
A Mesh network is built in an edge computing node. By acquiring vehicle data transmission requests, determining resource availability, priority is given to retrieve data files with high cache value from the local database, and selecting the transmission channel according to channel quality; if the resources are insufficient, redirect to other available edge nodes.
Improve the response speed and efficiency of data transmission, reduce latency, improve user experience, and ensure fast response and efficient transmission through resource utilization and channel optimization.
Smart Images

Figure CN120390210A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of data transmission, and particularly to a control method, device, and medium for vehicle data transmission. Background Art
[0002] With the rapid development of intelligent connected vehicles, the demand for downloading vehicle software and application data is increasing day by day. Traditional data downloading and transmission mainly rely on cloud computing centers, and this method has significant latency problems. Especially in areas with dense vehicles, due to limited network bandwidth resources and long transmission distances, when there is high concurrency in data transmission, the transmission speed often fails to meet user requirements.
[0003] In recent years, edge computing technology has gradually emerged. By transferring data processing tasks from a centralized cloud computing center to the network edge, that is, a location closer to the data generation source or user terminal, it reduces the distance transmitted to the cloud, thereby reducing a certain amount of latency. However, the network bandwidth between edge computing nodes is limited, and network congestion will still cause an increase in transmission latency when processing a large number of data transmission services.
[0004] Therefore, how to solve the latency problem that appears in vehicle data transmission, improve data transmission efficiency, and thus improve the user experience is an urgent problem for those skilled in the art. Summary of the Invention
[0005] In view of this, one aspect of the present application provides a control method for vehicle data transmission, which is applied to a control system in a target edge node, and the target edge node forms a Mesh network with other edge nodes; the method includes:
[0006] Obtain a data transmission request of the vehicle;
[0007] Determine whether the resource availability index of the current target edge node is within a preset range;
[0008] If it is, determine whether the data file to be transmitted corresponding to the data transmission request is a cached file stored in the local database according to the cache value; if so, retrieve the data file to be transmitted from the local database; and transmit the data file to be transmitted to the vehicle through a target channel determined according to the channel quality;
[0009] If not, redirect the data transmission request to a designated edge node among the other edge nodes whose resource availability index is within the preset range.
[0010] Optionally, the cached file stored according to the cache value includes:
[0011] Every preset period, calculate the value parameter value for each data file to represent the cache value;
[0012] Ascendingly sort each of the data files based on the value parameter value;
[0013] Store the files in the top pre-set percentage of the ascending sort result as the cache files in the local database.
[0014] Optionally, calculating the value parameter value of each data file for characterizing the cache value includes:
[0015] Obtain the cache value impact factor of the data file; wherein, the cache value impact factor includes at least one of access frequency, unaccessed duration generated according to the time interval from the current moment to the last access moment, and file storage space;
[0016] Assign corresponding weights to the cache value impact factors at the current moment;
[0017] Calculate the value parameter value according to the weights and the cache value impact factors.
[0018] Optionally, assigning corresponding weights to the cache value impact factors at the current moment includes:
[0019] When the access frequency is higher, the weight assigned to the access frequency is smaller;
[0020] When the unaccessed duration is longer, the weight assigned to the unaccessed duration is larger;
[0021] In the case that the remaining storage space in the local database is less than the threshold, the larger the file storage space, the larger the weight assigned to the file storage space.
[0022] Optionally, determining the target channel according to the channel quality includes:
[0023] Obtain the channel quality impact factors of all channels between the target edge node and the vehicle; the channel quality impact factor includes at least one of bandwidth utilization rate and channel interference intensity;
[0024] Calculate the quality parameter value for characterizing the channel quality according to the channel quality impact factors; wherein, when the bandwidth utilization rate is higher, the channel quality is lower and the quality parameter value is smaller; when the channel interference intensity is smaller, the channel quality is higher and the quality parameter value is larger;
[0025] Perform a descending sort on the quality parameter values to obtain a sort result;
[0026] Determine whether the currently used channel belongs to the top pre-set positions in the sort result;
[0027] If yes, use the currently used channel as the target channel;
[0028] If not, the channel corresponding to the first position in the sorting result is used as the target channel.
[0029] Optionally, after obtaining the data transmission request of the vehicle, the method further includes:
[0030] Parsing the SNI field in the data transmission request to identify a matching domain name;
[0031] When the matching domain name is in the preset list, after returning the legitimacy certificate, the data transmission request is redirected to the local area network server of the target edge node to establish an encrypted connection with the vehicle.
[0032] Optionally, transmitting the data file to be transmitted to the vehicle through a target channel determined according to channel quality includes:
[0033] After the data file to be transmitted is encrypted and compressed, it is transmitted to the vehicle through the target channel based on the mobile high-density AP.
[0034] Another aspect of the present application provides a vehicle data transmission control device, which is applied to a control system in a target edge node, wherein the target edge node and other edge nodes form a Mesh network; the device includes:
[0035] A transmission request acquisition module is used to obtain a data transmission request from a vehicle;
[0036] A resource determination module is used to determine whether the resource availability index of the current target edge node is within a preset range; if so, call the processing module; if not, call the redirection module;
[0037] The processing module is configured to determine whether the data file to be transmitted corresponding to the data transmission request is a cache file stored in a local database according to a cache value; if so, retrieve the data file to be transmitted from the local database; and transmit the data file to be transmitted to the vehicle via a target channel determined according to channel quality;
[0038] The redirection module is configured to redirect the data transmission request to a designated edge node among the other edge nodes whose resource availability indicator is within the preset range.
[0039] Another aspect of the present application provides a vehicle data transmission control device, including a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the program, the steps of the vehicle data transmission control method are implemented.
[0040] Another aspect of the present application provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the steps of the control method for vehicle data transmission are implemented.
[0041] The beneficial effects of the control method, device and medium for vehicle data transmission provided by the present application are as follows: According to the resource availability index, nodes with resource availability meeting the expectation are selected in the Mesh network composed of multiple edge nodes to complete the current vehicle data transmission request, ensuring a quick response to the request data transmission request. On this basis, data files with high cache value are cached in the local database in advance, facilitating quick retrieval and providing to the vehicle. At the same time, channels meeting the expectation are selected according to the channel quality for data transmission, further improving the transmission rate. That is, by combining the maximization of edge node resource availability, storing files based on cache value, and selecting high-quality channels, the response speed and transmission efficiency of concurrent data requests are improved, the resource utilization rate is increased, the delay is reduced, and the user experience is enhanced. Description of the Drawings
[0042] Figure 1 It is a schematic flowchart of a control method for vehicle data transmission provided by an embodiment of the present application;
[0043] Figure 2 It is a schematic architecture diagram of a target edge node provided by an embodiment of the present application;
[0044] Figure 3 It is a schematic flowchart of a control method for vehicle data transmission provided by another embodiment of the present application;
[0045] Figure 4 It is a schematic structural diagram of a control device for vehicle data transmission provided by an embodiment of the present application;
[0046] Figure 5 It is a schematic structural diagram of a control device for vehicle data transmission provided by another embodiment of the present application.
[0047] The reference numerals are as follows: 50 is a memory, 51 is a processor, 52 is a display screen, 53 is an input / output interface, 54 is a communication interface, 55 is a power supply, 56 is a communication bus, 501 is a computer program, 502 is an operating system, and 503 is data. Detailed Embodiments
[0048] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms "a", "the", and "said" used in this application and the appended claims are also intended to include the plural forms unless the context clearly dictates otherwise. It should also be understood that the term "and / or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
[0049] It should be understood that although the terms first, second, third, etc. may be used in this application to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "when" or "while" or "in response to a determination".
[0050] Figure 1 A schematic flow diagram of a control method for vehicle data transmission provided by an embodiment of this application. The method provided by the embodiment of this application is applied to a control system in a target edge node. The target edge node and other edge nodes form a Mesh network, as Figure 1 shown, the method includes:
[0051] S10: Obtain a data transmission request of the vehicle;
[0052] In a specific embodiment, the control system in the target edge node obtains the data transmission request transmitted by the vehicle. Among them, the data transmission request may include, but is not limited to, software download and application data download. It should be noted that the vehicles in the embodiments of this application may include, but are not limited to, sedans, sport utility vehicles (SUVs), multi-purpose vehicles (MPVs), off-road vehicles, pickup trucks, or other power-driven non-railborne vehicles.
[0053] Figure 2 A schematic architecture diagram of a target edge node provided by an embodiment of this application. It can be understood that in order to reduce the high latency caused by the long link when the vehicle sends a data transmission request to the cloud, therefore, the control method provided by this application is implemented under a mobile edge computing architecture. For ease of understanding, the following will be combined with Figure 2 for illustration.
[0054] First of all, it should be noted that all the edge nodes provided in this application are portable and mobile nodes. Multiple different edge nodes are interconnected through VxLAN tunnels to form a Mesh network. To reduce latency, the edge nodes are deployed in vehicle-dense areas, which include but are not limited to parking lots, areas near concerts, scenic spots, and logistics parks. Thus, the mobile edge computing sites are deployed in vehicle-concentrated areas, with high-performance computing and storage resources, and can quickly respond to the data download requirements of vehicles.
[0055] As Figure 2 shows the architecture of the edge node. In the embodiment of this application, any edge node in the Mesh network is used as the target edge node, and the control method for vehicle data transmission is described by taking this target edge node as an example.
[0056] In an alternative embodiment, the target edge node includes a local area network server, a mobile high-density AP, and second-layer and third-layer switching components, etc. As Figure 2 shown, in a specific embodiment, the target edge node introduces a combination of physical switches and routers, as well as a combination of virtual switches and routers. The combination of physical switches and routers is responsible for data circulation and routing selection at the physical level to ensure stable data transmission. The combination of virtual switches and routers runs in the virtualization environment of the local area network server. They can be flexibly configured and dynamically adjust the network topology according to actual needs to improve the utilization rate of network resources.
[0057] Thus, the collaborative work of physical switches, virtual switches, and routers enables the edge node to have higher flexibility and scalability at the network level, and can adapt to the vehicle software and application data download requirements of different scales and scenarios.
[0058] Specifically, the local area network server supports both virtual and physical forms. The physical-form local area network server has the characteristics of high performance and high reliability, and is suitable for scenarios with high requirements for data processing capabilities and stability. The virtual-form local area network server has the advantages of flexible deployment and easy expansion, and can quickly adjust resource allocation according to actual needs.
[0059] By combining the local area network servers in both virtual and physical forms, more flexible and efficient data download services are provided for vehicles. At the same time, this design also improves the availability and fault tolerance of the node, ensuring a stable data download experience in different scenarios.
[0060] As Figure 2As shown in the figure, the vehicle and the target edge node can establish a communication connection through a mobile high-density AP. Among them, the vehicle end includes a vehicle client device (TCAM) connected to the wireless network, a digital host device (Digital Head Unit, abbreviated as DHU) for storing vehicle-mounted software and data, and a vehicle internal communication gateway device (Vehicle Gateway Module, abbreviated as VGM).
[0061] S11: Determine whether the resource availability index of the current target edge node is within the preset range; if so, go to step S12; if not, go to step S14;
[0062] After obtaining the vehicle's data transmission request through step S10, in order to ensure that the current resource availability of the target edge node meets the requirements of vehicle high-speed data transmission, it is necessary to first determine whether the resource availability index of the current target edge node is within the preset range. Among them, the resource availability index includes but is not limited to at least one of the resource score value, load rate, remaining bandwidth, number of vehicle connections, and remaining storage space of the local database for characterizing the degree of resource availability.
[0063] Specifically, the load rate is taken as an example for illustration. For example, when the current load rate of the target edge node is less than the preset load rate (for example, less than 80%), it indicates that the resource availability of the current target edge node meets the expectation; otherwise, it indicates that the current resource availability does not meet the expectation.
[0064] In a specific embodiment, each edge node in the Mesh network will periodically report status data. Among them, the status data includes but is not limited to node ID, load rate, remaining bandwidth, number of vehicle connections, and remaining storage space. For example, the reported status data is "the node ID is 'CDN_LAN-01', the load rate is 65%, the remaining bandwidth is 2 Gbps, the number of vehicle connections is 50, and the remaining storage space is 1 TB". Further, the resource availability can be judged according to the reported status data.
[0065] S12: Determine whether the data file to be transmitted corresponding to the data transmission request is a cached file stored in the local database according to the cache value; if so, go to step S13;
[0066] S13: Retrieve the data file to be transmitted from the local database; and transmit the data file to be transmitted to the vehicle through the target channel determined according to the channel quality;
[0067] In another alternative embodiment, when the current resource availability metric of the target edge node is within a preset range, it is determined that the resources of the current target edge node can meet the data transmission request of the vehicle. Further, it is determined whether the data file to be transmitted requested by the data transmission request is stored in the local database. It can be understood that the local database of the local area network server may store software and application data files to be downloaded (i.e., data files to be transmitted), and advanced intelligent caching algorithms are used for dynamic management, which can improve data access efficiency.
[0068] Among them, the data stored in the local database is pre-stored according to the caching value of the data file, and the caching value can be calculated according to information such as access frequency and file storage space. In a specific embodiment, files with high access frequency are preferentially cached, so as to ensure that data frequently used by the vehicle can be quickly retrieved from the local database.
[0069] After obtaining the data file to be transmitted, in order to further improve the data transmission speed. In an alternative embodiment, the channel quality of all channels between the vehicle and the target edge node is calculated, so as to select a high-quality target channel to transmit the data file. Among them, the channel quality can be determined according to information such as bandwidth utilization rate and channel interference intensity.
[0070] S14: Redirect the data transmission request to a specified edge node whose resource availability metric is within the preset range among other edge nodes.
[0071] It can be understood that in the embodiment of the present application, the Mesh network is a network topology structure based on the interconnection of multiple edge nodes. By forming a mesh structure through the interconnection of nodes, multi-hop transmission and self-organization and self-repair capabilities of data can be realized. Therefore, when the current resource availability metric of the target edge node is not within the preset range, that is, when the resources of the target edge node cannot meet the requirements of the vehicle's high-speed data transmission request, a node that meets the expectation can be reselected in the Mesh network.
[0072] Specifically, in an alternative embodiment, the target edge node redirects the data transmission request to a specified edge node whose resource availability metric is within the preset range among other edge nodes. It should be noted that in an alternative embodiment, an incremental synchronization protocol (optimized based on Rsync) can be used to only transmit differential data, reducing bandwidth consumption.
[0073] It should be noted that the designated edge node is a node in the current Mesh network where the resource availability metric is within a preset range. However, to avoid overloading the designated edge node after redirecting a data transmission request to it and then having to redirect again, which would cause the Mesh network to frequently switch nodes, in an alternative embodiment, the designated edge node can be the node with the highest resource availability metric in the current Mesh network, or a node whose resource availability metric ranks among the top preset positions (e.g., the top three) in the current Mesh network.
[0074] Thus, in a Mesh network composed of multiple edge nodes, the edge nodes coordinate with each other to achieve data processing and distribution for a large number of vehicles, so as to improve the download concurrency ability, download speed, solve the latency problem during the download process, and reduce the download cost.
[0075] It should be noted that, in an alternative embodiment, to avoid resource waste, the edge node periodically uploads status data to determine the current resource availability of the node. Therefore, in each cycle, if the target edge node finds that its current resource availability metric is not within the preset range, when receiving a new data transmission request from a vehicle, it directly redirects the data transmission request to other edge nodes.
[0076] Of course, in another alternative embodiment, if it is determined in the previous cycle that the resource availability metric is within the preset cycle, but to avoid the resource availability exceeding the preset range before reaching the next cycle's resource availability judgment, which would affect the data transmission efficiency. Therefore, in a specific embodiment, each time a new vehicle data transmission request is obtained, a resource availability metric judgment is first made.
[0077] In a specific embodiment, when the target edge node redirects a data transmission request to other edge nodes, the vehicle will automatically follow the redirect instruction and switch to a new edge node for data download, without any user intervention throughout the process, thus ensuring the user experience.
[0078] It should be noted that after the target edge node redirects a data transmission request to the designated edge node, the control system in the designated edge node also executes step S12 and step S13 to respond to the data transmission request from the vehicle.
[0079] Based on the above embodiments, to improve the judgment accuracy of the resource availability metric of the target edge node, in an alternative embodiment, in addition to the resource score value, the resource availability metric can also include a score influence factor of the resource score value. Among them, the score influence factor includes at least one of the load rate, remaining bandwidth, number of vehicle connections, and remaining storage space of the local database.
[0080] It can be understood that in an optional embodiment, the load rate, remaining bandwidth, number of vehicle connections, and remaining storage space can all reflect the resource availability of the target edge node. Therefore, the resource availability metric can include the load rate, remaining bandwidth, number of vehicle connections, and remaining storage space.
[0081] However, the calculation of the resource score value is determined based on the load rate, remaining bandwidth, number of vehicle connections, and remaining storage space. That is, the score impact factor can be understood as a penalty factor that affects the calculation of the resource score value. Therefore, the score impact factor is both a resource availability metric and a calculation factor for determining the resource score value.
[0082] It can be understood that in order to improve the calculation accuracy of the resource score value, that is, to accurately evaluate the current resource availability of the target edge node, in a preferred embodiment, the score impact factor includes four items: the load rate, remaining bandwidth, number of vehicle connections, and remaining storage space of the local database.
[0083] In an optional embodiment, determining that the resource availability metric of the current target edge node is not within the preset range includes:
[0084] Every preset period, obtain the score impact factor;
[0085] Assign corresponding weights to the score impact factor at the current moment;
[0086] Determine the resource score value according to the score impact factor and the weights;
[0087] When the resource score value is less than the score threshold, and / or the score impact factor exceeds the corresponding warning threshold, it is determined that the resource availability metric is not within the preset range.
[0088] In a specific embodiment, every preset period, for example, every 5 seconds, obtain the score impact factor. In fact, every preset period, each node in the Mesh network will actively report its own score impact factor. For example, report the following score impact factors: {"node_id":"LAN_CDN-01", "Load":0.65, "Bandwidth":1200, "Connections":150, "Storage":512}, where "LAN_CDN-01" is the edge node ID, "Load" is the load rate, "Bandwidth" is the remaining bandwidth, "Connections" is the number of vehicle connections, and "Storage" is the remaining storage space.
[0089] It is understandable that over time, the different score influencing factors in the target edge node will continue to change, and thus the degree of influence on the final resource score value will also change. Therefore, in order to improve the calculation accuracy of the resource score value, a dynamic resource score value calculation method is adopted.
[0090] Specifically, a corresponding weight is assigned to the score influence factor at the current moment. That is, a dynamic allocation mechanism is adopted for the score influence factor, and the weight is dynamically assigned at different moments according to the actual situation of the score influence factor.
[0091] Furthermore, based on the score impact factor and weight, the resource score value can be calculated. The specific calculation formula is formula (1):
[0092]
[0093] Among them, S is the resource score value, is the weight corresponding to the load rate, Load is the load rate, is the weight corresponding to the remaining bandwidth, Bandwidth is the remaining bandwidth, B max is the maximum available bandwidth, is the weight corresponding to the number of vehicle connections, Connections is the number of vehicle connections, C max The maximum number of connections that can be made. is the weight corresponding to the remaining storage space, Storage is the remaining storage space, S max The total storage space of the local database.
[0094] In a specific embodiment, the load rate (Load) refers to the combined utilization of the CPU and memory, which can reflect the computing power of the target edge node. The combined utilization of the CPU and memory reflects the computing power of the node. The remaining bandwidth (Bandwidth) refers to the currently available network bandwidth of the target edge node, which can reflect the transmission capacity of the target edge node. The number of vehicle connections (Connections) refers to the number of vehicles currently served by the target edge node, which can reflect the concurrency capacity of the target edge node. The remaining storage space (Storage) refers to the remaining storage space size of the local database in the target edge node, which can reflect the data caching capacity of the target edge node.
[0095] Furthermore, whether the resource availability indicator is within a preset range is determined based on the resource score value and / or the score impact factor. Specifically, if the resource score value is less than the score threshold, and / or the score impact factor exceeds the corresponding warning threshold, it is determined that the resource availability indicator is not within the preset range.
[0096] For example, if the fractional threshold is 0.6 and the resource score value S is 0.3, it is determined that the target edge node is not within the preset range. And / or if the warning threshold of the load rate Load is 90%, when the load rate Load exceeds 90%, it is determined that the target edge node is not within the preset range. That is, the available resources of the current target edge node do not meet the requirements of vehicle fast data download.
[0097] In an alternative embodiment, the weight corresponding to the load rate The weight corresponding to the remaining bandwidth The weight corresponding to the number of vehicle connections And the weight corresponding to the remaining storage space The sum of the four weights is 1. It can be understood that no matter how many fractional impact factors are selected, the sum of the weights assigned to each fractional impact factor is equal to 1.
[0098] It can be understood that when evaluating the resource availability of the target edge node, different fractional impact factors have different degrees of influence on resource availability and resource score values. Specifically, the degree of influence of the load rate Load is higher than that of the remaining bandwidth Bandwidth, the degree of influence of the remaining bandwidth Bandwidth is higher than that of the number of vehicle connections Connections, and the degree of influence of the number of vehicle connections Connections is higher than that of the remaining storage space Storage.
[0099] Therefore, in an alternative embodiment, when assigning weights, the weight corresponding to the load rate Is greater than the weight corresponding to the remaining bandwidth The weight corresponding to the remaining bandwidth Is greater than the weight corresponding to the number of vehicle connections The weight corresponding to the number of vehicle connections Is greater than the weight corresponding to the remaining storage space
[0100] Based on the above embodiments, as an alternative embodiment, when initializing the weights, the weight corresponding to the load rate Is greater than the weight corresponding to the remaining bandwidth The weight corresponding to the remaining bandwidth Is greater than the weight corresponding to the number of vehicle connections The weight corresponding to the number of vehicle connections Is greater than the weight corresponding to the remaining storage space For example, the weight corresponding to the load rate Is set to 0.4, the weight corresponding to the remaining bandwidth Is set to 0.3, the weight corresponding to the number of vehicle connections Is set to 0.2, the weight corresponding to the remaining storage space Set to 0.1.
[0101] Furthermore, in order to achieve accurate calculation of the resource score value S, that is, to achieve accurate evaluation of the resource availability of the target edge node, a weight dynamic adjustment mechanism is adopted. That is, the weight is adjusted in real time. Therefore, as an alternative embodiment, weights corresponding to the score impact factors at the current moment are assigned, including:
[0102] When the load rate exceeds the preset load rate, the greater the load rate, the greater the weight assigned to the load rate;
[0103] When the remaining bandwidth is less than the first preset multiple of the maximum available bandwidth, the smaller the remaining bandwidth, the greater the weight assigned to the remaining bandwidth;
[0104] When the number of vehicle connections is greater than the second preset multiple of the maximum connectable number, the greater the number of vehicle connections, the greater the weight assigned to the number of vehicle connections;
[0105] When the remaining storage space is less than the third preset fraction of the total storage space, the smaller the remaining storage space, the greater the weight assigned to the remaining storage space; wherein, the first preset multiple, the second preset multiple, and the third preset multiple are all less than 1.
[0106] In a specific embodiment, the larger the resource score value S, the higher the resource availability. The greater the load rate Load, the lower the resource availability of the target edge node. Therefore, if the load rate Load exceeds the preset load rate (for example, exceeds 80%), at this time, the greater the load rate Load, the appropriate increase in the weight corresponding to the load rate Thereby reducing the contribution of the load rate when calculating the resource score value S.
[0107] In an alternative embodiment, if the remaining bandwidth Bandwidth is less than the first preset multiple of the maximum available bandwidth B max For example, less than 0.2 times the maximum available bandwidth B max When, it indicates that the remaining available bandwidth of the current target edge node is small, then appropriately increase the weight corresponding to the remaining bandwidth Thereby reducing the contribution of the remaining bandwidth when calculating the resource score value S.
[0108] In another alternative embodiment, if the number of vehicle connections Connections is greater than the second preset multiple of the maximum connectable number C max For example, greater than 0.8 times the maximum connectable number C max When, it is determined that the current number of vehicle connections is large and the resource availability of the target edge node is low. At this time, the weight corresponding to the number of vehicle connections should be appropriately increased Thus, reduce the contribution of the number of vehicle connections when calculating the computing resource score value S.
[0109] In still another alternative embodiment, if the remaining storage space Storage is less than the fourth preset multiple of the total storage space S max For example, less than 0.1 times the total storage space S max It indicates that the remaining storage space of the current target edge node is small, that is, the resource availability is low. At this time, the weight corresponding to the remaining storage space should be appropriately increased Thus, reduce the contribution of the remaining storage space when calculating the computing resource score value S.
[0110] On the basis of the above embodiments, in order to further reduce the ping-pong effect, that is, to avoid frequent switching between nodes, the designated edge node is the node with the highest resource score value in the current Mesh network. On this basis, determine whether the resource score values of the target edge node and the designated edge node meet the redirection condition of the Mesh network in the current state, that is, determine whether the data transmission request can be redirected to the designated edge node, including:
[0111] Obtain the redirection trigger threshold of the Mesh network in the current state;
[0112] Determine the difference between the resource score values of the target edge node and the designated edge node;
[0113] Judge whether the difference exceeds the redirection trigger threshold;
[0114] If it exceeds, execute the step of redirecting the data transmission request to the designated edge node whose resource availability index is within the preset range among other edge nodes;
[0115] If it does not exceed, perform the step of transmitting the data file to be transmitted to the vehicle.
[0116] It can be understood that the resource availability status of each edge node in the Mesh network is different at different time nodes. Therefore, in order to improve the redirection reliability, a dynamic redirection trigger threshold acquisition mechanism is adopted. Among them, the redirection trigger threshold is the threshold for whether to trigger redirection, that is, the condition for judging whether redirection can be performed.
[0117] In a specific embodiment, obtain the redirection trigger threshold of the Mesh network in the current state, and calculate the difference between the resource score values of the target edge stage and the designated edge node. Further, judge whether the difference exceeds the redirection trigger threshold.
[0118] If it exceeds, it is determined that redirection can be performed between the target edge node and the designated edge node, and then the vehicle's data download instruction is redirected to the designated edge node, and the designated edge node completes the vehicle's data download task.
[0119] If the redirection trigger threshold is not exceeded, it indicates that the redirection condition is not met. At this time, the data transmission request of the vehicle is still implemented through the target edge node. That is, the target edge node responds to the data transmission request and transmits the data file to be transmitted to the vehicle. For ease of understanding, an example will be given below.
[0120] For example, the redirection trigger threshold in the current state is 0.15, the previous target edge node is A, and the designated edge node is B. In the target edge node A, the load rate Load is 65%, the remaining bandwidth Bandwidth is 2 Gbps, the number of vehicle connections Connections is 120, and the remaining storage space Storage is 1 TB. In the designated edge node B, the load rate Load is 45%, the remaining bandwidth Bandwidth is 5 Gbps, the number of vehicle connections Connections is 80, and the remaining storage space Storage is 2 TB.
[0121] According to formula (1), the resource score value of the target edge node A is calculated to be 0.54, and the resource score value of the designated edge node B is 0.72. It can be seen that the available resources of the designated edge node B are greater than those of the target edge node A, and the resource score values of the target edge node A and the designated edge node B are 0.18, which is greater than the redirection trigger threshold of 0.15. Therefore, the redirection condition is met. At this time, the data transmission request of the target edge node A can be redirected to the designated edge node B.
[0122] Based on the above embodiments, as an alternative embodiment, obtaining the redirection trigger threshold of the Mesh network in the current state includes:
[0123] Obtain the standard deviation of the load rates of each edge node in the Mesh network and the number of redirections within a specified duration;
[0124] Calculate a load fluctuation factor for reflecting the degree of load fluctuation according to the standard deviation of the load rates;
[0125] Calculate a switching frequency penalty factor for reflecting the node switching frequency according to the number of redirections;
[0126] Determine the redirection trigger threshold according to the load fluctuation factor and the switching frequency penalty factor.
[0127] In a specific embodiment, in order to dynamically obtain the redirection trigger threshold, the standard deviation of the load rates of each edge node in the Mesh network and the number of redirections within a specified duration can be statistically calculated periodically (for example, every 1 minute). This application does not limit the specified duration, which can be set to 5 minutes, for example.
[0128] Further, according to the standard deviation of the load rate, a load fluctuation factor for reflecting the degree of load fluctuation is calculated, and the specific calculation formula is Formula (2):
[0129] Δ Load =σ Load ·γ (2)
[0130] Where, Δ Load is the load fluctuation factor, σ Load is the standard deviation of the load rate, and γ is the amplification factor. In an optional embodiment, the amplification factor γ can be set to 0.1.
[0131] Based on Formula (2), it can be seen that when the standard deviation of the load rate σ Load is larger, the load fluctuation factor Δ Load is larger.
[0132] Meanwhile, according to the number of redirects, a switching frequency penalty factor for reflecting the node switching frequency is calculated, and the specific calculation formula is Formula (3):
[0133]
[0134] Where, Δ swich is the switching frequency penalty factor, k is the curve steepness coefficient. In an optional embodiment, the curve steepness coefficient k is set to 0.5, N switch is the number of redirects within a specified duration, and N max is the maximum allowable number of redirects within a specified duration.
[0135] Based on Formula (3), it can be seen that when the number of redirects N switch is more, the switching frequency penalty factor Δ swich is larger.
[0136] Further, according to the load fluctuation factor and the switching frequency penalty factor, a redirect trigger threshold is determined, and the specific calculation formula is Formula (4):
[0137] T=T base +α·Δ swich +β·Δ Load (4)
[0138] Where, T is the redirect trigger threshold, and T base is the basic redirect threshold. In an optional embodiment, the basic redirect threshold T base can be set to 0.15. α and β are adjustment coefficients. In an optional embodiment, α can be set to 0.3 and β can be set to 0.2.
[0139] Based on Formula (4), it can be seen that when the load fluctuation factor Δ LoadThe larger it is, the larger the redirection trigger threshold; when the handover frequency penalty factor Δ swich is larger, the redirection trigger threshold is larger.
[0140] It should be noted that, in an alternative embodiment, an initial redirection trigger threshold T may be set within a specified range, for example, between 0.1 and 0.25, for example, set to 0.15. For ease of understanding, the dynamic adjustment mechanism of the redirection trigger threshold T will be illustrated by way of example below.
[0141] For example, the base redirection threshold T base is set to 0.15. In the current state, the base redirection threshold T base is 0.15, the number of redirections N within a specified duration switch is 8, and the standard deviation of the load rate σ Load is 0.12. Then, according to formula (2), the load fluctuation factor Δ Load is 0.012, and according to formula (3), the handover frequency penalty factor Δ swich is 0.62. Further, according to formula (4), the redirection trigger threshold T is calculated to be 0.3324. It can be seen that the redirection trigger threshold T rises from 0.15 in the initial state to 0.3324, thereby significantly reducing the number of redirections of nodes in the Mesh network.
[0142] Thus, the vehicle data download control method provided by the embodiments of the present application introduces environment-sensitive parameters, that is, introduces the load fluctuation factor and the handover frequency penalty factor, dynamically adjusts the redirection trigger threshold according to the real-time state of the system, improves the reliability of redirection, and avoids the ping-pong effect.
[0143] Thus, the vehicle data transmission control method provided by the embodiments of the present application selects a node with resource availability meeting the expectation in a Mesh network composed of multiple edge nodes according to the resource availability index to complete the current vehicle data transmission request, ensuring a quick response to the request data transmission request. On this basis, data files with high cache value are pre-cached in the local database for easy and quick retrieval and provision to the vehicle. At the same time, channels meeting the expectation are selected according to the channel quality for data transmission, further improving the transmission rate. That is, by combining the maximization of edge node resource availability, storing files based on cache value, and selecting high-quality channels, the response speed and transmission efficiency of concurrent data requests are improved, the resource utilization rate is increased, the delay is reduced, and the user experience is enhanced.
[0144] In an alternative embodiment, the cached files stored according to the cache value include:
[0145] Every preset period, calculate the value parameter values of each data file for characterizing the cache value;
[0146] Ascendingly sort each data file based on the value parameter value;
[0147] Take the files in the first preset percentage of the ascending sort result as cached files and store them in the local database.
[0148] It can be understood that the data transmission requests of different vehicles at different time nodes will change continuously. In order to adapt to the continuously changing requests of users, it is necessary to dynamically adjust the files pre-cached in the local database. Specifically, in an optional embodiment, the cached value of each data file can be evaluated every other preset period (for example, every 10 minutes). Specifically, calculate the value parameter value used to characterize the cached value, and perform an ascending sort on the value parameter value.
[0149] Furthermore, take the files in the first preset percentage (for example, the first 90%) of the ascending sort result as cached files and store them in the local database. Of course, it should be noted that the storage space of the files in the first preset percentage cannot exceed the total storage space of the local database.
[0150] In another optional embodiment, the data files in the sort result can also be selected according to the total storage space of the local database. Specifically, start selecting from the first position of the sort result and keep selecting until the last data file whose storage space does not exceed the total storage space of the local database.
[0151] Thus, the local area network server adopts an advanced intelligent caching algorithm, records information such as the access frequency and the most recent access time of the files in real time, and dynamically adjusts the caching policy according to the access records, giving priority to retaining the frequently accessed files in the cache to improve the cache hit rate. In addition, periodically dynamically adjust the cached files in the local database according to the cached value, so as to adapt to the fast response requests of users for different data at different stages.
[0152] Based on the above embodiments, as an optional embodiment, calculating the value parameter value used to characterize the cached value of each data file includes:
[0153] Obtain the cached value impact factor of the data file; wherein, the cached value impact factor includes at least one of the access frequency, the unaccessed duration generated according to the time interval from the current moment to the last access moment, and the file storage space;
[0154] Assign corresponding weights to the cached value impact factors at the current moment;
[0155] Calculate the value parameter value according to the weights and the cached value impact factors.
[0156] It can be understood that in specific embodiments, frequently accessed data files should be cached preferentially. Among them, data files with a shorter duration between the current moment and the last access moment, that is, data files with a shorter unaccessed duration, should be preferentially cached. In addition, considering the limited storage space of the local database, when caching data files, the storage space size of the data files should also be considered.
[0157] Therefore, when calculating the value parameter value of a data file, a cache value influence factor of the data file is obtained, and the cache value influence factor includes at least one of access frequency, unaccessed duration, and file storage space.
[0158] In specific embodiments, information such as the access count, last access time, and file storage space size of a data file can be recorded in real time, and the value parameter value of each data file is calculated every preset period (for example, every 10 minutes).
[0159] It can be understood that the more cache value influence factors are considered, the more reliable the calculated value parameter value is. Therefore, in a preferred embodiment, the cache value influence factors include three items: access frequency, unaccessed duration, and file storage space.
[0160] Furthermore, considering that different influence factors have different degrees of influence on the cache value, in an alternative embodiment, corresponding weights are assigned to the cache value influence factors. Specifically, a first weight is assigned to the access frequency, a second weight is assigned to the unaccessed duration, and a third weight is assigned to the file storage space.
[0161] Furthermore, according to the weights and the cache value influence factors, the value parameter value is calculated. For the specific calculation, refer to formula (5):
[0162]
[0163] Among them, Score is the value parameter value, ω1 is the first weight of the access frequency, ω2 is the second weight of the unaccessed duration, ω3 is the third weight of the file storage space, freg is the access frequency, age is the unaccessed duration, and size is the file storage space.
[0164] Thus, in the control method for vehicle data transmission provided by the embodiments of the present application, different weights are set for different cache value influence factors to accurately evaluate whether a data file can be preferentially cached in the local database, so as to subsequently implement data requests such as rapid downloading of data files based on the local database.
[0165] Based on the above embodiments, as an alternative embodiment, assigning corresponding weights to the cache value influence factors at the current moment includes:
[0166] When the access frequency is higher, the weight distribution corresponding to the access frequency is smaller;
[0167] The longer the non-access time is, the greater the weight assigned to the non-access time is;
[0168] When the remaining storage space of the local database is less than a threshold, the larger the file storage space is, the greater the weight allocated to the file storage space is.
[0169] In a specific embodiment, as conditions such as the frequency of data file accesses continue to change, and considering the limited storage space of the local database, different cache value influencing factors have different degrees of influence in each cache calculation cycle.
[0170] In addition, in the embodiment of the present application, the smaller the calculated value parameter value Score is, the higher the cache value of the representation data file is. Conversely, if the value parameter value Score is larger, the lower the cache value of the representation data file is.
[0171] Therefore, in order to more accurately cache high-value data files, in an optional embodiment, the weights of the cache value influencing factors are dynamically adjusted. Specifically, when a data file is accessed more frequently, it indicates a higher cache value for that data file. In this case, the first weight ω1 should be appropriately reduced, so that the smaller the value parameter value Score, the higher the cache value of the data file.
[0172] In an optional embodiment, when the non-access time is longer, the access frequency of the data file indirectly represented is actually lower, that is, the cache value of the data file is lower. At this time, the second weight ω2 should be appropriately increased to strengthen the influence of the non-access time on the value parameter value Score, ensuring that the data files with longer non-access time are eliminated first, that is, data files with shorter non-access time are preferably cached.
[0173] In another optional embodiment, when the remaining storage space of the local database is less than a threshold, that is, when the local database storage space is insufficient, data files with large file storage space should be eliminated first. At this time, the third weight ω3 is appropriately increased to strengthen the negative impact of the file storage space on the value parameter value Score, ensuring that large files are eliminated first when the local database storage is insufficient, and space is released quickly.
[0174] It can be understood that the role of the third weight ω3 is to amplify or reduce the size -1 The impact of large file size -1 Therefore, increasing the third weight ω3 can amplify this inverse relationship, making the disadvantage of large files more obvious, thereby giving priority to eliminating data files with large file storage space.
[0175] It should be noted that in an alternative embodiment, the sum of the first weight ω1 of the access frequency, the second weight ω2 of the unaccessed duration, and the third weight ω3 of the file storage space is 1. And the first weight ω1 is greater than the second weight ω2, and the second weight ω2 is greater than the third weight ω3.
[0176] In another alternative embodiment, the initial weights are set according to the empirical values of the influence degrees of the access frequency, the unaccessed duration, and the file storage space on the cache value. Specifically, in an alternative embodiment, the first weight ω1 can be set to 0.6, the second weight ω2 can be set to 0.3, and the third weight ω3 can be 0.1.
[0177] Thus, the control method for vehicle data transmission provided by the embodiments of the present application takes into account the access frequency, temporal locality, and storage efficiency of data files, and dynamically adjusts the weights of the cache value influence factors, further improving the evaluation accuracy of the cache value of data files.
[0178] Figure 3 It is a schematic flowchart of a control method for vehicle data transmission provided by another embodiment of the present application. As Figure 3 shown, in an alternative embodiment, determining the target channel according to the channel quality includes:
[0179] S30: Obtain the channel quality influence factors of all channels between the target edge node and the vehicle; the channel quality influence factors include at least one of the bandwidth utilization rate and the channel interference intensity;
[0180] In a specific embodiment, in order to further improve the data transmission rate and avoid serious delays caused by interference from microwave ovens, Bluetooth devices, etc. to the data file to be transmitted during the transmission process. Therefore, before the transmission, obtain the channel quality influence factors of all channels between the target edge node and the vehicle, where the channel quality influence factors include at least one of the bandwidth utilization rate and the channel interference intensity.
[0181] In an alternative embodiment, the channel interference intensity of the rice seedling channel can be scanned by a spectrum analyzer every specified period (for example, every 5 seconds). It should be noted that the channel between the target edge node and the vehicle can be a WiFi channel (2.4 GHz band or 5 GHz band) and a WiFi channel in the dedicated V2X band, including but not limited to these.
[0182] In addition, in an alternative embodiment, the bandwidth utilization rate is related to the maximum bandwidth of the channel and the number of devices connected to the channel, that is, the bandwidth utilization rate of the channel can be calculated by obtaining the number of device connections.
[0183] S31: Calculating a quality parameter value for characterizing channel quality based on the channel quality impact factor; wherein, when the bandwidth utilization is higher, the channel quality is lower and the quality parameter value is smaller; and when the channel interference intensity is smaller, the channel quality is higher and the quality parameter value is larger;
[0184] Specifically, based on the channel quality impact factor, the quality parameter value used to characterize the channel quality is calculated, and the calculation formula is formula (6):
[0185]
[0186] Among them, Q(c) is the quality parameter value of channel c, B C is the maximum bandwidth of channel c, N c is the number of devices connected to channel c, I c is the channel interference intensity of the current channel c, I max is the maximum allowed interference intensity of channel c, where Bandwidth utilization.
[0187] S32: sorting the quality parameter values in descending order to obtain a sorting result;
[0188] S33: Determine whether the currently used channel belongs to the previously preset position in the sorting result; if so, proceed to step S34; if not, proceed to step S35;
[0189] Furthermore, after obtaining the quality parameter values of all channels, the quality parameter values are sorted in descending order, so that the target channel that meets the expectations can be selected based on the descending sorting results. It can be understood that when the quality parameter Q(c) is larger, the channel quality is higher, and conversely, when the quality parameter Q(c) is smaller, the channel quality is lower.
[0190] In a specific embodiment, when responding to a vehicle's data transmission request, the target channel is selected in real time based on the actual conditions of all channels between the current target edge node and the vehicle, thereby improving transmission efficiency. The higher the value, the less available resources the channel has, which has a negative impact on the channel quality. That is, the lower the channel quality, the smaller the corresponding quality parameter value.
[0191] In fact, it can also be understood that if the number of channel connected devices N c The more, the busier the channel, the lower the transmission rate, the lower the channel quality, and the smaller the quality parameter value. In addition, if the channel interference intensity I c The smaller the value, the higher the channel quality, and the larger the corresponding quality parameter value.
[0192] In an optional embodiment, to avoid frequent switching between channels, that is, to avoid the ping-pong effect that may lead to data transmission interruption and data loss, after sorting in descending order, a determination is made based on the sorting results to determine whether the currently used channel belongs to the first preset digits (e.g., the first three digits) in the sorting results. In other words, the determination is made to determine whether the currently used channel is a high-quality channel.
[0193] S34: The currently used channel is used as the target channel;
[0194] It can be understood that if the currently used channel is the previous preset number, it indicates that the quality of the currently used channel is higher. In order to avoid frequent channel switching, even if the currently used channel is not the highest quality channel, the current channel is retained as the target channel for data transmission.
[0195] S35: The channel corresponding to the first position in the sorting result is used as the target channel.
[0196] Of course, if the currently used channel does not belong to the pre-set number, it indicates that the currently used channel is too poor, which will affect data transmission efficiency. In this case, it is necessary to change the channel to improve transmission efficiency. Therefore, in an optional embodiment, to further avoid frequent channel switching, the channel corresponding to the first place in the sorting result is used as the target channel.
[0197] It should be noted that when channel switching occurs, that is, when switching from the currently used channel to the target channel, the vehicle is first controlled to establish a connection with the target channel, and then the old channel (that is, the currently used channel) is disconnected to avoid service interruption and affect the user experience.
[0198] Therefore, the vehicle data transmission control method provided in the embodiment of the present application selects a high-quality target channel for data transmission based on the channel quality, thereby achieving high-speed data transmission.
[0199] In an optional embodiment, after obtaining the data transmission request of the vehicle, the method includes:
[0200] Parse the SNI field in the data transfer request to identify the matching domain name;
[0201] When the matching domain name is in the preset list, after returning the legitimacy certificate, the data transmission request is redirected to the LAN server of the target edge node to establish an encrypted connection with the vehicle.
[0202] In order to ensure the security of data transmission, in an optional embodiment, the control system includes a domain name hijacking system, which includes an SNI (Server Name Indication) parsing module, a dynamic certificate management module and a traffic redirection module.
[0203] In a specific embodiment, the SNI parsing module is embedded in the network traffic processing layer of the edge server. After obtaining the data transmission request sent by the vehicle, the SNI field of the data transmission request (HTTPS request) can be parsed and identified in real time to obtain the matching domain name.
[0204] The domain name hijacking module is configured in the control system to intelligently identify the domain name of the file to be downloaded. When the vehicle initiates a data transmission request, the domain name hijacking module redirects the request to the LAN server, enabling high-speed data download within the LAN.
[0205] Specifically, it is first determined whether the extracted matching domain name is in the preset list, that is, the legal certificate of the preset official domain name of the automobile company is stored in the preset list. If it is in the preset list, it is determined that the certificate is legal, and the legality certificate is returned to the vehicle. At the same time, based on the Linux iptables rule chain, the traffic corresponding to the matching domain name is forwarded to the LAN server of the target edge node, rather than the cloud, that is, a communication connection is established with the target edge node that is closer to the transmission link. In another optional embodiment, if the matching domain name is not in the preset list, it is released to the Internet.
[0206] To ensure data security when establishing a communication connection, an optional embodiment deploys an SSL certificate on the LAN server. An SSL certificate is a digital certificate that uses public key cryptography to establish a secure network connection, protecting data from theft or tampering during transmission. An automated deployment process is employed to ensure the certificate is quickly and accurately installed on the LAN server. An automatic certificate renewal mechanism is also implemented to prevent service interruptions caused by certificate expiration.
[0207] During data transmission, an OCSP (Online Certificate Status Protocol) server must be accessed to verify the validity of the SSL certificate. To improve OCSP access efficiency, an optional embodiment can employ OCSP stapling technology. OCSP stapling allows the LAN server to proactively send the OCSP response cache (i.e., the current certificate status information) to the client when establishing an SSL connection. This eliminates the need for the client to separately access the OCSP server for certificate verification, thereby improving the speed and efficiency of connection establishment.
[0208] like Figure 2As shown in the figure, in order to enable the local area network server to access the OCSP server, a method of accessing the Internet through a 5G cellular network network card can be adopted. The 5G network has the characteristics of high speed and low latency, which can ensure fast and stable communication between the local area network server and the OCSP server.
[0209] In an alternative embodiment, transmitting the data file to be transmitted to the vehicle through a target channel determined according to the channel quality includes:
[0210] After encrypting and compressing the data file to be transmitted, it is transmitted to the vehicle through the target channel based on the mobile high-density AP.
[0211] Based on the above embodiment, in order to further improve the output transmission rate and security, before transmitting the data file to be transmitted through the target channel, the data file to be transmitted is encrypted and compressed. Specifically, the data file to be transmitted is compressed on the local area network server to reduce the amount of transmitted data. At the same time, an advanced encryption algorithm is used to encrypt the data to improve the transmission security. The encryption method of this application is not limited.
[0212] Furthermore, as Figure 2 shown, it is transmitted to the vehicle based on the mobile high-density AP. In an alternative embodiment, the mobile high-density AP can adopt the latest wireless communication technologies, such as the 802.11ax standard, beamforming technology, etc. By optimizing the wireless signal transmission direction and frequency allocation, the wireless transmission speed and stability are improved.
[0213] Combined with Figure 2 For further illustration, in a specific embodiment, the control system of the target edge node is responsible for coordinating and managing the entire download process. When the vehicle initiates a data transmission request (for example, a data transmission request), the control system first verifies the validity of the data transmission request and processes the data request (that is, performs SNI parsing on the data transmission request). Then, fast data transmission is achieved through the local area network server and the mobile high-density AP. During the data download process, the control system monitors the download progress in real time and adjusts the transmission strategy to ensure accurate and fast data transmission.
[0214] Thus, each edge node in the Mesh network intelligently collaborates to achieve efficient collaborative work between edge nodes. The target edge node can dynamically adjust the resource allocation of the edge nodes according to the changes in the vehicle download requirements, ensuring that data can be quickly and accurately distributed to the target vehicle. At the same time, a multi-level data encryption technology is adopted to ensure the security of data during transmission and processing.
[0215] In an optional embodiment, the Mesh network can collaborate with the cloud computing center, maintaining close cooperation with the cloud computing center. When edge nodes encounter processing capacity constraints or need to access cloud resources, they can quickly communicate with the cloud computing center to ensure continuous and efficient data processing.
[0216] In the above embodiment, the control method for vehicle data transmission is described in detail. The present application also provides a corresponding embodiment of a control device for vehicle data transmission.
[0217] Figure 4 This is a schematic diagram of the structure of a vehicle data transmission control device provided in an embodiment of the present application, such as Figure 4 As shown, the device includes:
[0218] A transmission request acquisition module 40 is used to acquire a data transmission request from a vehicle;
[0219] The resource determination module 41 is used to determine whether the resource availability index of the current target edge node is within a preset range; if so, the processing module is called; if not, the redirection module is called;
[0220] The processing module 42 is configured to determine whether the data file to be transmitted corresponding to the data transmission request is a cache file stored in the local database according to the cache value; if so, retrieve the data file to be transmitted from the local database; and transmit the data file to be transmitted to the vehicle via a target channel determined according to the channel quality;
[0221] The redirection module 43 is configured to redirect the data transmission request to a designated edge node among other edge nodes whose resource availability indicator is within a preset range.
[0222] In addition, the vehicle data transmission control device provided in the embodiment of the present application further includes:
[0223] A value parameter value calculation module is used to calculate the value parameter value of each data file used to represent the cache value at each preset period;
[0224] An ascending sorting module is used to sort each data file in ascending order based on the value parameter value;
[0225] The storage module is used to store the first preset percentage of files in the ascending sorting results as cache files in the local database.
[0226] A cache value impact factor acquisition module is used to obtain a cache value impact factor of a data file; wherein the cache value impact factor includes at least one of an access frequency, a non-access time generated based on the current time from the last access time, and a file storage space;
[0227] A weight allocation module, configured to allocate corresponding weights to the cache value impact factors at the current moment;
[0228] A value parameter value calculation module, further configured to calculate a value parameter value according to the weights and the cache value impact factors.
[0229] A first sub-module of weight allocation, configured to allocate a smaller weight to the access frequency when the access frequency is higher;
[0230] A second sub-module of weight allocation, configured to allocate a larger weight to the unaccessed duration when the unaccessed duration is longer;
[0231] A third sub-module of weight allocation, configured to, when the remaining storage space in the local database is less than a threshold, allocate a larger weight to the file storage space as the file storage space is larger.
[0232] A channel quality impact factor acquisition module, configured to acquire channel quality impact factors of all channels between a target edge node and a vehicle; the channel quality impact factors include at least one of bandwidth utilization rate and channel interference intensity;
[0233] A channel quality calculation module, configured to calculate a quality parameter value for characterizing channel quality according to the channel quality impact factors; wherein, when the bandwidth utilization rate is higher, the channel quality is lower and the quality parameter value is smaller; when the channel interference intensity is smaller, the channel quality is higher and the quality parameter value is larger;
[0234] A descending order module, configured to perform a descending order sorting on the quality parameter values to obtain a sorting result;
[0235] A target channel acquisition module, configured to determine whether the currently used channel belongs to the top preset positions in the sorting result; if so, use the currently used channel as the target channel; if not, use the channel corresponding to the first position in the sorting result as the target channel.
[0236] A parsing module, configured to parse the SNI field in the data transmission request to identify a matching domain name;
[0237] A connection module, configured to, when the matching domain name is in a preset list, after returning a legitimacy certificate, redirect the data transmission request to the local area network server of the target edge node to establish an encrypted connection with the vehicle.
[0238] A data transmission module, configured to, after encrypting and compressing the data file to be transmitted, transmit it to the vehicle through the target channel based on a mobile high-density AP.
[0239] Figure 5 The structural schematic diagram of a control device for vehicle data transmission provided in another embodiment of the present application, as Figure 5As shown, the control device for vehicle data transmission includes: a memory 50 for storing computer programs;
[0240] a processor 51 for implementing the steps of the control method for vehicle data transmission as mentioned in the above embodiments when executing the computer programs.
[0241] The control device for vehicle data transmission provided in this embodiment may include, but is not limited to, a laptop computer or a desktop computer, etc.
[0242] Among them, the processor 51 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 51 may be implemented in at least one hardware form of a Digital Signal Processor (DSP for short), a Field-Programmable Gate Array (FPGA for short), or a Programmable Logic Array (PLA for short). The processor 51 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the wake state, also known as the Central Processing Unit (CPU for short); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 51 may be integrated with a Graphics Processing Unit (GPU for short), and the GPU is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 51 may further include an Artificial Intelligence (AI for short) processor, and the AI processor is used to process computational operations related to machine learning.
[0243] The memory 50 may include one or more computer-readable storage media, and the computer-readable storage media may be non-transitory. The memory 50 may further include high-speed random access memory and non-volatile memory, such as one or more disk storage devices and flash storage devices. In this embodiment, the memory 50 is at least used to store the following computer program 501. After the computer program is loaded and executed by the processor 51, it can implement the relevant steps of the control method for vehicle data transmission disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 50 may also include an operating system 502 and data 503, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 502 may include Windows, Unix, Linux, etc. The data 503 may include, but is not limited to, the relevant data involved in the control method for vehicle data transmission.
[0244] In some embodiments, the control device for vehicle data transmission may further include a display screen 52, an input / output interface 53, a communication interface 54, a power supply 55, and a communication bus 56.
[0245] Those skilled in the art can understand that Figure 5 the structure shown in does not constitute a limitation on the control device for vehicle data transmission, and may include more or fewer components than those shown in the figure.
[0246] The control device for vehicle data transmission provided by the embodiments of the present application includes a memory and a processor. When the processor executes the program stored in the memory, it can implement the control device for vehicle data transmission in the above embodiments.
[0247] It should be noted that although the operations are depicted in a specific order in the drawings, this should not be construed as requiring the operations to be performed in the specific order shown or sequentially, or requiring all of the illustrated operations to be performed to achieve the desired result. In some cases, multitasking and parallel processing may be advantageous. In addition, the separation of the various system modules and components in the above embodiments should not be understood as required in all embodiments, and it should be understood that the described program components and systems can generally be integrated together in a single software product or packaged into multiple software products.
Claims
1. A control method for vehicle data transmission, characterized in that, A control system applied to a target edge node, where the target edge node and other edge nodes form a Mesh network; the method includes: Obtain a data transmission request of a vehicle; Determine whether the resource availability index of the current target edge node is within a preset range; If it is, determine whether the data file to be transmitted corresponding to the data transmission request is a cached file stored in the local database according to the caching value; if so, retrieve the data file to be transmitted from the local database; and transmit the data file to be transmitted to the vehicle through a target channel determined according to the channel quality; If not, redirect the data transmission request to a designated edge node among the other edge nodes whose resource availability index is within the preset range.
2. The control method for vehicle data transmission according to claim 1, wherein The cached file stored according to the caching value includes: Every preset period, calculate the value parameter value of each data file for characterizing the caching value; Based on the value parameter value, perform an ascending order sorting on each data file; Use the files in the first preset percentage of the ascending order sorting result as the cached files and store them in the local database.
3. The control method for vehicle data transmission according to claim 2, wherein, The calculating the value parameter value of each data file for characterizing the caching value includes: Obtain the caching value influencing factor of the data file; wherein, the caching value influencing factor includes at least one of the access frequency, the unaccessed duration generated according to the time difference between the current moment and the last access moment, and the file storage space; Assign corresponding weights to the caching value influencing factors at the current moment; Calculate the value parameter value according to the weights and the caching value influencing factors.
4. The control method for vehicle data transmission according to claim 3, characterized in that, The assigning corresponding weights to the caching value influencing factors at the current moment includes: When the access frequency is higher, the weight assigned to the access frequency is smaller; When the unaccessed duration is longer, the weight assigned to the unaccessed duration is larger; In the case that the remaining storage space in the local database is less than the threshold, the larger the file storage space, the larger the weight assigned to the file storage space.
5. The control method for vehicle data transmission according to claim 1, characterized in that, Determining the target channel according to the channel quality includes: Obtain the channel quality influencing factors of all channels between the target edge node and the vehicle; the channel quality influencing factor includes at least one of the bandwidth utilization rate and the channel interference intensity; Calculate the quality parameter value for characterizing the channel quality according to the channel quality influencing factors; wherein, when the bandwidth utilization rate is higher, the channel quality is lower and the quality parameter value is smaller; when the channel interference intensity is smaller, the channel quality is higher and the quality parameter value is larger; Perform a descending order sorting on the quality parameter values to obtain a sorting result; Judge whether the currently used channel belongs to the first preset positions in the sorting result; If it belongs, use the currently used channel as the target channel; If it does not belong, use the channel corresponding to the first position in the sorting result as the target channel.
6. The control method for vehicle data transmission according to claim 1, wherein, After obtaining the data transmission request of the vehicle, it includes: Parse the SNI field in the data transmission request to identify the matching domain name; When the matching domain name is in the preset list, after returning the legitimacy certificate, redirect the data transmission request to the local area network server of the target edge node so as to establish an encrypted connection with the vehicle.
7. The control method for vehicle data transmission according to claim 1, wherein, Transmitting the data file to be transmitted to the vehicle through a target channel determined according to the channel quality includes: After encrypting and compressing the data file to be transmitted, transmit it to the vehicle through the target channel based on the mobile high-density AP.
8. A control device for vehicle data transmission, characterized in that, Applied to the control system in the target edge node, the target edge node and other edge nodes form a Mesh network; the device includes: A transmission request acquisition module, configured to acquire a data transmission request of a vehicle; A resource determination module, configured to determine whether the resource availability index of the current target edge node is within a preset range; if so, call the processing module; if not, call the redirection module; The processing module is configured to determine whether the data file to be transmitted corresponding to the data transmission request is a cached file stored in the local database according to the cache value; if so, retrieve the data file to be transmitted from the local database; and transmit the data file to be transmitted to the vehicle through a target channel determined according to the channel quality; The redirection module is configured to redirect the data transmission request to a specified edge node in the other edge nodes whose resource availability index is within the preset range.
9. A control device for vehicle data transmission, comprising a memory and a processor, wherein a computer program that can run on the processor is stored on the memory, and is characterized in that When the processor executes the program, the steps of the control method for vehicle data transmission according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, the steps of the control method for vehicle data transmission according to any one of claims 1 to 7 are implemented.