Data transmission method and device and storage medium

By evaluating the transmission performance of data frames and system partitions, determining the transmission strategy and window, the problems of large data transmission delay and high storage pressure in high bandwidth disordered environments are solved, and efficient data transmission is achieved.

CN119892302AActive Publication Date: 2025-04-25SUZHOU YIGE TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202510355203.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-25
Publication Date
2025-04-25
Estimated Expiration
2045-03-25

AI Technical Summary

Technical Problem

In a high bandwidth out-of-order environment, the data transmission delay is large, the storage pressure is high, and the effective frames will be discarded when the cache space is insufficient.

Method used

By evaluating the transmission performance of data frames and system partitions, the weight information of each evaluation indicator is determined, and the transmission strategy and transmission window of the current data transmission are determined based on these weight information, thereby selecting the best transmission strategy and window, improving data transmission efficiency and reducing storage pressure.

Benefits of technology

It realizes improving data transmission efficiency in a high-bandwidth out-of-order environment, reducing transmission delay and storage pressure, and avoiding discarding effective frames.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119892302A_ABST
    Figure CN119892302A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of communication, and discloses a data transmission method and device and a storage medium, and the method comprises the steps: evaluating the transmission performance of a data frame and a system partition, and determining the weight information of each evaluation index; respectively determining a transmission strategy and a transmission window of current data transmission based on the weight information of each evaluation index; and acquiring multiple paths of data frames, and sorting and transmitting the acquired data frames based on the determined transmission strategy and transmission window. Therefore, the optimal transmission strategy and the transmission window are selected according to the current data transmission environment of the system, the data transmission efficiency during redundancy elimination of multi-channel data is ensured, and the storage pressure of the system is reduced at the same time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technologies, and in particular to a data transmission method, device and storage medium. Background Art

[0002] In order to improve the reliability of data transmission, multi-channel redundant transmission is usually used for data transmission. In order to remove redundant data, when data frames arrive out of order, they are usually rearranged according to the sequence number of the data frame, duplicate frames are discarded, and data is cached. Then, the data is read out in sequence according to the rearranged sequence number order. However, in a high-bandwidth out-of-order environment, sequence number reordering needs to wait for all numbered frames to arrive, resulting in a large transmission delay, and the system needs to cache all out-of-order frames, resulting in high system storage pressure. When the cache space is insufficient, valid frames will be discarded. Summary of the invention

[0003] In view of this, the present invention provides a data transmission method, device and storage medium to solve the problems of low data transmission efficiency, large transmission delay and large storage pressure when de-redundant multi-channel data.

[0004] In a first aspect, the present invention provides a data transmission method, the method comprising: Evaluate the transmission performance of data frames and system partitions, and determine the weight information of each evaluation index; Based on the weight information of each evaluation index, the transmission strategy and transmission window of the current data transmission are determined respectively; Acquire multiple data frames, and sort and transmit the acquired data frames based on the determined transmission strategy and transmission window.

[0005] The data transmission method provided by the embodiment of the present invention determines the weight information of each evaluation index based on the evaluation of the transmission performance of the data frame and the system partition, and determines the transmission strategy and transmission window of the current data transmission based on the weight information of each evaluation index, so as to select the best transmission strategy and transmission window according to the current data transmission environment of the system, ensure the data transmission efficiency when de-redundant multi-channel data is used, and reduce the storage pressure of the system at the same time.

[0006] In an optional implementation, the transmission performance of the data frame and the system partition is evaluated, and the weight information of each evaluation index is determined respectively, including: Determine the weight information of the time series indicator based on the variance of the timestamp interval of the data frame; Parse the data type of the data frame and determine the weight information of the type indicator; Verify the data frame and determine the weight information of the credibility index; Based on the load and packet loss rate of the system partition, the weight information of the partition indicator is determined.

[0007] The data transmission method provided by the embodiment of the present invention determines the weight information of the timing indicator, type indicator and credibility indicator based on the analysis of the data frame, and determines the weight information of the partition indicator based on the analysis of the transmission performance of the system partition, so as to comprehensively consider the data receiving rate, data type, credibility and system storage pressure, and determine the optimal transmission strategy and transmission window based on this.

[0008] In an optional implementation, based on the weight information of each evaluation index, respectively determining the transmission strategy and transmission window of the current data transmission includes: The weight information of each evaluation index is input into the strategy evaluation model to obtain the transmission strategy of the current data transmission; The transmission window for current data transmission is obtained by performing calculation based on the preset window and the weight information of each evaluation index.

[0009] In an optional implementation, if the determined transmission strategy is the first strategy, sorting and transmitting the acquired data frames based on the determined transmission strategy and transmission window includes: Determine the expected output range based on the current transmission expectation and the transmission window; If the currently acquired data frame is within the expected output range, the currently acquired data frame is output; Based on the sequence number of the output data frame, the current transmission expectation and the expected output range are updated.

[0010] In an optional implementation, after determining the expected output range based on the current transmission expectation and the transmission window, the method further includes: If the currently acquired data frame is not within the expected output range, or the currently acquired data frame is consistent with the historical data frame, the currently acquired data frame is discarded.

[0011] The data transmission method provided by an embodiment of the present invention, when the transmission strategy is the first strategy, determines the expected output range based on the current transmission expectation and the transmission window, thereby outputting the acquired data frames based on the expected output range, and based on the sequence number of the output data frame, determines the current transmission expectation and the expected output range, thereby enabling real-time data transmission, improving data transmission efficiency, and reducing the storage pressure of the system.

[0012] In an optional implementation, if the determined transmission strategy is the second strategy, sorting and transmitting the acquired data frames based on the determined transmission strategy and transmission window includes: The acquired data frame is stored in a corresponding cache; wherein the cache area is divided into multiple caches according to the sequence number of the data frame; If the data frames covered by the transmission window meet the data volume requirement when the transmission window meets the transmission condition, the data frames covered by the transmission window are transmitted.

[0013] In an optional implementation, based on the determined transmission strategy and transmission window, the acquired data frames are sorted and transmitted, further comprising: If the data frames covered by the transmission window do not meet the data volume requirement when the transmission window meets the transmission condition, the transmission window is adjusted until the data frames covered by the transmission window meet the data volume requirement.

[0014] The data transmission method provided by the embodiment of the present invention, when the transmission strategy is the second strategy, stores the acquired data frames in the corresponding cache, and divides the cache area into multiple caches according to the sequence numbers of the data frames, so that the data frames are stored in the cache area in order, thereby realizing the sorting of the data frames; at the same time, the transmission window is adjusted when the transmission window meets the transmission conditions, and the data frames covered by the transmission window are transmitted when the data frames covered by the transmission window meet the data volume requirements, thereby improving the efficiency of data transmission while ensuring that the data frames are transmitted in order.

[0015] In an optional implementation, if the determined transmission strategy is the third strategy, sorting and transmitting the acquired data frames based on the determined transmission strategy and the transmission window includes: The acquired data frames are stored in corresponding cache blocks; wherein a cache area is set for each system partition, and in each cache area, a plurality of cache blocks are divided for each physical channel, and the physical channels in the same system partition transmit the same data frame; If multiple cache blocks corresponding to the same data frame meet the transmission condition, the transmission performance of the data frame in the cache block is evaluated to determine the integrity scores of the multiple cache blocks respectively; The data frame in the cache block with the highest integrity score among the multiple cache blocks is transmitted.

[0016] The data transmission method provided by the embodiment of the present invention, when the transmission strategy is the third strategy, stores the acquired data frames of different channels in corresponding cache blocks respectively, evaluates the transmission performance of multiple cache blocks corresponding to the same data frames, and transmits the data frames in the cache blocks with the highest integrity scores, thereby ensuring the order and integrity of data frame transmission.

[0017] In a second aspect, the present invention provides a data transmission device, the device comprising: A weight information determination module is used to evaluate the transmission performance of data frames and system partitions and determine the weight information of each evaluation index respectively; A transmission strategy determination module, used to determine the transmission strategy and transmission window of the current data transmission based on the weight information of each evaluation indicator; The data frame transmission module is used to obtain multiple data frames, and sort and transmit the obtained data frames based on the determined transmission strategy and the transmission window.

[0018] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the data transmission method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.

[0019] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the data transmission method of the first aspect or any corresponding embodiment thereof.

[0020] In a fifth aspect, the present invention provides a computer program product, comprising computer instructions for causing a computer to execute the data transmission method of the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0022] Figure 1 is an application schematic diagram of a data transmission method according to an embodiment of the present invention; Figure 2 is a flow chart of a data transmission method according to an embodiment of the present invention; Figure 3 is a flow chart of another data transmission method according to an embodiment of the present invention; Figure 4 is a schematic diagram of a first strategy in a data transmission method according to an embodiment of the present invention; Figure 5 is a schematic diagram of a second strategy in a data transmission method according to an embodiment of the present invention; Figure 6 is a schematic diagram of storage of a third strategy in a data transmission method according to an embodiment of the present invention; Figure 7 is a structural block diagram of a data transmission device according to an embodiment of the present invention; Figure 8 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0023] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0024] In order to improve the reliability of data transmission, multi-channel redundant transmission is usually used for data transmission. In order to remove redundant data, when data frames arrive out of order, they are usually rearranged according to the sequence number of the data frame, duplicate frames are discarded, and data is cached. Then, the data is read out in sequence according to the rearranged sequence number order. However, in a high-bandwidth out-of-order environment, sequence number reordering needs to wait for all numbered frames to arrive, resulting in a large transmission delay, and the system needs to cache all out-of-order frames, resulting in high system storage pressure. When the cache space is insufficient, valid frames will be discarded.

[0025] Based on this, an embodiment of the present invention provides a data transmission method, which evaluates the transmission performance of data frames and system partitions, and determines the weight information of each evaluation index respectively; based on the weight information of each evaluation index, determines the transmission strategy and transmission window of the current data transmission respectively; obtains multiple data frames, and based on the determined transmission strategy and transmission window, sorts and transmits the obtained data frames. In this way, based on the evaluation of the transmission performance of data frames and system partitions, the weight information of each evaluation index is determined, and the transmission strategy and transmission window of the current data transmission are determined based on the weight information of each evaluation index, so as to select the best transmission strategy and transmission window according to the current data transmission environment of the system, ensure the data transmission efficiency when multiple data are de-redundant, and reduce the storage pressure of the system at the same time.

[0026] Figure 1 is an application schematic diagram of a data transmission method according to an embodiment of the present invention, Figure 1 The structural diagram of the data transmission system is shown in FIG. Independent or redundant data will enter the data receiving module, so the data receiving module needs to perform redundancy removal on the same data and complete the sorting of the data frames. When the data transmission system receives data from the other end, the pre-processing module processes the data frame and sends it to the data receiving module. The data receiving module selects a suitable transmission strategy according to the instructions of the strategy evaluation model, completes the de-redundancy and sorting operations on the received data frame, and sends it to the post-processing module to continue the data, and finally reports the data to the system partition.

[0027] According to an embodiment of the present invention, a data transmission method embodiment is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0028] In this embodiment, a data transmission method is provided, which can be used in the above-mentioned data transmission system. Figure 2 is a flow chart of a data transmission method according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps: Step S201, evaluating the transmission performance of data frames and system partitions, and determining weight information of each evaluation index respectively.

[0029] In the embodiment of the present invention, the data state of the currently received data frame is determined by evaluating the transmission performance of the data frame, such as whether the data is transmitted sequentially, whether it is reliable, etc.; the data transmission pressure of the current system partition during data transmission and the data transmission environment that can be provided are determined by evaluating the transmission performance of the data frame and the system partition. The weight information of each evaluation index is determined by evaluating the transmission performance of the data frame and the system partition, wherein the weight information is used to measure the score of the data frame or the system partition under the corresponding evaluation index. The larger the value of the weight information, the higher the score of the corresponding evaluation index.

[0030] Step S202: Based on the weight information of each evaluation index, a transmission strategy and a transmission window for current data transmission are determined respectively.

[0031] In the embodiment of the present invention, the weight information of each evaluation index is comprehensively considered to determine the performance or index requirements that can be met under the current data transmission conditions, and based on this, the transmission strategy of the current data transmission is determined from multiple preset transmission strategies. The weight information of each evaluation index is comprehensively considered, and the data transmission volume that can be met by the current data transmission is determined in combination with the preset transmission window cardinality.

[0032] In the embodiment of the present invention, a transmission strategy is set for each different data transmission environment to meet the requirements for data transmission in various data transmission environments, so that the transmission strategy is adaptively selected according to the data transmission environment to ensure data transmission efficiency during data de-redundancy.

[0033] Step S203, acquiring multiple data frames, and sorting and transmitting the acquired data frames based on the determined transmission strategy and transmission window.

[0034] In an embodiment of the present invention, data frames transmitted from multiple channels are received, and the data frames of the multiple channels are de-redundanted and sorted based on a determined transmission strategy, and the de-redundanted and sorted data frames are transmitted according to the data frames covered by the transmission window.

[0035] The data transmission method provided by the embodiment of the present invention determines the weight information of each evaluation index based on the evaluation of the transmission performance of the data frame and the system partition, and determines the transmission strategy and transmission window of the current data transmission based on the weight information of each evaluation index, so as to select the best transmission strategy and transmission window according to the current data transmission environment of the system, ensure the data transmission efficiency when de-redundant multi-channel data is used, and reduce the storage pressure of the system at the same time.

[0036] In this embodiment, a data transmission method is provided, which can be used in the above-mentioned data transmission system. Figure 3 is a flow chart of another data transmission method according to an embodiment of the present invention. Figure 3 As shown, the process includes the following steps: Step S301 : evaluating the transmission performance of data frames and system partitions, and determining weight information of each evaluation index.

[0037] In the embodiment of the present invention, the evaluation index includes a timing index, a type index, a credibility index and a partition index; wherein the timing index, the type index and the credibility index are evaluation indexes for data frames, and the partition index is an evaluation index for system partitions. Accordingly, step S301 includes: Step S3011, determining the weight information of the timing indicator based on the variance of the timestamp interval of the data frame.

[0038] In the embodiment of the present invention, the timing indicator is used to evaluate the timing integrity of continuously transmitted data frames. The smaller the variance of the timestamp intervals of continuously transmitted data frames, the better the timing integrity, and the higher the value of the weight information of the timing indicator.

[0039] In the embodiment of the present invention, the weight information of the timing indicator can be measured by the inverse of the variance of the timestamp intervals of the continuously transmitted data frames.

[0040] Step S3012, parse the data type of the data frame to determine the weight information of the type indicator.

[0041] In the embodiment of the present invention, the type indicator is used to evaluate the data type, application scenario or priority of the data frame, and the weight information of the type indicator is used to determine whether a higher priority needs to be given to the transmission of the data frame. The higher the value of the weight information of the type indicator, the higher the priority given to the data frame.

[0042] In the embodiment of the present invention, different priority coefficients may be assigned to different data types to characterize their priorities, and the priority coefficient is a value less than or equal to 1, and when it is equal to 1, it indicates that the corresponding data frame has the highest priority. Accordingly, the weight information of the type indicator may be a larger value between the priority coefficient of the data frame and the preset coefficient, wherein the setting of the preset coefficient is used to regard data frames with a lower priority coefficient as having the same priority, thereby setting a higher weight only for data frames that need to be specially prioritized or need special attention.

[0043] Step S3013, verify the data frame and determine the weight information of the credibility index.

[0044] In the embodiment of the present invention, the weight information of the credibility indicator is used to evaluate the credibility of the data content of the data frame. The lower the proportion of verification errors in the data frame, the higher the value of the weight information of the credibility indicator.

[0045] In the embodiment of the present invention, a verification algorithm, such as CRC verification, is used to verify the data frame, determine the correct verification ratio of the data content contained in the data frame, and use it as weight information of the credibility indicator.

[0046] Step S3014: Determine the weight information of the partition index based on the load and packet loss rate of the system partition.

[0047] In the embodiment of the present invention, the weight information of the partition index is used to evaluate the data transmission status of the system partition. The higher the load of the system partition and the higher the packet loss rate, the lower the value of the weight information of the partition index.

[0048] In the embodiment of the present invention, parameters such as the size, load, network bandwidth, data throughput, delay, and packet loss rate of the system partition are detected to determine the weight information of the partition index.

[0049] The data transmission method provided by the embodiment of the present invention determines the weight information of the timing indicator, type indicator and credibility indicator based on the analysis of the data frame, and determines the weight information of the partition indicator based on the analysis of the transmission performance of the system partition, so as to comprehensively consider the data receiving rate, data type, credibility and system storage pressure, and determine the optimal transmission strategy and transmission window based on this.

[0050] Step S302: Based on the weight information of each evaluation index, a transmission strategy and a transmission window for current data transmission are determined respectively.

[0051] Specifically, step S302 includes: Step S3021, input the weight information of each evaluation index into the strategy evaluation model to obtain the transmission strategy of the current data transmission.

[0052] In the embodiment of the present invention, the strategy evaluation model is constructed based on the reinforcement learning algorithm, which can learn the optimal weight adjustment strategy according to the reward signal fed back by the environment, thereby improving the integrity score and overall performance of data transmission. The weight information of each evaluation indicator is input into the strategy evaluation model, and the weight is adaptively adjusted through the strategy evaluation model, and the transmission strategy that best meets the current data transmission environment is selected from multiple preset transmission strategies according to the adjustment result.

[0053] Step S3022: Calculate based on the preset window and the weight information of each evaluation index to obtain a transmission window for current data transmission.

[0054] In the embodiment of the present invention, a transmission window for current data transmission is obtained by calculation based on a preset window and weight information of each evaluation index. For details, the following formula (1) may be referred to: Formula (1) in, Characterizes the size of the transmission window, Characterizes the size of the preset window; is the weight information of the type indicator, is the weight information of the credibility index, is the weight information of the time series indicator, It is the weight information of the partition index.

[0055] Step S303, obtain multiple data frames, and sort and transmit the obtained data frames based on the determined transmission strategy and transmission window. Figure 2 Step S203 of the illustrated embodiment will not be described in detail here.

[0056] In an optional implementation, if the current data transmission environment has high real-time requirements, the system partition performance is good, a large amount of data can be processed in a short time, and the tolerance for data disorder is high, then the first strategy can be adopted, and the first strategy is a non-cache sorting mode. If the determined transmission strategy is the first strategy, then in the above embodiment, based on the determined transmission strategy and transmission window, the acquired data frames are sorted and transmitted, which may include the following steps: Step a1, determining the expected output range based on the current transmission expectation and the transmission window.

[0057] In step a1, the current transmission expectation is determined based on the sequence number of the historical data frame, where the historical data frame refers to the data frame transmitted last time. For example, if the sequence number of the historical data frame is 5, the current transmission expectation is 6. The current transmission expectation is used as the anchor point of the transmission window to calculate the expected output range; still taking the sequence number of the historical data frame as 5 as an example, if the transmission window is +100, the expected output range is 6-106, and if the transmission window is +100, -5, the expected output range is 1-106.

[0058] Step a2: if the currently acquired data frame is within the expected output range, the currently acquired data frame is output.

[0059] In step a2, if the currently acquired data frame is within the expected output range, it indicates that the currently acquired data frame meets the transmission expectations, and therefore the currently acquired data frame is directly output.

[0060] Step a3: based on the sequence number of the output data frame, update the current transmission expectation and the expected output range.

[0061] In step a3, after the currently acquired data frame is transmitted, the data frame becomes a new historical data frame, so based on the sequence number of the new historical data frame, the current transmission expectation and expected output range are updated to determine the transmission of subsequent data frames.

[0062] In an optional implementation, if the currently acquired data frame is not within the expected output range, that is, the currently acquired data frame does not meet transmission expectations, or the currently acquired data frame is consistent with the historical data frame, that is, the information content contained in the current data frame has been transmitted, then the currently acquired data frame is discarded.

[0063] In an optional implementation, in the first strategy, during data transmission in different channels or the same channel, data frames are transmitted in a first-come, first-served manner; if data from multiple channels arrive at the same time, fair polling is used. For data in the same channel, since data is transmitted in time sequence, it is equivalent to processing received data frames in the order in which they are received. For data in multiple channels, you can refer to Figure 4 The flowchart shown in Figure 4 For the two channels a and b, when receiving the data frame of channel a or channel b, it is judged whether the received data frame meets the expectation according to the current transmission expectation and transmission window. If it meets the expectation, the data frame data is transmitted; if it does not meet the expectation, the data frame is discarded; among them, if the data frame of channel a is received first, the data frame of channel a is judged first, otherwise, if the data frame of channel b is received first, the data frame of channel b is judged first.

[0064] The data transmission method provided by an embodiment of the present invention, when the transmission strategy is the first strategy, determines the expected output range based on the current transmission expectation and the transmission window, thereby outputting the acquired data frames based on the expected output range, and based on the sequence number of the output data frame, determines the current transmission expectation and the expected output range, thereby enabling real-time data transmission, improving data transmission efficiency, and reducing the storage pressure of the system.

[0065] In an optional implementation, if the current transmission environment does not have high real-time requirements and has low tolerance for data disorder, the second strategy can be adopted, and the second strategy is the on-chip cache sorting mode. If the determined transmission strategy is the second strategy, then in the above embodiment, based on the determined transmission strategy and transmission window, sorting and transmitting the acquired data frames may include the following steps: Step b1, storing the acquired data frame into the corresponding cache.

[0066] In step b1, the cache area is divided into multiple caches according to the sequence number of the data frame, and the cache area is an on-chip cache. The acquired data frames are stored in the caches divided according to the sequence number order, so that the data frames are sorted when they are stored.

[0067] Step b2: If the data frames covered by the transmission window meet the data volume requirement when the transmission window meets the transmission condition, the data frames covered by the transmission window are transmitted.

[0068] In step b2, a transmission window is set in the cache area. The cache or data frame covered by the transmission window is the data frame range transmitted in one data transmission. For a transmission window, it is calculated whether the transmission window meets the transmission conditions. The transmission conditions may include whether the waiting time of the transmission window reaches a threshold, whether the current load of the system partition or the data transmission efficiency meets the transmission requirements, etc. Figure 5 As shown in the first column of the diagram, if the data frames covered by the transmission window meet the data volume requirement when the transmission window satisfies the transmission condition, the data volume requirement for the data frames covered by the transmission window may be the ratio of the cache storing data frames in the cache covered by the transmission window to the total number of caches, that is, the ratio of stored data frames.

[0069] In an optional embodiment, as Figure 5 As shown in the second column of the figure, if the data frame covered by the transmission window does not meet the data volume requirement when the transmission window meets the transmission condition, the transmission window is adjusted until the data frame covered by the transmission window meets the data volume requirement. The adjustment of the transmission window can be to reselect the size of the transmission window based on the weight information, reduce the size of the transmission window, or move the position of the transmission window, etc.

[0070] The data transmission method provided by the embodiment of the present invention, when the transmission strategy is the second strategy, stores the acquired data frames in the corresponding cache, and divides the cache area into multiple caches according to the sequence numbers of the data frames, so that the data frames are stored in the cache area in order, thereby realizing the sorting of the data frames; at the same time, the transmission window is adjusted when the transmission window meets the transmission conditions, and the data frames covered by the transmission window are transmitted when the data frames covered by the transmission window meet the data volume requirements, thereby improving the efficiency of data transmission while ensuring that the data frames are transmitted in order.

[0071] In an optional implementation, if the system partition has low real-time requirements and low tolerance for data disorder, and at the same time has high requirements for data integrity and low requirements for the use of system resources, a third strategy can be used, and the third strategy is an off-chip cache sorting mode. If the determined transmission strategy is the third strategy, then in the above embodiment, based on the determined transmission strategy and transmission window, sorting and transmitting the acquired data frames may include the following steps: Step c1, storing the acquired data frame into the corresponding cache block.

[0072] In step c1, if Figure 6 As shown, a cache area is set for each system partition, that is, an off-chip cache area. In each cache area, multiple cache blocks are divided for each physical channel. The same data frame is transmitted by a physical channel in the same system partition. According to the physical channel corresponding to the data frame, it is stored in the corresponding cache block.

[0073] Step c2: if multiple cache blocks corresponding to the same data frame meet the transmission condition, the transmission performance of the data frame in the cache block is evaluated, and integrity scores of the multiple cache blocks are determined respectively.

[0074] In step c2, if multiple cache blocks corresponding to the same data frame meet the transmission condition, the transmission performance of the data frame in the cache block is evaluated, and the integrity scores of the multiple cache blocks are determined respectively. The weight information of each evaluation index corresponding to each cache block can be added together to obtain the integrity score of the cache block.

[0075] Step c3: transmitting the data frame in the cache block with the highest integrity score among the multiple cache blocks.

[0076] The data transmission method provided by the embodiment of the present invention, when the transmission strategy is the third strategy, stores the acquired data frames of different channels in corresponding cache blocks respectively, evaluates the transmission performance of multiple cache blocks corresponding to the same data frames, and transmits the data frames in the cache blocks with the highest integrity scores, thereby ensuring the order and integrity of data frame transmission.

[0077] In this embodiment, a data transmission device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0078] This embodiment provides a data transmission device, such as Figure 7 As shown, including: The weight information determination module 701 is used to evaluate the transmission performance of the data frame and the system partition, and determine the weight information of each evaluation index respectively; A transmission strategy determination module 702, configured to determine the transmission strategy and transmission window for the current data transmission based on the weight information of each evaluation indicator; The data frame transmission module 703 is used to obtain multiple data frames, and sort and transmit the obtained data frames based on the determined transmission strategy and the transmission window.

[0079] In an optional implementation, the weight information determination module 701 includes: A time series weight determination unit, used to determine the weight information of the time series indicator based on the variance of the timestamp interval of the data frame; A type weight determination unit, used to parse the data type of the data frame and determine the weight information of the type indicator; A credibility weight determination unit, used to verify the data frame and determine the weight information of the credibility index; The partition weight determination unit is used to determine the weight information of the partition index based on the load and packet loss rate of the system partition.

[0080] In an optional implementation, the transmission strategy determination module 702 includes: A transmission strategy determination unit, used to input the weight information of each evaluation index into the strategy evaluation model to obtain the transmission strategy of the current data transmission; The transmission window determination unit is used to calculate based on the preset window and the weight information of each evaluation index to obtain the transmission window of the current data transmission.

[0081] In an optional implementation, if the determined transmission strategy is the first strategy, the data frame transmission module 703 includes: An expected output range determining unit, used to determine an expected output range based on current transmission expectations and a transmission window; A data frame output unit, configured to output the currently acquired data frame if the currently acquired data frame is within the expected output range; The expected output range determination unit is further used to update the current transmission expectation and the expected output range based on the sequence number of the output data frame.

[0082] In an optional implementation, the data frame transmission module 703 further includes: The data frame discarding unit is used to discard the currently acquired data frame if the currently acquired data frame is not within the expected output range, or the currently acquired data frame is consistent with the historical data frame.

[0083] In an optional implementation, if the determined transmission strategy is the second strategy, the data frame transmission module 703 includes: A data frame storage unit, used to store the acquired data frame into a corresponding cache; wherein the cache area is divided into a plurality of caches according to the sequence number of the data frame; The data frame transmission unit is used to transmit the data frames covered by the transmission window if the data frames covered by the transmission window meet the data volume requirement when the transmission window meets the transmission condition.

[0084] In an optional implementation, the data frame transmission module 703 further includes: The transmission window adjustment unit is used to adjust the transmission window until the data frames covered by the transmission window meet the data volume requirement if the data frames covered by the transmission window do not meet the data volume requirement when the transmission window meets the transmission condition.

[0085] In an optional implementation, if the determined transmission strategy is the third strategy, the data frame transmission module 703 includes: A data frame storage unit is used to store the acquired data frame into a corresponding cache block; wherein a cache area is set for each system partition, and in each cache area, a plurality of cache blocks are divided for each physical channel, and the physical channels in the same system partition transmit the same data frame; A transmission performance evaluation unit, configured to evaluate the transmission performance of the data frame in the cache block if the multiple cache blocks corresponding to the same data frame meet the transmission condition, and respectively determine the integrity scores of the multiple cache blocks; The data frame transmission unit is used to transmit the data frame in the cache block with the highest integrity score among the multiple cache blocks.

[0086] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.

[0087] The data transmission device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.

[0088] The embodiment of the present invention also provides a computer device having the above Figure 7 The data transmission device shown.

[0089] See also Figure 8 , Figure 8 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 8 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 8 A processor 10 is taken as an example.

[0090] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0091] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.

[0092] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0093] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.

[0094] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.

[0095] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0096] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.

[0097] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the present invention.

Claims

1. A data transmission method, characterized in that: The method comprises: Evaluate the transmission performance of data frames and system partitions, and determine the weight information of each evaluation index; Based on the weight information of each of the evaluation indicators, respectively determine the transmission strategy and transmission window of the current data transmission; Multiple data frames are acquired, and based on the determined transmission strategy and the transmission window, the acquired data frames are sorted and transmitted.

2. The method according to claim 1, characterized in that The transmission performance of the data frame and the system partition is evaluated, and the weight information of each evaluation index is determined respectively, including: Determining weight information of a timing indicator based on a variance of a timestamp interval of the data frame; Parsing the data type of the data frame to determine the weight information of the type indicator; Verifying the data frame to determine weight information of the credibility index; Based on the load and packet loss rate of the system partition, weight information of the partition index is determined.

3. The method according to claim 1, characterized in that: The determining of the transmission strategy and the transmission window of the current data transmission based on the weight information of each of the evaluation indicators respectively includes: Inputting the weight information of each evaluation index into the strategy evaluation model to obtain the transmission strategy of the current data transmission; The transmission window for current data transmission is obtained by performing calculation based on the preset window and the weight information of each of the evaluation indicators.

4. The method according to claim 1, characterized in that: If the determined transmission strategy is the first strategy, then sorting and transmitting the acquired data frames based on the determined transmission strategy and the transmission window includes: Determining an expected output range based on the current transmission expectation and the transmission window; If the currently acquired data frame is within the expected output range, outputting the currently acquired data frame; Based on the sequence number of the output data frame, the current transmission expectation and the expected output range are updated.

5. The method according to claim 4, characterized in that After determining the expected output range based on the current transmission expectation and the transmission window, the method further includes: If the currently acquired data frame is not within the expected output range, or the currently acquired data frame is consistent with the historical data frame, the currently acquired data frame is discarded.

6. The method according to claim 1, characterized in that If the determined transmission strategy is the second strategy, then sorting and transmitting the acquired data frames based on the determined transmission strategy and the transmission window includes: The acquired data frame is stored in a corresponding cache; wherein the cache area is divided into a plurality of caches according to the sequence number of the data frame; If the transmission window meets the transmission condition and the data frames covered by the transmission window meet the data volume requirement, the data frames covered by the transmission window are transmitted.

7. The method according to claim 6, characterized in that The step of sorting and transmitting the acquired data frames based on the determined transmission strategy and the transmission window further includes: If the data frames covered by the transmission window do not meet the data volume requirement when the transmission window meets the transmission condition, the transmission window is adjusted until the data frames covered by the transmission window meet the data volume requirement.

8. The method according to claim 1, characterized in that If the determined transmission strategy is the third strategy, then sorting and transmitting the acquired data frames based on the determined transmission strategy and the transmission window includes: The acquired data frames are stored in corresponding cache blocks; wherein a cache area is set for each system partition, and in each cache area, a plurality of cache blocks are divided for each physical channel, and the physical channels in the same system partition transmit the same data frame; If multiple cache blocks corresponding to the same data frame meet the transmission condition, the transmission performance of the data frame in the cache block is evaluated to determine the integrity scores of the multiple cache blocks respectively; The data frame in the cache block with the highest integrity score among the multiple cache blocks is transmitted.

9. A data transmission device, characterized in that: The device comprises: A weight information determination module is used to evaluate the transmission performance of data frames and system partitions and determine the weight information of each evaluation index respectively; A transmission strategy determination module, used to determine the transmission strategy and transmission window of the current data transmission based on the weight information of each evaluation indicator; The data frame transmission module is used to obtain multiple data frames, and sort and transmit the obtained data frames based on the determined transmission strategy and the transmission window.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the data transmission method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Large-scale and high-concurrency deterministic network system

    CN108847961A

  • Method and device for processing data block of flexible Ethernet, and storage medium

    CN115941792A

  • Service quality evaluation method and device for spatial data transmission

    CN115996178A

  • Online monitoring data multi-channel transmission control strategy processing method

    CN116760771A

  • Data transmission method, gateway, communication equipment and computer readable storage medium

    CN116915694A