Wireless data packet transmission method, device, equipment and readable storage medium
By acquiring and scheduling the transmission delay of wireless data packets, the problem of uncertainty in transmission delay in wireless industrial networks is solved, effective transmission of wireless data packets is realized, and transmission efficiency and effectiveness are improved.
Patent Information
- Application Number
- CN202211540199.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-02
- Publication Date
- 2025-08-12
- Estimated Expiration
- 2042-12-02
AI Technical Summary
In wireless industrial networks, uncertainty in transmission delay makes it impossible to determine whether the transmission time of wireless data packets meets the needs of the industrial control field, which in turn affects transmission effectiveness and efficiency.
By obtaining the test transmission delay of the wireless data packet, the first transmission time is calculated, and unused transmission resources are scheduled to redetermine the second transmission time when the preset requirements are not met, ensuring that the wireless data packet is transmitted to the target node after the preset requirements is met.
The effective transmission ratio of wireless data packets in wireless industrial networks is improved, invalid transmission is avoided, and the effectiveness and efficiency of transmission time is enhanced.
Smart Images

Figure CN115942477B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a wireless data packet transmission method, apparatus, device, and readable storage medium. Background Art
[0002] In the field of industrial control, collaboration between multiple nodes requires that each node execute actions synchronously or in an orderly manner. Therefore, control data, status data, feedback data, etc. must be transmitted to the target node before a certain time node. Wireless data packets whose transmission time exceeds the expected time node will not only fail to produce the expected effect at the target node, but also waste limited transmission resources.
[0003] However, in existing wireless networks, when scheduling services, scheduling nodes do not fully consider the transmission delay from the scheduling node to the target node to transmit wireless data packets. Due to the uncertainty of the transmission delay, it is impossible to determine whether the total transmission time of the wireless data packet meets the needs of the industrial control field, which in turn affects the transmission effectiveness in wireless industrial networks. Summary of the Invention
[0004] In view of this, the present application provides a wireless data packet transmission method, apparatus, device and readable storage medium, aiming to improve the proportion of effective transmission of wireless data packets in wireless industrial networks.
[0005] To achieve the above objectives, the present application provides a wireless data packet transmission method, which includes the following steps:
[0006] Obtain the test transmission delay of wireless data packets;
[0007] Calculating a first transmission duration of the wireless data packet according to the test transmission delay and the preset transmission resources;
[0008] If the first transmission duration does not meet the preset required duration and there are unused transmission resources, scheduling the unused transmission resources and the preset transmission resources to re-determine the second transmission duration of the wireless data packet;
[0009] If the second transmission duration meets the preset required duration, the wireless data packet is transmitted to a preset target node.
[0010] Exemplarily, after calculating the first transmission duration of the wireless data packet according to the test transmission delay and the preset transmission resource, the method further includes:
[0011] If the unused transmission resources do not exist or the second transmission duration does not meet the preset required duration, the wireless data packet is not transmitted, and the preset transmission resources corresponding to the wireless data packet are released.
[0012] Exemplarily, obtaining a test transmission delay of a wireless data packet includes:
[0013] Obtaining a preset number of test wireless data packets; wherein each of the test wireless data packets has a different size;
[0014] Calculating the initial test delay caused by the test wireless data packet within each data processing layer and between the data processing layers;
[0015] The test transmission delay of the wireless data packet is obtained by fitting according to the initial test delay.
[0016] Exemplarily, the calculating the transmission duration of the wireless data packet according to the tested transmission delay and the preset transmission resources includes:
[0017] Calculating a data transmission duration of the wireless data packet according to the wireless data packet and the preset transmission resource;
[0018] Calculating the waiting time of the wireless data packet before transmission;
[0019] A first transmission duration of the wireless data packet is calculated according to the test transmission delay, the waiting duration and the data transmission duration.
[0020] Exemplarily, after calculating the transmission duration of the wireless data packet according to the test transmission delay and the preset transmission resources, the method further includes:
[0021] Calculating the difference between the preset required time, the waiting time, and the test transmission delay to obtain a margin time;
[0022] If the data transmission duration is not greater than the margin time, transmitting the wireless data packet to a preset target node;
[0023] If the first transmission duration is not greater than the preset required duration, the wireless data packet is transmitted to a preset target node.
[0024] Exemplarily, the calculating, based on the wireless data packet and the preset transmission resource, the data transmission duration of the wireless data packet includes:
[0025] Calculating the number of transmission time slots required for the wireless data packet according to the wireless data packet and the preset transmission resource;
[0026] The data transmission duration of the wireless data packet is calculated according to the quantity and the preset time slot unit duration.
[0027] Exemplarily, after obtaining the test transmission delay of the wireless data packet, the method further includes:
[0028] If the test transmission delay does not meet the preset calculation standard, obtaining a test wireless data packet that meets the preset calculation standard;
[0029] Calculate the test transmission delay of the test wireless data packet that meets the preset calculation standard.
[0030] Exemplarily, to achieve the above-mentioned purpose, the present application further provides a wireless data packet transmission device, the device comprising:
[0031] An acquisition module, used to obtain the test transmission delay of the wireless data packet;
[0032] a calculation module, configured to calculate a first transmission duration of the wireless data packet according to the test transmission delay and the preset transmission resources;
[0033] a scheduling module, configured to, if the first transmission duration does not meet a preset required duration and there are unused transmission resources, schedule the unused transmission resources and the preset transmission resources to re-determine a second transmission duration for the wireless data packet;
[0034] A transmission module is configured to transmit the wireless data packet to a preset target node if the second transmission duration meets the preset required duration.
[0035] Exemplarily, to achieve the above-mentioned purpose, the present application also provides a wireless data packet transmission device, which includes: a memory, a processor, and a wireless data packet transmission program stored on the memory and executable on the processor, wherein the wireless data packet transmission program is configured to implement the steps of the wireless data packet transmission method described above.
[0036] Exemplarily, to achieve the above-mentioned purpose, the present application also provides a computer-readable storage medium, on which a wireless data packet transmission program is stored, and when the wireless data packet transmission program is executed by a processor, the steps of the wireless data packet transmission method described above are implemented.
[0037] Compared with the prior art, in which the uncertainty of transmission delay in existing wireless networks makes it impossible to determine whether the total transmission time of transmitting wireless data packets meets the needs of the industrial control field, thereby affecting the transmission efficiency in wireless industrial networks, in the present application, a test transmission delay of a wireless data packet is obtained; based on the test transmission delay and the preset transmission resources, a first transmission duration of the wireless data packet is calculated, and by comparing the first transmission duration with the preset required duration, when the transmission duration does not meet the preset required duration, it is further determined whether there are unused transmission resources. If there are unused transmission resources, the unused transmission resources and the preset transmission resources are scheduled to re-determine the second transmission duration of the wireless data packet. If the second transmission duration does not meet the preset required duration, The duration meets the preset required duration, then the wireless data packet is transmitted to the preset target node, that is, it is first determined whether the wireless data packet meets the preset required transmission duration, thereby avoiding the situation where the wireless data packet whose transmission duration does not meet the preset required duration is transmitted to the preset target node. At the same time, according to the scheduling of unused transmission resources, the transmission resources used to transmit the wireless data packet can be increased, thereby reducing the transmission duration of the wireless data packet. After the second transmission duration of the wireless data packet meets the preset required duration, the wireless data packet is transmitted to the preset target node. By scheduling the unused transmission resources, the transmission duration of the wireless data packet is guaranteed to be valid, thereby avoiding the process of invalid transmission of the wireless data packet, thereby improving the proportion of effective transmission of wireless data packets in the wireless industrial network. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 This is a flow chart of the first embodiment of the wireless data packet transmission method of the present application;
[0039] Figure 2 A schematic diagram of the distribution of a wireless network with a star network topology;
[0040] Figure 3 Schematic diagram of the processing steps in the data transmission process;
[0041] Figure 4 This is a schematic diagram of the processing steps in the data transmission process of the NR system;
[0042] Figure 5 This is a flow chart of a second embodiment of the wireless data packet transmission method of the present application;
[0043] Figure 6 This is a schematic diagram of the structure of the hardware operating environment involved in the embodiment of this application.
[0044] The realization of the objectives, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0045] It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application.
[0046] This application provides a wireless data packet transmission method, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the wireless data packet transmission method of the present application.
[0047] The embodiments of the present application provide embodiments of a wireless data packet transmission method. It should be noted that although a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than here. For ease of description, the following description of the various steps of the wireless data packet transmission method is omitted. The wireless data packet transmission method includes:
[0048] Step S110: obtaining a test transmission delay of a wireless data packet;
[0049] In the field of industrial control, collaboration between multiple nodes requires that each node perform actions synchronously or in an orderly manner. However, when the total duration of data transmission between nodes exceeds the required duration, even if the data transmission action is completed, the transmitted data cannot produce the expected effect at the receiving node, and transmission resources will be wasted.
[0050] For example, a wireless network with a star network topology is used as an example to illustrate. Figure 2 , Figure 2 Schematic diagram of the distribution of a wireless network with a star network topology.
[0051] The star network consists of a scheduling node at the center of the topology and terminal nodes at the end. There is only one scheduling node and multiple terminal nodes. Each data packet is transmitted to a predetermined terminal node according to the scheduling node.
[0052] In this star network, since there is only one scheduling node, when sending data packets or transmitting related data to the terminal node through this scheduling node, if the transmission delay of this scheduling node exceeds the required time length, the transmission of the scheduling node will not produce the expected effect, and no other scheduling node can transmit data to the terminal node. At this time, in the star network, the delay determinism of data transmission is particularly important.
[0053] Therefore, before the scheduling node transmits the corresponding data or data packet, the total transmission time required to transmit the data or data packet is first determined.
[0054] In order to determine the total transmission time, it is necessary to first determine the different times required to transmit data.
[0055] For example, the total transmission time when the scheduling node transmits data or data packets to the terminal node includes: transmission delay (transmission delay caused by each processing layer when transmitting data between nodes), transmission time required to transmit data (transmission time from the scheduling node to the terminal node), waiting time for data to enter the relevant protocol stack, etc.
[0056] Therefore, before each data transmission, in order to determine the total transmission duration, the above-mentioned times must be determined first.
[0057] Before transmitting data or data packets, the transmission delay cannot be determined. Therefore, different data packets can be transmitted to the terminal node through the scheduling node through advance testing to determine the test transmission delay. The test transmission delay is used to represent the transmission delay during the test process. The test transmission delay is similar to the delay during actual transmission. Therefore, the test transmission delay can be equated with the transmission delay during actual transmission.
[0058] The test transmission delay of the wireless data packet is obtained, that is, the transmission delay determined when performing a transmission test on the wireless data packet, wherein the wireless data packet is a data packet transmitted in a wireless network with a star network topology.
[0059] Exemplarily, obtaining a test transmission delay of a wireless data packet includes:
[0060] Step a: obtaining a preset number of test wireless data packets; wherein each of the test wireless data packets has a different size;
[0061] In order to obtain the test transmission delay of the wireless data packet, it is inefficient to test each wireless data packet of different sizes. Therefore, a test wireless data packet dedicated to the test can be selected. The test results of the test wireless data packet can be used to fit the test transmission delay of all data packets of different sizes.
[0062] Exemplarily, the test wireless data packet selection method includes: sampling at equal intervals from the smallest data packet supported by the system to the largest data packet supported by the system, determining according to the size of a typical service data packet, etc.
[0063] The selection of the test wireless data packet is not limited to the above two methods, and it is sufficient to ensure that the test wireless data packet can represent the entirety of wireless data packets of different sizes.
[0064] The preset quantity can be 5, 10, 15, etc. according to the actual selected quantity.
[0065] For example, using a sampling method with equal intervals, the test wireless data packets can be a set of wireless data packets ranging from 100 bytes to 1500 bytes, with intervals of 100 bytes, for a total of 15 different test wireless data packets. The test process is divided into 15 steps, with one of the 15 test wireless data packets selected each time. The 15 selected test wireless data packets are non-duplicate. This is a general technique and is not specifically limited to specifics. It is sufficient to ensure that the test wireless data packets are of different sizes and that each test wireless data packet is tested once.
[0066] Therefore, when obtaining test wireless data packets, it is sufficient to ensure the preset number (to ensure the accuracy of subsequent fitting) and the size of each test wireless data packet is different (to avoid repeated testing of data packets of the same size).
[0067] Step b: calculating the initial test delay caused by the test wireless data packet within each data processing layer and between the data processing layers;
[0068] After obtaining the test wireless data packet, the test wireless data packet is transmitted to the corresponding terminal node through the scheduling node, and the transmission delay of the test wireless data packet during the transmission process is calculated to obtain the initial test delay corresponding to the test wireless data packet.
[0069] During the transmission process, the data packet needs to pass through multiple processing layers and be transmitted from the processing layer of the scheduling node to the processing layer of the terminal node.
[0070] Reference Figure 3 , Figure 3 Schematic diagram of the processing steps in the data transmission process.
[0071] according to Figure 3 It can be seen that in the scheduling node, the test wireless data packet must at least pass through other protocol layers, the MAC layer (Media Access Control, the MAC layer provides access control functions (such as addressing mode, access coordination, frame check sequence generation and checking, etc.) and the physical layer, and transmit the test wireless data packet to the physical layer of the terminal node through the physical layer of the scheduling node, and complete the transmission of the test wireless data packet through the MAC layer and other protocol layers of the terminal node.
[0072] Among them, according to Figure 3 It can be seen that the time when the test wireless data packet arrives at the protocol stack is: t0, the time when the MAC layer starts processing the test wireless data packet is: t1, the time when the MAC layer ends processing the test wireless data packet is: t2, the time when the physical layer starts processing the test wireless data packet is: t3, the time when the RF signal starts to be sent is: t4, the time when the RF receives the signal is: t5, and the time when the test wireless data packet is delivered to the application layer is: t6.
[0073] Among them, RF signal transmission and reception refers to the process of the scheduling node transmitting the test wireless data packet to the terminal node. Among them, the application layer is the layer at the terminal node that performs corresponding operations after receiving the test wireless data packet. After the test wireless data packet is submitted to the application layer, no transmission delay will be generated.
[0074] Therefore, the initial test delay generated during the transmission process includes four types: MAC layer processing delay (denoted as d1), physical layer processing delay, physical layer at the terminal node (denoted as d2), the total delay of the MAC layer and other protocol layers (that is, the delay caused by the terminal node transmitting the test wireless data packet to the application layer after receiving the test wireless data packet, denoted as d3), and the transmission delay when transmitting from the scheduling node to the terminal node (denoted as d4).
[0075] according to Figure 3 It can be seen that the magnitude of each delay between each processing layer can be calculated.
[0076] Among them, d1=t2-t1; d2=t4-t3; d3=t6-t5;
[0077] Among them, d4 is a value affected by data such as the network conditions in the actual scenario between the scheduling node and the terminal node. This value can be directly obtained according to the actual scenario, and in the same actual scenario, d4 is a fixed value.
[0078] During the test process, a preset number of test wireless data packets are all tested, and the test is stopped after all the preset number of test wireless data packets are tested.
[0079] For example,
[0080] Step c: fitting the test transmission delay of the wireless data packet according to the initial test delay.
[0081] According to d1, d2, and d3 in the initial test delay, various delay values of other untested wireless data packets are estimated, and fitting methods include but are not limited to linear interpolation, minimum mean square error, and other methods.
[0082] That is, the test transmission delay of the wireless data packet is obtained by fitting according to the initial test delay.
[0083] For example, the 5G NR system is used as an example. Other protocol layers in the NR system include SDAP (Service Discovery Application Profile), PDCP (Packet Data Convergence Protocol) and RLC (Radio Link Control). Figure 3 The other protocol layers in the protocol can be replaced with the above three processing layers. For details, please refer to Figure 4 , Figure 4 Schematic diagram of the processing steps in the data transmission process of the NR system.
[0084] Step S120: Calculating a first transmission duration of the wireless data packet according to the test transmission delay and the preset transmission resources;
[0085] The first transmission duration is the total duration of transmitting the wireless data packet from the scheduling node to the terminal node.
[0086] Among them, the preset transmission resources are resources used to transmit wireless data packets. The preset transmission resources are transmission resources reserved in advance based on the scheduling node corresponding to different terminal nodes, that is, the scheduling node has a data transmission task with multiple terminal nodes. For each terminal node, the scheduling node will reserve a certain size of transmission resources for use by the scheduling node.
[0087] According to the preset transmission resources and the test transmission delay, the sum of the transmission time length of the data and the related transmission delay can be calculated to obtain the first transmission time length.
[0088] Step S130: If the first transmission duration does not meet the preset required duration and there are unused transmission resources, scheduling the unused transmission resources and the preset transmission resources to re-determine the second transmission duration of the wireless data packet;
[0089] When the first transmission duration does not meet the preset required duration, it is proved that the first transmission duration will cause the transmission to be invalid, wherein the preset required duration is a duration that limits the length of the first transmission duration to meet certain service requirements, for example, requiring that the total duration of the data packet transmission between the scheduling node and the terminal node does not exceed 50ms.
[0090] When the first transmission duration does not meet the preset required duration, it can be determined whether there are currently unused transmission resources, that is, transmission resources that are not reserved for other wireless data packets.
[0091] When there are unused transmission resources, the unused transmission resources and the preset transmission resources are scheduled to transmit the wireless data packet together. Therefore, at this time, the second transmission duration of the wireless data packet needs to be re-determined.
[0092] The second transmission duration is the corresponding total transmission duration generated under the premise of unused transmission resources and preset transmission resources.
[0093] Step S140: If the second transmission duration meets the preset required duration, the wireless data packet is transmitted to a preset target node.
[0094] When the second transmission duration meets the preset required duration, the wireless data packet can be transmitted to the preset target node by using both the unused transmission resources and the preset transmission resources to transmit the wireless data packet.
[0095] The preset target node is the node among the terminal nodes to which the data packet needs to be transmitted. The preset target node can be determined based on the scheduling node. The scheduling node can determine which terminal node the preset target node is based on the corresponding scheduling task. The scheduling task refers to the task of transmitting wireless data packets between the scheduling node and the terminal node.
[0096] Exemplarily, after calculating the first transmission duration of the wireless data packet according to the test transmission delay and the preset transmission resource, the method further includes:
[0097] Step d: If the unused transmission resources do not exist or the second transmission duration does not meet the preset required duration, the wireless data packet is not transmitted, and the preset transmission resources corresponding to the wireless data packet are released.
[0098] When there is no unused transmission resource or the second transmission duration, the wireless data packet is not transmitted, and the preset transmission resource reserved for the wireless data packet is released for scheduling and use in subsequent transmission of other wireless data packets.
[0099] Exemplarily, after obtaining the test transmission delay of the wireless data packet, the method further includes:
[0100] Step e: If the test transmission delay does not meet the preset calculation standard, obtaining a test wireless data packet that meets the preset calculation standard;
[0101] The test transmission delay is obtained by fitting the relevant delay of the test wireless data packet. If the data packet transmitted between the scheduling node and the terminal node is updated, the current test transmission delay cannot meet the preset calculation standard.
[0102] The preset calculation standard is a standard for ensuring the accuracy of calculating the first transmission duration and evaluating the wireless data packet corresponding to the test transmission delay to determine that the test transmission delay corresponds to the latest wireless data packet to be transmitted.
[0103] During the determination process, whether the test transmission delay of the test wireless data packet meets the preset calculation standard can be determined based on the update time of the test wireless data packet and the difference between the test wireless data packet and the wireless data packet to be transmitted.
[0104] In addition, the test transmission data may be tested and updated according to a preset period. For example, the test may be performed every month to update the size of the test transmission delay.
[0105] When the test transmission delay does not meet the preset calculation standard, a new test wireless data packet is obtained, and the new test wireless data packet must meet the preset calculation standard.
[0106] Step f: Calculating the test transmission delay of the test wireless data packet that meets the preset calculation standard.
[0107] The test transmission delay of the test wireless data packet that meets the preset calculation standard is calculated to update the original test transmission delay.
[0108] Compared with the prior art, in which the uncertainty of transmission delay in existing wireless networks makes it impossible to determine whether the total transmission time of transmitting wireless data packets meets the needs of the industrial control field, thereby affecting the transmission efficiency in wireless industrial networks, in the present application, a test transmission delay of a wireless data packet is obtained; based on the test transmission delay and the preset transmission resources, a first transmission duration of the wireless data packet is calculated, and by comparing the first transmission duration with the preset required duration, when the transmission duration does not meet the preset required duration, it is further determined whether there are unused transmission resources. If there are unused transmission resources, the unused transmission resources and the preset transmission resources are scheduled to re-determine the second transmission duration of the wireless data packet. If the second transmission duration does not meet the preset required duration, The duration meets the preset required duration, then the wireless data packet is transmitted to the preset target node, that is, it is first determined whether the wireless data packet meets the preset required transmission duration, thereby avoiding the situation where the wireless data packet whose transmission duration does not meet the preset required duration is transmitted to the preset target node. At the same time, according to the scheduling of unused transmission resources, the transmission resources used to transmit the wireless data packet can be increased, thereby reducing the transmission duration of the wireless data packet. After the second transmission duration of the wireless data packet meets the preset required duration, the wireless data packet is transmitted to the preset target node. By scheduling the unused transmission resources, the transmission duration of the wireless data packet is guaranteed to be valid, thereby avoiding the process of invalid transmission of the wireless data packet, thereby improving the proportion of effective transmission of wireless data packets in the wireless industrial network.
[0109] For example, refer to Figure 5 , Figure 5 : is a flow chart of a second embodiment of the wireless data packet transmission method of the present application. Based on the first embodiment of the wireless data packet transmission method of the present application, a second embodiment is proposed, wherein the method further includes:
[0110] Step S210: Calculating the data transmission duration of the wireless data packet according to the wireless data packet and the preset transmission resources;
[0111] The first transmission duration is obtained by calculating the sum of the data transmission duration and the data transmission time.
[0112] The data transmission duration refers to the duration required to transmit a wireless data packet from a scheduling node to a terminal node, and the first transmission duration is the total duration of the relevant transmission process.
[0113] When judging the first transmission duration and the preset duration requirement, the data transmission duration or the first transmission duration when transmitting data can be compared with the preset duration requirement to determine whether it meets the preset duration requirement.
[0114] Exemplarily, the calculating, based on the wireless data packet and the preset transmission resource, the data transmission duration of the wireless data packet includes:
[0115] Step g: calculating the number of transmission time slots required for the wireless data packet according to the wireless data packet and the preset transmission resources;
[0116] Step h: Calculate the data transmission duration of the wireless data packet according to the quantity and the preset time slot unit duration.
[0117] Based on the wireless data packet and the preset transmission resources, the data duration of the wireless data packet can be calculated. During this calculation process, the number of transmission time slots for transmitting the wireless data packet is first calculated based on the size of the wireless data packet. Further, the data transmission duration can be calculated based on the number of transmission time slots and the unit duration of the transmission time slot.
[0118] The size of the data packet is recorded as M, the size of the preset transmission resource is recorded as m, and the rounded-up value of (M / m) is calculated as the number n of transmission time slots.
[0119] For example, if the preset transmission data size is 400 and the wireless data packet size is 1500, according to M / m=1500 / 400=3.75, rounded up, n=4.
[0120] In different systems, the unit duration of a time slot is a fixed value (denoted as T). Therefore, the preset unit duration of a time slot is a fixed value of the current system and is not limited here.
[0121] The data transmission duration can be obtained according to the formula n*T.
[0122] For example, taking the current wireless data packet size of 1500 and the reserved preset transmission resource size of 300 as an example, n=1500 / 300=5, that is, the number of required transmission time slots is 5. According to n*T, if the unit duration of the time slot of the current system is T=0.5, the data transmission duration is calculated to be 5*0.5=2.5.
[0123] Step S220: Calculating the waiting time of the wireless data packet before transmission;
[0124] Before transmission, wireless data packets will first enter the corresponding other protocol layers and queue in a sequential order. The scheduling node will transmit the wireless data packets in sequence according to the order of the queue.
[0125] Therefore, the waiting time should also be considered as part of the total transmission time.
[0126] The waiting time is recorded as d0, d0=t-t0, where t is the current time.
[0127] Step S230: Calculate a first transmission duration of the wireless data packet according to the test transmission delay, the waiting duration, and the data transmission duration.
[0128] The first transmission duration can be calculated based on the tested transmission delay, waiting time and data transmission duration.
[0129] First transmission duration=d0+d1+d2+d3+d4+n*T.
[0130] Exemplarily, after calculating the transmission duration of the wireless data packet according to the test transmission delay and the preset transmission resources, the method further includes:
[0131] Step i: Calculate the difference between the preset required time, the waiting time, and the test transmission delay to obtain the margin time;
[0132] Step j: If the data transmission duration is not greater than the margin time, transmitting the wireless data packet to a preset target node;
[0133] After calculating the first transmission duration and the data transmission duration, the first transmission duration can be compared with the preset required duration to determine whether it meets the preset required duration. If the first transmission duration is less than or equal to the preset required duration, it meets the requirements.
[0134] Among them, after calculating the data transmission duration, before calculating the first transmission duration, it can be determined whether the current data transmission duration meets the requirements. The data used to determine whether the data transmission duration meets the requirements is calculated based on the preset required duration.
[0135] By calculating the difference between the preset required time, the waiting time and the transmission delay, the margin time is obtained. This margin time is the remaining time left for the scheduling node to transmit the wireless data packet to the terminal node under the premise of meeting the preset required time.
[0136] By comparing the remaining time with the data transmission duration, it can be determined whether the current data transmission duration meets the preset requirement.
[0137] Among them, the margin time = preset required time - d0 - d1 - d2 - d3 - d4.
[0138] When the data transmission duration (n*T) is less than or equal to the margin time, the wireless data packet can be transmitted to the preset target node.
[0139] Step k: If the first transmission duration is not greater than a preset required duration, transmitting the wireless data packet to a preset target node.
[0140] Similarly, the first transmission duration can be calculated based on the data transmission duration. By comparing the first transmission duration with the preset required duration, it can be determined whether it meets the preset required duration. When the first transmission duration is less than the preset required duration, the wireless data packet can be transmitted to the preset target node.
[0141] In this embodiment, the data transmission duration is first calculated based on the wireless data packet and the preset transmission resources, and the waiting time of the wireless data packet before transmission is calculated. The first transmission duration is obtained by summing the waiting time, the test transmission time and the data transmission time. The first transmission duration can be compared with the preset required duration to determine whether the first transmission duration meets the preset required duration. If it meets the preset requirement, the wireless data packet is transmitted to the preset target node.
[0142] In addition, the present application also provides a wireless data packet transmission device, the wireless data packet transmission device comprising:
[0143] An acquisition module, used to obtain the test transmission delay of the wireless data packet;
[0144] a calculation module, configured to calculate a first transmission duration of the wireless data packet according to the test transmission delay and the preset transmission resources;
[0145] a scheduling module, configured to, if the first transmission duration does not meet a preset required duration and there are unused transmission resources, schedule the unused transmission resources and the preset transmission resources to re-determine a second transmission duration for the wireless data packet;
[0146] A transmission module is configured to transmit the wireless data packet to a preset target node if the second transmission duration meets the preset required duration.
[0147] Exemplarily, the acquisition module includes:
[0148] An acquisition submodule, configured to acquire a preset number of test wireless data packets; wherein each of the test wireless data packets has a different size;
[0149] A first calculation submodule, configured to calculate an initial test delay caused by the test wireless data packet within each data processing layer and between the data processing layers;
[0150] The fitting submodule is used to fit the test transmission delay of the wireless data packet according to the initial test delay.
[0151] Exemplarily, the calculation module includes:
[0152] The first judgment submodule is configured to not transmit the wireless data packet and release the preset transmission resource corresponding to the wireless data packet if the unused transmission resource does not exist or the second transmission duration does not meet the preset required duration.
[0153] Exemplarily, the calculation module includes:
[0154] A second calculation submodule, configured to calculate a data transmission duration of the wireless data packet according to the wireless data packet and a preset transmission resource;
[0155] A third calculation submodule is used to calculate the waiting time of the wireless data packet before transmission;
[0156] a fourth calculation submodule, configured to calculate a first transmission duration of the wireless data packet according to the test transmission delay, the waiting duration, and the data transmission duration;
[0157] a fifth calculation submodule, configured to calculate a difference between a preset required time length and the waiting time length and the test transmission delay to obtain a margin time;
[0158] A first transmission submodule, configured to transmit the wireless data packet to a preset target node if the data transmission duration is not greater than the margin time;
[0159] The second transmission submodule is configured to transmit the wireless data packet to a preset target node if the first transmission duration is not greater than a preset required duration.
[0160] Exemplarily, the second calculation submodule includes:
[0161] a first calculating unit, configured to calculate the number of transmission time slots required for the wireless data packet according to the wireless data packet and the preset transmission resource;
[0162] The second calculation unit is used to calculate the data transmission duration of the wireless data packet according to the number and a preset time slot unit duration.
[0163] Exemplarily, the calculation module includes:
[0164] A second judgment submodule is configured to obtain a test wireless data packet that meets the preset calculation standard if the test transmission delay does not meet the preset calculation standard;
[0165] The sixth calculation submodule is configured to calculate the test transmission delay of the test wireless data packet that meets the preset calculation standard.
[0166] The specific implementation of the wireless data packet transmission device of the present application is basically the same as the embodiments of the wireless data packet transmission method described above, and will not be repeated here.
[0167] In addition, the present application also provides a wireless data packet transmission device. Figure 6 As shown, Figure 6 It is a structural diagram of the hardware operating environment involved in the embodiment of the present application.
[0168] For example, Figure 6 This is a structural diagram of the hardware operating environment of the wireless data packet transmission device.
[0169] like Figure 6 As shown, the wireless data packet transmission device may include a processor 601, a communication interface 602, a memory 603 and a communication bus 604, wherein the processor 601, the communication interface 602 and the memory 603 communicate with each other via the communication bus 604, the memory 603 is used to store computer programs; the processor 601 is used to implement the steps of the wireless data packet transmission method when executing the program stored in the memory 603.
[0170] The communication bus 604 mentioned in the wireless data packet transmission device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus 604 can be divided into an address bus, a data bus, and a control bus. For ease of illustration, the figure shows only one thick line, but this does not mean that there is only one bus or only one type of bus.
[0171] The communication interface 602 is used for communication between the wireless data packet transmission device and other devices.
[0172] The memory 603 may include a random access memory (RMD) or a non-volatile memory (NM), such as at least one disk storage. Alternatively, the memory 603 may be at least one storage device located away from the processor 601.
[0173] The above-mentioned processor 601 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0174] The specific implementation of the wireless data packet transmission device of the present application is basically the same as the embodiments of the wireless data packet transmission method described above, and will not be repeated here.
[0175] In addition, an embodiment of the present application further provides a computer-readable storage medium, on which a wireless data packet transmission program is stored. When the wireless data packet transmission program is executed by a processor, the steps of the wireless data packet transmission method described above are implemented.
[0176] The specific implementation of the computer-readable storage medium of the present application is basically the same as the embodiments of the above-mentioned wireless data packet transmission method, and will not be repeated here.
[0177] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or system comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or system. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or system comprising the element.
[0178] The serial numbers of the above embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0179] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0180] The above are only preferred embodiments of the present application and do not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A wireless data packet transmission method, characterized in that: The wireless data packet transmission method comprises the following steps: Obtaining a test transmission delay of a wireless data packet, wherein the test transmission delay includes a transmission delay caused by each processing layer when transmitting data between nodes; Calculating a first transmission duration of the wireless data packet based on the test transmission delay and the preset transmission resources, wherein the transmission duration includes a transmission delay caused by each processing layer when transmitting data between nodes, a transmission duration for transmitting data from a scheduling node to a terminal node, and a waiting time for data to enter a related protocol stack; If the first transmission duration does not meet the preset required duration and there are unused transmission resources, scheduling the unused transmission resources and the preset transmission resources to re-determine the second transmission duration of the wireless data packet; If the second transmission duration meets the preset required duration, the wireless data packet is transmitted to a preset target node.
2. The wireless data packet transmission method according to claim 1, wherein: After calculating the first transmission duration of the wireless data packet according to the test transmission delay and the preset transmission resource, the method further includes: If the unused transmission resources do not exist or the second transmission duration does not meet the preset required duration, the wireless data packet is not transmitted, and the preset transmission resources corresponding to the wireless data packet are released.
3. The wireless data packet transmission method according to claim 1, wherein: The obtaining of the test transmission delay of the wireless data packet includes: Obtaining a preset number of test wireless data packets; wherein each of the test wireless data packets has a different size; Calculating the initial test delay caused by the test wireless data packet within each data processing layer and between the data processing layers; The test transmission delay of the wireless data packet is obtained by fitting according to the initial test delay.
4. The wireless data packet transmission method according to claim 1, wherein: The calculating the transmission duration of the wireless data packet according to the tested transmission delay and the preset transmission resources includes: Calculating a data transmission duration of the wireless data packet according to the wireless data packet and the preset transmission resource; Calculating the waiting time of the wireless data packet before transmission; A first transmission duration of the wireless data packet is calculated according to the test transmission delay, the waiting duration and the data transmission duration.
5. The wireless data packet transmission method according to claim 4, wherein: After calculating the transmission duration of the wireless data packet according to the tested transmission delay and the preset transmission resources, the method further includes: Calculating the difference between the preset required time, the waiting time, and the test transmission delay to obtain a margin time; If the data transmission duration is not greater than the margin time, transmitting the wireless data packet to a preset target node; If the first transmission duration is not greater than the preset required duration, the wireless data packet is transmitted to a preset target node.
6. The wireless data packet transmission method according to claim 5, wherein: The calculating, according to the wireless data packet and the preset transmission resource, the data transmission duration of the wireless data packet includes: Calculating the number of transmission time slots required for the wireless data packet according to the wireless data packet and the preset transmission resource; The data transmission duration of the wireless data packet is calculated according to the quantity and the preset time slot unit duration.
7. The wireless data packet transmission method according to claim 1, wherein: After obtaining the test transmission delay of the wireless data packet, the method includes: If the test transmission delay does not meet the preset calculation standard, obtaining a test wireless data packet that meets the preset calculation standard; Calculate the test transmission delay of the test wireless data packet that meets the preset calculation standard.
8. A wireless data packet transmission device, characterized in that: The wireless data packet transmission device comprises: An acquisition module, configured to acquire a test transmission delay of a wireless data packet, wherein the test transmission delay includes a transmission delay caused by each processing layer when transmitting data between nodes; a calculation module, configured to calculate a first transmission duration of the wireless data packet based on the test transmission delay and the preset transmission resources, wherein the transmission duration includes a transmission delay caused by each processing layer when transmitting data between nodes, a transmission duration for transmitting data from a scheduling node to a terminal node, and a waiting time for data to enter a related protocol stack; a scheduling module, configured to, if the first transmission duration does not meet a preset required duration and there are unused transmission resources, schedule the unused transmission resources and the preset transmission resources to re-determine a second transmission duration for the wireless data packet; The transmission module is configured to transmit the wireless data packet to a preset target node if the second transmission duration meets the preset required duration.
9. A wireless data packet transmission device, characterized in that: The device includes: a memory, a processor, and a wireless data packet transmission program stored in the memory and executable on the processor, wherein the wireless data packet transmission program is configured to implement the steps of the wireless data packet transmission method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a wireless data packet transmission program, which, when executed by a processor, implements the steps of the wireless data packet transmission method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Feedback method, device and equipment
CN115225219A