A method for automatically requesting retransmission in wireless ad hoc networks
By adding a retransmission module between the data link layer and the physical layer interface of the wireless ad hoc network system, using reverse time slot resources and channel transmission capabilities, the data frame is dynamically split for retransmission, which solves the problem in the wireless ad hoc network system. The problem of large retransmission delay and low resource utilization is achieved by efficient channel resource utilization and stability improvement.
Patent Information
- Application Number
- CN202310106503.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-10
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2043-02-10
AI Technical Summary
The retransmission method in the existing wireless ad hoc network system has the problems of large delay, poor flexibility, and low channel resource utilization, especially in the reservation allocation resource allocation mode.
Add a retransmission module between the data link layer and the physical layer interface. By storing a copy of the data and using reverse time slot resources for retransmission, it can be dynamically transmitted at once or split into multiple subframes according to the channel transmission capacity to improve resource utilization. and retransmission performance.
It achieves low latency and efficient channel resource utilization, improves retransmission performance and resource utilization, and is suitable for complex wireless communication environments.
Smart Images

Figure CN116155456B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to an automatic request retransmission method for a wireless ad hoc network. Background Art
[0002] Wireless ad hoc networks are widely used in the field of emergency communications due to their flexible networking, strong anti-destruction capabilities, and support for multi-hop transmission. The wireless communication environment is relatively complex and prone to data loss or bit errors.
[0003] All nodes in a wireless environment share channel resources. To avoid interference, channel resources need to be divided according to certain rules. Resource allocation methods can be divided into three categories: fixed allocation, competition, and reservation allocation. Among them, the reservation allocation method is suitable for wireless ad hoc network systems with complex usage environments because of its good performance in flexibility and resource utilization.
[0004] However, although reservation-based resource allocation technology has the advantages of high resource utilization and the ability to adjust resource allocation on demand, and is suitable for wireless ad hoc network systems, there are few retransmission methods that can be applied to reservation-based resource allocation wireless ad hoc network systems. Existing retransmission schemes have problems such as large delay, poor flexibility, and low channel resource utilization. Summary of the invention
[0005] In order to improve at least one of the above-mentioned technical problems, an object of the present invention is to provide an automatic request retransmission method for a wireless ad hoc network, referred to as the retransmission method, which is completed based on a reservation allocation method, taking advantage of the direct control of channel resource allocation by the data link layer, and utilizing channel resources efficiently and with low latency, thereby improving retransmission performance.
[0006] To achieve the above object, the technical solution of the present invention provides a method for automatically requesting retransmission in a wireless ad hoc network, comprising the following steps:
[0007] Step S1, adding a retransmission module between the data link layer and the physical layer interface, the retransmission module is used to store a copy of the data to be sent at each sending time, and put it into a queue to be confirmed after assigning a frame number;
[0008] Step S2, the receiving end stores the data received at the current moment in a queue to be processed according to the frame number, and determines the missing data frames based on the continuous data frames that have been correctly received, and obtains the data frame set to be retransmitted; the receiving end uses the nearest reverse time slot resource to feed back the data frame set to be retransmitted to the sending end;
[0009] Step S3, after receiving the feedback, the sending end deletes the consecutive data frames that have been correctly received from the queue to be confirmed, and determines the copies to be retransmitted that need to be retransmitted;
[0010] Step S4: When the next time arrives, the sender checks whether there is a copy to be retransmitted. If there is a copy to be retransmitted, the current channel transmission capacity is further compared with the data volume of the copy to be retransmitted.
[0011] Step S5: If the channel transmission capacity is sufficient to send the data volume of all the copies to be retransmitted, the data is directly transmitted; otherwise, the copies to be retransmitted are split into several sub-data frames for multiple transmissions;
[0012] Step S6: After successful reception, the receiving end updates and feeds back the set of data frames to be retransmitted to the sending end, and returns to step S4 to assist the sending end in checking whether there are copies to be retransmitted until all data transmission is completed. (At this time, the queue to be confirmed is empty)
[0013] The wireless ad hoc network includes multiple nodes, each of which includes a network layer, a data link layer and a physical layer. Two nodes are connected through a wireless channel, one of which serves as a transmitter and the other as a receiver.
[0014] The automatic request retransmission method for wireless ad hoc networks provided by the technical solution takes improving the automatic request retransmission performance as the main design goal. Under the premise of maintaining the main scheduling process unchanged, the allocated time slot resources are used to retransmit the lost or erroneous data. A wireless ad hoc network data link layer retransmission method suitable for the reserved allocation channel data link layer is designed, which has high channel utilization, low retransmission delay, and no additional scheduling overhead - Data Link Layer Efficient Retransmission Method (DLLERM). The automatic request retransmission method provided by the present invention does not need to perform separate resource scheduling for retransmitted data. It uses the nearest reverse time slot to transmit confirmation information. When the retransmission demand is detected, the nearest forward time slot is used to complete the retransmission of lost or erroneous data. This method can improve the stability of upper-layer services and reduce the probability of data transmission errors. In summary, the automatic request retransmission method can complete the retransmission of lost or erroneous data with lower overhead and smaller delay without increasing the scheduling complexity. This function has a low coupling degree with other functions of the wireless ad hoc network and is easy to implement in engineering.
[0015] In addition, the automatic request retransmission method for a wireless ad hoc network in the above technical solution provided by the present invention may also have the following additional technical features:
[0016] The data cache queue inside each node includes three parts: an uplink queue, a downlink queue, and a forwarding queue; wherein, the downlink queue is used to store the data to be sent sent by the external device of the node, the forwarding queue is used to store the data to be forwarded sent by the neighboring node whose destination node is not itself, and the uplink queue is used to store the data to be uploaded whose destination node is itself; wherein, the data to be sent in step S1 includes the data to be sent in the downlink queue and the data to be forwarded in the forwarding queue.
[0017] Further, in step S4, the sending end checks whether there are copies to be retransmitted in the queue to be confirmed, wherein the queue to be confirmed includes the frame number of the data to be sent at this moment, the frame number of the data to be forwarded, and the frame number of the copy to be retransmitted that needs to be retransmitted; if there are no copies to be retransmitted, the data to be sent in the downlink queue at this moment and the data to be forwarded in the forwarding queue are transmitted.
[0018] Furthermore, after step S2, it also includes: the receiving end distributes the data to the uplink queue or forwarding queue of the node according to the destination node of the data in the queue to be processed; if the destination node is its own node, it is added to the uplink queue, and if the destination node is another node, it is added to the forwarding queue.
[0019] In the above technical scheme, the channel resources in the wireless ad hoc network are divided into several time slots, one time slot is used to transmit a data frame, and the data frame structure includes four parts: interface message, frame header, data unit, and frame tail; wherein, the interface message is used to mark the transmission parameters of the data; the frame header is used to record the frame information to complete the reorganization of the split data frame, and the recorded frame information includes the sending node, the receiving node, the retransmission mark, and the data frame length. The data unit is used to encapsulate the data to be transmitted. The data length is related to the current channel transmission capacity. The data is suitable for being split into multiple parts for retransmission in different time slots, and the frame tail is used as the end mark of the data frame.
[0020] In the above technical solution, the channel transmission capacity is determined according to the modulation method, coding method and subcarrier method of the wireless ad hoc network.
[0021] In summary, the automatic request retransmission method for a wireless ad hoc network provided by the present invention has at least the following beneficial effects:
[0022] (1) The allocated channel resources are used to transmit confirmation and retransmit data. When an exception occurs, there is no need to apply for channel resources separately for retransmitted data, which solves the problem of large delay when the retransmission function is applied to reservation systems.
[0023] (2) By adding an intermediate layer, a retransmission module is added between the data link layer and the physical layer interface to obtain the inter-layer interaction data and store a copy, which assists in the retransmission of lost or erroneous data. It has a low degree of coupling with other functions and is easy to implement.
[0024] (3) Dynamically transmit the data in one time or split it into multiple subframes according to the relationship between the data transmission capacity of the current time slot and the amount of data in the frame to be retransmitted. This solves the problem that the data transmission capacity of the wireless ad hoc network system supporting adaptive modulation and coding methods cannot carry the retransmitted frames in a single time slot after the channel changes, thereby improving resource utilization.
[0025] Additional aspects and advantages of the present invention will become apparent in the following description or may be learned by practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0027] Figure 1 is a schematic diagram of a time frame structure of some embodiments of the present invention.
[0028] Figure 2 is a schematic diagram of a wireless ad hoc network protocol stack according to some embodiments of the present invention.
[0029] Figure 3 It is a schematic diagram of a data transmission model in the related art.
[0030] Figure 4 It is a schematic diagram of a data transmission model with retransmission according to some embodiments of the present invention.
[0031] Figure 5 It is a schematic diagram of the data frame generation process at the sending end of some embodiments of the present invention.
[0032] Figure 6 is a schematic diagram of a data frame format according to some embodiments of the present invention.
[0033] Figure 7 It is a schematic diagram of whole frame retransmission according to some embodiments of the present invention.
[0034] Figure 8 It is a schematic diagram of split retransmission according to some embodiments of the present invention.
[0035] Fig. 9 is a schematic diagram of data reorganization according to some embodiments of the present invention.
[0036] Fig.10 It is a schematic diagram of the data frame processing flow at the receiving end of some embodiments of the present invention.
[0037] Fig.11 is a schematic diagram of a network topology of some embodiments of the present invention.
[0038] Fig.12 is a schematic diagram of a time slot table according to some embodiments of the present invention. DETAILED DESCRIPTION
[0039] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.
[0040] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Therefore, the protection scope of the present invention is not limited to the specific embodiments disclosed below.
[0041] At present, the methods of automatically requesting retransmission can be divided into three categories: Stop and Wait (SW), Go Back N (GBN), and Select Repeat (SR). The Stop and Wait method has the simplest process, but the channel utilization is low when the communication round-trip time (RTT) is large. The Go Back N method uses a cumulative confirmation strategy to alleviate the problem of low channel utilization when the round-trip time is large, but when an error occurs, the data sent for a continuous period of time needs to be retransmitted. When the channel quality is poor, the channel utilization is low. The Select Retransmission method only retransmits lost or erroneous data, and the channel utilization is higher, but the process is complex and the overhead is large.
[0042] To this end, some embodiments of the present invention provide an automatic request retransmission method for a wireless ad hoc network. That is, based on the method of selective retransmission, the main design goal is to improve the automatic request retransmission performance, and under the premise of maintaining the scheduling main process unchanged, the allocated time slot resources are used to retransmit the lost or erroneous data. The present invention provides a wireless ad hoc network data link layer retransmission method suitable for the reserved allocation channel data link layer, which has high channel utilization, low retransmission delay and no additional scheduling overhead - Data Link Layer Efficient Retransmission Method (DLLERM).
[0043] The automatic request for retransmission method adds a retransmission module between the data link layer and the physical layer interface, assigns a number to the data to be sent and stores a copy. The receiving end stores the received data in a queue to be processed according to the number, processes the queue to obtain a set of data frames that need to be retransmitted, and delivers the continuous data frames that have been correctly received to the subsequent processing flow of the data link layer. The receiving end uses the nearest reverse time slot resource to feed back the set to be retransmitted to the sending end, and the sending end updates the queue to be retransmitted. When the next sending opportunity of the sending end arrives, check whether there is data to be retransmitted. If there is no data to be retransmitted, transmit the data in the downlink or forwarding queue. If there is data to be retransmitted, compare the current channel transmission capacity with the amount of data in the copy to be retransmitted. If it is sufficient, it will be transmitted directly. If it is insufficient, it will be split into several sub-data frames for multiple transmissions. After successful reception, the receiving end updates and feeds back the set of data frames to be retransmitted, assisting the sending end in determining the data frames that need to be retransmitted.
[0044] In the wireless ad hoc network system, the channel resources are divided into several time slices and allocated to different nodes, so as to avoid interference through time-sharing communication. Figure 1 The smallest unit of time slice division is the time slot, which can be divided into two categories according to its function: control time slot and data time slot. Control time slot transmits control messages of wireless ad hoc networks to realize network establishment, network maintenance, resource scheduling and other tasks; data time slot transmits packaged data units to realize the communication function of the network. Several control time slots constitute a control subframe, several data time slots constitute a data subframe, and control subframes and data subframes constitute a frame. Several frames constitute a multiframe, and a multiframe contains data time slots and the maximum number of available time slots in resource allocation. Several multiframes constitute a scheduling cycle, which is the cycle for resource application and allocation. The network realizes dynamic, efficient and conflict-free utilization of channel resources by periodically allocating channel resources on demand.
[0045] The wireless ad hoc network protocol stack is divided into three parts: physical layer, data link layer and network layer. Figure 2 The network layer is responsible for interacting with external devices, the data link layer is responsible for the establishment, maintenance and channel resource allocation of wireless ad hoc networks, and the physical layer is mainly responsible for data transmission. The data frame packaged by the data link layer is sent to the channel after randomization, encoding, modulation and other operations. The opposite end physical layer restores the received signal to a data frame after demodulation, equalization, phase tracking, decoding and other operations and uploads it to the data link layer. The DLLERM designed by this patent is implemented at the data link layer to ensure performance.
[0046] The arrival time and amount of data from external devices are random, and ad hoc network nodes can only transmit data in the allocated time slots. In order to match inconsistent data arrival and transmission rates, a message cache queue is set inside the node to ensure that data will not be lost due to rate mismatch. In addition, wireless ad hoc networks have multi-hop transmission capabilities. Data sent to nodes outside the communication range can be forwarded by neighbors until they reach the destination node. Therefore, the data cache queue inside each node contains three parts: Figure 3 , the downlink queue stores the data to be sent from the external device, the forwarding queue stores the data to be forwarded from the neighbor whose destination node is not itself, and the uplink queue stores the data to be uploaded whose destination node is itself. After the external data arrives, it is first stored in the downlink queue. The data link layer applies for channel resources according to the amount of data in the downlink queue. When the node obtains resource allocation and reaches the sending time slot, it takes certain data from the downlink queue according to the current channel transmission capacity, encapsulates it into a data frame and sends it out. After receiving the data, the receiving end determines the destination node filled in the data frame header. If the destination node is itself, it will be added to the uplink queue and sent to the external device after the upload opportunity arrives. If the destination node is not itself, it will be added to the forwarding queue. After the channel resource application is authorized, the data in the forwarding queue is sent to the next hop node according to the routing information until it reaches the destination node.
[0047] In order to reduce the coupling degree between the retransmission function and other functions, a queue to be confirmed and a queue to be processed are established to assist in the realization of the retransmission function. DLLERM adopts a selective retransmission strategy. The confirmation information of the data is fed back to the sender at irregular intervals. The sender needs to cache all the data frames to be confirmed. At the receiving end, in order to ensure the normal operation of other functions of the data link layer, disordered data must be avoided. The received data is temporarily stored in the queue to be processed, and the retransmitted data is inserted into it according to the frame number. After the data is sorted, it is delivered to the data link layer for subsequent processes such as Figure 4 . After the data in the downlink queue is encapsulated into frames, a copy is stored in the queue to be confirmed while it is sent to the channel. After receiving the data, the receiving end first adds it to the queue to be processed, determines the missing frame based on the frame number, and feeds it back to the sending end. After receiving the feedback, the sending end deletes the data that has been correctly received from the queue to be confirmed and selects the data to be retransmitted. The part with continuous frame numbers in the queue to be processed can be delivered to the subsequent process, and the discontinuous part waits for the retransmission frame to fill the gap or time out before being delivered to the subsequent process. According to the destination node marked in the frame header, it is added to the uplink queue to wait for uploading to the external device or to the forwarding queue to wait for forwarding to the next hop node in the routing table.
[0048] The following uses some specific embodiments to further illustrate the automatic retransmission request method provided by the present invention from two aspects: a data frame generation process at the sending end and a data frame processing process at the receiving end.
[0049] like Figure 5 As shown, the data frame generation process at the sending end includes the following steps:
[0050] S1. Obtain the sending node, receiving node, sending mode and other information of this time slot according to the resource scheduling information, and then obtain the retransmission queue according to the sending node and receiving node, and then execute S2.
[0051] S2. Determine whether the retransmission queue is empty. If the queue is empty, it indicates that all previously sent data has been received and there is no data to be retransmitted, and then S3 is executed. Otherwise, it indicates that the previous transmission process is abnormal and some data frames need to be retransmitted, and then S4 is executed.
[0052] S3. Obtain the downlink queue according to the source node, destination node, service type, priority and other information in the time slot allocation information, and then execute S6.
[0053] S4. Extract the frame number to be retransmitted from the retransmission queue, and extract the data frame copy from the to-be-confirmed queue according to the frame number, and then execute S7.
[0054] S5. Obtain the forwarding queue according to the source node, destination node, service type, priority and other information in the time slot allocation information, and then execute S8.
[0055] S6. Determine whether the downlink queue is empty. If there is downlink data to be sent, execute S11; otherwise, execute S5.
[0056] S7. Determine whether the acquired data frame to be retransmitted is valid. If the data frame is successfully acquired, it indicates that the data requested by the receiving end is indeed the data to be confirmed and can be retransmitted to execute S9. Otherwise, it indicates that the receiving end has requested an abnormal data frame and does not need to be sent and can end the current sending process.
[0057] S8. Determine whether the forwarding queue is empty. If there is forwarding data to be sent, execute S11; otherwise, execute S10.
[0058] S9. Obtain the splitting information attached to the retransmitted frame. If the data frame has not been split and retransmitted, execute S12; if the data frame has been split and retransmitted, execute S13.
[0059] S10. Obtain a locally stored set of data frame numbers to be retransmitted, and then execute S14.
[0060] S11. Obtain a locally stored set of data frame numbers to be retransmitted, and then execute S15.
[0061] S12. Obtain the data volume information attached to the retransmitted frame, and then execute S16.
[0062] S13. Read the sending progress information attached to the retransmitted frame, obtain the split retransmission progress, and then execute S17.
[0063] S14. If the number of data frames to be retransmitted is greater than 0, execute S18, otherwise terminate the current sending process.
[0064] S15. If the number of data frames to be retransmitted is greater than 0, execute S19; otherwise, execute S23.
[0065] S16. Obtain the time slot transmission capacity according to the time slot scheduling information, and then execute S20.
[0066] S17. Obtain the time slot transmission capacity according to the time slot scheduling information, and then execute S21.
[0067] S18. Generate a packet embedded with the data frame number to be retransmitted, and then execute S22.
[0068] S19. Generate a packet embedded with the data frame number to be retransmitted, and then execute S23.
[0069] S20. Compare the retransmission capacity of the current time slot with the amount of data to be retransmitted to determine whether the retransmission can be completed in one time slot. If the retransmission can be completed, execute S24; if the retransmission cannot be completed, execute S21.
[0070] S21. According to the current data transmission capacity and the progress of sending the data frame to be retransmitted, extract the data from the copy of the data frame to be retransmitted and encapsulate it into split data frames, keep the frame number unchanged, fill in the interface message according to the time slot scheduling information, and then execute S25.
[0071] S22. Generate an empty data frame without data units, fill in the interface message according to the time slot scheduling information, and then execute S29.
[0072] S23. Generate a data frame, calculate a new data frame number and fill it in the frame header, fill in the interface message according to the time slot scheduling information, and then execute S26.
[0073] S24. Generate a retransmitted data frame that does not need to be unpacked, keep the old data frame number, fill in the interface message according to the time slot scheduling information, and then execute S27.
[0074] S25. Update the sending progress and split retransmission status according to the amount of data sent this time, and then execute S28.
[0075] S26. Make a copy of the generated data frame and store it in the queue to be confirmed, and then execute S29.
[0076] S27. Update the retransmission queue, delete the completed retransmission data frame number from the retransmission queue, and then execute S29.
[0077] S28. Determine the sending progress. If the sending of the data frame to be retransmitted has not been completed, execute S29; if the sending of the data frame to be retransmitted has been completed, execute S27.
[0078] S29. Deliver the generated data frame to the physical layer for sending. At this point, the retransmission function sending end completes the sending process.
[0079] The steps of splitting and retransmitting include the following:
[0080] In wireless ad hoc network systems, channel resources are divided into several time slots. One time slot can transmit one data frame. The data frame structure is as follows: Figure 6 As shown, it can be divided into four parts: interface message, frame header, data unit, and frame tail. The interface message is used to mark the transmission parameters of the data, assist the physical layer in selecting modulation, coding and other processes, and the interface message will not be transmitted to the receiving end through the wireless channel; the frame header is used to record frame information, such as the sending node, the receiving node, the retransmission mark, the data frame length and other information, to assist the receiving end in processing the data; the data unit is the encapsulated data to be transmitted, and its length is related to the transmission capacity of the current time slot channel; the frame tail is the sign of the end of the frame. In different channel environments, the wireless ad hoc network system can select appropriate modulation mode, coding mode, and subcarrier mode, which leads to different amounts of data that can be transmitted in a time slot in different environments. In this patent, in order to reduce the coupling degree between the retransmission function and other functional modules, the copy of the data in the queue to be confirmed is stored in the form of a frame prototype. When the channel changes, there is a situation where the data frame to be retransmitted cannot be sent. For example, in a certain period of time, the channel quality is good, and the network can use the 64QAM debugging method to send data. The amount of data frame copies cached in the queue to be confirmed is the amount of data that can be transmitted in a time slot using 64QAM. When the channel environment suddenly changes and the system reduces the modulation mode to QPSK, the data frame copies in the waiting queue cannot be transmitted in one time slot. Therefore, special processing is required when sending retransmitted data frames, and the overlong data needs to be split into multiple subframes for transmission.
[0081] The transmitter can calculate the transmission capacity of the current time slot by reading the modulation mode, coding mode, subcarrier mode and other information in the time slot scheduling information. By judging the amount of data in the data frame to be retransmitted and the transmission capacity of the current time slot, it can determine whether the transmission can be completed using a single time slot. If the transmission can be completed, Figure 7 , extract the data frame copy and update the interface message according to the time slot scheduling information for sending. The process is relatively simple.
[0082] If the transmission cannot be completed in one time slot, the transmission needs to be split. Figure 8 As shown, the retransmission frame is split into multiple parts as data units and filled into the retransmission subframe. In addition to filling in the interface message according to the time slot scheduling information, the retransmission subframe also needs to add a split mark and split status information in the frame header to assist the receiving end in reassembly.
[0083] When the receiving end detects that the data is a split subframe, it enters the combination process. Fig. 9The receiving end can complete the subframe reorganization according to the frame length information and subframe number carried in the frame header of each subframe. The reorganized data frame has the same format as the ordinary data frame and does not require special processing in the subsequent process. While realizing the data frame retransmission, the details of the retransmission function are hidden to reduce the coupling degree.
[0084] like Fig.10 As shown, the receiving end data frame processing flow includes the following steps:
[0085] S1. Obtain data frames from the physical layer, store them in the data link layer receive buffer, and then execute S2.
[0086] S2. Identify the split transmission mark in the data frame header. If the data frame is not a split subframe, execute S3; if the data frame is a split subframe, execute S5.
[0087] S3. Determine the retransmission mark in the data frame header. If the data frame is a retransmission data frame, execute S4; if the data frame is not a retransmission data frame, execute S6.
[0088] S4. Insert the data frame into the queue to be processed according to the frame number, and then execute S8.
[0089] S5. Obtain the subframe number of the data frame header splitting, and then execute S10.
[0090] S6. Determine the number of embedded packets of the retransmitted data frame number in the data frame header. If there is no embedded packet, execute S4; otherwise, execute S11.
[0091] S7. Delete the data frame copy from the queue to be processed, and then execute S8.
[0092] S8. Get the expected frame number of the queue to be processed, and then execute S12.
[0093] S9. Obtain the applied split frame buffer area according to the source node, destination node, service type, priority and other tags recorded in the frame header, and then execute S13.
[0094] S10. Determine whether the subframe is the first split subframe according to the subframe number. If it is the first split subframe, execute S9; if it is not the first split subframe, execute S14.
[0095] S11. Read the data frame number to be reinserted recorded in the retransmitted data frame number embedding packet, and then execute S15.
[0096] S12. Determine whether the first frame of the queue to be processed is an expected frame. If the first frame is an expected frame, execute S16; otherwise, execute S25.
[0097] S13. Obtain the receiving progress of the split frame buffer record, and then execute S17.
[0098] S14. Allocate a temporary split frame buffer area according to the source node, destination node, service type, priority and other tags recorded in the frame header, and then execute S17.
[0099] S15. Delete the successfully received frame copy from the waiting-for-confirmation queue, and then execute S18.
[0100] S16. Obtain information about the first data frame in the queue to be processed, and then execute S20.
[0101] S17. Extract the data units in the split data frame, store them in the split frame buffer in an appended manner, and then execute S21.
[0102] S18. Update the retransmission queue, and then execute S22.
[0103] S19. Obtain a forwarding queue according to the source node, destination node, service type, priority and other information recorded in the frame header, add the data frame to the forwarding queue, and then execute S23.
[0104] S20. Determine the frame type according to the destination node filled in the data frame header. If the destination node is the current node, execute S24; if the destination node is not the current node, execute S19.
[0105] S21. Determine whether the reception is completed. If the reception is completed, execute S4; if the reception is not completed, execute S25.
[0106] S22. Determine whether the data frame is an empty data frame that only contains the retransmitted data frame number. If it is not an empty data frame, execute S4; otherwise, end the current receiving process.
[0107] S23. Update the expected frame number parameter of the queue to be processed, and then execute S7.
[0108] S24. Obtain an uplink queue according to the source node, destination node, service type, priority and other information recorded in the frame header, add the data frame to the uplink queue, and then execute S23.
[0109] S25. Traverse the queue to be processed to generate a set of frames to be retransmitted, and then the receiving process of the retransmission function receiving end ends.
[0110] Among them, in Fig.11 In the topology network shown in the figure, when there is a 2-1 service, the data time slot allocation result in the complex frame is as follows: Fig.12 As shown, most of the time slots are allocated for the transmission of 2-1 direction services. At the same time, in order to reduce the communication delay, the data link layer will apply for a small number of reverse time slots for the services for transmission. When the retransmission function is enabled, the reverse time slots can be used to carry confirmation data.
[0111] like Fig.12As shown in the figure, when a bit error occurs in the 19th time slot of frame 1 during service transmission, node 1 will discard the erroneous data. When the data of the 20th time slot of frame 1 arrives, node 1 will detect that an abnormality has occurred in the 19th time slot of frame 1 according to the frame number, and record the frame number to be retransmitted. When the 0th time slot of frame 2 arrives, node 1 gets the opportunity to send data. Node 1 will send out the stored information to be retransmitted. After receiving it, node 2 will update the queue to be retransmitted and send out the data frame to be retransmitted in the nearest sending time slot (3rd time slot of frame 2).
[0112] Due to the complex wireless communication environment, data loss or bit errors are prone to occur. More data loss or bit errors will affect the upper layer service transmission. The method of retransmitting lost or erroneous data can provide more stable and reliable services to the upper layer. The automatic request for retransmission can be divided into three categories: stop waiting, back off N, and selective retransmission. The selective retransmission method has the best performance and can be applied to wireless ad hoc network systems. In wireless ad hoc networks, when frame loss or bit errors occur due to channel problems, the data link layer usually regards it as a link failure and then informs the network layer. The retransmission of data occurs between the sender and the receiver. When retransmission occurs, the transmission efficiency will be reduced. Although some related technologies have proposed a technical solution of using fountain codes to reduce the retransmission caused by the channel, the reliable UDP retransmission used occurs in the upper layer and has a large delay. In other related technologies, the distributed cooperative retransmission scheme proposed, neighbor nodes use idle time slots to cooperatively transmit erroneous data frames, which can significantly improve the probability of successful transmission and reduce transmission delay and packet loss rate. However, reserving time slot resources for nodes with no service transmission requirements in the reservation allocation system will reduce resource utilization. A hybrid automatic repeat request method proposed in some other related technologies uses paired uplink and downlink time slots to transmit data interleaving blocks and receive status feedback information. The transmitter generates a retransmission interleaving block based on the feedback information to achieve retransmission of erroneous data. However, time slot allocation requires uplink and downlink time slots to be allocated in pairs. The overhead caused by transmitting feedback information is large, and the channel resource utilization rate is low. In the implementation method of the self-organizing network automatic repeat request proposed in some other related technologies, the transmitter decides whether to retransmit the temporarily stored data based on the information fed back by the receiver, but does not consider the change in data transmission capacity caused by the change in channel quality, and is not suitable for TDMA systems that support adaptive modulation and adaptive coding.
[0113] In summary, compared with the above-mentioned related technologies, the automatic request retransmission method for the wireless self-organizing network provided by the present invention uses the most recent reverse time slot to transmit confirmation information, and when a retransmission demand is detected, the most recent forward time slot is used to complete the retransmission of lost or erroneous data, thereby reducing the retransmission delay and making full use of the allocated channel resources to transmit confirmation and retransmit data. There is no need to apply for channel resources separately for retransmitted data, thereby improving the channel resource utilization rate. According to the relationship between the current time slot data transmission capacity and the amount of data to be retransmitted, the data can be split into multiple subframes for transmission at one time or in batches, taking into account the changes in data transmission capacity caused by changes in channel quality, the applicable environment range of the retransmission method is expanded, and it has extremely high use value.
[0114] In the description of the specification, the description of the terms "one embodiment", "some embodiments", "specific embodiments", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.
[0115] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for automatically requesting retransmission in a wireless ad hoc network, characterized in that: The wireless ad hoc network includes a plurality of nodes, each of which includes a network layer, a data link layer and a physical layer, and two of the nodes are connected via a wireless channel, one of the nodes serves as a transmitting end, and the other node serves as a receiving end; The automatic retransmission request method comprises the following steps: Step S1, adding a retransmission module between the data link layer and the physical layer interface, the retransmission module is used to store a copy of the data to be sent at each sending time, and put it into a queue to be confirmed after assigning a frame number; Step S2, the receiving end stores the data received at the current moment in a queue to be processed according to the frame number, and determines the missing data frames based on the continuous data frames that have been correctly received, and obtains the data frame set to be retransmitted; the receiving end uses the nearest reverse time slot resource to feed back the data frame set to be retransmitted to the sending end; Step S3, after receiving the feedback, the sending end deletes the consecutive data frames that have been correctly received from the queue to be confirmed, and determines the copies to be retransmitted that need to be retransmitted; Step S4: When the next time arrives, the sender checks whether there is a copy to be retransmitted. If there is a copy to be retransmitted, the current channel transmission capacity is further compared with the data volume of the copy to be retransmitted. Step S5: If the channel transmission capacity is sufficient to send the data volume of all the copies to be retransmitted, the data is directly transmitted; otherwise, the copies to be retransmitted are split into several sub-data frames for multiple transmissions; Step S6, after successful reception, the receiving end updates and feeds back the set of data frames to be retransmitted to the sending end, and returns to step S4 to assist the sending end in checking whether there are copies to be retransmitted, until all data transmission is completed; The data cache queue inside each node includes five parts: an uplink queue, a downlink queue, a forwarding queue, a queue to be confirmed, and a queue to be processed; wherein the downlink queue is used to store the data to be sent from the external device of the node, and the data link layer applies for channel resources according to the amount of data in the downlink queue. When the node obtains resource allocation and reaches the sending time slot, it takes certain data from the downlink queue according to the current channel transmission capacity, encapsulates it into a data frame and sends it out; after receiving the data, the receiving end distinguishes it according to the destination node filled in the data frame header, if the destination node is itself, it joins the uplink queue, and sends it to the external device after the upload opportunity arrives, if the destination node is not itself, it joins the forwarding queue; the forwarding queue is used to store the data to be forwarded from the neighboring node whose destination node is not itself, and the uplink queue is used to store the data to be uploaded whose destination node is itself; the to-be-confirmed queue is used to store the data that has not been confirmed to be received by the receiving end, and the to-be-processed queue is used to store the discontinuous data received by the receiving end; the data to be sent in step S1 includes the data to be sent in the downlink queue and the data to be forwarded in the forwarding queue.
2. The automatic retransmission request method of wireless ad hoc network according to claim 1, characterized in that: In step S4, the sending end checks whether there are copies to be retransmitted in the to-be-confirmed queue, wherein the to-be-confirmed queue includes the frame number of the to-be-sent data to be sent at that moment, the frame number of the to-be-forwarded data, and the frame number of the to-be-retransmitted copy to be retransmitted; If there is no copy to be retransmitted, the data to be sent in the downlink queue and the data to be forwarded in the forwarding queue at that moment are transmitted.
3. The automatic retransmission request method of wireless ad hoc network according to claim 1, characterized in that: After step S2, the method further includes: The receiving end distributes the data to the uplink queue or forwarding queue of the node according to the destination node of the data in the queue to be processed; if the destination node is the node itself, the data is added to the uplink queue; if the destination node is another node, the data is added to the forwarding queue.
4. The automatic retransmission request method for a wireless ad hoc network according to any one of claims 1 to 3, characterized in that: The channel resources in the wireless ad hoc network are divided into a number of time slots, one time slot is used to transmit a data frame, and the data frame structure includes four parts: interface message, frame header, data unit, and frame tail; Among them, the interface message is used to mark the sending parameters of the data; the frame header is used to record the frame information to complete the reorganization of the split data frame, the recorded frame information includes the sending node, the receiving node, the retransmission mark, and the data frame length; the data unit is used to encapsulate the data to be transmitted, the data length is related to the current channel transmission capacity, the data is suitable for being split into multiple parts for retransmission in different time slots, and the frame tail is used as the end mark of the data frame.
