A data transmission control method and system for an autobus
By dynamically adjusting the size and priority of the AUTBUS data transmission window, the problems of low real-time performance and efficiency in data transmission are solved, achieving efficient and reliable data transmission control.
Patent Information
- Application Number
- CN202511699644.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-19
- Publication Date
- 2026-02-24
- Estimated Expiration
- 2045-11-19
AI Technical Summary
In existing technologies, the AUTBUS data transmission control method does not fully consider the diversity and burstiness of the data to be transmitted, resulting in low real-time performance and efficiency of data transmission.
By obtaining the transmission window label and data packet type of the data packet to be transmitted, a dynamically adjustable window size is generated, and the priority is calculated based on the dynamically transmitted data packet to be transmitted. The transmission strategy is dynamically adjusted, including the dynamic transmission scheme and data packet contention parameters, to achieve differentiated transmission.
It improves the real-time performance and efficiency of data transmission, ensures efficient and reliable data transmission in complex environments, and realizes intelligent allocation and efficient utilization of transmission resources.
Smart Images

Figure CN121150884B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of industrial communication bus technology, specifically a data transmission control method and system for AUTBUS. Background Technology
[0002] In the field of modern industrial automation and control, efficient and reliable data transmission is crucial for ensuring stable system operation and achieving intelligent management. AUTBUS, as an advanced fieldbus technology, plays a vital role in connecting distributed devices and enabling real-time information exchange. It is not merely a physical layer signal transmission mechanism, but rather represents the "nervous system" for efficient collaboration between sensing, decision-making, and execution units in industrial systems. AUTBUS data transmission means accurately transmitting real-time sensor data, controller command signals, and actuator feedback information in complex industrial environments with high anti-interference capability, low latency, and deterministic performance.
[0003] In the process of multiple devices exchanging data with the main controller via the AUTBUS bus, existing technologies often use a fixed strategy for data transmission, which does not fully consider the diversity and burstiness of the data to be transmitted. This results in low real-time performance and efficiency of data transmission due to the fixed transmission strategy. Therefore, the data transmission control method of AUTBUS still needs further improvement. Summary of the Invention
[0004] This application aims to solve at least one of the technical problems existing in the prior art; to this end, this application proposes a data transmission control method and system for AUTBUS, which solves the technical problem that the prior art often adopts a fixed strategy for data transmission, which does not fully consider the diversity and burstiness of the data to be transmitted, resulting in low real-time performance and efficiency of data transmission due to the fixed transmission strategy.
[0005] To achieve the above objectives, a first aspect of this application provides a data transmission control method for AUTBUS, comprising:
[0006] Acquire the data packet to be transmitted; the data packet to be transmitted includes a transmission window label, a data packet type, and data packet parameters; the transmission window label includes a fixed transmission window and a dynamic transmission window; the data packet type includes a fixed data packet to be transmitted and a dynamic data packet to be transmitted; the data packet parameters include fixed data packet parameters and dynamic data packet parameters.
[0007] The window size is dynamically adjusted based on the determined data packets to be transmitted.
[0008] Calculate the dynamic priority of data packets to be transmitted based on the dynamic data packets to be transmitted.
[0009] A dynamic transmission scheme is generated based on dynamic pending priority and dynamic window size adjustment.
[0010] Data is transmitted dynamically according to the dynamic transmission scheme for the data packets to be transmitted.
[0011] Through the above steps, this application can automatically identify and classify data packets to be transmitted based on the transmission window label, and implement differentiated transmission strategies for different types of data packets. At the same time, the size of the dynamic transmission window can be adaptively adjusted according to network conditions and business needs, and the transmission priority of each data packet to be transmitted can be dynamically calculated in combination with real-time factors, which effectively optimizes the data scheduling process and significantly improves the real-time performance and overall efficiency of data transmission.
[0012] Furthermore, the step of generating a dynamically adjusted window size based on the determined data packet to be transmitted includes:
[0013] Extract the transmission window size; the transmission window includes a fixed transmission window size and a dynamic transmission window size;
[0014] The determined data packet to be transmitted is input into the window occupancy prediction model to obtain the determined occupancy prediction window size; the window occupancy prediction model is constructed through an artificial intelligence model and is used to evaluate the window size occupied by the determined data packet to be transmitted within the determined transmission window size;
[0015] The dynamic adjustment window size is obtained by calculating the difference between the transmission window size and the estimated window size.
[0016] Furthermore, the window occupancy prediction model is constructed using an artificial intelligence model, including:
[0017] Obtain several historically determined data packets to be transmitted and their corresponding historically determined estimated window sizes;
[0018] Several historically determined data packets to be transmitted and their corresponding historically determined estimated window sizes are divided into training data, validation data, and test data; and the training data, validation data, and test data are preprocessed to obtain the training set, validation set, and test set.
[0019] Choose an artificial intelligence model as the base model;
[0020] The base model is trained on the training set, and the learning rate and other hyperparameters are adjusted on the validation set to obtain the pre-trained model.
[0021] By validating the pre-trained model on the test set, we finally obtained a window occupancy prediction model that takes the data packet to be transmitted as input and the estimated window size as output.
[0022] Furthermore, the calculation of dynamic transmission priority based on dynamic data packets to be transmitted includes:
[0023] Extract the dynamic data packet parameters corresponding to the dynamic data packet to be transmitted; the dynamic data packet parameters include data service type, data mode type, data waiting time, data stream type, and data packet byte count;
[0024] Extract the number of bytes of data packets of the same data stream type from a number of dynamic data packets to be transmitted, and calculate the total number of bytes of data packets corresponding to the same data stream type;
[0025] The importance score of a service is obtained from a service importance score table based on the data service type; the service importance score table is set by experts based on the importance of the service type to which the dynamically transmitted data packet belongs.
[0026] The mode score is obtained from the mode score table based on the data mode type; the mode score table is set by experts according to the importance of the data mode to which the dynamic transmission data packet belongs;
[0027] Priority parameters are generated based on business importance score, method score, data wait time, and total number of bytes in data packets.
[0028] Through formula Calculate the dynamic priority to be transmitted; where i is the parameter index number in the priority parameter index, and I is the total number of parameter indexes in the priority parameter index; CZ i Let be the i-th priority parameter index; σ(x) is the Sigmoid function used to restrict the dynamic priority to be transmitted between 0 and 1, and σ(x) = 1 / (1+e^(i-1)). -x );α i It is represented as the parameter weight coefficient.
[0029] This application considers several dynamic data packet parameters and analyzes them to obtain several priority parameter indicators that quantify the priority of the data packets to be transmitted; it then uses adaptive parameter weighting coefficients to comprehensively analyze these priority parameter indicators to obtain the dynamic priority of the data packets to be transmitted, making the results of the dynamic priority of the data packets to be transmitted more accurate; and it provides accurate data support for the subsequent transmission of dynamic data packets to be transmitted.
[0030] Furthermore, the priority parameter indicators generated based on business importance score, method score, data waiting time, and total number of bytes in the data packet include:
[0031] The priority parameter indicators include basic priority indicators and dynamic priority indicators;
[0032] The priority basic index is calculated using a formula; the formula satisfies:
[0033] ; where Φ-1 () represents the inverse standard normal distribution CDF function, used to enhance the advantages of high-priority data; min() represents the minimum value operation, which is used to limit the domain of the inverse standard normal distribution CDF function to the standard range. Since the domain of the inverse standard normal distribution CDF function is between 0 and 1, when summing YZP and FP, the sum value may be greater than 1. Therefore, the min() function is used to limit this. YZP and FP represent business importance score and method score, respectively.
[0034] The waiting time index is calculated using a formula; the formula satisfies:
[0035] Where SDS represents the data waiting time and DS represents the unit time, DS is set to remove the unitization; the value of DS is set based on experience.
[0036] The data flow penalty metric is calculated using a formula; the formula satisfies:
[0037] Where SZZS represents the total number of bytes in the data packet; DZS represents the number of bytes per unit, used to de-normalize the total number of bytes in the data packet.
[0038] Priority dynamic indicators are determined based on waiting time and data flow penalty indicators.
[0039] Furthermore, the parameter weighting coefficients are obtained in the following way:
[0040] Obtain the basic weight coefficients of the parameters; these basic weight coefficients are determined by experts based on simulation experiment results.
[0041] The monitoring metrics include average waiting time, collision ratio, and effective data bit rate. The average waiting time refers to the average waiting time of all dynamic data packets to be transmitted within the dynamic transmission window. The collision ratio refers to the proportion of collisions that occur when all dynamic data packets to be transmitted within the dynamic transmission window attempt to be transmitted. The effective data bit rate refers to the effective data bit rate of all dynamic data packets to be transmitted successfully transmitted within the dynamic transmission window.
[0042] Define weight adjustment rules; these rules are set by experts based on the impact of monitoring indicators on the basic weight coefficients of the parameters.
[0043] The weight adjustment rule includes the following steps:
[0044] When the average waiting time is greater than the waiting time threshold, α2 = Jα2 + 0.2;
[0045] When the conflict ratio is greater than the conflict threshold, α1 = Jα1 + 0.3; α2 = Jα2 - 0.1;
[0046] When the effective data bit rate is less than the bit rate threshold and the average waiting time is less than the waiting time threshold, α3 = Jα3 - 0.2;
[0047] When the average waiting time is less than the waiting time threshold and the conflict ratio is less than the conflict threshold, α1 = Jα1 + 0.05;
[0048] α1=clamp(α1, α 1,min α 1,max );
[0049] α2=clamp(α2, α) 2,min α 2,max );
[0050] α3=clamp(α3, α) 3,min α 3,max ); where, clamp() represents a constraint function, which is used to limit the weight coefficients of several parameters to their corresponding maximum and minimum values, where α 1,max This is expressed as the maximum value of the parameter weight coefficient corresponding to α1, α 1,min This is represented by the minimum value of the parameter weight coefficient corresponding to α1; α 2,max This is expressed as the maximum value of the parameter weight coefficient corresponding to α2, α 2,min This is represented by the minimum value of the parameter weight coefficient corresponding to α2; α 3,max This is represented by the maximum value of the parameter weight coefficient corresponding to α3, α 3,min This is represented as the minimum value of the parameter weight coefficient corresponding to α3;
[0051] The parameter weight coefficients are obtained by adjusting the basic weight coefficients of the parameters in the weight adjustment rules based on the monitoring indicators.
[0052] This application dynamically adjusts the basic weight coefficients of each priority parameter by collecting multiple key monitoring indicators during the data transmission process in real time and combining them with pre-set weight adjustment rules. This enables the adaptive generation of parameter weight coefficients, ensuring that the weight coefficients have good timeliness and environmental adaptability when calculating the priority of dynamic data packets to be transmitted. The resulting dynamic transmission priority is more accurate and reasonable, effectively improving the level of intelligence in data scheduling and providing strong support for achieving efficient and reliable transmission decisions.
[0053] Furthermore, the generation of a dynamic transmission scheme based on dynamic pending priority and dynamic window size adjustment includes:
[0054] Obtain the collision ratio and transmission strategy; the transmission strategy includes a priority sorting strategy and a packet contention strategy.
[0055] Based on the dynamic priority of data to be transmitted, a sorting operation is performed to sort the data packets to be transmitted in descending order to obtain a sorted sequence.
[0056] When the collision ratio is greater than the collision threshold, the transmission strategy is a priority sorting strategy.
[0057] When the collision ratio is less than the collision threshold, the transmission strategy is a packet contention strategy.
[0058] Generate data packet contention parameters based on dynamically pending data packets and dynamically adjusted window size;
[0059] Assign the data packet contention parameters to the dynamically transmitted data packet;
[0060] The sorted sequence is used to transmit data packets according to the transmission strategy to determine the dynamic transmission scheme.
[0061] Furthermore, the generation of data packet contention parameters based on dynamically transmitted data packets and dynamically adjusted window size includes:
[0062] Extract the dynamic priority of dynamically pending data packets corresponding to the dynamically resizing window DTC and the dynamically pending data packets;
[0063] Define packet contention parameters; the packet contention parameters include base time slot, priority coefficient, contention window, number of backoff time slots, and actual backoff time;
[0064] The base time slot is a fixed constant;
[0065] Construct a priority coefficient function YXF(DDYJ) to characterize the nonlinear relationship between the dynamic priority to be transmitted DDYJ and the priority coefficient; the priority coefficient function satisfies:
[0066] Here, `clamp()` is a constraint function used to limit the priority coefficient to its maximum value, YX. max and the minimum priority coefficient YX min Between; pow(DDYJ, a) represents a power function, and the output result is DDYJ raised to the power of a; a is a constant, a>0;
[0067] Substitute the dynamic priority to be transmitted into the priority coefficient function to calculate the priority coefficient YX;
[0068] Obtain the conflict ratio CB;
[0069] The competition window CW is calculated using a formula; the formula satisfies:
[0070] ; where min() represents the minimum value operation; The symbol represents the floor function; g represents the conflict amplification factor, g>0; clamp() is a constraint function used to limit the conflict impact factor to its maximum value CYY when calculating the conflict impact factor. max Minimum CYY of the conflict impact factor min Between; CW min and CW max Let represent the minimum and maximum values of the preset competition window; h represents the safety coefficient, h∈(0,1);
[0071] The number of backoff slots (TBSS) is calculated using a formula; the formula satisfies:
[0072] ; where rand(0, CW) represents the operation of generating a random number between 0 and the competition window CW;
[0073] The actual retreat time is calculated by multiplying the number of retreat time slots by the base time slots.
[0074] The packet contention parameters are determined based on the base time slot, priority coefficient, contention window, number of backoff time slots, and actual backoff time.
[0075] In this application, when selecting a transmission strategy within a dynamic transmission window, the data packet contention strategy takes into account that different dynamic data packets to be transmitted have their own contention parameters, and each dynamic data packet to be transmitted is analyzed independently, thereby improving the real-time performance and efficiency of data transmission when implementing data transmission using the data packet contention strategy.
[0076] A second aspect of the present invention provides a data transmission control system for AUTBUS, comprising: a data acquisition module, a data analysis module, and a control module; the data acquisition module and the data analysis module are connected together; the data analysis module and the control module are connected together.
[0077] The data acquisition module acquires data packets to be transmitted through a data acquisition device. The data packets to be transmitted include a transmission window label, a data packet type, and data packet parameters. The transmission window label includes a fixed transmission window and a dynamic transmission window. The data packet type includes a fixed data packet to be transmitted and a dynamic data packet to be transmitted. The data packet parameters include fixed data packet parameters and dynamic data packet parameters.
[0078] The data analysis module: generates a dynamically adjustable window size based on the determined data packets to be transmitted; calculates the dynamic transmission priority based on the dynamically transmitted data packets; and generates a dynamic transmission scheme based on the dynamic transmission priority and the dynamically adjusted window size.
[0079] The control module transmits dynamic data packets according to the dynamic transmission scheme.
[0080] Another aspect of the present invention provides a computer-readable storage medium on which a computer program is stored, which, when executed by a processor, implements a data transmission control system for AUTBUS according to a second aspect of the present invention.
[0081] Compared with the prior art, the beneficial effects of this application are:
[0082] 1. This application improves the real-time performance and efficiency of data transmission by generating a dynamically adjustable window size based on a determined data packet to be transmitted; calculating a dynamic transmission priority based on the dynamic data packet to be transmitted; generating a dynamic transmission scheme based on the dynamic transmission priority and the dynamically adjusted window size; and transmitting data packets according to the dynamic transmission scheme. The data packets to be transmitted are automatically divided into different types according to the transmission window label, and different data transmission strategies are adopted for different types of data packets. At the same time, the size of the dynamic transmission window is adaptively adjusted and the transmission priority of the dynamic data packet to be transmitted is adaptively calculated, thereby improving the real-time performance and efficiency of data transmission.
[0083] 2. This application obtains several certain data packets to be transmitted and generates a certain estimated window size through a pre-trained window occupancy estimation model. Based on a fixed transmission window size, the determined transmission window size and the dynamic transmission window size are dynamically adjusted. Under the condition that the data packets to be transmitted can be transmitted in a timely and effective manner, the dynamic transmission window size is expanded as much as possible to improve the transmission efficiency of the dynamic data packets to be transmitted.
[0084] 3. This application obtains monitoring indicators during the data transmission process and uses pre-set weight adjustment rules to dynamically adjust the basic weight coefficients of parameters in combination with the monitoring indicators, thereby achieving adaptive generation of parameter weight coefficients. This ensures that the parameter weight coefficients can provide accurate data support when calculating the dynamic priority to be transmitted, making the results of the dynamic priority to be transmitted more accurate.
[0085] 4. This application dynamically distinguishes the data transmission strategies of dynamically pending data packets within the current dynamic transmission window based on the key indicator of the conflict ratio in the current transmission state, ensuring accurate and efficient data transmission within the dynamic transmission window. This achieves multiple strategy arrangements for data packet transmission, improving the real-time performance and efficiency of data transmission. Attached Figure Description
[0086] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0087] Figure 1 This is a flowchart of a data transmission control method for AUTBUS according to this application;
[0088] Figure 2 This is a schematic diagram of a data transmission control system for AUTBUS according to this application. Detailed Implementation
[0089] The technical solutions of this application will be clearly and completely described below with reference to the embodiments. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.
[0090] Please see Figure 1 The first aspect of this application provides a data transmission control method for AUTBUS, comprising:
[0091] Obtain the data packet to be transmitted; the data packet to be transmitted includes a transmission window label, a data packet type, and data packet parameters; the transmission window label includes a fixed transmission window and a dynamic transmission window; the data packet type includes a fixed data packet to be transmitted and a dynamic data packet to be transmitted; the data packet parameters include fixed data packet parameters and dynamic data packet parameters; in this embodiment, since the fixed data packet to be transmitted is transmitted in a fixed manner, the transmission process of the dynamic data packet to be transmitted is the focus of the data transmission process of AUTBUS.
[0092] The window size is dynamically adjusted based on the determined data packets to be transmitted; the dynamically adjusted window size refers to the window size after the dynamic transmission window has been adjusted.
[0093] The dynamic pending priority is calculated based on the dynamic pending data packets; the dynamic pending priority refers to the quantification result of prioritizing the transmission of dynamic pending data packets within the dynamic transmission window.
[0094] A dynamic transmission scheme is generated based on dynamic pending priority and dynamic window size adjustment.
[0095] Data is transmitted dynamically according to the dynamic transmission scheme for the data packets to be transmitted.
[0096] In this embodiment, the data packets to be transmitted within the transmission window are transmitted according to pre-set rules. That is, the data packets to be transmitted are all extremely important data. By accurately transmitting them within the transmission window, it is ensured that the data packets to be transmitted can be transmitted completely and in a timely manner.
[0097] In this embodiment, the dynamic adjustment of the window size based on the determined data packet to be transmitted includes:
[0098] Extract the transmission window size; the transmission window includes a fixed transmission window size and a dynamic transmission window size; the transmission window size refers to the period size within a time range. In this embodiment, the transmission window size is set to 1ms, that is, the fixed transmission window size and the dynamic transmission window size are divided within 1ms; the fixed transmission window size is already sufficient to ensure that all important data sent by all stations can be transmitted accurately and in a timely manner during the initial design of AUTBUS transmission; that is, the fixed transmission window size is a preset maximum value; in this embodiment, it is set to 0.6ms; the dynamic transmission window is set to 0.4ms; specifically, the transmission of the data packet to be transmitted is performed within the time period of 0-0.6ms. If the data packet to be transmitted can be completed within 0-0.2ms, the dynamic transmission window size is expanded, that is, the transmission of the dynamic data packet to be transmitted is performed within 0.2ms-1ms;
[0099] The determined data packet to be transmitted is input into the window occupancy prediction model to obtain the determined occupancy prediction window size; the window occupancy prediction model is constructed through an artificial intelligence model to evaluate the window size occupied by the determined data packet to be transmitted within the determined transmission window size;
[0100] The dynamic adjustment window size is obtained by calculating the difference between the transmission window size and the estimated window size.
[0101] The window occupancy prediction model in this embodiment is constructed using an artificial intelligence model, including:
[0102] Obtain several historically determined data packets to be transmitted and their corresponding historically determined estimated window sizes;
[0103] Several historically determined data packets to be transmitted and their corresponding historically determined estimated window sizes are divided into training data, validation data, and test data; and the training data, validation data, and test data are preprocessed to obtain training sets, validation sets, and test sets; the ratio between the training set, test set, and validation set is 7:2:1;
[0104] Choose an artificial intelligence model as the base model; artificial intelligence models include the BP model, etc.
[0105] The base model is trained on the training set, and the learning rate and other hyperparameters are adjusted on the validation set to obtain the pre-trained model.
[0106] By validating the pre-trained model on the test set, we finally obtained a window occupancy prediction model that takes the data packet to be transmitted as input and the estimated window size as output.
[0107] This embodiment acquires multiple deterministic data packets to be transmitted and uses a pre-trained window occupancy prediction model to generate a predicted value for the required transmission window size. Under the constraint of a fixed total transmission window size, the ratio between the window used for deterministic data transmission and the window used for dynamic data transmission is dynamically adjusted based on the prediction results. While ensuring that deterministic data packets to be transmitted can be transmitted in a timely and reliable manner, the available range of the dynamic transmission window is expanded as much as possible, thereby improving the transmission concurrency capability and overall transmission efficiency of dynamic data packets to be transmitted. This achieves intelligent allocation and efficient utilization of transmission resources, taking into account both determinism and flexibility in transmission.
[0108] The calculation of dynamic transmission priority based on dynamic data packets in this embodiment includes:
[0109] Extract the dynamic data packet parameters corresponding to the dynamic data packet to be transmitted; the dynamic data packet parameters include data service type, data mode type, data waiting time, data stream type, and data packet byte count;
[0110] Extract the number of bytes of data packets of the same data stream type from several dynamic data packets to be transmitted, and calculate the total number of bytes of data packets corresponding to the same data stream type;
[0111] The service importance score is obtained from the service importance score table based on the data service type. The service importance score table is set by experts based on the importance of the service type to which the dynamically transmitted data packet belongs. In this embodiment, the service importance score table is as follows:
[0112]
[0113] The mode score is obtained from the mode scoring table based on the data mode type; the mode scoring table is set by experts according to the importance of the data mode to which the dynamic transmission data packet belongs. In this embodiment, the mode scoring table is as follows:
[0114]
[0115] Priority parameters are generated based on business importance score, method score, data wait time, and total number of bytes in data packets.
[0116] Through formula Calculate the dynamic priority to be transmitted; where i is the parameter index number in the priority parameter index, and I is the total number of parameter indexes in the priority parameter index; CZ i Let be the i-th priority parameter index; σ(x) is the Sigmoid function used to restrict the dynamic priority to be transmitted between 0 and 1, and σ(x) = 1 / (1+e^(i-1)). -x );α i It is represented as the parameter weight coefficient.
[0117] This embodiment comprehensively considers and deeply analyzes the key parameters of multiple dynamic data packets, extracting several priority parameter indicators for quantifying the priority of data packets to be transmitted. Based on this, adaptive parameter weight coefficients are introduced to dynamically weight and integrate the various indicators for comprehensive evaluation, thereby calculating a more accurate dynamic transmission priority. This makes the priority determination result more in line with actual transmission needs, significantly improving the real-time performance and adaptability of priority evaluation, and providing reliable data support and decision-making basis for the efficient and orderly scheduling and transmission of subsequent dynamic data packets to be transmitted.
[0118] In this embodiment, priority parameter indicators are generated based on business importance score, method score, data waiting time, and total number of bytes in the data packet, including:
[0119] Priority parameters include basic priority indicators and dynamic priority indicators;
[0120] The priority baseline index is calculated using a formula; the formula satisfies:
[0121] ; where Φ -1 () represents the inverse standard normal distribution CDF function, used to enhance the advantages of high-priority data; min() represents the minimum value operation, which is used to limit the domain of the inverse standard normal distribution CDF function to the standard range. Since the domain of the inverse standard normal distribution CDF function is between 0 and 1, when summing YZP and FP, the sum value may be greater than 1. Therefore, the min() function is used to limit this. YZP and FP represent business importance score and method score, respectively.
[0122] The waiting time index is calculated using a formula; the formula satisfies:
[0123] Wherein, SDS represents the data waiting time, DS represents the unit time, and DS is set to remove the unitization; the value of DS is set based on experience, and in this embodiment, DS is set to 1ms;
[0124] The data flow penalty metric is calculated using a formula; the formula satisfies:
[0125] Wherein, SZZS represents the total number of bytes in the data packet; DZS represents the number of bytes per unit, used to de-normalize the total number of bytes in the data packet; the value of DZS is set based on experience, and in this embodiment, DZS is set to 1KB;
[0126] Priority dynamic indicators are determined based on waiting time and data flow penalty indicators.
[0127] The parameter weighting coefficients in this embodiment are obtained in the following way:
[0128] Obtain the basic weight coefficients of the parameters; these coefficients are determined by experts based on simulation results. In this embodiment, the priority parameter indicators include the basic priority indicator, the waiting time indicator, and the data flow penalty indicator, whose corresponding basic weight coefficients are represented as Jα1, Jα2, and Jα3, respectively. The basic weight coefficients for the priority indicator, the waiting time indicator, and the data flow penalty indicator are determined to be 3, 1, and 2, respectively, from the basic weight simulation result table. The basic weight simulation result table is shown below:
[0129]
[0130] As can be seen from the simulation results table of basic weights, the comprehensive score is optimal when the basic weight coefficients of the priority basic index, waiting time index, and data flow penalty index are 3, 1, and 2, respectively. Therefore, the basic weight coefficients of several parameters are set to 3, 1, and 2. The comprehensive score is determined by four indicators: average latency, conflict rate, throughput, and 99th percentile latency. The determination method is expressed as: Comprehensive score = (10 × throughput) - (5 × average latency) - (2 × 99th percentile latency) - (20 × conflict rate).
[0131] Acquire monitoring metrics; these metrics include average waiting time, collision ratio, and effective data bit rate; average waiting time refers to the average waiting time of all dynamic data packets to be transmitted within the dynamic transmission window; collision ratio refers to the proportion of collisions in the transmission attempts of all dynamic data packets to be transmitted within the dynamic transmission window; effective data bit rate refers to the effective data bit rate of all dynamic data packets to be transmitted successfully transmitted within the dynamic transmission window.
[0132] Define the weight adjustment rules; the weight adjustment rules are set by experts based on the impact of the monitoring indicators on the basic weight coefficients of the parameters;
[0133] The weight adjustment rules in this embodiment include the following steps:
[0134] When the average waiting time is greater than the waiting time threshold, α2 = Jα2 + 0.2;
[0135] When the conflict ratio is greater than the conflict threshold, α1 = Jα1 + 0.3; α2 = Jα2 - 0.1;
[0136] When the effective data bit rate is less than the bit rate threshold and the average waiting time is less than the waiting time threshold, α3 = Jα3 - 0.2;
[0137] When the average waiting time is less than the waiting time threshold and the conflict ratio is less than the conflict threshold, α1 = Jα1 + 0.05; the waiting time threshold, conflict threshold and bit rate threshold are set according to experience. In this embodiment, the waiting time threshold, conflict threshold and bit rate threshold are set to 5ms, 0.3 and 0.6 times the theoretical maximum effective data bit rate, respectively; the theoretical maximum effective data bit rate refers to the theoretical maximum value of the effective data bit rate;
[0138] α1=clamp(α1, α 1,min α 1,max );
[0139] α2=clamp(α2, α) 2,min α 2,max );
[0140] α3=clamp(α3, α) 3,min α 3,max ); where, clamp() represents a constraint function, which is used to limit the weight coefficients of several parameters to their corresponding maximum and minimum values, where α 1,max This is expressed as the maximum value of the parameter weight coefficient corresponding to α1, α 1,min This is represented as the minimum value of the parameter weight coefficient corresponding to α1; the specific value is set based on experience, and in this embodiment, α is... 1,min and α 1,max Set to 1 and 5 respectively; α 2,max This is expressed as the maximum value of the parameter weight coefficient corresponding to α2, α 2,min This is represented as the minimum value of the parameter weighting coefficient corresponding to α2; the specific value is set based on experience, and in this embodiment, α is... 2,min and α 2,max Set them to 0.5 and 3 respectively; α 3,max This is represented by the maximum value of the parameter weight coefficient corresponding to α3, α 3,min This is represented as the minimum value of the parameter weighting coefficient corresponding to α3; the specific value is set based on experience, and in this embodiment, α is... 3,min and α 3,max Set them to 1 and 4 respectively;
[0141] The parameter weight coefficients are obtained by adjusting the basic weight coefficients of the parameters in the weight adjustment rules based on the monitoring indicators.
[0142] The dynamic transmission scheme generated in this embodiment based on dynamic pending priority and dynamic window size adjustment includes:
[0143] The collision ratio and transmission strategy are obtained; the transmission strategy includes a priority sorting strategy and a packet contention strategy; in this embodiment, the priority sorting strategy refers to the master station transmitting data packets in the order of priority of the dynamically pending data packets; the packet contention strategy is to transmit in the enhanced CSMA / CA mode.
[0144] The dynamic pending data packets are sorted in descending order based on the dynamic pending priority to obtain a sorting sequence. In this embodiment, the dynamic pending data packets in the sorting sequence have different parameter representations under different transmission strategies. Under the priority sorting strategy, the dynamic pending data packets in the sorting sequence remain unchanged. Under the data packet contention strategy, the dynamic pending data packets in the sorting sequence have additional data packet contention parameters to ensure that each dynamic pending data packet can be transmitted in accordance with the requirements of the data packet contention strategy.
[0145] When the collision ratio is greater than the collision threshold, the transmission strategy is a priority sorting strategy; the collision threshold is set based on experience, and in this embodiment, the collision threshold is set to 0.3.
[0146] When the collision ratio is less than the collision threshold, the transmission strategy is a packet contention strategy.
[0147] Generate data packet contention parameters based on dynamically pending data packets and dynamically adjusted window size;
[0148] Assign the data packet contention parameters to the dynamically transmitted data packet;
[0149] The sorted sequence is used to transmit data packets according to the transmission strategy to determine the dynamic transmission scheme.
[0150] This embodiment monitors the collision ratio, a key indicator in the current transmission status, in real time to dynamically identify network load and contention. Based on this indicator, it intelligently distinguishes and adjusts the transmission strategy of data packets to be transmitted within the dynamic transmission window. When the collision ratio is in different ranges, it adaptively activates the matching transmission scheduling mechanism to achieve multi-mode and differentiated processing of dynamic data packets to be transmitted, effectively balancing transmission reliability and throughput efficiency. This ensures that data within the dynamic transmission window can be sent accurately, orderly, and efficiently in complex and ever-changing communication environments. By constructing a state-aware multi-strategy collaborative transmission mechanism, the real-time performance and overall efficiency of data transmission are significantly improved, achieving more intelligent and adaptive data scheduling.
[0151] In this embodiment, the data packet contention parameters generated based on dynamically transmitted data packets and dynamically adjusted window size include:
[0152] Extract the dynamic priority of dynamically pending data packets corresponding to the dynamically resizing window DTC and the dynamically pending data packets;
[0153] Define packet contention parameters; packet contention parameters include base time slot, priority coefficient, contention window, number of backoff time slots, and actual backoff time;
[0154] The base time slot is a fixed constant, and the specific value is set according to experience. In this embodiment, the base time slot is set to 50us.
[0155] Construct a priority coefficient function YXF(DDYJ) to characterize the nonlinear relationship between the dynamic priority to be transmitted DDYJ and the priority coefficients; the priority coefficient function satisfies:
[0156] Here, `clamp()` is a constraint function used to limit the priority coefficient to its maximum value, YX. max and the minimum priority coefficient YX min Between; the maximum and minimum priority coefficients are set based on experience. In this embodiment, the maximum and minimum priority coefficients are set to 0.95 and 0.05 respectively; pow(DDYJ, a) represents a power function, and the output result is DDYJ raised to the power of a; a is a constant, a>0; the specific value is set based on experience. In this embodiment, a is set to 0.3;
[0157] Substitute the dynamic priority to be transmitted into the priority coefficient function to calculate the priority coefficient YX;
[0158] Obtain the conflict ratio CB;
[0159] The competition window CW is calculated using the formula; the formula satisfies:
[0160] ; where min() represents the minimum value operation; The symbol represents the floor function; g represents the conflict amplification factor, g>0; the specific value is set based on experience, and in this embodiment, g is set to 10; clamp() is a constraint function, which is used to limit the conflict impact factor to its maximum value CYY when calculating the conflict impact factor. max Minimum CYY of the conflict impact factor min The maximum and minimum conflict impact factors are set empirically; in this embodiment, the maximum and minimum conflict impact factors are set to 0.5 and 3 respectively. min and CW max Represented as the preset minimum and maximum contention window values; the specific values are set based on experience, and in this embodiment, CW is used. min and CW maxThe values are set to 16 and 1024 respectively; h represents the safety factor, h∈(0,1); the specific value is set according to experience, and in this embodiment, h is set to 0.7;
[0161] The number of backoff slots (TBSS) is calculated using the formula; the formula satisfies:
[0162] ; where rand(0, CW) represents the operation of generating a random number between 0 and the competition window CW;
[0163] The actual backoff time (STS) is calculated by multiplying the number of backoff time slots by the base time slot; in this embodiment, the formula for calculating the actual backoff time (STS) satisfies:
[0164] ;
[0165] The packet contention parameters are determined based on the base time slot, priority coefficient, contention window, number of backoff time slots, and actual backoff time.
[0166] In this embodiment, during the transmission strategy selection process within the dynamic transmission window, the differentiated competition parameters of each dynamic data packet to be transmitted are fully considered in relation to the data packet contention mechanism. Each dynamic data packet to be transmitted is analyzed and evaluated independently and in detail, realizing personalized competition strategy decisions. This avoids problems such as uneven resource allocation or high-priority data delay caused by the traditional unified competition mechanism. It enables data packets to reasonably obtain transmission opportunities based on their actual characteristics and transmission needs in channel contention, optimizing the overall transmission reliability and throughput performance, and further enhancing the real-time performance and efficiency of data transmission.
[0167] Please see Figure 2 A second aspect of this application provides a data transmission control system for AUTBUS, comprising: a data acquisition module, a data analysis module, and a control module; the data acquisition module and the data analysis module are electrically and / or communicatively connected; the data analysis module and the control module are electrically and / or communicatively connected.
[0168] Data acquisition module: Acquires data packets to be transmitted through data acquisition equipment; the data packets to be transmitted include transmission window label, data packet type, and data packet parameters; transmission window label includes fixed transmission window and dynamic transmission window; data packet type includes fixed data packets to be transmitted and dynamic data packets to be transmitted; data packet parameters include fixed data packet parameters and dynamic data packet parameters;
[0169] Data analysis module: Generates dynamically adjustable window size based on determined data packets to be transmitted; calculates dynamic transmission priority based on dynamically selected data packets to be transmitted; generates dynamic transmission scheme based on dynamic transmission priority and dynamically adjusted window size;
[0170] Control module: Transmits dynamic data packets according to the dynamic transmission scheme.
[0171] Another embodiment of this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements a data transmission control system for AUTBUS according to a second aspect of the present invention.
[0172] Some of the data in the above formula are calculated by removing dimensions and taking their numerical values. The formula is the closest to the real situation obtained by software simulation of a large amount of collected data. The preset parameters and preset thresholds in the formula are set by those skilled in the art according to the actual situation or obtained through simulation of a large amount of data.
[0173] The working principle of this application is as follows: Data packets to be transmitted are acquired; a dynamically adjusted window size is generated based on the determined data packets; a dynamic transmission priority is calculated based on the dynamic data packets; a dynamic transmission scheme is generated based on the dynamic transmission priority and the dynamically adjusted window size; and data is transmitted according to the dynamic transmission scheme. The data packets are automatically divided into different types based on the transmission window label, and different data transmission strategies are adopted for different types of data packets. Simultaneously, the size of the dynamic transmission window and the transmission priority of the dynamic data packets are adaptively adjusted, improving the real-time performance and efficiency of data transmission. This avoids the problem that existing technologies often use fixed strategies for data transmission, failing to fully consider the diversity and suddenness of the data to be transmitted, resulting in low real-time performance and efficiency due to fixed transmission strategies.
[0174] The above embodiments are only used to illustrate the technical methods of this application and are not intended to limit it. Although this application has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical methods of this application without departing from the spirit and scope of the technical methods of this application.
Claims
1. A data transmission control method for AUTBUS, characterized in that, include: Get the data packet to be transmitted; The data packet to be transmitted includes a transmission window label, data packet type, and data packet parameters; The transmission window label includes a defined transmission window and a dynamic transmission window; the data packet type includes a defined data packet to be transmitted and a dynamic data packet to be transmitted. A dynamically adjusted window size is generated based on the determined data packets to be transmitted; the dynamically adjusted window size refers to the window size after the dynamic transmission window has been adjusted. The dynamic pending data packet priority is calculated based on the dynamic pending data packet; the dynamic pending priority refers to the quantification result of prioritizing the transmission of dynamic pending data packets within the dynamic transmission window. A dynamic transmission scheme is generated based on dynamic pending priority and dynamic window size adjustment. Data is transmitted according to the dynamic transmission scheme for dynamically transmitted data packets. The method of generating a dynamically adjusted window size based on a determined data packet to be transmitted includes: Extract the transmission window size; the transmission window includes a fixed transmission window size and a dynamic transmission window size; The determined data packet to be transmitted is input into the window occupancy prediction model to obtain the determined occupancy prediction window size; the window occupancy prediction model is constructed through an artificial intelligence model and is used to evaluate the window size occupied by the determined data packet to be transmitted within the determined transmission window size; The dynamic adjustment window size is obtained by calculating the difference between the transmission window size and the determined estimated window size. The calculation of dynamic pending priority based on dynamic pending data packets includes: Extract the dynamic data packet parameters corresponding to the dynamic data packet to be transmitted; the dynamic data packet parameters include data service type, data mode type, data waiting time, data stream type, and data packet byte count; Extract the number of bytes of data packets of the same data stream type from a number of dynamic data packets to be transmitted, and calculate the total number of bytes of data packets corresponding to the same data stream type; The importance score of a service is obtained from a service importance score table based on the data service type; the service importance score table is set by experts based on the importance of the service type to which the dynamically transmitted data packet belongs. The mode score is obtained from the mode score table based on the data mode type; the mode score table is set by experts according to the importance of the data mode to which the dynamic transmission data packet belongs; Priority parameters are generated based on business importance score, method score, data wait time, and total number of bytes in data packets. Through formula Calculate the dynamic priority to be transmitted; where i is the parameter index number in the priority parameter index, and I is the total number of parameter indexes in the priority parameter index; CZ i Let α be the i-th priority parameter index; σ(x) represents the Sigmoid function; α i It is represented as the parameter weight coefficient.
2. The data transmission control method for AUTBUS according to claim 1, characterized in that, The window occupancy prediction model is constructed using an artificial intelligence model, including: Obtain several historically determined data packets to be transmitted and their corresponding historically determined estimated window sizes; Several historically determined data packets to be transmitted and their corresponding historically determined estimated window sizes are divided into training data, validation data, and test data; and the training data, validation data, and test data are preprocessed to obtain the training set, validation set, and test set. Choose an artificial intelligence model as the base model; The base model is trained on the training set, and the learning rate and other hyperparameters are adjusted on the validation set to obtain the pre-trained model. By validating the pre-trained model on the test set, we finally obtained a window occupancy prediction model that takes the data packet to be transmitted as input and the estimated window size as output.
3. The data transmission control method for AUTBUS according to claim 1, characterized in that, The priority parameter indicators include basic priority indicators and dynamic priority indicators; the generation of priority parameter indicators based on business importance score, method score, data waiting time, and total number of bytes in the data packet includes: The priority basic index is calculated using a formula; the formula satisfies: ; where Φ -1 () represents the inverse standard normal distribution CDF function, used to enhance the advantages of high-priority data; min() represents the minimum value operation; YZP and FP represent business importance score and method score, respectively; The waiting time index is calculated using a formula; the formula satisfies: Where SDS represents the data waiting time and DS represents the unit time; The data flow penalty metric is calculated using a formula; the formula satisfies: Where SZZS represents the total number of bytes in the data packet; DZS represents the number of bytes per unit. Priority dynamic indicators are determined based on waiting time and data flow penalty indicators.
4. The data transmission control method for AUTBUS according to claim 1, characterized in that, The parameter weighting coefficients are obtained in the following way: Obtain the basic weight coefficients of the parameters; these basic weight coefficients are determined by experts based on simulation experiment results. Acquire monitoring metrics; the monitoring metrics include average waiting time, collision ratio, and effective data bit rate; Define weight adjustment rules; these rules are set by experts based on the impact of monitoring indicators on the basic weight coefficients of the parameters. The parameter weight coefficients are obtained by adjusting the basic weight coefficients of the parameters in the weight adjustment rules based on the monitoring indicators.
5. The data transmission control method for AUTBUS according to claim 1, characterized in that, The dynamic transmission scheme generated based on dynamic pending priority and dynamic window size adjustment includes: Obtain the collision ratio and transmission strategy; the transmission strategy includes a priority sorting strategy and a packet contention strategy. Based on the dynamic priority of data to be transmitted, a sorting operation is performed to sort the data packets to be transmitted in descending order to obtain a sorted sequence. When the collision ratio is greater than the collision threshold, the transmission strategy is a priority sorting strategy. When the collision ratio is less than the collision threshold, the transmission strategy is a packet contention strategy. Generate data packet contention parameters based on dynamically pending data packets and dynamically adjusted window size; Assign the data packet contention parameters to the dynamically transmitted data packet; The sorted sequence is used to transmit data packets according to the transmission strategy to determine the dynamic transmission scheme.
6. The data transmission control method for AUTBUS according to claim 5, characterized in that, The generation of data packet contention parameters based on dynamically pending data packets and dynamically adjusted window size includes: Extract the dynamic priority of dynamically pending data packets corresponding to the dynamically resizing window DTC and the dynamically pending data packets; Define packet contention parameters; the packet contention parameters include base time slot, priority coefficient, contention window, number of backoff time slots, and actual backoff time; The base time slot is a fixed constant; Construct a priority coefficient function YXF(DDYJ) to characterize the nonlinear relationship between the dynamic priority to be transmitted DDYJ and the priority coefficient; Substitute the dynamic priority to be transmitted into the priority coefficient function to calculate the priority coefficient YX; Obtain the conflict ratio CB; The competition window CW is calculated using a formula; the formula satisfies: ; where min() represents the minimum value operation; The symbol represents the floor function; g represents the conflict amplification factor, g>0; clamp() is a constraint function used to limit the conflict impact factor to its maximum value CYY when calculating the conflict impact factor. max Minimum CYY of the conflict impact factor min Between; CW min and CW max Let represent the minimum and maximum values of the preset competition window; h represents the safety coefficient, h∈(0,1); The number of backoff slots (TBSS) is calculated using a formula; the formula satisfies: ; where rand(0, CW) represents the operation of generating a random number between 0 and the competition window CW; The actual retreat time is calculated by multiplying the number of retreat time slots by the base time slots. The packet contention parameters are determined based on the base time slot, priority coefficient, contention window, number of backoff time slots, and actual backoff time.
7. A data transmission control system for AUTBUS, characterized in that, include: Data acquisition module, data analysis module, and control module; The data acquisition module is connected to the data analysis module; the data analysis module is connected to the control module. The data acquisition module acquires data packets to be transmitted through a data acquisition device. The data packets to be transmitted include a transmission window label, a data packet type, and data packet parameters. The transmission window label includes a fixed transmission window and a dynamic transmission window. The data packet type includes a fixed data packet to be transmitted and a dynamic data packet to be transmitted. The data packet parameters include fixed data packet parameters and dynamic data packet parameters. The data analysis module: generates a dynamically adjusted window size based on the determined data packet to be transmitted; Calculate the dynamic priority of data packets to be transmitted based on the dynamic data packets to be transmitted. A dynamic transmission scheme is generated based on dynamic pending priority and dynamic window size adjustment. The method of generating a dynamically adjusted window size based on a determined data packet to be transmitted includes: Extract the transmission window size; the transmission window includes a fixed transmission window size and a dynamic transmission window size; The determined data packet to be transmitted is input into the window occupancy prediction model to obtain the determined occupancy prediction window size; the window occupancy prediction model is constructed through an artificial intelligence model and is used to evaluate the window size occupied by the determined data packet to be transmitted within the determined transmission window size; The dynamic adjustment window size is obtained by calculating the difference between the transmission window size and the determined estimated window size. The calculation of dynamic pending priority based on dynamic pending data packets includes: Extract the dynamic data packet parameters corresponding to the dynamic data packet to be transmitted; the dynamic data packet parameters include data service type, data mode type, data waiting time, data stream type, and data packet byte count; Extract the number of bytes of data packets of the same data stream type from a number of dynamic data packets to be transmitted, and calculate the total number of bytes of data packets corresponding to the same data stream type; The importance score of a service is obtained from a service importance score table based on the data service type; the service importance score table is set by experts based on the importance of the service type to which the dynamically transmitted data packet belongs. The mode score is obtained from the mode score table based on the data mode type; the mode score table is set by experts according to the importance of the data mode to which the dynamic transmission data packet belongs; Priority parameters are generated based on business importance score, method score, data wait time, and total number of bytes in data packets. Through formula Calculate the dynamic priority to be transmitted; where i is the parameter index number in the priority parameter index, and I is the total number of parameter indexes in the priority parameter index; CZ i Let α be the i-th priority parameter index; σ(x) represents the Sigmoid function; α i Represented as parameter weight coefficients; The control module transmits dynamic data packets according to the dynamic transmission scheme.
8. A computer-readable storage medium applied to a data transmission control system for AUTBUS as described in claim 7, characterized in that, The computer program is stored on the computer-readable storage medium.
Citation Information
Patent Citations
Air interface resource scheduling method, network access device, terminal device and communication network
CN115942496A
Reliable data return method and system based on multi-path cooperation
CN118900167A