Self-adaptive method for AM entity data transmission of narrow-band Internet of things wireless link protocol sublayer
Technical Field
The invention belongs to the technical field of communication, and particularly relates to a narrowband Internet of things wireless link protocol sub-layer AM entity data transmission self-adaption method.
Background
With the rapid development of communication technology, mobile communication is moving from human-to-human connection to human-to-object and object-to-object connection, and the necessity of everything interconnection is a trend. Compared with short-distance communication technologies such as Bluetooth and ZigBee, the mobile cellular network has the characteristics of wide coverage, mobility, large connection number and the like. The narrowband internet of things is evolved on the basis of fourth-generation mobile communication and is a link for connecting objects. NB-IoT is an emerging technology in the field of Internet of things and supports cellular data connection of low-power consumption equipment in a wide area network. The NB-IoT supports efficient connection of equipment with long standby time and high requirement on network connection, has the characteristics of low cost, large capacity, wide coverage and the like, and fully makes up the points of narrow coverage, small capacity, high bandwidth and the like of the current Internet of things protocol. Meanwhile, in the aspect of supporting big data, compared with technologies such as Bluetooth and Wi-Fi, the data collected by the NB-IoT connection can be directly uploaded to the cloud.
In summary, the narrowband internet of things meet the current development requirements of the internet of things by virtue of the characteristics of low power consumption, low cost, large capacity, wide coverage and the like, and meanwhile, more enterprises and research and development personnel can enter the field at present and in the future.
However, a Radio Link Control (RLC) layer playing an important adaptation role in a data transmission process according to a narrowband internet of things protocol proposed by the 3gpp standard has a large influence on system performance, and has the problems of large data transmission delay and low throughput, and a phenomenon of data transmission interruption due to sliding window blocking is easily caused.
Disclosure of Invention
The invention aims to provide a narrow-band Internet of things wireless link protocol sublayer AM entity data transmission self-adaption method which can solve the problems of low throughput, large time delay, sliding window blockage and the like in the data transmission process.
In order to achieve the above purpose, the solution of the invention is:
a self-adaptive method for transmitting data of an AM entity of a wireless link protocol sublayer of a narrow-band Internet of things comprises the following steps:
step 1, an AM receiving entity acquires the number n of currently sent status reports NACK;
step 2, the AM receiving entity calculates and updates the value of the parameter of the state prohibition timer t _ StatusProhibit according to the NACK number n, the reordering timer t _ reordering and the maximum transmission time delay allowed by the system;
and step 3, the AM transmission entity calculates a threshold value for triggering polling according to the length of the sliding window, the channel transmission rate s and the polling retransmission timer t _ PollRecransmit, compares the threshold value with the number of the PDUs in the current sending buffer, and triggers polling if the threshold value is larger than the threshold value.
The step 2 comprises the following specific steps:
step 21, calculating the value of a state prohibition timer t _ StatusProhibit according to the NACK number n, a reordering timer t _ reordering and the maximum transmission delay t _ Maxdelay allowed by the system;
step 22, updating the AM receiving entity parameter t _ StatusProhibit according to the value of t _ StatusProhibit;
and step 23, using the updated t _ statupprioit parameter for data transmission, and meanwhile, judging whether a new status report is generated, if so, returning to the step 21, and if not, repeating the step 23.
In the above step 21, according to
The value of the status prohibit timer t _ statusprhibit is calculated.
The step 3 comprises the following specific steps:
step 31, calculating time t _ TransPDU required by PDU transmission in a physical channel according to the channel transmission rate s and the length of the currently transmitted PDU;
step 32, according to t _ TransPDU and the transmission time between RLC layer and physical layer, estimating the time t _ PDU needed by transmitting one PDU by transmission entity;
step 33, calculating a polling Threshold according to the calculated t _ PDU and the size of the transmission sliding window of the AM transmission entity;
step 34, comparing the number of PDUs in the current transmission sliding window buffer with the size of the polling Threshold, thereby determining whether to trigger polling.
In the above step 32, according to the channel transmission rate s, the current PDU Length and the transmission time t of data between the RLC layer and the physical layersUsing t _ PDU _ Length s +2tsThe time t _ PDU required for the transmitting entity to transmit a PDU is estimated.
In the above step 33, according to t _ PDU and transmission slipWindow size AM _ WindowLength, using
The Threshold is calculated.
In step 34, if the number of PDUs in the buffer for sending the sliding window is greater than or equal to the polling Threshold, a polling operation is performed, and a polling retransmission timer t _ poll _ retransmission is started to wait for the AM to receive the transmission status report of the entity, and if the number of PDUs in the buffer for sending the sliding window is less than the polling Threshold, step 34 is repeated.
After the scheme is adopted, the invention dynamically adjusts relevant parameters in AM entity data transmission according to the NACK number, the reordering timer and the maximum transmission delay of the current state report, particularly adjusts the value of the polling timer in data transmission according to the transmission delay, and at the same time, dynamically adjusts the state prohibition timer t _ StatusProhibit according to the receiving condition of the PDU in the receiving sliding window, thereby solving the problem of sliding window blockage, obtaining throughput as large as possible and reducing delay in the data transmission process so as to improve the performance of the system, ensuring the reliability and high efficiency of the data protocol stack transmission process, realizing the reliable operation of the protocol stack, simple realization and small system resource loss.
Drawings
FIG. 1 is an overall flow diagram of the present invention;
FIG. 2 is a diagram of the adaptive rectification of the t _ StatusProhibit parameter of the receiving entity in the present invention;
fig. 3 is a flow chart of polling of the transmitting entities in the present invention.
Detailed Description
The technical solution and the advantages of the present invention will be described in detail with reference to the accompanying drawings.
The sub-layer of the RLC protocol of the narrow-band Internet of things maintains a sliding window mechanism, a sending sliding window is maintained for an RLC AM transmission entity, and a receiving sliding window is maintained for an RLC AM receiving entity. In the Data transmission process, a Packet Data Unit (PDU) firstly enters a sending sliding window of an RLC transmission entity, the sending sliding window sends the PDU in the sliding window to a bottom layer, an RLC AM receiving entity receives the PDU from the bottom layer and puts the PDU into a receiving sliding window, and meanwhile, the receiving sliding window needs to generate a PDU receiving status report and sends the PDU receiving status report to the RLC AM transmission entity, so that the ARQ (automatic Repeat request) function of retransmitting the PDU which is not received is realized, and the accuracy of Data in the Data transmission process is ensured. The speed of sliding of the sliding window determines the speed of data transmission, and the frequency of sending the status report determines the time delay and the throughput rate of the data transmission. Meanwhile, the sending frequency of the status report is affected by the t _ polltransmit parameter of the RLC AM sending transmitter, the t _ statupphirit parameter and the t _ reordering parameter of the RLC AM receiving entity, and the size of the sliding window. The condition report is sent too frequently, so that retransmission is triggered frequently, the throughput is reduced, and the delay is increased and the sliding window is blocked due to too late state report sending. Therefore, the frequency of transmission of status reports is particularly important.
Based on the above consideration, as shown in fig. 1, the invention provides a narrowband internet of things wireless link protocol sublayer AM entity data transmission adaptive method, which overall comprises the following steps:
step 1, an AM receiving entity obtains the number n of currently sent status reports NACK (negative acknowledgement), namely the PDU from POLL PDU to the unreceived PDU at the bottom of a sliding window in the AM receiving entity;
step 2, the AM receiving entity calculates and updates the value of the parameter of the state prohibition timer t _ StatusProhibit according to the NACK number, the Reordering timer t _ Reordering and the maximum transmission time delay allowed by the system;
and step 3, the AM transmission entity calculates a threshold value for triggering polling according to the length of the sliding window, the channel transmission rate s and the polling retransmission timer t _ PollRecransmit, compares the threshold value with the number of the PDUs in the current sending buffer, and triggers polling if the threshold value is larger than the threshold value.
In step 2, with reference to fig. 2, according to the NACK number n, the Reordering timer t _ Reordering, and the system allowed maximum transmission delay t _ Maxdelay, the value of the parameter t _ StatusProhibit of the status prohibition timer is calculated by using the following formula:
then, the above calculation result is updated to the t _ StatusProhibit parameter of the AM receiving entity for use when receiving data next time until a new status report is generated.
As shown in fig. 3, the specific implementation process of step 3 is also the key point of the present invention, a Threshold is added to an AM transmission entity to trigger polling of the transmission entity, and a polling retransmission timer t _ poll is started, the AM transmission entity performs polling according to the number of PDUs in the current sliding window buffer, and a Threshold is added to compare with the number of PDUs in the current transmission buffer to trigger polling of the transmission entity, so as to ensure that the transmission sliding window is in a non-blocking state.
In step 3, firstly, according to the channel transmission rate s, the current PDU Length PDU and the transmission time t between RLC layer and physical layersEstimating the time t _ PDU required by the transmission entity to send a PDU, wherein the calculation formula is as follows:
t_PDU=PDU_Length*s+2ts
then, according to t _ PDU and AM _ WindowLength of the size of the transmission sliding window, a Threshold is calculated by using the following formula:
and finally, counting the PDUs in the transmission sliding window buffer of the AM transmission entity, comparing the count with a Threshold, triggering polling when the count is greater than or equal to the Threshold, and starting a timer t _ PollRecransmit.
The invention provides a transmission self-adapting method of a narrow-band Internet of things wireless link protocol sub-layer AM entity, which combines a polling threshold value of the AM transmission entity, a t _ StatusProhibit parameter received by the AM with the current sliding window length, a channel transmission rate and the maximum allowable transmission delay of a system, dynamically adjusts the parameter value of the AM receiving entity and triggers the polling of the transmission entity through the states of a sending buffer and a receiving buffer, can ensure the reliability and the high efficiency in data transmission, and is flexible and easy to realize the reliable operation of a communication system.
The above embodiments are only for illustrating the technical idea of the present invention, and the protection scope of the present invention is not limited thereby, and any modifications made on the basis of the technical scheme according to the technical idea of the present invention fall within the protection scope of the present invention.