Data transmission time sequence determination method, apparatus and device, and readable medium

By acquiring the number of data packets and the estimated time-consuming in the data link layer, combining transmission priority, and determining the data transmission timing, the abnormal problems caused by excessive processing time of the data link layer are solved, and the system transmission performance and stability are improved .

CN119300154APending Publication Date: 2025-01-10SANECHIPS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310803728.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-07-03
Publication Date
2025-01-10

AI Technical Summary

Technical Problem

During the data transmission process at the data link layer, too long processing time may lead to missed authorized transmission, memory exhaustion, and uplink or downlink stream disconnection. The existing technology is difficult to effectively solve these problems.

Method used

By obtaining the number of data packets corresponding to each data processing process in the data link layer, the expected time consumption and transmission priority are expected, the transmission timing of the data link layer is determined, and the data transmission timing is reasonably planned to avoid the processing process being too long. Exceptional situation.

Benefits of technology

It effectively avoids abnormal situations caused by excessive time-consuming processing, improves system transmission performance and stability, and ensures normal transmission of data processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119300154A_ABST
    Figure CN119300154A_ABST
Patent Text Reader

Abstract

The invention provides a data transmission time sequence determination method and device, equipment and a readable medium, and belongs to the technical field of communication. Comprising the following steps: acquiring the number of data packets corresponding to each data processing process in a data link layer; according to the number of the data packets corresponding to each data processing process, determining a predicted consumed time length corresponding to each data processing process; and determining a transmission time sequence of the data link layer according to the predicted consumed duration corresponding to each data processing process and the transmission priority of each data processing process. The method is used for solving the problems that in the data transmission process of a data link layer, when the processing time of a certain process is too long, authorized sending is missed, a memory is used up, and uplink or downlink flow is cut off.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of communication technology, and in particular to a method, device, equipment and readable medium for determining a data transmission timing. Background Art

[0002] The data transmission process of the protocol stack is handled by the data link layer, including uplink data transmission and downlink data transmission. In the current data link layer data transmission process, if a process takes too long to process, problems such as missed authorization transmission, memory exhaustion, and uplink or downlink disconnection may occur. Summary of the invention

[0003] The present disclosure provides a method, apparatus, device and readable medium for determining a data transmission timing.

[0004] A first aspect of the present disclosure provides a method for determining a data transmission timing, comprising:

[0005] Obtain the number of data packets corresponding to each data processing process in the data link layer;

[0006] Determine the estimated duration corresponding to each data processing process according to the number of data packets corresponding to each data processing process;

[0007] The transmission timing of the data link layer is determined according to the estimated duration corresponding to each data processing process and the transmission priority of each data processing process.

[0008] A second aspect of the present disclosure provides a data transmission timing determination device, comprising:

[0009] An acquisition module is used to obtain the number of data packets corresponding to each data processing process in the data link layer;

[0010] An estimation module, used to determine the estimated duration corresponding to each data processing process according to the number of data packets corresponding to each data processing process;

[0011] The determination module is used to determine the transmission timing of the data link layer according to the estimated duration corresponding to each data processing process and the transmission priority of each data processing process.

[0012] A third aspect of the present disclosure provides an electronic device, including:

[0013] at least one processor;

[0014] A memory having one or more programs stored thereon, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method according to the first aspect;

[0015] At least one I / O interface is connected between the processor and the memory and is configured to implement information interaction between the processor and the memory.

[0016] A fourth aspect of the present disclosure provides a computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the method according to the first aspect is implemented.

[0017] The present disclosure has the following advantages:

[0018] According to the number of data packets corresponding to each data processing process in the data link layer, the estimated time required for each data processing process is estimated. According to the estimated time required for each data processing process and the transmission priority of each data processing process, the transmission timing of the data link layer is determined. This makes it possible to reasonably plan the data transmission timing by estimating the time required for each data processing process, ensure the normal transmission of each data processing process according to the priority, avoid abnormal situations caused by a certain processing process taking too long, and improve system transmission performance and system stability. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 A schematic diagram of a method for determining a data transmission timing provided in an embodiment of the present disclosure;

[0020] Figure 2 A schematic diagram of a partial determination process of a data transmission timing provided in an embodiment of the present disclosure;

[0021] Figure 3 A schematic diagram of another part of a process for determining a data transmission timing provided in an embodiment of the present disclosure;

[0022] Figure 4 A schematic diagram of a data transmission timing provided in an embodiment of the present disclosure;

[0023] Figure 5 A schematic diagram of the structure of a device for determining a data transmission timing provided in an embodiment of the present disclosure;

[0024] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0025] The specific implementation of the present disclosure is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described herein is only used to illustrate and explain the present disclosure, and is not used to limit the present disclosure.

[0026] As used in this disclosure, the term "and / or" includes any and all combinations of one or more of the associated listed items.

[0027] The terms used in the present disclosure are only used to describe specific embodiments and are not intended to limit the present disclosure.As used in the present disclosure, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.

[0028] When the terms “comprising” and / or “made of…” are used in the present disclosure, it specifies the existence of the stated features, integers, steps, operations, elements and / or components, but does not exclude the existence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.

[0029] Unless otherwise defined, all terms (including technical and scientific terms) used in this disclosure have the same meaning as those commonly understood by those of ordinary skill in the art. It will also be understood that terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant art and this disclosure, and will not be interpreted as having an idealized or overly formal meaning unless explicitly defined in this disclosure.

[0030] The embodiments of the present disclosure provide a method for determining a data transmission timing, which can be applied to any electronic device having a data link layer in a wireless communication network system, and the electronic device can be any type of terminal (UE) or any type of network device. For example, it can be applied to user terminals, base stations, and core network elements that perform data transmission.

[0031] Figure 1 The figure shows a flow chart of a method for determining a data transmission timing sequence. The data transmission timing sequence determination process mainly includes:

[0032] Step 101, obtaining the number of data packets corresponding to each data processing process in the data link layer.

[0033] In some embodiments, each data processing process includes an uplink data processing process and a downlink data processing process, wherein the uplink data processing process includes: an uplink pre-packaging process, an uplink confirmation data release process and an uplink authorization packaging process; the downlink data processing process includes a downlink delivery process.

[0034] Among them, the downlink data processing process also includes the unpacking process of the downlink transmission block (TB). The time required for the result process of the downlink transmission block cannot be estimated. Through on-demand segmentation during real-time processing, the reasonable progress of each data processing process is guaranteed.

[0035] Step 102: Determine the estimated duration corresponding to each data processing process according to the number of data packets corresponding to each data processing process.

[0036] In some embodiments, determining the estimated duration corresponding to each data processing process based on the number of data packets corresponding to each data processing process includes: obtaining a mapping relationship between the number of data packets corresponding to each data processing process and the processing time; and determining the estimated duration corresponding to each data processing process based on the mapping relationship.

[0037] Among them, the mapping relationship between the number of data packets and the processing time corresponding to each data processing process is obtained by pre-measurement. By using the mapping relationship between the number of data packets and the processing time obtained in advance, when the number of data packets corresponding to the data processing process is obtained, the estimated time required for the data processing process can be predicted before the data processing process begins. For the process whose time consumption cannot be estimated, it can be split as needed during the real-time processing process, so as to reasonably plan each data processing process.

[0038] In some embodiments, the process of obtaining the mapping relationship between the number of data packets and the processing time in any data processing process includes: obtaining the actual processing time corresponding to each number of packets in the data processing process by statistics; performing linear fitting on the actual processing time corresponding to each number of packets to obtain the mapping relationship between the number of packets and the processing time in the data processing process, wherein the mapping relationship is used to reflect the relationship between the rate of the data processing process, the number of packets, the time increment and the total time of the data processing process. The mapping relationship between the number of data packets and the processing time is determined for each data processing process according to the obtaining process.

[0039] Exemplarily, taking UE as an example, linear fitting is performed by obtaining the relationship between the number of data packets and the processing time of multiple groups, and the relationship between the number of data packets and the processing time of each data processing process is statistically analyzed. The relationship can be a linear expression, specifically including: the mapping relationship expression of the uplink pre-packaging process is: T1=V1*N1+t1; the mapping relationship expression of the uplink authorization packetization process is: T2=V2*N2+t2; the mapping relationship expression of the uplink confirmation data release process is: T3=V3*N3+t3; in the unpacking process of the downlink transmission block, the number of data packets is unknown and cannot be estimated in advance, and is divided according to the real-time processing process; the mapping relationship expression of the downlink delivery process is: T4=V4*N4+t4.

[0040] Among them, T1, T2, T3 and T4 each represent the total time consumed by the corresponding data processing process; V1, V2, V3 and V4 each represent the rate of the corresponding data processing process, and the rate of a type of data processing process in the same system usually does not change; N1, N2, N3 and N4 each represent the number of data packets in the corresponding data processing process; t1, t2, t3 and t4 each represent the corresponding time increment, and the time increment in the mapping relationship of the corresponding data processing process after linear fitting is a fixed value.

[0041] Step 103: Determine the transmission timing of the data link layer according to the estimated duration corresponding to each data processing process and the transmission priority of each data processing process.

[0042] In some embodiments, the transmission priority of each data processing process within a transmission time interval (TTI) includes: at the moment when the uplink authorization arrives, the uplink authorization packet assembly process has the highest priority; in the first time period before the moment when the uplink authorization arrives, the uplink pre-packaging process has the highest priority; in the second time period after the moment when the uplink authorization arrives, the downlink delivery process has the highest priority.

[0043] The unpacking process of the downlink transmission block can be interspersed in the first time period and the second time period. If the unpacking cannot be completed in the first time period, the unpacking of the unfinished part will continue in the second time period. If the unpacking cannot be completed in the second time period, the unpacking will continue in the next transmission time interval, and so on. In the first time period, the priority of the unpacking process of the downlink transmission block is lower than the uplink pre-packaging process; the uplink authorization packaging process is given priority when the uplink authorization arrives; in the second time period, because the downlink delivery process depends on the downlink delivery data obtained by the unpacking process of the downlink transmission block, the processing time of the downlink delivery process is estimated according to the real-time processing progress of the unpacking process of the downlink transmission block.

[0044] Exemplarily, the duration of a TTI is 0.5 ms.

[0045] In some embodiments, the uplink grant arrival time is fixed in each transmission time interval, so as to compare the estimated completion time of each processing process with the uplink grant arrival time.

[0046] Exemplarily, the uplink grant arrival time is set at a fixed position within the transmission time interval as required. Once a device sets the uplink grant arrival time, each transmission time interval is executed according to the same uplink grant arrival time.

[0047] In some embodiments, the transmission timing corresponding to each data processing process is determined according to the estimated duration corresponding to each data processing process and the transmission priority of each data processing process, including: for any transmission time interval, the transmission timing corresponding to each data processing process is determined according to the following process: in a first time period before the arrival of the uplink authorization, the transmission timing within the first time period is determined according to the estimated duration corresponding to each of the uplink pre-packaging cache data, the uplink confirmation data and the downlink delivery data and the duration of the first time period; when the uplink authorization moment arrives, the uplink authorization packet assembly process is completed in priority according to the estimated duration corresponding to the uplink authorization packet assembly processing process; the transmission timing within the second time period is determined according to the data process that is not completed in the first time period.

[0048] Exemplarily, in the first time period, while giving priority to ensuring that the uplink pre-packaging process is completed, if a downlink transmission block is received, the downlink transmission block is unpacked, and the transmission timing is determined according to the real-time processing of the unpacking process of the downlink transmission block before the uplink authorization moment; if the unpacking process of the downlink transmission block is completed and there is uplink confirmation data, the uplink confirmation data release process is prioritized; if the unpacking process of the downlink transmission block is not completed, the unfinished part is cached and waits for the second time period or the next transmission time interval to be processed. If the release process of the uplink confirmation data is completed, the delivery process of the downlink delivery data continues, and the part of the downlink delivery data that cannot be completed in the first time period waits for the second time period or the next transmission time interval to be processed. After the uplink authorization package processing process is completed in the second time period, the process that cannot be completed in the first time period is continued, which includes the unpacking process of the downlink transmission block, the delivery process of the downlink delivery data after the unpacking process of the downlink transmission block is completed, and the release process of the uplink confirmation data after the delivery process of the downlink delivery data is completed.

[0049] In some embodiments, in a first time period before the uplink authorization arrives, the transmission timing in the first time period is determined according to the estimated duration corresponding to the uplink pre-packet cache data, the uplink confirmation data and the downlink delivery data and the duration of the first time period, including: in the first time period, according to the estimated duration corresponding to the uplink pre-packet cache data, judging whether the estimated time when the processing of the uplink pre-packet cache data is completed exceeds the uplink authorization time, if so, processing part of the uplink pre-packet cache data before reaching the uplink authorization time, otherwise, completing the processing of the uplink pre-packet cache data; after completing the processing of the uplink pre-packet cache data, in the case of uplink confirmation data, judging according to The estimated time corresponding to the release of the uplink confirmation data is used to determine whether the moment when the uplink confirmation data is released exceeds the uplink authorization moment. If so, part of the uplink confirmation data is released before the uplink authorization moment is reached, and the unreleased uplink confirmation data is saved in the uplink confirmation data cache. Otherwise, the release process of the uplink confirmation data is completed. After completing the release process of the uplink confirmation data, in the case of the existence of downlink delivery data, according to the estimated time corresponding to the delivery of the downlink delivery data, determine whether the moment when the downlink delivery data is delivered exceeds the uplink authorization moment. If so, part of the data corresponding to the downlink delivery data is delivered before the uplink authorization moment is reached. Otherwise, the delivery process of the downlink delivery data is completed.

[0050] Among them, before the uplink authorization moment arrives, the transmission sequence is arranged in order according to the estimated time consumed for uplink pre-packaging cache data, the estimated time consumed for uplink confirmation data, and the estimated time consumed for downlink delivery data. If the transmission time of any item is too long and is expected to exceed the uplink authorization arrival moment, the item is split to ensure that the uplink authorization packaging process is handled in time when the uplink authorization moment arrives, and to ensure that the uplink authorization packaging process can be completed in time.

[0051] In some embodiments, it also includes: after completing the processing process of the uplink pre-packaging cache data, receiving a downlink transmission block and performing an unpacking process on the downlink transmission block; when the unpacking process of the downlink transmission block is completed before the uplink authorization moment, and when the uplink confirmation data exists in the downlink data obtained by unpacking the downlink transmission block or in the downlink data cache, executing the step of judging whether the moment when the uplink confirmation data is released exceeds the uplink authorization moment according to the estimated duration corresponding to the release of the uplink confirmation data; when the unpacking process of the downlink transmission block is not completed before the uplink authorization moment, when the uplink authorization moment arrives, obtaining unpacked data, saving the unpacked data in the downlink transmission block to the downlink data cache, and executing the process according to the uncompleted data in the first time period to determine the transmission timing in the second time period.

[0052] Among them, for the unpacking process of the downlink transmission block whose estimated time is unpredictable, it is divided on demand during real-time processing to ensure the orderly progress of each data processing process and avoid affecting the timely progress of other data processing processes due to the long unpacking process of the downlink transmission block.

[0053] In some embodiments, the determination of the transmission timing in the second time period according to the data process that is not completed in the first time period includes: after completing the uplink authorization packetization process, unpacking the unpacked data and saving the unpacked downlink data to the downlink data cache; in the case where all the packets are unpacked before the arrival of the next transmission time interval, judging whether the time when the delivery is completed exceeds the arrival time of the next transmission time interval according to the estimated time duration corresponding to the downlink delivery data in the downlink data cache, and if so, delivering part of the downlink delivery data in the downlink data cache before the arrival of the next transmission time interval, otherwise, completing the delivery process of all the downlink delivery data in the downlink data cache; after completing the delivery process of all the downlink delivery data in the downlink data cache, in the case where there is unreleased uplink confirmation data, judging according to the The estimated time corresponding to the release process of the unreleased uplink confirmation data is used to judge whether the moment of release completion exceeds the arrival time of the next transmission time interval. If so, part of the data in the unreleased uplink confirmation data is released before the arrival time of the next transmission time interval. Otherwise, the release process of all the uplink confirmation data is completed. After completing the release process of all the uplink confirmation data, in the case that there is unprocessed pre-package cache data, according to the estimated time corresponding to the processing process of the unprocessed pre-package cache data, it is judged whether the moment of processing completion exceeds the arrival time of the next transmission time interval. If so, part of the data of the unprocessed pre-package cache data is processed before the arrival time of the next transmission time interval. Otherwise, the processing process of the unprocessed pre-package cache data is completed.

[0054] Among them, after the uplink authorization packaging process is completed in the second time period, the unpacking process of the unfinished downlink transmission, the downlink delivery process, and the release process of the uplink confirmation data are processed in sequence, and the processing process that cannot be completed in the second time period is divided and left for the next transmission time interval to continue processing, so as to ensure that each processing process is carried out in an orderly manner in the second time period, and to ensure that the current processing process is terminated in time when the next transmission time interval arrives, so as to ensure that the next transmission time interval The related processes are executed in sequence according to priority in time.

[0055] The following is an example of a method for determining the data transmission timing.

[0056] Figure 2 , Figure 3 and Figure 4 The figure is a schematic diagram of the data transmission timing determination process in this specific embodiment, wherein: Figure 4 The data transmission timing of two TTIs is shown in FIG.

[0057] Figure 2 The following is a partial process of determining the data transmission timing, which includes:

[0058] Step 201, at the start time of TTI, according to the uplink pre-packetization buffer data and T1=V1*N1+t1, obtain the estimated duration corresponding to the uplink pre-packetization process;

[0059] Step 202, determine whether the time when the uplink pre-packaging process is completed is less than the uplink authorization time, if so, execute step 203, otherwise, execute Figure 3 Middle step 2021;

[0060] Step 203, pre-packaging all data in the uplink group pre-packaging buffer data, and when receiving a downlink TB, performing a downlink TB unpackaging process;

[0061] Step 204, determine whether the time when the unpacking process is completed is less than the uplink authorization time, if so, execute step 205, otherwise, execute Figure 3 Step 2041 in;

[0062] Step 205, determine whether there is uplink confirmation data to release the cache or unpack to obtain the RLC status packet, if not, execute step 206, if yes, execute step 2051;

[0063] Step 2051, obtaining the estimated time required for uplink confirmation data release according to T3=V3*N3+t3;

[0064] Step 2052, determine whether the time when the uplink confirmation data release process is completed is less than the uplink authorization time, if so, execute step 2053, otherwise, execute Figure 3 Step 2054 in;

[0065] Step 2053, release all uplink confirmation data, and continue to execute step 206;

[0066] Step 206, obtaining the estimated duration of the downlink delivery process according to the number of packets decoded in the downlink TB, the downlink delivery data in the downlink data buffer, and T4=V4*N4+t4;

[0067] Step 207, determining whether the time when all downlink delivery is completed is less than the uplink authorization time, if so, executing step 208, otherwise, executing step 210;

[0068] Step 208, delivering all downlink delivery data;

[0069] Step 209, calculate the estimated time required for uplink authorization packet assembly according to T2=V2*N2+t2, and perform the uplink authorization packet issuance process, and then proceed to step 214;

[0070] Step 210, the downlink delivery data is segmented, the data that cannot be delivered downlink after segmentation is put into the cache, and the delivery process of the remaining downlink delivery data is completed. T2=V2*N2+t2 calculates the estimated time consumed for uplink authorization package assembly, and performs the uplink authorization package issuance process; according to T4=V4*N4+t4, the estimated time consumed for downlink delivery data is calculated;

[0071] Step 211, determine whether the time when all downlink delivery is completed is less than the arrival time of the next TTI, if not, execute step 212; if yes, execute step 213;

[0072] Step 212, dividing the downlink buffer data, putting the data that cannot be delivered downlink after division into the buffer, completing the delivery process of the remaining downlink delivery data, and returning to step 201 to perform the timing determination process of the next TTI;

[0073] Step 213, delivering all downlink delivery data in the downlink buffer;

[0074] Step 214, determine whether there is data in the uplink pre-packet buffer, if not, return to step 201 to perform the timing determination process of the next TTI, if yes, execute step 215;

[0075] Step 215: Process the uplink pre-packetized data that can be processed before the next TTI arrives according to T1=V1*N1+t1, and end the process.

[0076] Figure 3 Another part of the data transmission timing determination process is shown, which includes:

[0077] Step 2021, split the uplink pre-packaging buffer data, put the uplink pre-packaging buffer data that cannot be completed after the splitting back into the pre-packaging buffer, and perform the uplink pre-packaging process on the remaining part; receive the downlink TB, cache the TB; calculate the estimated time of uplink authorization packaging according to T2=V2*N2+t2, perform the uplink authorization packaging process, and then perform the downlink TB unpacking process, and execute step 301;

[0078] Step 2041, when the uplink authorization time arrives, the downlink TB is split, the unpacked TB is cached, the estimated time required for uplink authorization packet assembly is calculated according to T2=V2*N2+t2, and the uplink authorization packet issuance process is performed, and step 301 is executed;

[0079] Step 2054, the uplink confirmation data is segmented, and the uplink confirmation data that cannot be completed after segmentation is cached in the confirmation data cache, and the remaining uplink confirmation data is directly released, and the downlink delivery data is put into the cache at the same time, and the estimated time consumed for uplink authorization package assembly is calculated according to T2=V2*N2+t2, and the uplink authorization package issuance process is performed; the estimated time consumed for downlink delivery data is calculated according to T4=V4*N4+t4, and step 302 is executed;

[0080] Step 301, determine whether the unpacking process is completed before the next TTI arrives, if so, execute step 302, otherwise, execute step 308;

[0081] Step 302, determining whether the delivery process of the downlink delivery data is completed before the next TTI arrives, if so, executing step 303, otherwise, executing step 309;

[0082] Step 303, unpack and deliver all data in the cached downlink delivery data, and then obtain the estimated time corresponding to the uplink confirmation data according to T3=V3*N3+t3;

[0083] Step 304, determining whether the release process of the uplink confirmation data can be completed before the next TTI arrives, if so, executing step 305, otherwise, executing step 310;

[0084] Step 305, releasing all cached uplink confirmation data;

[0085] Step 306, determining whether to cache the unprocessed uplink pre-packetized data, if so, executing step 307, otherwise, returning to step 201 to execute the timing determination process of the next TTI;

[0086] Step 307, processing the uplink pre-packetized data that can be processed before the next TTI arrives according to T1=V1*N1+t1, and returning to step 201 to perform the timing determination process of the next TTI;

[0087] Step 308, before the next TTI arrives, the TB is divided, the unpacked data is put into the cache, and the process returns to step 201 to execute the timing determination process of the next TTI;

[0088] Step 309, segmenting the downlink delivery data, putting the data that cannot be delivered after segmentation back into the cache, completing the delivery process of the remaining downlink delivery data, and returning to step 201 to perform the timing determination process of the next TTI;

[0089] Step 310, the uplink confirmation data is segmented, and the portion that cannot be released after segmentation is put back into the cache, and the remaining uplink confirmation data is directly released, and the process returns to step 201 to execute the timing determination process of the next TTI.

[0090] Among them, the uplink confirmation data release process needs to be before the delivery process of the downlink delivery data obtained by downlink unpacking and after the pre-packaging process, so as to avoid the problem that the uplink data has been confirmed to occupy the memory and cause the uplink authorization packaging failure.

[0091] Among them, in a TTI, when all downlink delivery data cannot be delivered, while the remaining part is cached, a warning is issued that the downlink data cache has not been processed in time, and then the next TTI is processed.

[0092] Among them, in a TTI, when the uplink confirmation data cannot be fully released, when releasing part of the uplink confirmation data, part of the cache cannot be released and a warning is given that there is an uplink confirmation data cache that has not been processed, and the next TTI is processed before that.

[0093] The data link layer data transmission timing determination method provided by the embodiment of the present disclosure estimates and determines the expected duration corresponding to each data processing process according to the number of data packets corresponding to each data processing process in the data link layer, and determines the transmission timing of the data link layer according to the expected duration corresponding to each data processing process and the transmission priority of each data processing process. Therefore, by estimating the time consumption of each data processing process, the data transmission timing can be reasonably planned, and the normal transmission of each data processing process can be guaranteed according to the priority, so as to avoid abnormal situations caused by a certain processing process taking too long, thereby improving the system transmission performance and system stability.

[0094] Compared with the prior art, the data processing process is not planned in advance, which may lead to missed authorization packet assembly resulting in reduced uplink rate, priority processing of uplink pre-packet assembly resulting in unprocessed downlink data interruption, and failure to promptly process confirmed data release resulting in uplink packet assembly abnormalities. A data transmission timing planning method based on an estimation method is provided in the embodiments of the present invention, which can effectively reduce the above-mentioned abnormal problems, and plans the data processing process of the data link layer in real time according to the importance by estimating the data processing process time, and plans in advance for situations with long processing time to improve performance and provide early warning, thereby improving the stability and controllability of data transmission.

[0095] The step division of the above various methods is only for clear description. When implemented, they can be combined into one step or some steps can be split and decomposed into multiple steps. As long as they include the same logical relationship, they are all within the protection scope of this disclosure. Adding insignificant modifications to the algorithm or process or introducing insignificant designs without changing the core design of the algorithm and process are all within the protection scope of this disclosure.

[0096] An embodiment of the present disclosure provides a device for determining a data transmission timing. The specific implementation of the device can refer to the relevant description of the method embodiment, which will not be repeated here. Figure 5 The schematic diagram of the structure of the device is shown, which mainly includes:

[0097] An acquisition module 501 is used to acquire the number of data packets corresponding to each data processing process in the data link layer;

[0098] An estimation module 502 is used to determine the estimated duration corresponding to each data processing process according to the number of data packets corresponding to each data processing process;

[0099] The determination module 503 is used to determine the transmission timing of the data link layer according to the estimated duration corresponding to each data processing process and the transmission priority of each data processing process.

[0100] The functions or modules included in the device provided in the embodiments of the present disclosure can be used to execute the method described in the method embodiments. The specific implementation and technical effects thereof can be referred to the description of the method embodiments above, and will not be described again here for the sake of brevity.

[0101] It should be noted that all modules involved in this embodiment are logic modules. In practical applications, a logic unit may be a physical unit, or a part of a physical unit, or may be implemented as a combination of multiple physical units. In addition, in order to highlight the innovative part of the present disclosure, this embodiment does not introduce units that are not closely related to solving the technical problems proposed by the present disclosure, but this does not mean that there are no other units in this embodiment.

[0102] Reference Figure 6 , an embodiment of the present disclosure provides an electronic device, comprising:

[0103] at least one processor 601;

[0104] A memory 602 having at least one program stored thereon, and when the at least one program is executed by the at least one processor, the at least one processor implements the above method;

[0105] At least one I / O interface 603 is connected between the processor and the memory and is configured to implement information exchange between the processor and the memory.

[0106] Among them, the processor 601 is a device with data processing capabilities, including but not limited to a central processing unit (CPU); the memory 602 is a device with data storage capabilities, including but not limited to random access memory (RAM, more specifically SDRAM, DDR, etc.), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory (FLASH); the I / O interface (read-write interface) 603 is connected between the processor 601 and the memory 602, and can realize information interaction between the processor 601 and the memory 602, including but not limited to a data bus (Bus), etc.

[0107] In some embodiments, the processor 601 , the memory 602 , and the I / O interface 603 are connected to each other through a bus, and further connected to other components of the computing device.

[0108] This embodiment further provides a computer-readable medium on which a computer program is stored. When the program is executed by a processor, the method provided in this embodiment is implemented. To avoid repeated description, the specific steps of the method are not repeated here.

[0109] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods applied for above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, it is well known to those skilled in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.

[0110] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0111] Those skilled in the art will understand that although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features from different embodiments is meant to be within the scope of the present embodiment and to form different embodiments.

[0112] It is to be understood that the above embodiments are merely exemplary embodiments used to illustrate the principles of the present disclosure, but the present disclosure is not limited thereto. For those of ordinary skill in the art, various modifications and improvements can be made without departing from the spirit and substance of the present disclosure, and these modifications and improvements are also considered to be within the scope of protection of the present disclosure.

Claims

1. A method for determining data transmission timing, characterized in that: include: Obtain the number of data packets corresponding to each data processing process in the data link layer; Determine the estimated duration corresponding to each data processing process according to the number of data packets corresponding to each data processing process; The transmission timing of the data link layer is determined according to the estimated duration corresponding to each data processing process and the transmission priority of each data processing process.

2. The method according to claim 1, characterized in that The determining, according to the number of data packets corresponding to each data processing process, the estimated duration corresponding to each data processing process includes: Obtaining a mapping relationship between the number of data packets and the processing time corresponding to each data processing process; According to the mapping relationship, the estimated duration corresponding to each data processing process is determined.

3. The method according to claim 2, characterized in that The process of obtaining the mapping relationship between the number of data packets and the processing time in any data processing process includes: Statistically obtain the actual processing time corresponding to each number of packets in the data processing process; Linear fitting is performed on the actual processing time corresponding to each number of packets to obtain a mapping relationship between the number of packets and the processing time in the data processing process, wherein the mapping relationship is used to reflect the relationship between the data processing process rate, the number of packets, the time increment and the total time of the data processing process.

4. The method according to claim 2, characterized in that: The data processing processes include an uplink data processing process and a downlink data processing process, wherein the uplink data processing process includes: an uplink pre-packaging process, an uplink confirmation data release process and an uplink authorization packaging process; the downlink data processing process includes a downlink delivery process.

5. The method according to claim 4, characterized in that The transmission priorities of the data processing processes within a transmission time interval include: When the uplink authorization arrives, the uplink authorization package assembly process has the highest priority; In a first time period before the uplink authorization arrives, the uplink pre-packaging process has the highest priority; In a second time period after the uplink authorization arrives, the downlink delivery process has the highest priority.

6. The method according to claim 5, characterized in that The uplink grant arrival time in each transmission time interval is fixed.

7. The method according to claim 6, characterized in that The determining, according to the estimated duration corresponding to each data processing process and the transmission priority of each data processing process, the transmission timing corresponding to each data processing process includes: For any transmission time interval, the transmission timing corresponding to each data processing process is determined according to the following process: In a first time period before the uplink authorization arrives, determining the transmission timing in the first time period according to the estimated duration corresponding to the uplink pre-packaging buffer data, the uplink confirmation data and the downlink delivery data and the duration of the first time period; When the uplink authorization time arrives, the uplink authorization package assembly process is completed first according to the estimated time duration corresponding to the uplink authorization package assembly process; The transmission timing in the second time period is determined according to the unfinished data process in the first time period.

8. The method according to claim 6, characterized in that The step of determining the transmission timing in the first time period according to the estimated time durations corresponding to the uplink pre-packaging buffer data, the uplink confirmation data, and the downlink delivery data and the length of the first time period in the first time period before the uplink authorization arrives includes: In the first time period, judging whether the time when the uplink pre-packet buffer data is expected to be processed exceeds the uplink authorization time according to the expected time duration corresponding to the uplink pre-packet buffer data, and if so, processing part of the uplink pre-packet buffer data before reaching the uplink authorization time, otherwise, completing the processing process of the uplink pre-packet buffer data; After completing the processing of the uplink pre-packaging cache data, in the case of uplink confirmation data, judging whether the moment when the uplink confirmation data is released exceeds the uplink authorization moment according to the estimated time corresponding to the release of the uplink confirmation data, if so, releasing part of the uplink confirmation data before reaching the uplink authorization moment, and saving the unreleased uplink confirmation data into the uplink confirmation data cache, otherwise, completing the release process of the uplink confirmation data; After completing the release process of the uplink confirmation data, in the case of downlink delivery data, determine whether the time when the downlink delivery data is completed exceeds the uplink authorization time according to the estimated time required for the delivery of the downlink delivery data. If so, deliver part of the data corresponding to the downlink delivery data before reaching the uplink authorization time. Otherwise, complete the delivery process of the downlink delivery data.

9. The method according to claim 8, characterized in that The method further comprises: After completing the processing of the uplink pre-packaging buffer data, receiving a downlink transmission block and performing an unpacking process on the downlink transmission block; In a case where the unpacking process of the downlink transmission block is completed before the uplink authorization time, and the uplink confirmation data exists in the downlink data obtained by unpacking the downlink transmission block or in the downlink data cache, performing the step of judging whether the moment when the uplink confirmation data is released exceeds the uplink authorization time according to the estimated consuming time corresponding to the release of the uplink confirmation data; In case the unpacking process of the downlink transmission block is not completed before the uplink authorization moment, when the uplink authorization moment arrives, the unpacked data is obtained, the unpacked data in the downlink transmission block is saved in the downlink data cache, and the process based on the unfinished data in the first time period is executed to determine the transmission timing in the second time period.

10. The method according to claim 9, characterized in that The determining, according to the unfinished data process in the first time period, the transmission timing in the second time period includes: After completing the uplink authorization packaging process, unpacking the unpacked data and saving the unpacked downlink data to a downlink data cache; In the case where all packets are unpacked before the next transmission time interval arrives, judging whether the time when the delivery is completed exceeds the time when the next transmission time interval arrives according to the estimated time duration corresponding to the downlink delivery data in the downlink data cache, and if so, delivering part of the downlink delivery data in the downlink data cache before the next transmission time interval arrives, otherwise, completing the delivery process of all the downlink delivery data in the downlink data cache; After completing the delivery process of all downlink delivery data in the downlink data cache, in the case of unreleased uplink confirmation data, judging whether the moment of release completion exceeds the arrival time of the next transmission time interval according to the estimated duration corresponding to the release process of the unreleased uplink confirmation data, if so, releasing part of the unreleased uplink confirmation data before the arrival time of the next transmission time interval, otherwise, completing the release process of all uplink confirmation data; After completing the release process of all the uplink confirmation data, in the case that there is unprocessed pre-package cache data, determine whether the time when the processing is completed exceeds the arrival time of the next transmission time interval based on the estimated time corresponding to the processing process of the unprocessed pre-package cache data; if so, process part of the unprocessed pre-package cache data before the arrival time of the next transmission time interval; otherwise, complete the processing process of the unprocessed pre-package cache data.

11. A device for determining a data transmission timing, characterized in that: include: An acquisition module is used to obtain the number of data packets corresponding to each data processing process in the data link layer; An estimation module, used to determine the estimated duration corresponding to each data processing process according to the number of data packets corresponding to each data processing process; The determination module is used to determine the transmission timing of the data link layer according to the estimated duration corresponding to each data processing process and the transmission priority of each data processing process.

12. An electronic device, characterized in that: include: at least one processor; A memory having one or more programs stored thereon, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 10; At least one I / O interface is connected between the processor and the memory and is configured to implement information interaction between the processor and the memory.

13. A computer readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the method according to any one of claims 1 to 10 is implemented.