Disclosure of Invention
The embodiment of the invention provides a self-adaptive adjustment method and a self-adaptive adjustment device for a data packet retransmission mode based on NTN network transmission, which solve the problem of lower transmission efficiency of the data packet caused by the lack of a reasonable self-adaptive adjustment mechanism for the retransmission mode in the prior art, can self-adaptively adjust the retransmission mode according to the network connection condition of the current terminal equipment, improve the data transmission efficiency and meet the requirement of high-efficiency communication.
In a first aspect, an embodiment of the present invention provides a method for adaptively adjusting a data packet retransmission mode based on NTN network transmission, including:
Under the condition that the network connection mode switching reaches the set duration, network mode switching information is acquired, wherein the network mode switching information comprises a first network connection mode corresponding to a first time interval before the network connection mode switching and a second network connection mode corresponding to a second time interval after the network connection mode switching;
determining whether current operation information of the terminal equipment meets a retransmission mode switching condition under the condition that the first network connection mode is a non-NTN network connection mode and the second network connection mode is an NTN network connection mode;
And under the condition that the selective retransmission mode switching condition is met, the retransmission mode of the current data packet is adjusted to be a selective retransmission mode, and only the determined data loss packet is transmitted in the selective retransmission mode.
Optionally, before the acquiring the network mode switching information, the method further includes:
Acquiring first network connection information of a recorded first time interval and second network connection information of a second time interval, wherein the first network connection information records a network connection mode used in the first time interval, and the second network connection information records a network connection mode used in the second time interval;
When the network connection mode used in the first time interval is a single network mode, the single network mode is determined to be the first network connection mode of the first time interval, and when the network connection mode used in the second time interval is a single network mode, the single network mode is determined to be the first network connection mode of the second time interval.
Optionally, before the acquiring the first network connection information of the first time interval and the second network connection information of the second time interval, the method further includes:
acquiring a triggering condition of the network connection mode switching;
And determining a first time interval and a second time interval according to the triggering condition.
Optionally, the determining whether the current operation information of the terminal device meets the condition of selecting retransmission mode switching includes:
Determining the number of programs and the data transmission quantity currently operated by the terminal equipment, and determining whether a retransmission mode switching condition is met or not according to the number of programs and the data transmission quantity;
Correspondingly, the meeting the selective retransmission mode switching condition includes:
the number of programs is larger than the preset number of programs, and the data transmission amount is larger than the preset transmission amount.
Optionally, the method further comprises:
determining whether current operation information of the terminal equipment meets a back N-step retransmission mode switching condition under the condition that the first network connection mode is an NTN network connection mode and the second network connection mode is a non-NTN network connection mode;
And under the condition that the switching condition of the backward N-step retransmission mode is met, the retransmission mode of the current data packet is adjusted to be a backward N-step retransmission mode, and all the data packets in the same packet sending group after the determined data loss packet are retransmitted in the backward N-step retransmission mode.
Optionally, the determining whether the current operation information of the terminal device meets a back N-step retransmission mode switching condition includes:
Determining the current network average transmission rate of the terminal equipment, and determining whether a back N-step retransmission mode switching condition is met according to the network average transmission rate;
Correspondingly, the step of meeting the back-off N-step retransmission mode switching condition includes:
The average transmission rate of the network is greater than a preset rate.
Optionally, after the adjusting the retransmission mode of the current data packet to the selected retransmission mode, the method further includes:
And under the condition that the network connection mode is detected to be a multi-connection mode, the retransmission mode of the current data packet is adjusted to be a back N-step retransmission mode, wherein the multi-connection mode comprises a non-NTN network connection mode and an NTN network connection mode.
In a second aspect, an embodiment of the present invention further provides a system for adaptively adjusting a retransmission mode of a data packet based on NTN network transmission, including:
The information acquisition module is used for acquiring network mode switching information under the condition that the network connection mode switching reaches a set duration, wherein the network mode switching information comprises a first network connection mode corresponding to a first time interval before the network connection mode switching and a second network connection mode corresponding to a second time interval after the network connection mode switching;
The condition judging module is used for determining whether the current operation information of the terminal equipment meets the condition of switching the selected retransmission mode or not under the condition that the first network connection mode is a non-NTN network connection mode and the second network connection mode is an NTN network connection mode;
and the retransmission adjustment module is used for adjusting the retransmission mode of the current data packet to a selected retransmission mode under the condition that the selected retransmission mode switching condition is met, wherein only the determined data loss packet is transmitted in the selected retransmission mode.
In a third aspect, an embodiment of the present invention further provides an apparatus for adaptively adjusting a retransmission mode of a data packet based on NTN network transmission, where the apparatus includes:
One or more processors;
Storage means for storing one or more programs,
When the one or more programs are executed by the one or more processors, the one or more processors implement the method for adaptively adjusting a data packet retransmission mode based on NTN network transmission according to the embodiment of the present invention.
In a fourth aspect, an embodiment of the present invention further provides a storage medium storing computer executable instructions, where the computer executable instructions when executed by a computer processor are configured to perform the method for adaptively adjusting a data packet retransmission mode based on NTN network transmission according to the embodiment of the present invention.
In the embodiment of the invention, under the condition that the network connection mode switching reaches the set duration, network mode switching information is acquired, wherein the network mode switching information comprises a first network connection mode corresponding to a first time interval before network connection mode switching and a second network connection mode corresponding to a second time interval after network connection mode switching, under the condition that the first network connection mode is a non-NTN network connection mode and the second network connection mode is an NTN network connection mode, whether current operation information of terminal equipment meets a retransmission mode switching condition is determined, under the condition that the current operation information of the terminal equipment meets the retransmission mode switching condition, the retransmission mode of a current data packet is adjusted to be a retransmission mode, and only the determined data loss packet is transmitted in the retransmission mode. The scheme determines whether to switch retransmission modes based on network mode switching information, current running information of the terminal equipment and retransmission mode switching conditions, solves the problem that the transmission efficiency of a data packet is low due to the fact that a reasonable self-adaptive adjustment mechanism of the retransmission modes is lacked in the prior art, can adaptively adjust the retransmission modes according to the network connection condition of the current terminal equipment, improves the data transmission efficiency, and meets the requirement of efficient communication.
Detailed Description
Embodiments of the present invention will be described in further detail below with reference to the drawings and examples. It should be understood that the particular embodiments described herein are illustrative only and are not limiting of embodiments of the invention. It should be further noted that, for convenience of description, only some, but not all of the structures related to the embodiments of the present invention are shown in the drawings.
Fig. 1 is a flowchart of a data packet retransmission mode adaptive adjustment method based on NTN network transmission according to an embodiment of the present invention, as shown in fig. 1, specifically including:
Step S101, under the condition that the network connection mode switching is detected to reach the set duration, network mode switching information is acquired, wherein the network mode switching information comprises a first network connection mode corresponding to a first time interval before the network connection mode switching and a second network connection mode corresponding to a second time interval after the network connection mode switching.
The network connection mode is used for representing the network type of the terminal equipment connection; the set duration is a preset time length, can be changed according to actual conditions and is not a fixed value; the network switching information is used for representing various information generated when the terminal equipment performs network connection mode switching; the first time interval is a time interval before the terminal equipment completes the switching of the network connection modes; the first network connection mode is a network type connected with the terminal equipment in a first time interval; the second time interval is a time interval after the terminal equipment completes the switching of the network connection modes; the second network connection mode is a network type connected with the terminal equipment in a second time interval. And under the condition that the set time length is reached after the terminal equipment completes the network connection mode switching, acquiring network mode switching information of the terminal equipment, wherein the network mode switching information comprises a first network connection mode corresponding to a first time interval before the network connection mode switching and a second network connection mode corresponding to a second time interval after the network connection mode switching. In one embodiment, the set duration is 2 minutes, the first time interval is the first 1 minute for switching network connection modes, the second time interval is the second 1 minute for switching network connection modes, and the terminal device switches network connection modes when 9 points, so that if the time reaches 9 points 02 minutes, network mode switching information of the terminal device is obtained, the first network connection mode corresponding to 8 points 59 to 9 points is a non-NTN network connection mode, and the second network connection mode corresponding to 9 points 01 points is an NTN network connection mode.
Step S102, determining whether the current operation information of the terminal equipment meets a retransmission mode switching condition under the condition that the first network connection mode is a non-NTN network connection mode and the second network connection mode is an NTN network connection mode.
The non-NTN network is a ground network and mainly comprises a ground cellular base station, a satellite communication gateway station and a converged core network; the NTN is one of the technical directions of directly connecting the mobile phone with the satellite, and the fusion of the satellite communication network and the ground 5G network is utilized, so that the method is not limited by the topography and the landform, and the ubiquitous coverage capability is provided; the operation information is used for representing the data information operated in the current terminal equipment; the retransmission mode switching condition is a condition for judging whether or not to switch the current retransmission mode to the selected retransmission mode. And under the condition that the first network connection mode of the terminal equipment is a non-NTN network connection mode and the second network connection mode is an NTN network connection mode, acquiring the current operation information of the terminal equipment and determining whether the current operation information of the terminal equipment meets the set selective retransmission mode switching condition. In one embodiment, the obtained first network connection mode is a non-NTN network connection mode, the second network connection mode is an NTN network connection mode, the number of programs currently operated by the terminal device is 5, the data transmission amount is 100 data packets, the retransmission mode switching condition is that the number of programs currently operated by the terminal device is greater than 3, the data transmission amount is greater than 50 data packets, and it is determined that the current operation information of the terminal device meets the retransmission mode switching condition (5>3, 100> 50). Whether the retransmission mode switching condition is selected or not is judged based on the network connection modes before and after the network mode switching and the operation information of the terminal equipment, whether the retransmission mode switching is selected or not can be judged according to the network connection condition of the current terminal equipment, the data transmission efficiency is improved, and the requirement of high-efficiency communication is met.
And step 103, adjusting the retransmission mode of the current data packet to a selective retransmission mode under the condition that the selective retransmission mode switching condition is met, wherein only the determined data loss packet is transmitted in the selective retransmission mode.
The core idea of selecting the retransmission mode is that when the transmitting end transmits data, each data packet is coded with a corresponding sequence number, and the acknowledgement of the receiving end to each data packet is independent. The sender selecting the retransmission mode maintains two variables base and nextseqnum, the base represents the first transmitted but unacknowledged packet number in the sliding window, nextseqnum represents the first unacknowledged packet number in the sliding window, the length of the sliding window is less than or equal to 2 (m-1), m represents the number of packets, each packet in the sliding window corresponds to one ack acknowledgement, and each packet in the sliding window has a timer, and when timeout occurs, only the corresponding timeout packet is retransmitted. And under the condition that the current operation information of the terminal equipment meets the set selective retransmission mode switching condition, the retransmission mode of the current data packet is adjusted to be a selective retransmission mode, and only the determined data loss packet is transmitted in the selective retransmission mode. In one embodiment, determining that the current running information of the terminal device meets the set selective retransmission mode switching condition, inquiring whether the retransmission mode of the current data packet is the selective retransmission mode, if so, continuing to keep the current retransmission mode, and if not, switching the current retransmission mode into the selective retransmission mode; determining that the retransmission mode of the current data packet is not the selective retransmission mode, adjusting the current retransmission mode to be the selective retransmission mode, and transmitting only the determined data loss packet in the selective retransmission mode, as shown in fig. 2, fig. 2 is a schematic diagram of transmitting data in the selective retransmission mode, 1-10 are serial numbers of the data packet, the upper layer is a transmitting party, the lower layer is a receiving party, 01 is a transmitting sliding window, black filled rectangles in the transmitting sliding window represent transmitted data packets, 02 is a receiving sliding window, 02 can indicate that each data packet in the sliding window has a timer, the middle black filled rectangle is the data packet sent by the transmitting end, the unfilled rectangle is the lost data packet in the transmitting process, and the serial number is 2. The data packet behind the base may be confirmed before the base, but if the base is not confirmed, the sliding window cannot move to the right, and cannot send more data, as shown in fig. 3, fig. 3 is a schematic diagram of retransmission in the retransmission mode selection provided in the embodiment of the present invention, the data packet with sequence number 2 is a data packet lost in the transmission process of the sliding window when the data packets with sequence numbers 1, 2 and 3 are transmitted, after the packet loss occurs, the sliding window moves to the position shown in fig. 3, the sequence number 2 is the base, the sender sends the data packet with sequence number 2 again independently after receiving the confirmation information of the data packets with sequence numbers 3 and 4, the black filled rectangle in the middle of fig. 3 is the data packet with sequence number 2 which is sent again independently by the sender, the sliding window cannot move to the right when packet number 2 is not acknowledged. After the retransmission mode of the current data packet is adjusted to the selected retransmission mode, if the network connection mode is detected to be the multi-connection mode, the retransmission mode of the current data packet is adjusted to the back-off N-step retransmission mode, and the multi-connection mode comprises a non-NTN network connection mode and an NTN network connection mode. The retransmission mode of the current data packet is adjusted to be the selected retransmission mode, so that the utilization rate of the network can be improved, the change of the network condition can be more flexibly dealt with, and the reliable transmission of the data is effectively ensured.
According to the method, when the network connection mode switching is detected to reach the set duration, network mode switching information is obtained, the network mode switching information comprises a first network connection mode corresponding to a first time interval before network connection mode switching and a second network connection mode corresponding to a second time interval after network connection mode switching, under the condition that the first network connection mode is a non-NTN network connection mode and the second network connection mode is an NTN network connection mode, whether current operation information of the terminal equipment meets a retransmission mode switching condition is determined, under the condition that the current operation information of the terminal equipment meets the retransmission mode switching condition, the retransmission mode of a current data packet is adjusted to be a retransmission mode, and only the determined data loss packet is transmitted in the retransmission mode. The scheme determines whether to switch retransmission modes based on network mode switching information, current running information of the terminal equipment and retransmission mode switching conditions, solves the problem that the transmission efficiency of a data packet is low due to the fact that a reasonable self-adaptive adjustment mechanism of the retransmission modes is lacked in the prior art, can adaptively adjust the retransmission modes according to the network connection condition of the current terminal equipment, improves the data transmission efficiency, and meets the requirement of efficient communication.
Fig. 4 is a flowchart of a method for obtaining network mode switching information according to an embodiment of the present invention, where, as shown in fig. 4, the method specifically includes:
Step S201, when it is detected that the network connection mode switch reaches the set duration, before acquiring the network mode switch information, acquiring the recorded first network connection information of the first time interval, and the recorded second network connection information of the second time interval, where the first network connection information records the network connection mode used in the first time interval, and the second network connection information records the network connection mode used in the second time interval.
Before acquiring the network mode switching information, acquiring recorded first network connection information of the terminal equipment in a first time interval, wherein the first network connection information records a network connection mode used by the terminal equipment in the first time interval, and second network connection information of the terminal equipment in a second time interval, wherein the second network connection information records the network connection mode used by the terminal equipment in the second time interval. Optionally, before acquiring the recorded first network connection information of the first time interval and the second network connection information of the second time interval, acquiring a triggering condition of switching the network connection mode, and determining the first time interval and the second time interval according to the triggering condition. Alternatively, when the network connection mode used by the terminal device in the first time interval is a single network mode, the single network mode is determined to be the first network connection mode in the first time interval, and when the network connection mode used by the terminal device in the second time interval is a single network mode, the single network mode is determined to be the first network connection mode in the second time interval. In one embodiment, the triggering conditions of the network connection switching are two, the first triggering is manual, the corresponding first time interval and the second time interval are respectively 2 minutes before and after the network connection switching, the second triggering is according to the network quality change condition, the corresponding first time interval and the corresponding second time interval are respectively 5 minutes before and after the network connection switching, the triggering mode of the current network connection switching is determined to be manual, the network connection switching is performed at 9 points, the first time interval is 8 points 58 to 9 points, the second time interval is 9 points to 9 points 02 minutes, the network mode in the time interval from 8 points 58 to 9 points is a non-NTN network mode, the network mode in the time interval from 9 points to 9 points 02 minutes is an NTN network mode, the network connection mode used in the first time interval and the second time interval is a single network mode, the first network connection mode of the first time interval is a non-NTN network mode, and the second network connection mode of the second time interval is an NTN network mode. In another embodiment, the time length of the first time interval and the second time interval is a preset time length, and the recorded first network connection information of the first time interval and the second network connection information of the second time interval are obtained before the network mode switching information is obtained.
Step S202, determining whether the current operation information of the terminal device satisfies a retransmission mode selection switching condition when the first network connection mode is a non-NTN network connection mode and the second network connection mode is an NTN network connection mode.
Step S203, when the selective retransmission mode switching condition is satisfied, the retransmission mode of the current data packet is adjusted to a selective retransmission mode, and only the determined data loss packet is transmitted in the selective retransmission mode.
As can be seen from the above, before acquiring the network mode switching information, the recorded first network connection information of the terminal device in the first time interval is acquired, and the recorded second network connection information of the terminal device in the second time interval is acquired, wherein the first network connection information records the network connection mode used by the terminal device in the first time interval, and the second network connection information records the network connection mode used by the terminal device in the second time interval. According to the scheme, before the network mode switching information is acquired, the recorded first network connection information of the terminal equipment in the first time interval and the second network connection information in the second time interval are acquired, and the retransmission mode can be adjusted in a self-adaptive mode according to the network connection condition of the current terminal equipment.
Fig. 5 is a flowchart of a method for determining whether current operation information satisfies a condition for selecting retransmission mode switching, which is provided in an embodiment of the present invention, and as shown in fig. 5, specifically includes:
Step S301, when it is detected that the network connection mode is switched to reach the set duration, network mode switching information is acquired, where the network mode switching information includes a first network connection mode corresponding to a first time interval before the network connection mode is switched and a second network connection mode corresponding to a second time interval after the network connection mode is switched.
Step S302, determining the number of programs and the data transmission amount currently operated by the terminal device when the first network connection mode is a non-NTN network connection mode and the second network connection mode is an NTN network connection mode, and determining whether the retransmission mode switching condition is satisfied according to the number of programs and the data transmission amount.
The number of programs currently running is the number of programs currently in an active state in the terminal equipment; the data transmission amount is the amount of data transmitted by the currently running program. And under the condition that the first network connection mode of the terminal equipment is a non-NTN network connection mode and the second network connection mode is an NTN network connection mode, determining the number of programs and the data transmission quantity currently operated by the terminal equipment, and determining whether the retransmission mode switching condition is met or not according to the number of programs and the data transmission quantity. Optionally, the retransmission mode switching condition is satisfied when the number of programs currently operated by the terminal device is greater than the preset number of programs and the data transmission amount is greater than the preset transmission amount. In one embodiment, it is determined that the first network connection mode is a non-NTN network connection mode, and the second network connection mode is an NTN network connection mode, and the number of programs currently running in the terminal device is 5, the data transmission amount is 100 data packets, the preset number of programs is 3, the preset transmission amount is 80 data packets, and the number of programs currently running and the data packet transmission amount are both greater than the corresponding preset number of programs and the preset transmission amount, so that it is determined that the number of programs currently running and the data transmission amount meet the condition of selecting retransmission mode switching. In another embodiment, the type of the data transmission packet of the currently running program is determined, and when the type of the data transmission packet satisfies the selective retransmission condition, it is determined that the selective retransmission mode switching condition is satisfied. In yet another embodiment, the current network bandwidth and the delay time length are determined, and the selective retransmission mode switching condition is determined to be satisfied in the case that the network bandwidth is greater than the preset bandwidth and the delay time length is less than the preset time length.
Step S303, when the selective retransmission mode switching condition is met, the retransmission mode of the current data packet is adjusted to be a selective retransmission mode, and only the determined data loss packet is transmitted in the selective retransmission mode.
As can be seen from the above, when the first network connection mode of the terminal device is obtained as the non-NTN network connection mode and the second network connection mode is the NTN network connection mode, the number of programs and the data transmission amount currently operated by the terminal device are determined, and whether the retransmission mode switching condition is selected is determined according to the number of programs and the data transmission amount. According to the scheme, whether the retransmission mode switching condition is selected is determined according to the number of programs currently operated by the terminal equipment and the data transmission quantity, and unnecessary retransmission mode switching can be avoided under the conditions that no operation or too few operation programs and no data transmission packets or too few data transmission packets exist.
Fig. 6 is a flowchart of another adaptive adjustment method for retransmission mode of a data packet based on NTN network transmission according to an embodiment of the present invention, as shown in fig. 6, specifically including:
Step S401, when it is detected that the network connection mode is switched to reach the set duration, network mode switching information is acquired, where the network mode switching information includes a first network connection mode corresponding to a first time interval before the network connection mode is switched and a second network connection mode corresponding to a second time interval after the network connection mode is switched.
Step S402, determining whether the current operation information of the terminal device meets a back N-step retransmission mode switching condition when the first network connection mode is an NTN network connection mode and the second network connection mode is a non-NTN network connection mode.
The condition for switching the backward N-step retransmission mode is a condition for judging whether to switch the current retransmission mode into the backward N-step retransmission mode. And under the condition that the first network connection mode of the terminal equipment is an NTN network connection mode and the second network connection mode is a non-NTN network connection mode, determining whether the current operation information of the terminal equipment meets the switching condition of the backward N-step retransmission mode. Optionally, determining the current network average transmission rate of the terminal device, and determining that the switching condition of the back-off N-step retransmission mode is met under the condition that the current network average transmission rate of the terminal device is greater than a preset rate. In one embodiment, it is determined that the first network connection mode of the terminal device is an NTN network connection mode, the second network connection mode is a non-NTN network connection mode, the preset rate is 15kb/s, the current average network transmission rate of the terminal device is calculated to be 20kb/s, the current average network transmission rate is greater than the preset rate (20 > 15), and it is determined that the current average network transmission rate of the terminal device meets a back N-step retransmission mode switching condition. In another embodiment, the current retransmission data amount of the terminal device is determined, and the back-off N-step retransmission mode switching condition is determined to be satisfied when the current retransmission data amount of the terminal device is smaller than a preset amount.
Step S403, when the condition of switching the back N-step retransmission mode is satisfied, the retransmission mode of the current data packet is adjusted to a back N-step retransmission mode, where all the data packets in the same packet transmitting group after the determined data lost packet are retransmitted in the back N-step retransmission mode.
In the back-off N-step retransmission mode, when the receiving side detects a lost data packet, the transmitting side is required to retransmit all unacknowledged data packets after the last correctly received data packet. The two variables base and nextseqnum maintained by the sender in the back-N-step mode are the same as those in the selection retransmission mode, the length of the sliding window is less than or equal to (2-m) -1, m represents the number of data packets, a plurality of data packets in one sliding window only use one timer, and when a timeout event occurs, all the data packets which are already transmitted but not confirmed in the window, namely, the data packets between base and nextseqnum sequence numbers, are retransmitted, and the timeout event refers to the timeout of the timer started when the base data packet is transmitted. In the back N-step retransmission mode, accumulated acknowledgements are adopted, that is, the sender receives acknowledgement sequence numbers greater than base sent by the receiver, all data packets between the acknowledgement sequence numbers and the base are acknowledged, and only after being acknowledged, the base can be increased, nextsegnum can be increased, and more data packets can be sent. And under the condition that the current operation information of the terminal equipment meets the switching condition of the backward N-step retransmission mode, the retransmission mode of the current data packet is adjusted to be the backward N-step retransmission mode, and all the data packets in the same packet sending group after the determined data loss packet are retransmitted in the backward N-step retransmission mode. In one embodiment, determining that current operation information of the terminal device meets a reverse N-step retransmission mode switching condition, inquiring whether a retransmission mode of a current data packet is a reverse N-step retransmission mode, if so, continuing to maintain the current retransmission mode, and if not, switching the current retransmission mode into the reverse N-step retransmission mode; determining that the retransmission mode of the current data packet is not a back-off N-step retransmission mode, switching the current retransmission mode to the back-off N-step retransmission mode, retransmitting all the data packets in the same packet transmitting group after the determined data loss packet in the back-off N-step retransmission mode, as shown in fig. 7, fig. 7 is a schematic diagram of transmitting data in the back-off N-step retransmission mode, 1-10 is a sequence number of the data packet, an upper layer is a transmitting side, a lower layer is a receiving side, 11 is a transmitting sliding window, a rectangle filled with black in the transmitting sliding window represents the transmitted data packet, 12 is a receiving sliding window, 11 and 12 can indicate that a plurality of data packets in one sliding window only use one timer, the middle black filled rectangle is a data packet sent by the sending end, the unfilled rectangle is a data packet lost in the sending process, the serial number is 2, as shown in fig. 8, fig. 8 is a schematic diagram of retransmission in a back N-step retransmission mode provided by the embodiment of the invention, the data packet with the serial number of 2 is a data packet lost in the sending process when the sliding window is a data packet with the serial number of 1, 2 and 3, after the packet is lost, the sliding window moves to the position shown in fig. 8, the serial number of 2 is base, because the data packet with the serial number of 2 is lost in the sending process, the acknowledgement information sent by the receiving party received by the sending party is the acknowledgement information of the data packet with the serial number of 1, the data packets with the sequence number of 2 and the following data packets with the sequence number of 3 in the sliding window are retransmitted, and 13 and 14 are respectively the data packets with the sequence numbers of 2 and 3 retransmitted by the sender. The retransmission mode of the current data packet is adjusted to be a back-off N-step retransmission mode, so that the channel utilization rate can be improved, and a plurality of frames can be simultaneously transmitted.
As can be seen from the above, when the first network connection mode is the NTN network connection mode and the second network connection mode is the non-NTN network connection mode, it is determined whether the current operation information of the terminal device satisfies the back-off N-step retransmission mode switching condition, and when the back-off N-step retransmission mode switching condition is satisfied, the retransmission mode of the current data packet is adjusted to the back-off N-step retransmission mode, and all the data packets in the same packet transmitting group after the determined data loss packet are retransmitted in the back-off N-step retransmission mode. The scheme determines whether to switch retransmission modes based on network mode switching information, current running information of the terminal equipment and retransmission mode switching conditions, solves the problem that the transmission efficiency of a data packet is low due to the fact that a reasonable self-adaptive adjustment mechanism of the retransmission modes is lacked in the prior art, can adaptively adjust the retransmission modes according to the network connection condition of the current terminal equipment, improves the data transmission efficiency, and meets the requirement of efficient communication.
Fig. 9 is a block diagram of a module structure of an adaptive adjustment system for a data packet retransmission mode based on NTN network transmission according to an embodiment of the present invention, where the system is configured to execute the adaptive adjustment method for a data packet retransmission mode based on NTN network transmission provided in the foregoing embodiment, and has functional modules and beneficial effects corresponding to the execution method. As shown in fig. 9, the system specifically includes:
An information obtaining module 101, configured to obtain network mode switching information when it is detected that network connection mode switching reaches a set duration, where the network mode switching information includes a first network connection mode corresponding to a first time interval before network connection mode switching, and a second network connection mode corresponding to a second time interval after network connection mode switching;
A condition judging module 102, configured to determine whether current operation information of a terminal device meets a retransmission mode switching condition when the first network connection mode is a non-NTN network connection mode and the second network connection mode is an NTN network connection mode;
And the retransmission adjustment module 103 is configured to adjust a retransmission mode of the current data packet to a selected retransmission mode when the selected retransmission mode switching condition is satisfied, where only the determined data loss packet is transmitted in the selected retransmission mode.
According to the scheme, when the condition that the network connection mode is switched to reach the set duration is detected, network mode switching information is obtained, the network mode switching information comprises a first network connection mode corresponding to a first time interval before network connection mode switching and a second network connection mode corresponding to a second time interval after network connection mode switching, under the condition that the first network connection mode is a non-NTN network connection mode and the second network connection mode is an NTN network connection mode, whether current operation information of the terminal equipment meets the condition of selecting retransmission mode switching is determined, under the condition that the current operation information of the terminal equipment meets the condition of selecting retransmission mode switching, the retransmission mode of a current data packet is adjusted to be the selected retransmission mode, and only the determined data loss packet is transmitted in the selected retransmission mode. The scheme determines whether to switch retransmission modes based on network mode switching information, current running information of the terminal equipment and retransmission mode switching conditions, solves the problem that the transmission efficiency of a data packet is low due to the fact that a reasonable self-adaptive adjustment mechanism of the retransmission modes is lacked in the prior art, can adaptively adjust the retransmission modes according to the network connection condition of the current terminal equipment, improves the data transmission efficiency, and meets the requirement of efficient communication.
In one possible embodiment, the information obtaining module 101 is specifically configured to:
Acquiring first network connection information of a recorded first time interval and second network connection information of a second time interval, wherein the first network connection information records a network connection mode used in the first time interval, and the second network connection information records a network connection mode used in the second time interval;
When the network connection mode used in the first time interval is a single network mode, the single network mode is determined to be the first network connection mode of the first time interval, and when the network connection mode used in the second time interval is a single network mode, the single network mode is determined to be the first network connection mode of the second time interval.
In a possible embodiment, the information acquisition module 101 is further configured to:
acquiring a triggering condition of the network connection mode switching;
And determining a first time interval and a second time interval according to the triggering condition.
In one possible embodiment, the condition determining module 102 is specifically configured to:
Determining the number of programs and the data transmission quantity currently operated by the terminal equipment, and determining whether a retransmission mode switching condition is met or not according to the number of programs and the data transmission quantity;
Correspondingly, the meeting the selective retransmission mode switching condition includes:
the number of programs is larger than the preset number of programs, and the data transmission amount is larger than the preset transmission amount.
In one possible embodiment, the condition determining module 102 is further configured to:
Determining the current network average transmission rate of the terminal equipment, and determining whether a back N-step retransmission mode switching condition is met according to the network average transmission rate;
Correspondingly, the step of meeting the back-off N-step retransmission mode switching condition includes:
The average transmission rate of the network is greater than a preset rate.
In one possible embodiment, the retransmission adjustment module 103 is specifically configured to:
And under the condition that the network connection mode is detected to be a multi-connection mode, the retransmission mode of the current data packet is adjusted to be a back N-step retransmission mode, wherein the multi-connection mode comprises a non-NTN network connection mode and an NTN network connection mode.
Fig. 10 is a schematic structural diagram of an adaptive adjustment device for retransmission mode of a data packet based on NTN network transmission according to an embodiment of the present invention, where, as shown in fig. 10, the device includes a processor 201, a memory 202, an input device 203 and an output device 204; the number of processors 201 in the device may be one or more, one processor 201 being taken as an example in fig. 10; the processor 201, memory 202, input device 203, and output device 204 in the apparatus may be connected by a bus or other means, for example in fig. 10. The memory 202 is used as a computer readable storage medium for storing a software program, a computer executable program, and modules, such as program instructions/modules corresponding to the method for adaptively adjusting a retransmission mode of a data packet based on NTN network transmission in an embodiment of the present invention. The processor 201 executes various functional applications of the device and data processing by running software programs, instructions and modules stored in the memory 202, that is, implements the above-described method for adaptively adjusting a retransmission mode of a data packet based on NTN network transmission. The input means 203 may be used to receive entered numeric or character information and to generate key signal inputs related to user settings and function control of the device. The output device 204 may include a display device such as a display screen.
Embodiments of the present invention also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform a method for adaptively adjusting a retransmission mode of a data packet based on NTN network transmissions, the method comprising:
Under the condition that the network connection mode switching reaches the set duration, network mode switching information is acquired, wherein the network mode switching information comprises a first network connection mode corresponding to a first time interval before the network connection mode switching and a second network connection mode corresponding to a second time interval after the network connection mode switching;
determining whether current operation information of the terminal equipment meets a retransmission mode switching condition under the condition that the first network connection mode is a non-NTN network connection mode and the second network connection mode is an NTN network connection mode;
And under the condition that the selective retransmission mode switching condition is met, the retransmission mode of the current data packet is adjusted to be a selective retransmission mode, and only the determined data loss packet is transmitted in the selective retransmission mode.
It should be noted that, in the embodiment of the data packet retransmission mode adaptive adjustment method system based on NTN network transmission, each unit and module included are only divided according to the functional logic, but not limited to the above-mentioned division, so long as the corresponding function can be realized; in addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the embodiments of the present invention.
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the embodiments of the present invention are not limited to the particular embodiments described herein, but are capable of numerous obvious changes, rearrangements and substitutions without departing from the scope of the embodiments of the present invention. Therefore, while the embodiments of the present invention have been described in connection with the above embodiments, the embodiments of the present invention are not limited to the above embodiments, but may include many other equivalent embodiments without departing from the spirit of the embodiments of the present invention, and the scope of the embodiments of the present invention is determined by the scope of the appended claims.