Background
The narrow-band Internet of things is a new LPWAN technology, and is very suitable for the application of the Internet of things for transmitting a small amount of information in a far range. Since most User Equipment (UE) in NB-IoT is battery powered and deployed in large scale, the cost of replacing batteries is high. Therefore, it is important to keep energy consumption at a minimum level. To address this issue, researchers have proposed using D2D communication for assisting NB-IoT systems' data transmission. In the D2D-assisted NB-IoT system, the energy saving feature of D2D short-range communication perfectly compensates for the energy shortage caused by the battery-driven NB-IoT devices.
In D2D assisted NB-IoT, D2D Relay/receiving devices (D2D Relay/Receiver Equipment, DRE) need to reserve slots for D2D communication and data forwarding. In the most ideal case, at least two slots should be reserved, one for D2D communication and one for relaying forwarding data to the Base Station (BS). However, in practice, there may be transmission failures in both the D2D communication and the relay forwarding phases, resulting in retransmissions. To improve transmission success rates, DRE needs to reserve more time slots for D2D communication and relay forwarding so that more retransmissions can be allowed. However, too many retransmissions (especially in case of poor channel quality) will significantly increase the energy consumption of the UE, and thus reduce the lifetime of the UE. Therefore, the D2D data transmission algorithm is one of the important research issues in NB-IoT systems.
The existing data transmission algorithm based on D2D communication in NB-IoT does not consider the configuration problem of DRE optimal communication time slot number. The number of reserved slots needs to be determined for the DRE, so that on one hand, the transmission success rate can be improved as much as possible, and on the other hand, the energy consumption can be controlled to a tolerable level as much as possible. Therefore, it is of practical significance to design a relay timeslot number selection method based on D2D communication in NB-IoT.
Disclosure of Invention
In view of this, the present invention provides a relay timeslot number selection method based on D2D communication in NB-IoT, which determines an optimal communication timeslot number for DRE to balance transmission success rate and energy consumption.
In order to achieve the purpose, the invention provides the following technical scheme:
a D2D relay time slot number selection method comprises the following steps:
s1: setting the number of reserved time slots of DRE to be NtsSorting the candidate relays, and taking the UE with the maximum relay intention as an actual DRE;
s2: calculating to obtain a working time table of the DRE;
s3: establishing a transmission success rate model of the DRE;
s4: establishing an energy consumption model of the DRE;
s5: constructing utility function f (N)ts) And obtain an optimization problem Maxf (N)ts);
S6: find f (N)ts) Maximized NtsA value;
further, in step S1, the number of communication slots reserved by the DRE is set to N
ts(ii) a By using
Represents a candidate relay set for NB-IoT terminal u, which is K UEs within D2D communication range near the midpoint of the path of terminal u to the BS to help terminal u upload packets to the BS. Candidate relay as a function of relay willingness
Sorting and ordering the devices r with the maximum relay intention
kAs the actual DRE r
optIn which E
kThe energy is left for the DRE and,
is a historical average of the transmission success rate of the DRE to the BS,
is the DRE to BS distance.
Further, in step S2, a (N-1) × 1 vector is used
Indicating the working schedule of terminal u, if candidate DRE
Is reserved for D2D communication, the decision variable is changed
Is 1, otherwise is 0.
Further, in step S3, the method is implemented
Is represented by having a given
ToThe packet transmission rate of terminal u, represents the expected packet transmission rate of terminal u to BS over two hops.
The transmission success rate of terminal u is denoted by P. Based on the average SINR, the average bit error rate of binary signal detection in additive white gaussian noise is:
wherein Q (-) represents a standard Gaussian error function,
assuming that bit errors occur independently of each other, P can be calculated for an L-bit packet by considering the probability of correctly receiving all individual bits. The SINR may vary over the packet transmission time due to the assumption of rayleigh fading. To simplify the analysis, we assume that the interference varies slowly over the transmission time of l bits, assuming that the SINR of l consecutive bits is the same. In this case, P of the L-bit packet can be expressed as:
wherein p isb(j) Is the bit error rate of the jth l-bit long segment of the packet. The transmission success rate containing W packets is:
for a given working schedule
EDR of terminal u is:
wherein,
is that the packet is DRE in the ith slot
The probability of successful reception is specifically:
wherein, P
toRIs an estimate of the packet transmission rate of the link between terminal u and the DRE. Of the front type
Is DRE
The maximum packet transmission rate estimate for the link with the BS is N-i transmissions. The values are:
because the deadline for data transmission is Ntsτ, total transmission count cannot exceed Nts. If the D2D communication occupies i slots, the maximum transmission count of the second hop is at most NtsI times.
Further, in step S4, the method is implemented
Is represented by having a given
Represents the expected energy consumption of terminal u to transmit a packet to the BS over the two-hop link.
For a given operating schedule Δ(u)EEC (Δ) of terminal u(u)) Comprises the following steps:
wherein,
is that
Expected energy consumption for packet transmission to BS, and at most N for transmission
tsI times, i.e
Wherein,
and
is the energy consumption of the first and second hops calculated from the energy consumption model.
The energy consumption generated by the transmission failure of the first i-1 time slots and the transmission success in the time slot i.
The energy consumed for the first transmission, the first 1 unsuccessful transmission, the first successful transmission. The method comprises the following specific steps:
wherein,
the transmission power of cellular UE and D2D UE, respectively.
Further, in step S5, in order to obtain an optimal compromise between energy consumption and transmission success rate, a utility function is constructed:
wherein E and P are the desired energy consumption and transmission success rate, PminRepresents the lowest transmission success rate that NB-IoT edge UEs can accept, and EmaxRepresenting the maximum energy consumed by the NB-IoT edge UE for one data upload. From EmaxE and P/PminIt is understood that the smaller E or the larger P, the larger the value of the utility function. N is a radical oftsThe number of reserved D2D communication slots representing DRE is an integer equal to or greater than 2 since at least two slots are required to complete the first and second hop transmissions. δ is a weighting factor for energy consumption and transmission success rate. Larger values of δ tend to be more energy efficient, but result in too low a transmission success rate; smaller values of δ tend to improve transmission success rates but result in excessive power consumption. When δ is 0, the utility function indicates that the transmission success rate is maximized, but brings the maximum energy consumption at the same time; when δ is 1, it means that power consumption is minimized while a minimum transmission success rate is obtained.
Further, in step S6, considering some limiting conditions in the scene, taking this utility function as the objective function can obtain the following optimization problem:
Max f(Nts)
wherein, thetai,kFor decision variables, the time slot of DRE is 1 when it is reserved for D2D communication and forwarding data, otherwise it is 0. Considering that the target function is a function with a maximum value, the DRE optimum value is searched by adopting a dichotomy method, namely, the DRE optimum value is searched at different deltas according to different preference requirements of usersUnder the value, N of the maximized utility function value is foundtsAnd obtaining the optimal compromise between energy consumption and transmission success rate.
The invention has the following effective effects: in D2D-assisted NB-IoT, a single relay selection scheme is proposed, which can ensure a certain transmission success rate, and does not need waiting of other relay devices, thereby being beneficial to saving energy. If the data is transmitted in advance, the relay equipment enters the dormancy in advance, and further energy saving is facilitated. Meanwhile, the configuration problem of the optimal communication time slot number of the DRE in the D2D-assisted NB-IoT is researched, in order to obtain the optimal compromise of the transmission success rate and the energy consumption, a utility function based on the weighted transmission success rate and the weighted energy consumption is constructed, in addition, based on the utility function, an optimization problem of the DRE communication time slot configuration is constructed, and finally, the optimal N is configuredtsTo achieve the best energy consumption and almost the best transmission success rate.
Detailed Description
Preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
The invention provides a D2D relay time slot number selection method aiming at the problem of uplink data transmission in a narrowband Internet of things. In order to obtain the optimal compromise between the transmission success rate and the energy consumption, a utility function based on the weighted transmission success rate and the weighted energy consumption is constructed, and an optimization problem of DRE communication time slot configuration is constructed based on the utility function, so that the transmission success rate can be improved as much as possible, and the energy consumption can be controlled to a tolerable level as much as possible. And determining a reserved time slot number for the DRE, ensuring a certain transmission success rate, and being beneficial to saving energy without waiting of other relay equipment. And if the data is transmitted in advance, the relay equipment enters the dormancy in advance, which is favorable for further saving energy. A flowchart of a D2D relay slot number selection method based on D2D communication in NB-IoT is shown in fig. 1.
An NB-IoT network model diagram based on D2D communication is shown in fig. 2. The UE at the edge of the cell establishes a D2D link with the adjacent UE with better channel condition, namely the DRE, and then uploads the received data to the base station, and each UE uploads the data to the base station through at most two hops. Firstly, setting the number of DRE reserved time slots as NtsSorting the candidate relays according to the relay intention size, and sorting the device r with the maximum relay intentionkAs the actual DRE ropt. And obtaining the working time table of the DRE according to the candidate relay and the transmission time. And establishing a transmission success rate model of the DRE, and then establishing an energy consumption model of the DRE. And constructing a utility function according to the transmission success rate and the energy consumption model, and establishing an optimization problem. Pair DRE N by dichotomytsSearching for the optimum value to find the N that maximizes the utility function valuetsAnd obtaining the optimal compromise between energy consumption and transmission success rate.
As shown in fig. 1, a method for optimally trading energy consumption and transmission success rate based on D2D communication in NB-IoT includes the following steps:
s1: setting the number of reserved time slots of DRE to be NtsSorting the candidate relays, and taking the UE with the maximum relay intention as an actual DRE;
s2: calculating to obtain a working time table of the DRE;
s3: establishing a transmission success rate model of the DRE;
s4: establishing an energy consumption model of the DRE;
s5: constructing utility function f (N)ts) And obtain an optimization problem Maxf (N)ts);
S6: find f (N)ts) Maximized NtsA value;
communication time of DRE reservation for obtaining candidate relay setThe number of slots is set to N
ts(ii) a By using
Represents a candidate relay set for NB-IoT terminal u, which is K UEs within D2D communication range near the midpoint of the path of terminal u to the BS to help terminal u upload packets to the BS. Candidate relay as a function of relay willingness
Sorting and ordering the devices r with the maximum relay intention
kAs the actual DRE r
optIn which E
kThe energy is left for the DRE and,
is a historical average of the transmission success rate of the DRE to the BS,
is the DRE to BS distance.
Using a (N-1) x 1 vector
Indicating the working schedule of terminal u, if candidate DRE
Is reserved for D2D communication, the decision variable is changed
Is 1, otherwise is 0. The working schedule of the DRE is shown in figure 3.
According to the working schedule of the terminal u
By using
Representing the packet transmission rate of terminal u, representing the expected packet transmission rate of terminal u to BS over two hops.
Using P meterIndicating the transmission success rate of terminal u. Based on the average SINR, the average bit error rate of binary signal detection in additive white gaussian noise is:
wherein Q (-) represents a standard Gaussian error function,
assuming that bit errors occur independently of each other, P can be calculated for an L-bit packet by considering the probability of correctly receiving all individual bits. The SINR may vary over the packet transmission time due to the assumption of rayleigh fading. To simplify the analysis, we assume that the interference varies slowly over the transmission time of l bits, assuming that the SINR of l consecutive bits is the same. In this case, P of the L-bit packet can be expressed as:
wherein p isb(j) Is the bit error rate of the jth l-bit long segment of the packet. The transmission success rate containing W packets is:
for a given working schedule
EDR of terminal u is:
wherein,
is grouped in the ith time slotIs DRE
The probability of successful reception is specifically:
wherein, P
toRIs an estimate of the packet transmission rate of the link between terminal u and the DRE. Of the front type
Is DRE
The maximum packet transmission rate estimate for the link with the BS is N-i transmissions. The values are:
because the deadline for data transmission is Ntsτ, total transmission count cannot exceed Nts. If the D2D communication occupies i slots, the maximum transmission count of the second hop is at most NtsI times. A schematic diagram of a network scenario based on D2D communication in NB-IoT is shown in fig. 4.
According to the working schedule of the terminal u
By using
Is represented by having a given
Represents the expected energy consumption of terminal u to transmit a packet to the BS over the two-hop link.
For a given operating schedule Δ(u)EEC (Δ) of terminal u(u)) Comprises the following steps:
wherein,
is DRE
Expected energy consumption for packet transmission to BS, and at most N for transmission
tsI times, i.e
Wherein,
and
is the energy consumption of the first and second hops calculated from the energy consumption model.
The energy consumption generated by the transmission failure of the first i-1 time slots and the transmission success in the time slot i.
The energy consumed for the first transmission, the first 1 unsuccessful transmission, the first successful transmission. The method comprises the following specific steps:
wherein,
the transmission power of cellular UE and D2D UE, respectively.
In order to obtain the optimal compromise between energy consumption and transmission success rate, a utility function is constructed:
wherein E and P are the desired energy consumption and transmission success rate, PminRepresents the lowest transmission success rate that NB-IoT edge UEs can accept, and EmaxRepresenting the maximum energy consumed by the NB-IoT edge UE for one data upload. From EmaxE and P/PminIt is understood that the smaller E or the larger P, the larger the value of the utility function. N is a radical oftsThe number of reserved D2D communication slots representing DRE is an integer equal to or greater than 2 since at least two slots are required to complete the first and second hop transmissions. δ is a weighting factor for energy consumption and transmission success rate. Larger values of δ tend to be more energy efficient, but result in too low a transmission success rate; smaller values of δ tend to improve transmission success rates but result in excessive power consumption. When δ is 0, the utility function indicates that the transmission success rate is maximized, but brings the maximum energy consumption at the same time; when δ is 1, it means that power consumption is minimized while a minimum transmission success rate is obtained.
Considering some defined conditions in the scene, taking this utility function as an objective function can result in the following optimization problem:
Max f(Nts)
wherein, thetai,kFor decision variables, the time slot of DRE is 1 when it is reserved for D2D communication and forwarding data, otherwise it is 0. Considering that the target function is a function with a maximum value, the DRE optimum value is searched by adopting a dichotomy method, namely according to different preference requirements of users, the DRE optimum value is searchedUnder the same value of delta, finding N of the maximized utility function valuetsAnd obtaining the optimal compromise between energy consumption and transmission success rate.
Finally, it is noted that the above-mentioned preferred embodiments illustrate rather than limit the invention, and that, although the invention has been described in detail with reference to the above-mentioned preferred embodiments, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the scope of the invention as defined by the appended claims.