Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to make the technical problems, technical solutions and advantages of the present invention more apparent, the following detailed description is given with reference to the accompanying drawings and specific embodiments. In the following description, specific details such as specific configurations and components are provided only to help the full understanding of the embodiments of the present invention. Thus, it will be apparent to those skilled in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the invention. In addition, descriptions of well-known functions and constructions are omitted for clarity and conciseness.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
In various embodiments of the present invention, it should be understood that the sequence numbers of the following processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
In addition, the terms "system" and "network" are often used interchangeably herein.
In the embodiments provided herein, it should be understood that "B corresponding to a" means that B is associated with a from which B can be determined. It should also be understood that determining B from a does not mean determining B from a alone, but may be determined from a and/or other information.
The resource reselection method according to the specific embodiment of the present invention can solve the problem that in the V2X communication protocol in the prior art, when the initial transmission or retransmission resource of the service at the time n collides with the resource in the resource selection window, the selected initial transmission or retransmission resource cannot be adjusted, which results in reduced reliability.
One embodiment of the resource reselection method according to the embodiment of the present invention is applied to a first node device, and as shown in fig. 1, the method includes:
s110, if a service packet sent by an upper layer is received at a target moment, monitoring whether resource conflict exists in initial transmission or retransmission of the service packet in a preset sensing window after the target moment;
s120, if the initial transmission or retransmission of the service packet has resource conflict, triggering resource reselection, and selecting a target resource in a preset resource reselection window as a transmission resource for the initial transmission or retransmission of the service packet;
s130, the initial transmission or the retransmission of the service packet is carried out through the transmission resource.
By adopting the resource reselection method provided by the embodiment of the invention, when service packet transmission is carried out between node devices, a preset sensing window and a preset resource reselection window are added, after a service packet sent by an upper layer is received at a target moment, whether resource conflict exists in initial transmission and retransmission of the service packet is monitored through the preset sensing window after the target moment, if the resource conflict exists, resource reselection is triggered, and resource selection is carried out in the preset resource reselection window so as to carry out initial transmission or retransmission of the service packet.
By adopting the method, when the initial transmission or retransmission resource of the service packet at the target moment collides with the resource in the resource selection window, the resource conflict between the selected resource of the service packet in the resource selection window and the burst service in the preset sensing window can be sensed by using the sensing information in the preset sensing window, so that the service at the target moment is subjected to resource reselection, and the purposes of improving the system reliability and improving the frequency spectrum utilization rate are achieved.
It should be noted that the target time may be a set time in the process of transmitting the service packet by the first node device, or any time.
In the embodiment of the present invention, the preset sensing window may also be defined as a Short-term sensing (STS) window; the preset resource reselection window may also be defined as a Re-allocation window (RW). That is, the STS window mentioned below corresponds to the preset sensing window in the present invention, and the RW window mentioned below corresponds to the preset resource reselection window in the present invention.
In the embodiment of the present invention, the defined preset resource reselection window and the defined preset sensing window may be determined by using the following rules:
for a preset resource reselection window, the resource selection range of the preset resource reselection window is as follows: [ m + T1, n + T2 ];
wherein m represents the time for triggering the resource reselection, and n represents the target time; t1 is a first preset delay time, and T2 is a second preset delay time; wherein T2 is greater than T1.
That is, specifically, the start time of RW is: increasing the time of a first preset delay time duration from the moment of triggering the resource reselection;
the end time of the preset resource reselection window is as follows: and increasing the time of the second preset delay time duration from the target time.
Optionally, based on the preset resource reselection window determined by the rule, the method further includes:
and if the service packet is retransmitted in the preset sensing window, updating the starting time of the preset resource reselection window according to the triggering resource reselection time of the last retransmission, namely updating the m.
For the preset sensing window, in one embodiment, the time range of the preset sensing window is: [ n + T1, W ];
where n is denoted as a target time, T1 is denoted as a first preset delay time, and W is denoted as a retransmission sending time of the last retransmission selected by the service packet resource at time n.
That is, specifically, the start time of the STS window is: increasing the time of a first preset delay time duration from the target time;
the end time is: and the retransmission sending time of the last retransmission selected by the service packet resource at the target moment.
Optionally, in an embodiment of the present invention, in another implementation manner of determining the preset sensing window, a time range of the preset sensing window is: [ n + T1, W-T3delay]。
Wherein, n is indicated as a target time, T1 is indicated as a first preset delay time, and W is indicated as a retransmission sending time of the last retransmission selected by the service packet resource at the time n; t3delayIndicated as a third preset delay period.
That is, in this embodiment, the start time of the STS window is: increasing the time of a first preset delay time duration from the target time;
the end time is: and the time of a third preset delay time length is before the retransmission sending time of the last retransmission selected by the service packet resource at the target moment.
The end time of the STS window determined by the embodiment is determined as a time of a third preset delay duration before the retransmission sending time of the last retransmission selected by the service packet resource at the target time, considering the influence of the sending processing delay compared with the end time of the STS window determined by the previous embodiment.
In one implementation of the embodiment of the present invention, optionally, the third preset delay time duration may be equal to the first preset delay time duration, that is, T3delayEqual to T1, determining a third predetermined delay time directly from the transmit processing delay; of course, in addition to considering the influence of the transmission processing delay, the third preset delay time may also consider other influence factors to comprehensively determine the value.
In the embodiment of the invention, T1, T2 and T3delayMay be determined in a high-level configuration or pre-configuration manner, or may be a system default parameter.
Optionally, based on the STS window determined by the above specification, the method further comprises:
and if the service packet is retransmitted in the preset sensing window, updating the end time of the preset sensing window according to the retransmission sending time of the last retransmission.
For example, setting T3delayIn the case of zero, as shown in fig. 2, for a received time packet sent by an upper layer at time n, an STS window 1 is first determined, where the start time of the STS window 1 is n + T1, and the end time is determined according to the last retransmission at time n, that is, W1; and when the initial transmission of the service packet fails at the time n and the resource reselection of the service packet is triggered, re-determining the end time of the STS window, and determining the end time of the STS window according to the last retransmission sending time determined by the resource reselection, wherein the end time is correspondingly determined as an STS window 2, namely the end time is W2.
For a preset resource reselection window, firstly, if reselection is triggered at a time m1, determining that the starting time of the preset resource reselection window is m1+ T1, the ending time of the preset resource reselection window is n + T2, and correspondingly determining that the preset resource reselection window is RW 1; after triggering retransmission at time m2, the starting time of the preset resource reselection window is changed to m2+ T1, which is determined to be RW 2.
When the end time of the STS window is determined to be the time of the third preset delay duration before the retransmission sending time of the last retransmission selected by the service packet resource at the target time, as shown in fig. 3, the start time of the STS window 1 is n + T1, and the end time of the STS window 1 isA time T3 which is a third preset delay time before the retransmission sending time W1 of the last retransmission selected according to the service packet resourcedelayI.e. W1-T3delay(ii) a After the end time of the STS window is determined again, the end time of the STS window 2 is the time T3 of a third preset delay duration before the end time W2 of the STS window is determined according to the last retransmission sending time determined by the resource reselectiondelayI.e. W2-T3delay. It should be noted that, in the resource reselection method according to the embodiment of the present invention, after receiving a service packet sent by an upper layer at a target time, a preset sensing window and a preset resource reselection window are added to perform a resource reselection process, and a sensing window defined in the prior art still needs to be considered, so that there is no conflict with a sensing mechanism of the sensing window in the prior art.
In the method for reselecting resources according to the embodiment of the present invention, optionally, as shown in fig. 4, in step S110, monitoring whether resource collision exists in initial transmission or retransmission of the service packet, where the monitoring includes:
s111, decoding direct link Control Information (SCI), judging whether the initial retransmission of the periodic/non-periodic service conflicts with the initial transmission or the retransmission of the service packet according to the DATA DATA time-frequency resource Information of the initial transmission or the retransmission of the periodic/non-periodic service indicated in the SCI, and obtaining a first monitoring result;
s112, judging whether the feedback information fed back by the hybrid automatic repeat request HARQ has resource conflict with the initial transmission or retransmission resources in the resource selection window corresponding to the service packet at the target moment, and obtaining a second monitoring result;
s113, decoding the random access preamble, judging whether the preamble of the periodic/non-periodic service has resource conflict with the initial transmission or retransmission resource in the resource selection window corresponding to the service packet at the target moment, and obtaining a third monitoring result;
s114, if at least one of the first monitoring result, the second monitoring result, and the third monitoring result is a resource conflict, determining that a resource conflict exists in the initial transmission or the retransmission of the service packet.
According to the monitoring conditions of the steps S111 to S113, if there is a resource conflict according to at least one of the determination results, it is determined that there is a resource conflict between the initial transmission or retransmission of the service packet at the time n and the perceptually used resource in the STS window, and resource reselection is triggered.
On the other hand, if there is no resource conflict in any of the monitoring results according to the monitoring conditions in steps S111 to S113, it is determined that resource reselection is not required to be triggered, and resource conflict monitoring is continued.
By the mode, in the STS window, a sensing mechanism of a sensing window in the prior art is reused, resource conflict monitoring on the feedback information fed back by the HARQ and the resource used by the Preamble is added, and the problem of low reliability of service transmission caused by collision between the initial transmission or retransmission resource of the service at the moment n and the resource in the resource selection window is avoided.
In one implementation manner of the resource reselection method according to the embodiment of the present invention, optionally, as shown in fig. 5, in step S120, selecting a target resource in a preset resource reselection window as a transmission resource for initial transmission or retransmission of the service packet includes:
s121, determining excluded resources needing to be excluded in the preset resource reselection window;
s122, determining a candidate resource set which can be used for initial transmission or retransmission of the service packet in the preset resource reselection window according to the excluded resources;
s123, selecting the target resource for initial transmission or retransmission of the service packet in the candidate resource set.
According to the above, after receiving the service packet sent by the upper layer at time n, it may be determined that the resource selection range of the preset resource reselection window is as follows according to the determination manner description about the preset resource reselection window: [ m + T1, n + T2 ]. In this embodiment of the present invention, in step S120, before determining transmission resources that can be used for initial transmission or retransmission of a service packet in a preset resource reselection window, all time-frequency resources defined according to a start time and an end time of the preset resource reselection window are determined as available resources, on this basis, transmission resources that cannot be used for initial transmission or retransmission of the service packet, that is, resources that need to be excluded are further determined as excluded resources, and time-frequency resources other than the excluded resources determined in the time-frequency resources defined by the start time and the end time of the preset resource reselection window are selected as a candidate resource set for selection of the target resources for initial transmission or retransmission of the service packet.
Optionally, in this embodiment of the present invention, in step S121, the determining excluded resources that need to be excluded in the preset resource reselection window includes:
a first removing step: determining occupied resources as excluded resources in time-frequency resources limited by the starting time and the ending time of the preset resource reselection window according to a resource selection window corresponding to the service packet at a target moment; specifically, the resource information may be searched in the resource selection window according to the time-frequency resource defined by the preset resource reselection window, and a corresponding occupation condition is determined, and if it is determined that the corresponding resource is occupied in the resource selection window, the resource in the corresponding preset resource reselection window belongs to the excluded resource;
a second eliminating step: if the retransmission of the service packet has resource conflict, determining that the corresponding resource of the subframe sent in the preset sensing window is the excluded resource in the time-frequency resources limited by the starting time and the ending time of the preset resource reselection window; if the initial transmission of the service packet has resource conflict, the exclusion of the sub-frame sent in the preset sensing window can not be considered;
a third eliminating step: mapping the random access preamble in the preset sensing window, determining the time-frequency resources defined by the starting time and the ending time of the preset resource reselection window according to the time-frequency position relationship between the random access preamble and the control SA information and the DATA DATA information, wherein the resources occupied by the SA information and the DATA information are the excluded resources, and determining the resources occupied by the feedback information of the DATA information in the time-frequency resources defined by the starting time and the ending time of the preset resource reselection window as the excluded resources if the transmission of the service packet is a unicast service or a multicast service;
specifically, when the preamble perceived in the preset perception window is mapped into the preset resource reselection window, the occupation condition of the SA/DATA is judged according to the time-frequency position relationship between the preamble and the SA/DATA, if the service packet is sent as a unicast/group host, the occupation condition of the feedback information of the DATA information is also judged, and if the service packet is judged to belong to the occupation condition, the corresponding resource is determined as the excluded resource.
A fourth eliminating step: determining, as the excluded resource, a resource that needs to be mapped in the preset resource reselection window or mapped in a multi-reserved resource of the preset resource reselection window, among the time-frequency resources defined by the start time and the end time of the preset resource reselection window, the resource sensed in the preset sensing window.
Specifically, in the fourth excluding step, the resource reserved for multiple times in the preset resource reselection window is the resource mapped to the resource behind the resource selection window according to the period requirement sent by the service package, and it can be understood that the reserved resource may be the resource mapped by multiple reservations (for example, the reserved resource may be reserved for at most 10 times in the prior art).
In this embodiment of the present invention, optionally, the fourth excluding step may include:
a first removal substep: the periodic service in the preset sensing window is mapped to the preset resource reselection window or mapped to a mapping resource in multiple reserved resources of the preset resource reselection window according to a period indicated in control SA information, and if the control SA information is decoded successfully and the Reference Signal Received Power (RSRP) value of DATA DATA information exceeds a preset threshold, the mapping resource is determined to be the excluded resource;
specifically, if the periodic service in the preset sensing window is mapped in the resource reselection window or the reserved resources of the resource reselection window for multiple times according to the period indicated in the SA, the SA is successfully decoded, and the RSRP value of DATA exceeds the threshold, it is determined that the mapping resource is occupied, and the mapping resource belongs to excluded resources;
a second exclusion substep: if the aperiodic service in the preset sensing window is located in the preset resource reselection window, decoding control SA information successfully and decoding control SA information successfully at least once in initial transmission and retransmission of the aperiodic service in a Long-term sensing (LTS) window, and meanwhile, determining that the mapping resource is the excluded resource if a Reference Signal Received Power (RSRP) value of DATA (DATA) information exceeds a preset threshold, and meanwhile, determining that the mapping resource corresponding to a feedback resource of the DATA information is the excluded resource if the aperiodic service is a unicast service or a multicast service;
specifically, if the aperiodic service retransmission in the preset sensing window falls into the resource reselection window, the initial retransmission of the aperiodic service in the LTS window succeeds in one-time SA decoding, and the RSRP of the DATA exceeds the threshold, it is determined that the mapping resource corresponding to the retransmission is occupied, and belongs to an excluded resource, and meanwhile, if the aperiodic service is a unicast service or a multicast service, it is determined that the mapping resource corresponding to the corresponding feedback resource is also occupied, and belongs to an excluded resource.
A third exclusion substep: determining that the occupied time-frequency resources are the excluded resources in the preset resource reselection window in the time-frequency resources limited by the starting time and the ending time of the preset resource reselection window;
a fourth exclusion substep: if the service packet to be sent is a periodic service, selecting resources in the preset resource reselection window, and determining that the mapping resources are excluded resources if a resource conflict exists between the mapping resources mapped to the multiple reserved resources of the preset resource reselection window according to the service period of the service packet, and meanwhile, determining that the mapping resources corresponding to the feedback resources of the service packet are the excluded resources if the periodic service is a unicast service or a multicast service;
specifically, if the service packet sent this time is a periodic service, the resource selected in the preset resource reselection window is mapped to multiple preset resources of the preset resource reselection window according to the service period, and the resource collision is also found, and the mapped resource is considered to be occupied and belongs to the excluded resource; and if the periodic service is a unicast service or a multicast service, determining that the mapping resource corresponding to the feedback resource of the service packet is the excluded resource.
A fifth exclusion substep: and if the service packet to be sent is an aperiodic service, determining that the service packet is excluded when the resources of initial transmission and retransmission of the service packet conflict with the time-frequency resources in the preset resource reselection window.
According to the resource reselection method provided by the embodiment of the invention, the transmission resources which cannot be used for the initial transmission or retransmission of the service packet, that is, the resources which need to be excluded, can be determined by sequentially executing the first exclusion step to the fourth exclusion step. On this basis, a candidate resource set capable of being used for initial transmission or retransmission of the service packet can be determined according to the time-frequency resources defined by the starting time and the ending time of the preset resource reselection window and the determined excluded resources.
In the process of determining the resource elimination in the preset resource reselection window, the transmission characteristics of service packets of periodic services and aperiodic services are considered, and the current 5G New air interface (New Radio, NR) needs to support unicast and multicast services, resource occupation conditions corresponding to different types of service packets are respectively eliminated, and an HARQ feedback mechanism and a preamble access mechanism are introduced to be applicable to the periodic and aperiodic services and support any type of services such as unicast, multicast and broadcast, so that the purposes of effectively solving the burst influence of the services, quickly reducing resource collision and improving the transmission reliability of the service packets are achieved.
Optionally, in one implementation manner of the embodiment of the present invention, in step S122, determining, according to the excluded resource, a candidate resource set that can be used for initial transmission or retransmission of the service packet in the preset resource reselection window includes:
determining whether the ratio of the remaining resources except the excluded resources in the preset resource reselection window to the total time-frequency resources of the preset resource reselection window is greater than a first preset value;
if the ratio is greater than or equal to the first preset value, determining the remaining resources except the excluded resources in a preset resource reselection window as the candidate resource set;
and if the ratio is smaller than the first preset value, increasing the Reference Signal Received Power (RSRP) threshold value in the resource selection process by a second preset value, and re-determining the excluded resources.
Specifically, by adopting the above manner, if it is judged that the ratio of the remaining resources in the preset resource reselection window to the total time-frequency resources of the preset resource reselection window is greater than the first preset value, and if the ratio is 0.2, resource exclusion and over-exclusion are completed, and a candidate resource set is determined; if the calculated ratio is smaller than or equal to the first preset value, the RSRP threshold value in the resource selection process needs to be increased by a second preset value, for example, 3dB, and the above step S121 is executed again.
Optionally, in another implementation manner of the embodiment of the present invention, in step S122, determining, according to the excluded resource, a candidate resource set that can be used for initial transmission or retransmission of the service packet in the preset resource reselection window includes:
if the ratio of the time length of the preset resource reselection window to the time length of the resource selection window corresponding to the service packet at the target moment is greater than or equal to a third preset value, and the ratio of the remaining resources, except the excluded resources, in the preset resource reselection window to the total time-frequency resources of the preset resource reselection window is greater than or equal to a first preset value, determining that the remaining resources, except the excluded resources, in the preset resource reselection window are the candidate resource set;
if the ratio of the time length of the preset resource reselection window to the time length of the resource selection window corresponding to the service packet at the target moment is greater than or equal to a third preset value, and the ratio of the remaining resources except the excluded resources in the preset resource reselection window to the total time-frequency resources of the preset resource reselection window is smaller than the first preset value, increasing the Reference Signal Received Power (RSRP) threshold value in the resource selection process by a second preset value, and re-determining the excluded resources;
and if the ratio of the time length of the preset resource reselection window to the time length of the resource selection window corresponding to the service packet at the target moment is smaller than the third preset value, determining that the remaining resources in the preset resource reselection window except the excluded resources are the candidate resource set.
Specifically, in the above manner, considering the proportional relationship between the preset resource reselection window and the resource selection window, if the ratio of the time length of the preset resource reselection window to the time length of the resource selection window is greater than or equal to a third preset value, such as 0.2, it needs to be further determined whether the ratio of the remaining resources in the preset resource reselection window to the total time-frequency resources of the preset resource reselection window is greater than a first preset value, if so, it is determined that the remaining resources in the preset resource reselection window except the excluded resources are the candidate resource set, and if so, it is necessary to increase the RSRP threshold value in the resource selection process by a second preset value, such as 3dB, and the above step S121 is executed again;
and if the ratio of the time length of the preset resource reselection window to the time length of the resource selection window is smaller than a third preset value, determining the remaining resources in the preset resource reselection window except the excluded resources as the candidate resource set.
In one implementation manner of the embodiment of the present invention, optionally, in step S123, the selecting, from the candidate resource set, the target resource for initial transmission or retransmission of the service packet includes:
and randomly selecting the resource directly in the candidate resource set as the target resource.
In another implementation manner of the embodiment of the present invention, optionally, in step S123, the selecting, from the candidate resource set, the target resource for initial transmission or retransmission of the service packet includes:
if the ratio of the time length of the preset resource reselection window to the time length of the resource selection window corresponding to the service packet at the target moment is greater than or equal to a third preset value, skipping the processes of measuring and smoothing Received energy Strength Indication (RSSI), and randomly selecting a resource as the target resource in the candidate resource set according to a preset time interval limit value for initial transmission and retransmission of the service packet;
if the ratio of the time length of the preset resource reselection window to the time length of the resource selection window corresponding to the service packet at the target moment is smaller than the third preset value, and the resources in the candidate resource set are greater than or equal to the initial transmission or retransmission resources of the service packet at this time, randomly selecting the resources in the candidate resource set as the target resources;
and if the ratio of the time length of the preset resource reselection window to the time length of the resource selection window corresponding to the service packet at the target moment is smaller than the third preset value, and the resources in the candidate resource set are smaller than the initial transmission or retransmission resources of the service packet at this time, giving up the current transmission of the service packet.
Specifically, in the above embodiment, the proportional relationship between the preset resource reselection window and the resource selection window is considered: when the ratio of the length of the preset resource reselection window to the length of the resource selection window is greater than or equal to a third preset value, RSSI measurement and smoothing are not carried out, only a preset time interval limit value of initial transmission and retransmission is needed to be carried out according to a service packet, and resources are randomly selected as the target resources from a candidate resource set determined according to the preset resource reselection window;
and when the ratio of the length of a preset resource reselection window to the length of the resource selection window is smaller than a third preset value and the resources in the candidate resource set are greater than or equal to the initial transmission or retransmission resources of the service packet, randomly selecting the resources in the candidate resource set as the target resources, otherwise, abandoning the current transmission of the service packet.
Optionally, in an embodiment of the resource reselection method, based on the determined target resource, the method further includes:
judging whether the time interval of the initial transmission resource and the time interval of the retransmission resource of the service packet meet a preset time interval limit value or not according to the target resource;
and if the preset time interval limit value is not met, reselecting the target resource in the candidate resource set.
It should be noted that the preset time interval limit value is determined according to the cache capacity limit of the node device, and if it is determined in step S123 of the embodiment of the present invention that the time interval between the initial transmission and the retransmission exceeds the preset time interval limit value in the target resource of the service packet, step S123 needs to be executed again to select the target resource until the initial transmission resource and the retransmission resource meeting the condition are formed.
It should be noted that the first preset value, the second preset value, the third preset value, and the preset time interval limit value may be determined in a high-level configuration or a pre-configuration manner, or may be default parameters of the system. Specifically, the size of the first preset value is considered to ensure that the candidate resource set has randomness when being selected, and continuous resource collision is avoided as a determination condition, the size of the second preset value is considered to reasonably raise a power threshold, so that the remaining selectable resources can be quickly formed, too fast power rise is also avoided as a determination condition, and the size of the third preset value is considered to ensure the randomness of resources in a preset resource reselection window, so that effective candidate resources are provided as a determination condition.
In the embodiment of the present invention, further, the method further includes: if the resource reselection times of the service packet exceeds a preset count value in the preset resource reselection window, discarding the service packet, or randomly selecting the target resource in the preset resource reselection window.
The preset count value may be set by a count value of a resource reselection counter, which may be set by a higher layer configuration, a pre-configuration, or a system default parameter.
By adopting the resource reselection method in the embodiment of the invention, the service models of the 5G NR V2X, such as predictable service packet size, unpredictable service packet of aperiodic service and the like, can be supported, the unicast and multicast services of the 5G NR V2X can be supported, and an HARQ feedback mechanism and a preamble access mechanism are fully considered. The resource reselection method of the embodiment of the invention utilizes the sensing information of the STS window, can reduce the resource collision between the selected resources in the resource selection window and the burst service sensed in the STS window, and improves the system reliability and the frequency spectrum utilization rate.
Another embodiment of the resource reselection method according to the embodiment of the present invention is applied to a second node device, as shown in fig. 6, where the method includes:
s610, receiving initial transmission data of a service packet sent by first node equipment; when the first node sends the service packet, if a preset sensing window after a target moment monitors that resource conflict exists in initial transmission or retransmission of the service packet, resource reselection is triggered, and a target resource in a preset resource reselection window is selected as a transmission resource for initial transmission or retransmission of the service packet;
s620, if the initial transmission data of the service packet is successfully received, the retransmission data of the target service packet is abandoned;
s630, if the initial transmission data of the target service packet is not successfully received, trying to receive retransmission data of the service packet within a time length of a preset time interval limit value after receiving the initial transmission data;
the preset time interval limit value is a time interval which needs to be met between initial transmission and retransmission and is configured or preconfigured by a system.
By adopting the resource reselection method of the embodiment of the invention, the second node equipment which receives the service packet sent by the first node equipment can perform receiving processing on the corresponding resource according to the time-frequency resource indicated in the SA for receiving the service packet. When the first node device sends a service packet, and when a preset sensing window monitors that resource conflict exists in initial transmission or retransmission of the service packet, as shown in fig. 7, resource reselection is triggered, so that if the second node device only receives the initial transmission or partial retransmission of the service packet sent by the first node device, information cannot be received on corresponding resources according to subsequently sent time-frequency resources indicated in an SA receiving the service packet.
Based on that, by adopting the resource reselection method of the embodiment of the present invention, the second node device serving as the receiving end performs the following processing:
if the initial transmission has been successfully received, subsequent retransmission reception processing may not be considered;
and if the initial transmission is not successfully received, trying to receive the retransmission sent after the resource reselection in a preset time interval limit value between the initial transmission and the retransmission, and combining the received initial retransmission information of the same service packet according to information such as time-frequency resources of the initial transmission or other retransmissions indicated in the retransmission.
Therefore, in step S630, after receiving the retransmission data of the service packet within the duration of the preset time interval limit value after receiving the initial transmission data, the method for reselecting resources according to the embodiment of the present invention further includes:
and combining the received initial transmission data and retransmission data corresponding to the target service packet according to the initial transmission or retransmission time-frequency resource information indicated in the retransmission data.
As shown in fig. 8, an embodiment of the present invention further provides a node device, including: a processor 801; and a memory 803 connected to the processor 801 through a bus interface 802, wherein the memory 803 is used for storing programs and data used by the processor 801 in executing operations, and the processor 801 calls and executes the programs and data stored in the memory 803.
The transceiver 804 is connected to the bus interface 802, and is configured to receive and transmit data under the control of the processor 801, and specifically, the processor 801 is configured to read a program in the memory 803, and execute the following processes:
if the service packet sent by the upper layer is received at the target moment, monitoring whether resource conflict exists in initial transmission or retransmission of the service packet or not at a preset sensing window after the target moment;
if the initial transmission or retransmission of the service packet has resource conflict, triggering resource reselection, and selecting a target resource in a preset resource reselection window as a transmission resource for the initial transmission or retransmission of the service packet;
and performing initial transmission or retransmission of the service packet through the transmission resource.
Optionally, the node device, wherein a starting time of the preset resource reselection window is: increasing the time of a first preset delay time duration from the moment of triggering the resource reselection;
the end time of the preset resource reselection window is as follows: increasing the time of a second preset delay time duration from the target time;
and the second preset delay time is longer than the first preset delay time.
Optionally, the node device, wherein a starting time of the preset sensing window is: increasing the time of a first preset delay time duration from the target time;
the end time of the preset sensing window is as follows: retransmission sending time of the last retransmission selected by the service packet resource at the target moment; or,
the end time of the preset sensing window is as follows: and the time of a third preset delay time length is before the retransmission sending time of the last retransmission selected by the service packet resource at the target moment.
Optionally, the node device, wherein the processor 801 is further configured to:
and if the service packet is retransmitted in the preset sensing window, updating the end time of the preset sensing window according to the retransmission sending time of the last retransmission.
Optionally, the node device, wherein the processor 801 is further configured to:
and if the retransmission of the service packet is carried out in the preset sensing window, updating the starting time of the preset resource reselection window according to the triggering resource reselection time of the last retransmission.
Optionally, in the node device, the monitoring, by the processor 801, whether a resource conflict exists in initial transmission or retransmission of the service packet includes:
decoding the control information SCI of the direct link, judging whether the initial retransmission of the periodic/aperiodic service conflicts with the initial transmission or retransmission of the service packet according to the DATA DATA time-frequency resource information of the initial transmission or retransmission of the periodic/aperiodic service indicated in the SCI, and obtaining a first monitoring result;
judging whether the feedback information fed back by the hybrid automatic repeat request HARQ has resource conflict with the initial transmission or retransmission resources in the resource selection window corresponding to the service packet at the target moment, and obtaining a second monitoring result;
decoding a preamble of the random access, judging whether the preamble of the periodic/non-periodic service has resource conflict with the initial transmission or retransmission resource in the resource selection window corresponding to the service packet at the target moment, and obtaining a third monitoring result;
and if at least one of the first monitoring result, the second monitoring result and the third monitoring result is that resource conflict exists, determining that resource conflict exists in initial transmission or retransmission of the service packet.
Optionally, in the node device, the selecting, by the processor 801, a target resource in a preset resource reselection window as a transmission resource for initial transmission or retransmission of the service packet includes:
determining excluded resources needing to be excluded in the preset resource reselection window;
determining a candidate resource set which can be used for initial transmission or retransmission of the service packet in the preset resource reselection window according to the excluded resources;
and selecting the target resource for initial transmission or retransmission of the service packet in the candidate resource set.
Optionally, the node device, wherein the processor 801 determines excluded resources that need to be excluded in the preset resource reselection window, including:
determining occupied resources as excluded resources in time-frequency resources limited by the starting time and the ending time of the preset resource reselection window according to a resource selection window corresponding to the service packet at a target moment;
if the retransmission of the service packet has resource conflict, determining that the corresponding resource of the subframe sent in the preset sensing window is the excluded resource in the time-frequency resources limited by the starting time and the ending time of the preset resource reselection window;
mapping the random access preamble in the preset sensing window, determining the time-frequency resources defined by the starting time and the ending time of the preset resource reselection window according to the time-frequency position relationship between the random access preamble and the control SA information and the DATA DATA information, wherein the resources occupied by the SA information and the DATA information are the excluded resources, and determining the resources occupied by the feedback information of the DATA information in the time-frequency resources defined by the starting time and the ending time of the preset resource reselection window as the excluded resources if the transmission of the service packet is a unicast service or a multicast service;
determining, as the excluded resource, a resource that needs to be mapped in the preset resource reselection window or mapped in a multi-reserved resource of the preset resource reselection window, among the time-frequency resources defined by the start time and the end time of the preset resource reselection window, the resource sensed in the preset sensing window.
Optionally, the node device, where, in determining that, of the time-frequency resources defined by the start time and the end time of the preset resource reselection window, the resource perceived in the preset perception window needs to be mapped in the preset resource reselection window or a mapping resource that needs to be mapped in multiple reserved resources of the preset resource reselection window is the excluded resource, the processor 801 includes:
the periodic service in the preset sensing window is mapped to the preset resource reselection window or mapped to a mapping resource in multiple reserved resources of the preset resource reselection window according to a period indicated in control SA information, and if the control SA information is decoded successfully and the Reference Signal Received Power (RSRP) value of DATA DATA information exceeds a preset threshold, the mapping resource is determined to be the excluded resource;
if the aperiodic service in the preset sensing window is located in the preset resource reselection window, and if the resource retransmitted by the service packet is located in the preset resource reselection window, at least one of initial transmission and retransmission of the aperiodic service in the long-term sensing LTS window is successful in decoding control SA information and successful in decoding the control SA information, and meanwhile, the Reference Signal Received Power (RSRP) value of DATA DATA information exceeds a preset threshold, determining that the mapping resource is the excluded resource, and meanwhile, if the aperiodic service is a unicast service or a multicast service, determining that the mapping resource corresponding to the feedback resource of the DATA information is the excluded resource;
determining that the occupied time-frequency resources are the excluded resources in the preset resource reselection window in the time-frequency resources limited by the starting time and the ending time of the preset resource reselection window;
if the service packet to be sent is a periodic service, selecting resources in the preset resource reselection window, and determining that the mapping resources are excluded resources if a resource conflict exists between the mapping resources mapped to the multiple reserved resources of the preset resource reselection window according to the service period of the service packet, and meanwhile, determining that the mapping resources corresponding to the feedback resources of the service packet are the excluded resources if the periodic service is a unicast service or a multicast service;
and if the service packet to be sent is an aperiodic service, determining that the service packet is excluded when the resources of initial transmission and retransmission of the service packet conflict with the time-frequency resources in the preset resource reselection window.
Optionally, in the node device, the determining, by the processor 801, a candidate resource set that can be used for initial transmission or retransmission of the service packet in the preset resource reselection window according to the excluded resource includes:
determining whether the ratio of the remaining resources except the excluded resources in the preset resource reselection window to the total time-frequency resources of the preset resource reselection window is greater than a first preset value;
if the ratio is greater than or equal to the first preset value, determining the remaining resources except the excluded resources in a preset resource reselection window as the candidate resource set;
and if the ratio is smaller than the first preset value, increasing the Reference Signal Received Power (RSRP) threshold value in the resource selection process by a second preset value, and re-determining the excluded resources.
Optionally, in the node device, the determining, by the processor 801, a candidate resource set that can be used for initial transmission or retransmission of the service packet in the preset resource reselection window according to the excluded resource includes:
if the ratio of the time length of the preset resource reselection window to the time length of the resource selection window corresponding to the service packet at the target moment is greater than or equal to a third preset value, and the ratio of the remaining resources, except the excluded resources, in the preset resource reselection window to the total time-frequency resources of the preset resource reselection window is greater than or equal to a first preset value, determining that the remaining resources, except the excluded resources, in the preset resource reselection window are the candidate resource set;
if the ratio of the time length of the preset resource reselection window to the time length of the resource selection window corresponding to the service packet at the target moment is greater than or equal to a third preset value, and the ratio of the remaining resources except the excluded resources in the preset resource reselection window to the total time-frequency resources of the preset resource reselection window is smaller than the first preset value, increasing the Reference Signal Received Power (RSRP) threshold value in the resource selection process by a second preset value, and re-determining the excluded resources;
and if the ratio of the time length of the preset resource reselection window to the time length of the resource selection window corresponding to the service packet at the target moment is smaller than the third preset value, determining that the remaining resources in the preset resource reselection window except the excluded resources are the candidate resource set.
Optionally, the node device, wherein the selecting, by the processor 801, the target resource for initial transmission or retransmission of the service packet in the candidate resource set includes:
and randomly selecting the resource directly in the candidate resource set as the target resource.
Optionally, the node device, wherein the selecting, by the processor 701, the target resource for initial transmission or retransmission of the service packet in the candidate resource set includes:
if the ratio of the time length of the preset resource reselection window to the time length of the resource selection window corresponding to the service packet at the target moment is greater than or equal to a third preset value, skipping the processes of RSSI measurement and smoothing, and randomly selecting a resource as the target resource in the candidate resource set according to a preset time interval limit value of initial transmission and retransmission of the service packet;
if the ratio of the time length of the preset resource reselection window to the time length of the resource selection window corresponding to the service packet at the target moment is smaller than the third preset value, and the resources in the candidate resource set are greater than or equal to the initial transmission or retransmission resources of the service packet at this time, randomly selecting the resources in the candidate resource set as the target resources;
and if the ratio of the time length of the preset resource reselection window to the time length of the resource selection window corresponding to the service packet at the target moment is smaller than the third preset value, and the resources in the candidate resource set are smaller than the initial transmission or retransmission resources of the service packet at this time, giving up the current transmission of the service packet.
Optionally, the node device, wherein the processor 801 executes the program to further:
judging whether the time interval of the initial transmission resource and the time interval of the retransmission resource of the service packet meet a preset time interval limit value or not according to the target resource;
and if the preset time interval limit value is not met, reselecting the target resource in the candidate resource set.
Optionally, the node device, wherein the processor 801 executes the program to further:
if the resource reselection times of the service packet exceeds a preset count value in the preset resource reselection window, discarding the service packet, or randomly selecting the target resource in the preset resource reselection window.
It should be noted that in FIG. 8, the bus architecture may include any number of interconnected buses and bridges, with one or more processors represented by the processor 801 and various circuits of memory represented by the memory 803 being linked together. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. The bus interface provides an interface. The transceiver 804 may be a number of elements including a transmitter and a receiver that provide a means for communicating with various other apparatus over a transmission medium. For different terminals, the user interface 805 may also be an interface capable of interfacing with a desired device, including but not limited to a keypad, display, speaker, microphone, joystick, etc. The processor 801 is responsible for managing the bus architecture and general processing, and the memory 803 may store data used by the processor 801 in performing operations.
Those skilled in the art will understand that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program includes instructions for executing part or all of the steps of the above methods; and the program may be stored in a readable storage medium, which may be any form of storage medium.
As shown in fig. 9, an embodiment of the present invention further provides a node device, including: a processor 901; and a memory 903 connected to the processor 901 through a bus interface 902, where the memory 903 is used to store programs and data used by the processor 901 during operation, and the processor 901 calls and executes the programs and data stored in the memory 903.
The transceiver 904 is connected to the bus interface 902, and is configured to receive and transmit data under the control of the processor 901, specifically, the processor 901 is configured to read a program in the memory 903, and execute the following processes:
receiving initial transmission data of a service packet sent by first node equipment; when the first node sends the service packet, if a preset sensing window after a target moment monitors that resource conflict exists in initial transmission or retransmission of the service packet, resource reselection is triggered, and a target resource in a preset resource reselection window is selected as a transmission resource for initial transmission or retransmission of the service packet;
if the initial transmission data of the service packet is successfully received, the retransmission data of the target service packet is abandoned;
if the initial transmission data of the target service packet is not successfully received, trying to receive retransmission data of the service packet within the duration of a preset time interval limit value after the initial transmission data is received;
the preset time interval limit value is a time interval which needs to be met between initial transmission and retransmission and is configured or preconfigured by a system.
Optionally, in the node device, after receiving the retransmission data of the service packet within the duration of the preset time interval limit value after receiving the initial transmission data, the processor 901 is further configured to:
and combining the received initial transmission data and retransmission data corresponding to the target service packet according to the initial transmission or retransmission time-frequency resource information indicated in the retransmission data.
It should be noted that in fig. 9, the bus architecture may include any number of interconnected buses and bridges, with one or more processors represented by processor 901 and various circuits of memory represented by memory 903 being linked together. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. The bus interface provides an interface. The transceiver 904 may be a number of elements including a transmitter and a receiver that provide a means for communicating with various other apparatus over a transmission medium. For different terminals, the user interface 905 may also be an interface capable of interfacing with a desired device, including but not limited to a keypad, display, speaker, microphone, joystick, etc. The processor 901 is responsible for managing a bus architecture and general processing, and the memory 903 may store data used by the processor 901 in performing operations.
Those skilled in the art will understand that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program includes instructions for executing part or all of the steps of the above methods; and the program may be stored in a readable storage medium, which may be any form of storage medium.
An embodiment of the present invention further provides a resource reselection apparatus, which is applied to a first node device, where as shown in fig. 10, the apparatus includes:
a monitoring module 1010, configured to monitor whether a resource conflict exists in initial transmission or retransmission of a service packet in a preset sensing window after a target time if the service packet sent by an upper layer is received at the target time;
a reselection module 1020, configured to trigger resource reselection if a resource conflict exists in initial transmission or retransmission of the service packet, and select a target resource in a preset resource reselection window as a transmission resource for initial transmission or retransmission of the service packet;
a sending module 1030, configured to perform initial transmission or retransmission of the service packet through the transmission resource.
The starting time of the preset resource reselection window is as follows: increasing the time of a first preset delay time duration from the moment of triggering the resource reselection;
the end time of the preset resource reselection window is as follows: increasing the time of a second preset delay time duration from the target time;
and the second preset delay time is longer than the first preset delay time.
Optionally, the resource reselection device, wherein a starting time of the preset sensing window is: increasing the time of a first preset delay time duration from the target time;
the end time of the preset sensing window is as follows: retransmission sending time of the last retransmission selected by the service packet resource at the target moment; or,
the end time of the preset sensing window is as follows: and the time of a third preset delay time length is before the retransmission sending time of the last retransmission selected by the service packet resource at the target moment.
Optionally, the resource reselection apparatus further includes:
a first updating module 1040, configured to update the end time of the preset sensing window according to the retransmission sending time of the last retransmission if the service packet is retransmitted in the preset sensing window.
Optionally, the resource reselection apparatus further includes:
a second updating module 1050, configured to update the starting time of the preset resource reselection window according to the resource reselection triggering time of the last retransmission if the service packet is retransmitted in the preset sensing window.
Optionally, the resource reselection device, wherein the monitoring module 1010 monitors whether resource collision exists in initial transmission or retransmission of the service packet, including:
decoding the control information SCI of the direct link, judging whether the initial retransmission of the periodic/aperiodic service conflicts with the initial transmission or retransmission of the service packet according to the DATA DATA time-frequency resource information of the initial transmission or retransmission of the periodic/aperiodic service indicated in the SCI, and obtaining a first monitoring result;
judging whether the feedback information fed back by the hybrid automatic repeat request HARQ has resource conflict with the initial transmission or retransmission resources in the resource selection window corresponding to the service packet at the target moment, and obtaining a second monitoring result;
decoding a preamble of the random access, judging whether the preamble of the periodic/non-periodic service has resource conflict with the initial transmission or retransmission resource in the resource selection window corresponding to the service packet at the target moment, and obtaining a third monitoring result;
and if at least one of the first monitoring result, the second monitoring result and the third monitoring result is that resource conflict exists, determining that resource conflict exists in initial transmission or retransmission of the service packet.
Optionally, the resource reselection apparatus, wherein the reselecting module 1020 selects a target resource in a preset resource reselection window as a transmission resource for initial transmission or retransmission of the service packet, and includes:
determining excluded resources needing to be excluded in the preset resource reselection window;
determining a candidate resource set which can be used for initial transmission or retransmission of the service packet in the preset resource reselection window according to the excluded resources;
and selecting the target resource for initial transmission or retransmission of the service packet in the candidate resource set.
Optionally, the resource reselection apparatus, wherein the reselecting module 1020 determines excluded resources that need to be excluded in the preset resource reselection window, including:
determining occupied resources as excluded resources in time-frequency resources limited by the starting time and the ending time of the preset resource reselection window according to a resource selection window corresponding to the service packet at a target moment;
if the retransmission of the service packet has resource conflict, determining that the corresponding resource of the subframe sent in the preset sensing window is the excluded resource in the time-frequency resources limited by the starting time and the ending time of the preset resource reselection window;
mapping the random access preamble in the preset sensing window, determining the time-frequency resources defined by the starting time and the ending time of the preset resource reselection window according to the time-frequency position relationship between the random access preamble and the control SA information and the DATA DATA information, wherein the resources occupied by the SA information and the DATA information are the excluded resources, and determining the resources occupied by the feedback information of the DATA information in the time-frequency resources defined by the starting time and the ending time of the preset resource reselection window as the excluded resources if the transmission of the service packet is a unicast service or a multicast service;
determining, as the excluded resource, a resource that needs to be mapped in the preset resource reselection window or mapped in a multi-reserved resource of the preset resource reselection window, among the time-frequency resources defined by the start time and the end time of the preset resource reselection window, the resource sensed in the preset sensing window.
Optionally, the resource reselection device, wherein the reselecting module 1020 determines that, among time-frequency resources defined by a start time and an end time of the preset resource reselection window, a resource sensed in the preset sensing window needs to be mapped in the preset resource reselection window or a mapped resource that needs to be mapped in multiple reserved resources of the preset resource reselection window is the excluded resource, and the determining includes:
the periodic service in the preset sensing window is mapped to the preset resource reselection window or mapped to a mapping resource in multiple reserved resources of the preset resource reselection window according to a period indicated in control SA information, and if the control SA information is decoded successfully and the Reference Signal Received Power (RSRP) value of DATA DATA information exceeds a preset threshold, the mapping resource is determined to be the excluded resource;
if the aperiodic service in the preset sensing window is located in the preset resource reselection window, and if the resource retransmitted by the service packet is located in the preset resource reselection window, at least one of initial transmission and retransmission of the aperiodic service in the long-term sensing LTS window is successful in decoding control SA information and successful in decoding the control SA information, and meanwhile, the Reference Signal Received Power (RSRP) value of DATA DATA information exceeds a preset threshold, determining that the mapping resource is the excluded resource, and meanwhile, if the aperiodic service is a unicast service or a multicast service, determining that the mapping resource corresponding to the feedback resource of the DATA information is the excluded resource;
determining that the occupied time-frequency resources are the excluded resources in the preset resource reselection window in the time-frequency resources limited by the starting time and the ending time of the preset resource reselection window;
if the service packet to be sent is a periodic service, selecting resources in the preset resource reselection window, and determining that the mapping resources are excluded resources if a resource conflict exists between the mapping resources mapped to the multiple reserved resources of the preset resource reselection window according to the service period of the service packet, and meanwhile, determining that the mapping resources corresponding to the feedback resources of the service packet are the excluded resources if the periodic service is a unicast service or a multicast service;
and if the service packet to be sent is an aperiodic service, determining that the service packet is excluded when the resources of initial transmission and retransmission of the service packet conflict with the time-frequency resources in the preset resource reselection window.
Optionally, the resource reselection device, wherein the reselecting module 1020 determines, according to the excluded resource, a candidate resource set that can be used for initial transmission or retransmission of the service packet in the preset resource reselection window, including:
determining whether the ratio of the remaining resources except the excluded resources in the preset resource reselection window to the total time-frequency resources of the preset resource reselection window is greater than a first preset value;
if the ratio is greater than or equal to the first preset value, determining the remaining resources except the excluded resources in a preset resource reselection window as the candidate resource set;
and if the ratio is smaller than the first preset value, increasing the Reference Signal Received Power (RSRP) threshold value in the resource selection process by a second preset value, and re-determining the excluded resources.
Optionally, the resource reselection device, wherein the reselecting module 1020 determines, according to the excluded resource, a candidate resource set that can be used for initial transmission or retransmission of the service packet in the preset resource reselection window, including:
if the ratio of the time length of the preset resource reselection window to the time length of the resource selection window corresponding to the service packet at the target moment is greater than or equal to a third preset value, and the ratio of the remaining resources, except the excluded resources, in the preset resource reselection window to the total time-frequency resources of the preset resource reselection window is greater than or equal to a first preset value, determining that the remaining resources, except the excluded resources, in the preset resource reselection window are the candidate resource set;
if the ratio of the time length of the preset resource reselection window to the time length of the resource selection window corresponding to the service packet at the target moment is greater than or equal to a third preset value, and the ratio of the remaining resources except the excluded resources in the preset resource reselection window to the total time-frequency resources of the preset resource reselection window is smaller than the first preset value, increasing the Reference Signal Received Power (RSRP) threshold value in the resource selection process by a second preset value, and re-determining the excluded resources;
and if the ratio of the time length of the preset resource reselection window to the time length of the resource selection window corresponding to the service packet at the target moment is smaller than the third preset value, determining that the remaining resources in the preset resource reselection window except the excluded resources are the candidate resource set.
Optionally, the resource reselection apparatus, wherein the reselecting module 1020 selects the target resource for initial transmission or retransmission of the service packet in the candidate resource set, including:
and randomly selecting the resource directly in the candidate resource set as the target resource.
Optionally, the resource reselection method, wherein the reselecting module 1020 selects the target resource for initial transmission or retransmission of the service packet in the candidate resource set, includes:
if the ratio of the time length of the preset resource reselection window to the time length of the resource selection window corresponding to the service packet at the target moment is greater than or equal to a third preset value, skipping the processes of RSSI measurement and smoothing, and randomly selecting a resource as the target resource in the candidate resource set according to a preset time interval limit value of initial transmission and retransmission of the service packet;
if the ratio of the time length of the preset resource reselection window to the time length of the resource selection window corresponding to the service packet at the target moment is smaller than the third preset value, and the resources in the candidate resource set are greater than or equal to the initial transmission or retransmission resources of the service packet at this time, randomly selecting the resources in the candidate resource set as the target resources;
and if the ratio of the time length of the preset resource reselection window to the time length of the resource selection window corresponding to the service packet at the target moment is smaller than the third preset value, and the resources in the candidate resource set are smaller than the initial transmission or retransmission resources of the service packet at this time, giving up the current transmission of the service packet.
Optionally, the resource reselection apparatus, wherein the reselection module 1020 is further configured to:
judging whether the time interval of the initial transmission resource and the time interval of the retransmission resource of the service packet meet a preset time interval limit value or not according to the target resource;
and if the preset time interval limit value is not met, reselecting the target resource in the candidate resource set.
Optionally, the resource reselection apparatus, wherein the reselection module 1020 is further configured to:
if the resource reselection times of the service packet exceeds a preset count value in the preset resource reselection window, discarding the service packet, or randomly selecting the target resource in the preset resource reselection window.
An embodiment of the present invention further provides a resource reselection apparatus, which is applied to a second node device, and as shown in fig. 11, the apparatus includes:
a receiving module 1110, configured to receive initial transmission data of a service packet sent by a first node device; when the first node sends the service packet, if a preset sensing window after a target moment monitors that resource conflict exists in initial transmission or retransmission of the service packet, resource reselection is triggered, and a target resource in a preset resource reselection window is selected as a transmission resource for initial transmission or retransmission of the service packet;
a first processing module 1120, configured to, if the initial transmission data of the service packet is successfully received, abandon retransmission data reception of the target service packet;
a second processing module 1130, configured to, if the initial transmission data of the target service packet is not successfully received, attempt to receive retransmission data of the service packet within a duration of a preset time interval limit value after receiving the initial transmission data;
the preset time interval limit value is a time interval which needs to be met between initial transmission and retransmission and is configured or preconfigured by a system.
Optionally, in the resource reselection device, after the second processing module 1130 receives the retransmission data of the service packet within the duration of the preset time interval limit value after receiving the initial transmission data, the second processing module is further configured to:
and combining the received initial transmission data and retransmission data corresponding to the target service packet according to the initial transmission or retransmission time-frequency resource information indicated in the retransmission data.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when executed by a processor, the computer program implements each process of each embodiment of the resource reselection method, and can achieve the same technical effect, and is not described herein again to avoid repetition. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.
While the preferred embodiments of the present invention have been described, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention.