A kind of method and apparatus of resource contention
Technical field
The present invention relates to field of communication technology more particularly to a kind of method and apparatus of resource contention.
Background technique
In traditional cellular telecommunication art, the data communication process between two terminals is as shown in Figure 1, between two terminals
The business such as voice-and-data interacted by respectively resident base station (ordinary base station or evolved base station) and core net.
Device-to-device (Device-to-Device, D2D) communication, i.e. terminal direct connection technology, refer to neighbouring terminal
(UE) it can be carried out data transmission in short range by direct connected link, not need central node (such as base station) forwarding, such as
Shown in Fig. 2.
D2D communication has the advantage that
1, terminal carrying out direct communication in close range mode can realize higher message transmission rate, lower time delay and lower function
Consumption;
2, it using the short distance feature of communication terminal widely distributed in network and D2D communication link, can efficiently use
Frequency spectrum resource;
3, the local data that the direct communication mode of D2D can adapt to such as wireless end-to-end (P2P) business shares demand,
The data service for having flexible adaptation ability is provided;
4, D2D direct communication can utilize substantial amounts in network and widely distributed communication terminal is to expand covering for network
Lid range.
The application scenarios of D2D mainly have following four, are distributed as shown in Fig. 3 a, Fig. 3 b, Fig. 3 c and Fig. 3 d, each scene can
Occur to combine.UE1 and UE2 in D2D communication can be located in network service range, be also possible to be located at network coverage
Except, UE1 and UE2 can sender and recipients each other.In the scene shown in Fig. 3 a, UE1 and UE2 are in the network coverage
Except range;In the scene shown in Fig. 3 b, UE1 is within network coverage, and UE2 is except network coverage;Fig. 3 c
Shown, UE1 and UE2 are within the coverage area of same base station;Shown in Fig. 3 d, UE1 and UE2 are located at the coverage area of different base station
Within.
In D2D communication, other than the One-to-one communication mode between user, typical application scenarios further include D2D
Group or broadcast communication, the scene can be used for fire-fighting, rescue and anti-terrorism in public safety applications etc..
The existing Carrier Sense Multiple Access with Collision based on WiFi system
In Avoidance (CSMA/CA) mode, each data are required to competitive resource before sending, once competition will be held to resource
Supervention send data packet, until data packet is sent completely.The expense of competitive resource occupancy is too big every time, and it is small not to be suitable for VoIP etc.
The resource contention of data volume business, and when number of users is more, it will lead to conflict aggravation, system performance caused to dislike
Change.Also, in asynchronous communication means, receive UE and need to be constantly in reception state, to know whether business, this will
Lead to the increase of UE power consumption.
Summary of the invention
The present invention provides a kind of method and apparatus of resource contention, to realize the resource contention of small data quantity business, subtracts
Few occupied expense of resource contention, reduces power consumption.
Specific technical solution provided in an embodiment of the present invention is as follows:
In a first aspect, providing a kind of resource competition method, comprising:
It determines that continuous resource competes the frequency of failure, the frequency of failure and lead code is competed according to preset continuous resource
Corresponding relationship between the number of preamble send opportunity obtains corresponding with the continuous resource competition frequency of failure determined
Preamble send opportunity number;
According to the number of the preamble send opportunity of acquisition, determine in the preamble send opportunity of competition region
The preamble send opportunity of transmission state and the preamble send opportunity of non-sent state;
Preamble is sent in the preamble send opportunity of the transmission state, and in non-sent state
Whether have other UEs send preamble, if in any one non-sent state if being monitored in preamble send opportunity
Listened to other UE in preamble send opportunity and sent preamble, then resource contention fails, otherwise, resource contention at
Function.
Preferably, corresponding with the increase of the continuous resource competition frequency of failure in the corresponding relationship
The number of preamble send opportunity increases accordingly;
The corresponding preamble send opportunity of maximum value of the competition frequency of failure of continuous resource described in the corresponding relationship
Number, the sum for the preamble send opportunity for including for competition region.
Preferably, the number of the preamble send opportunity corresponding with the continuous resource competition frequency of failure of acquisition is
The number of the preamble send opportunity of state is sent in the preamble send opportunity of the competition region.
Preferably, after the resource contention failure, the method also includes:
Using the continuous resource competition frequency of failure and the resulting calculated result of setting value summation, the continuous money is updated
Source competes the frequency of failure;
After the resource contention success, the method also includes:
The continuous resource competition frequency of failure is updated to preset initial value.
Preferably, the preamble send opportunity includes transmitting portion and processing part;
If the preamble send opportunity is in transmission state,
For the transmitting portion for sending lead code, the processing unit is divided into the conversion between transmission state and reception state
Protection interval;
If the preamble send opportunity is in non-sent state,
The transmitting portion is for receiving lead code, and the processing part is for judging whether before transmitting portion receives
Leading code, and the protection interval for being converted between reception state and transmission state.
Preferably, the preamble send opportunity is made of integer OFDM symbol.
Preferably, preamble is sent in the preamble send opportunity of the transmission state, and in non-sent shape
Whether monitor in the preamble send opportunity of state has other UE to send preamble, comprising:
Preamble is sent by the subchannel of competition region, in the preamble send opportunity of the transmission state,
And monitor whether there are other UE in the subchannel by competition region, the preamble send opportunity in non-sent state
Send preamble.
It is further preferable that after resource contention success, the method also includes:
According to the corresponding relationship between the subchannel in preset competition region and data transmission region sub-channels, determine
The successful corresponding subchannel in data transmission region of the subchannel in the competition region of resource contention.
Second aspect provides a kind of user equipment (UE), comprising:
Acquiring unit competes the frequency of failure according to preset continuous resource for determining that continuous resource competes the frequency of failure
Corresponding relationship between the number of lead code preamble send opportunity obtains and competes failure with the continuous resource determined
The number of the corresponding preamble send opportunity of number;
Determination unit, the number of the preamble send opportunity for being obtained according to the acquiring unit, determines competing
The preamble send opportunity for the state that sends and the preamble of non-sent state are striven in the preamble send opportunity in region
Send opportunity;
Competitive unit, for sending preamble in the preamble send opportunity of the transmission state, and non-
Whether have other UEs send preamble, if in any one non-sent shape if being monitored in the preamble send opportunity of transmission state
It having listened to other UE in the preamble send opportunity of state and has sent preamble, then resource contention fails, otherwise, resource contention
Success.
Preferably, corresponding with the increase of the continuous resource competition frequency of failure in the corresponding relationship
The number of preamble send opportunity increases accordingly;
The corresponding preamble send opportunity of maximum value of the competition frequency of failure of continuous resource described in the corresponding relationship
Number, the sum for the preamble send opportunity for including for competition region.
Preferably, the preamble corresponding with the continuous resource competition frequency of failure that the acquiring unit obtains is sent
The number of chance is that the number of the preamble send opportunity of state is sent in the preamble send opportunity of the competition region.
Preferably, further include updating unit, be used for:
After the resource contention failure, using the continuous resource competition frequency of failure and the resulting calculating of setting value summation
As a result, updating the continuous resource competition frequency of failure;
After the resource contention success, the continuous resource competition frequency of failure is updated to preset initial value.
Preferably, the preamble send opportunity includes transmitting portion and processing part;
If the preamble send opportunity is in transmission state,
For the transmitting portion for sending lead code, the processing unit is divided into the conversion between transmission state and reception state
Protection interval;
If the preamble send opportunity is in non-sent state,
The transmitting portion is for receiving lead code, and the processing part is for judging whether before transmitting portion receives
Leading code, and the protection interval for being converted between reception state and transmission state.
Preferably, the preamble send opportunity is made of integer OFDM symbol.
Preferably, the competitive unit is specifically used for:
Preamble is sent by the subchannel of competition region, in the preamble send opportunity of the transmission state,
And monitor whether there are other UE in the subchannel by competition region, the preamble send opportunity in non-sent state
Send preamble.
It is further preferable that the competitive unit is also used to:
After resource contention success, according between the subchannel in preset competition region and data transmission region sub-channels
Corresponding relationship, determine subchannel of the resource contention successfully in the competition region corresponding sub- letter in data transmission region
Road.
Based on the above-mentioned technical proposal, in the embodiment of the present invention, UE according to preset continuous resource compete the frequency of failure with
Corresponding relationship between the number of preamble send opportunity obtains the corresponding preamble hair of the continuous resource competition frequency of failure
The number for sending chance determines the preamble send opportunity of competition region according to the number of the preamble send opportunity of acquisition
The preamble send opportunity of middle transmission state and the preamble send opportunity of non-sent state, in the state of transmission
Preamble is sent in preamble send opportunity, and monitors and whether have in the preamble send opportunity of non-sent state
Other UE send preamble, if having listened to other UE hairs in the preamble send opportunity of any one non-sent state
Sending preamble, then resource contention fails, otherwise, resource contention success.So that UE can send state with self adaptive control
The number of preamble send opportunity passes through simple energy measuring or the method competitive resource of sequence coherent detection, the inspection of UE
Survey complexity is lower, and access probability is higher, when controlling access by controlling the number of preamble send opportunity of transmission state
Prolong, and need to only carry out resource contention in competition region, reduce the occupied expense of resource contention, reduce power consumption, fits
Resource contention for small data quantity business.
Detailed description of the invention
Fig. 1 is existing cellular communication schematic diagram;
Fig. 2 is existing D2D communication scheme;
Fig. 3 a is existing D2D communications applications schematic diagram of a scenario;
Fig. 3 b is existing another D2D communications applications schematic diagram of a scenario;
Fig. 3 c is existing another D2D communications applications schematic diagram of a scenario;
Fig. 3 d is existing another D2D communications applications schematic diagram of a scenario;
Fig. 4 is D2D communication resource spatial structure schematic diagram in the embodiment of the present invention;
Fig. 5 is the process schematic of UE competitive resource in D2D communication in the embodiment of the present invention;
Fig. 6 is that the relationship for preamble number for continuously competing the frequency of failure in the embodiment of the present invention and sending state is illustrated
Figure;
Fig. 7 is resource contention schematic diagram in the embodiment of the present invention;
Fig. 8 is preamble send opportunity structural schematic diagram in the embodiment of the present invention;
Fig. 9 is the subchannel correspondence diagram of competition region and data transmission region in the embodiment of the present invention;
Figure 10 is UE structural schematic diagram in the embodiment of the present invention;
Figure 11 is another UE structural schematic diagram in the embodiment of the present invention.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention make into
It is described in detail to one step, it is clear that described embodiments are only a part of the embodiments of the present invention, rather than whole implementation
Example.Based on the embodiments of the present invention, obtained by those of ordinary skill in the art without making creative efforts
All other embodiment, shall fall within the protection scope of the present invention.
It include competition region and data transmission region in time domain, as shown in figure 4, competition region in D2D communication resource pond
Repeat with data transmission region according to some cycles.Wherein, competition region is used for the resource of UE competition data transmission region.
In the embodiment of the present invention, lead code (preamble) send opportunity is that competition region is divided according to time-domain resource
Basic unit.
In the embodiment of the present invention, as shown in figure 5, detailed process is as follows for competitive resource between UE in D2D communication:
Step 501:UE determine continuous resource compete the frequency of failure, according to preset continuous resource compete the frequency of failure with
Corresponding relationship between the number of preamble send opportunity obtains corresponding with the continuous resource competition frequency of failure determined
The number of preamble send opportunity.
Wherein, the continuous resource competition frequency of failure is defined as the number that UE continuously participates in resource contention and competes failure,
Once the success of UE resource contention, then the continuous resource competition frequency of failure is set to initial value, such as zero.
Preferably, with the increase of the continuous resource competition frequency of failure in the corresponding relationship, corresponding preamble is sent
The number of chance increases accordingly, with improve UE competition to resource probability.
Preferably, in the corresponding relationship continuous resource competition frequency of failure the corresponding preamble send opportunity of maximum value
Number, the sum for the preamble send opportunity for including for competition region.
Wherein, the maximum value of the continuous resource competition frequency of failure is according to the maximum access delay of UE and the week of competition region
Phase determines, can also rule of thumb preset.
For example, the maximum delay of VoIP business is 200 milliseconds (ms), the period of competition is 40ms, then UE needs
Resource is had to compete within 200/40=5 times.For from this angle, maximum value can be 5.Certainly it is designed in system
When in order to reduce the time delay of access, maximum value is less than a number in 5, such as can be 3.
In specific implementation, as shown in fig. 6, UE when participating in resource contention for the first time, is in transmission state in competition region
The number of preamble send opportunity is initial value N1.After competition failure, in transmission state in competition region
The number of preamble send opportunity is N2, N2>N1.UE continuous resource competes the every increase of the frequency of failure once, then in competition region
The number of preamble send opportunity in the state of transmission increases accordingly.UE i-th participates in resource contention, and preceding (i-1) is secondary
When resource contention fails, the number of the preamble send opportunity in competition region in transmission state is Ni;UE (i+
1) secondary participation resource contention, and preceding i resource contention fail when, in competition region in transmission state preamble send out
The number for sending chance is Ni+1, and Ni+1>Ni。
Preferably, the UE continuous resource competition frequency of failure is every increases once, in transmission state in competition region
The number of preamble send opportunity increases fixed value (such as the positive integers such as 1,2).
When the UE continuous resource competition frequency of failure reaches the maximum value of setting, each preamble is sent in competition region
Chance is in transmission state, can not compete resource for a long time to avoid UE, so that a certain UE in D2D communication can not be sent out always
Send data.
In the embodiment of the present invention, define UE i-th participate in resource contention and before continuous (i-1) secondary equal resource contention
Failure, if this resource contention of UE fails, the number that UE participates in resource contention increases by 1, and continuous resource competes the frequency of failure
Add 1;If the success of this resource contention of UE, the UE number for participating in resource contention is reset, i.e. the UE is competing in participation next time resource
When striving, the number for participating in resource contention is 1 (the 1st participation resource contention), and the continuous resource competition frequency of failure is zero.
Step 502: according to the number of the preamble send opportunity of acquisition, determining the preamble transmitter of competition region
The preamble send opportunity of state and the preamble send opportunity of non-sent state are sent in meeting.
Preferably, the number of the preamble send opportunity obtained in step 501 is that the preamble of competition region is sent
The number of the preamble send opportunity of state is sent in chance.
It, can also be using the number of the preamble send opportunity obtained in step 501 as competition region in practical application
Preamble send opportunity in non-sent state preamble send opportunity number, at this point, in corresponding relationship with even
The number of the increase of the continuous resource contention frequency of failure, the preamble send opportunity of corresponding preset non-sent state reduces,
When the continuous resource competition frequency of failure in corresponding relationship reaches maximum value, the preamble hair of corresponding preset non-sent state
The number for sending chance is zero.
Specifically, the preamble obtained with step 501 is selected to send from the preamble send opportunity of competition region
The preamble send opportunity of selection is determined as transmission state by the corresponding preamble send opportunity of the number of chance
Preamble send opportunity will remove the preamble transmitter of the transmission state in the preamble send opportunity of the competition region
Send opportunity except meeting is determined as the preamble send opportunity of non-sent state.
In practical application, according to the number of the preamble send opportunity of acquisition, the preamble hair of competition region is determined
Send the mode of the preamble send opportunity of preamble send opportunity and non-sent state that state is sent in chance not
It is limited to this, acceptable there are many implementation, protection scope of the present invention is not limited thereto.
For example, calculated according to the number of the preamble send opportunity of acquisition by preset computation rule, according to
The calculated result determines the number that the preamble send opportunity of state is sent in one group of preamble send opportunity.
Wherein, the preamble send opportunity for sending state is on state, to send lead code;Non-sent state
Send opportunity is in OFF state, the lead code sent to the silent or other UE of monitoring.
Step 503: sending preamble in the preamble send opportunity of the state of transmission, and in non-sent state
Whether have other UEs send preamble, if in any one non-sent state if being monitored in preamble send opportunity
Listened to other UE in preamble send opportunity and sent preamble, then resource contention fails, otherwise, resource contention at
Function.
Preferably, each preamble send opportunity in the preamble send opportunity of competition region is successively handled:
If the preamble send opportunity is transmission state, sent in the preamble send opportunity
preamble;
Whether if the preamble send opportunity is non-sent state, monitoring in the preamble send opportunity has
Other UE send preamble, if having listened to other UE sends preamble, otherwise resource contention failure, continues with down
One preamble send opportunity;
Until not hearing other UE in the preamble send opportunity of each non-sent state sends preamble
When, resource contention success.
Preferably, after resource contention failure, using the continuous resource competition frequency of failure and setting value (such as the positive integers such as 1)
It sums resulting calculated result, updates continuous resource and compete the frequency of failure;
After resource contention success, the continuous resource competition frequency of failure is updated to preset initial value.
In specific implementation, the number for the preamble send opportunity that UE is obtained according to step 501, it is assumed that it is indicated with N, as
The number of the preamble send opportunity of transmission state in the preamble send opportunity of competition region, the competition region
The number for the total preamble send opportunity for including in preamble send opportunity indicates that then M is more than or equal to N with M.
In the specific implementation, selected in the preamble send opportunity of competition region by randomization selection mode N number of
The preamble send opportunity chosen is designated as ON by preamble send opportunity, sends preamble to UE;It is not selected
Preamble send opportunity is designated as OFF, and UE is in silent or listening state in the not selected preamble send opportunity.Then
The combined number of ON/OFF may be expressed as: in preamble send opportunity in competition region
For example, as shown in fig. 7, UE1 is in competition region according to a randomly selected preamble send opportunity ON/
The mode of OFF combination sends preamble, to the resource in competition data transmission region.UE1 is sent in the preamble of ON
Preamble is sent in chance, UE1 is in silent status in the preamble send opportunity of OFF, current for monitoring
Whether there are other UE to send preamble in the corresponding subchannel of preamble send opportunity.
If it find that other UE (such as UE2) send preamble in current preamble send opportunity, then UE1 stops
Preamble is sent in subsequent preamble send opportunity in current competitive region, i.e. UE1 resource contention fails, then UE1
When participating in resource contention next time, the number for participating in resource contention resets to initial value 1.
It is random according to this if finding no other UE sends preamble in current preamble send opportunity
The mode of the ON/OFF combination of selection continues next preamble send opportunity, until at the last one preamble send opportunity
Reason finishes, that is, can determine the success of UE1 resource contention.
In one specific embodiment, the preamble send opportunity for defining competition region includes 8 preamble transmitters
Meeting, and the maximum times for defining participation resource contention are 3, i.e. and the number of continuous resource competition failure is up to 2, is initially in
The number of the preamble send opportunity of transmission state is 4, and when each resource contention fails, the preamble for sending state is sent
The number of chance increases by 2.
For UE when participating in resource contention for the first time, the number of the preamble send opportunity in the state of transmission is 4, wherein havingThe mode of a ON/OFF combination, UE randomly choose one kind in 70 ON/OFF combinations, and according to selection
ON/OFF combination carry out resource contention.
UE is after the failure of resource contention for the first time, when participating in resource contention for the second time, the preamble hair in the state of transmission
The number for sending chance is 6, wherein havingThe mode of a ON/OFF combination, UE in 28 ON/OFF combinations with
Machine selects one kind, and carries out resource contention according to the ON/OFF combination of selection.
UE is after second of resource contention failure, when third time participates in resource contention, the preamble in the state of transmission
The number of send opportunity is 8, i.e. each preamble send opportunity in the preamble send opportunity of competition region is in
Transmission state, at this time only a kind of ON/OFF combination.
Preferably, a preamble send opportunity includes transmitting portion and processing part.
Specifically, if preamble send opportunity is in transmission state, transmitting portion handles part for sending lead code
For the protection interval for sending the conversion between state and reception state;
If preamble send opportunity is in non-sent state, transmitting portion is used for for receiving lead code, processing part
Judge whether to receive the protection interval converted between lead code and reception state and transmission state in transmitting portion.
Wherein, processing part is also referred to as protection interval (GP).In specific implementation, as shown in figure 8, a preamble is sent
Transmitting portion in chance is located at before protection interval;It is protected alternatively, the transmitting portion in a preamble send opportunity is located at
After shield interval;Alternatively, protection interval is made of two sub- protection intervals, the transmitting portion in a preamble send opportunity
Between two sub- protection intervals.
Preferably, preamble send opportunity is made of integer orthogonal frequency division multiplexing (OFDM) symbol.
For example, it is assumed that the length of GP is 1 OFDM symbol, then the length of a preamble send opportunity is 2 OFDM
Symbol, one group of preamble send opportunity can be by the way of the DMRS sequence being similar in PUSCH.
In another example, it is assumed that the length of a preamble send opportunity is 1 OFDM symbol, and the length of GP is half of OFDM
Symbol, then one group of preamble send opportunity can be fixed as even subcarriers or be fixed as surprise by the way of being similar to SRS
Number subcarrier.
Preferably, competition region is divided into multiple subchannels, and data transmission region is also divided into multiple subchannels, and competing
The subchannel for striving region sub-information and data transmission region corresponds, as shown in Figure 9.At this point, every height in competition region
Channel corresponds to one group of preamble send opportunity.
This is preferably carried out in mode, by the subchannel of competition region, in the preamble transmitter of the state of transmission
Can in send preamble, and the subchannel by competition region, supervise in the preamble send opportunity in non-sent state
Whether listen has other UE to send preamble.
If the subchannel by competition region listens to it in the preamble send opportunity of any non-sent state
The preamble that its UE is sent, then resource contention fails;If by the subchannel of competition region in each non-sent state
The preamble that other UE are sent is not heard in preamble send opportunity, then resource contention success.
This is preferably carried out in mode, after resource contention success, is passed according to the subchannel of preset competition region and data
Corresponding relationship between defeated region sub-channels determines the subchannel of the successful competition region of resource contention in data transmission range
Corresponding subchannel in domain.
This is preferably carried out in mode, competition region is divided into multiple subchannels, the resource contention in each subchannel is only
It is vertical to carry out, narrow band transmission may be implemented.
For example, as shown in figure 9, UE1 determines that continuous resource competes the frequency of failure in competition region, according to preset continuous
Corresponding relationship between the resource contention frequency of failure and the number of lead code preamble send opportunity obtains and the determining company
The number of the continuous corresponding preamble send opportunity of the resource contention frequency of failure.Assuming that son of the UE1 currently in competition region is believed
Resource contention is participated in road 1, according to the number of the preamble send opportunity of acquisition, determines the subchannel 1 of competition region
The preamble send opportunity of state and the preamble send opportunity of non-sent state are sent in preamble send opportunity;
Preamble is sent by the subchannel 1 of competition region, in the preamble send opportunity of the state of transmission, and passes through competition
The subchannel 1 in region monitors whether have other UE transmission preamble in the preamble send opportunity of non-sent state.
Based on identical inventive concept, a kind of UE is additionally provided in the embodiment of the present invention, the specific implementation of the UE can be found in
The description of above method part, overlaps will not be repeated, and as shown in Figure 10, which specifically includes that
Acquiring unit 1001 competes according to preset continuous resource and fails for determining that continuous resource competes the frequency of failure
Corresponding relationship between number and the number of lead code preamble send opportunity is obtained and is competed with the continuous resource determined
The number of the corresponding preamble send opportunity of the frequency of failure;
Determination unit 1002, the number of the preamble send opportunity for being obtained according to acquiring unit 1001, really
Determine the preamble send opportunity that state is sent in the preamble send opportunity of competition region and non-sent state
Preamble send opportunity;
Competitive unit 1003, for sending preamble in the preamble send opportunity of the transmission state, and
Whether have other UEs send preamble, if in any one non-hair if being monitored in the preamble send opportunity of non-sent state
It sending and has listened to other UE transmission preamble in the preamble send opportunity of state, then resource contention fails, otherwise, resource
It competes successfully.
Preferably, corresponding with the increase of the continuous resource competition frequency of failure in the corresponding relationship
The number of preamble send opportunity increases accordingly;
The number of the corresponding preamble send opportunity of maximum value of the continuous resource competition frequency of failure in the corresponding relationship,
For the sum for the preamble send opportunity that competition region includes.
Preferentially, the preamble send opportunity corresponding with the continuous resource competition frequency of failure that acquiring unit obtains
Number be the competition region preamble send opportunity in send state preamble send opportunity number.
Determination unit is specifically used for:
It is selected from one group of preamble send opportunity corresponding with the number of the preamble send opportunity obtained
The preamble send opportunity of selection is determined as the preamble transmitter of transmission state by preamble send opportunity
Meeting, by the send opportunity in one group of preamble send opportunity in addition to the preamble send opportunity of the transmission state
It is determined as the preamble send opportunity of non-sent state.
Preferably, competitive unit is specifically used for:
Successively handle each preamble send opportunity in one group of preamble send opportunity:
If the preamble send opportunity is transmission state, sent in the preamble send opportunity
preamble;
Whether if the preamble send opportunity is non-sent state, monitoring in the preamble send opportunity has
Other UE send preamble, if having listened to other UE sends preamble, otherwise resource contention failure, continues with down
One preamble send opportunity;
Until not hearing other UE in the preamble send opportunity of each non-sent state sends preamble
When, resource contention success.
Preferably, further include updating unit 1004, be used for:
After the resource contention failure, using the continuous resource competition frequency of failure and the resulting calculating of setting value summation
As a result, updating the continuous resource competition frequency of failure;
After the resource contention success, the continuous resource competition frequency of failure is updated to preset initial value.
Preferably, preamble send opportunity includes transmitting portion and processing part;
If the preamble send opportunity is in transmission state,
For the transmitting portion for sending lead code, the processing unit is divided into the conversion between transmission state and reception state
Protection interval;
If the preamble send opportunity is in non-sent state,
The transmitting portion is for receiving lead code, and the processing part is for judging whether before transmitting portion receives
Leading code, and the protection interval for being converted between reception state and transmission state.
Preferably, the preamble send opportunity is made of integer OFDM symbol.
Preferably, the competitive unit 1003 is specifically used for:
It is sent by the subchannel of competition region, in the preamble send opportunity of the transmission state
It is supervised in preamble and the subchannel by competition region, the preamble send opportunity in non-sent state
Whether listen has other UE to send preamble.
This is preferably carried out in mode, and competitive unit 1003 is also used to:
After resource contention success, according between the subchannel in preset competition region and data transmission region sub-channels
Corresponding relationship, determine subchannel of the resource contention successfully in the competition region corresponding sub- letter in data transmission region
Road.
Based on the same inventive concept, another UE is additionally provided in the embodiment of the present invention, is used in D2D communication, the UE's
Specific implementation can be found in the description of above method part, and overlaps will not be repeated, and as shown in figure 11, which specifically includes that
Memory 1101, for saving the preset continuous resource competition frequency of failure and lead code preamble send opportunity
Number between corresponding relationship and the UE continuous resource compete the frequency of failure;
Processor 1102 competes the frequency of failure for obtaining continuous resource from memory, is saved according to memory pre-
If continuous resource competition the frequency of failure and the number of lead code preamble send opportunity between corresponding relationship, obtain and obtain
The number of the corresponding preamble send opportunity of the continuous resource competition frequency of failure taken;According to acquisition
The number of preamble send opportunity determines that the preamble that state is sent in the preamble send opportunity of competition region is sent
The preamble send opportunity of chance and non-sent state;
Transceiver 1103, for sending preamble, Yi Ji in the preamble send opportunity of the transmission state
Whether monitor in the preamble send opportunity of non-sent state has other UE to send preamble;If non-sent at any one
Other UE have been listened in the preamble send opportunity of state and have sent preamble, and processor 1102 determines that resource contention loses
It loses, otherwise, processor 1102 determines resource contention success.
Preferably, in the corresponding relationship saved in memory 1101, with the continuous resource competition frequency of failure
Increase, the number of corresponding preamble send opportunity increases accordingly;The maximum value that continuous resource competes the frequency of failure is corresponding
The number of preamble send opportunity, for the sum for the preamble send opportunity that competition region includes.
Preferably, the preamble transmitter corresponding with the continuous resource competition frequency of failure that processor 1102 obtains
The number of meeting is that the number of the preamble send opportunity of state is sent in the preamble send opportunity of the competition region.
Specifically, described in processor 1102 is selected and obtained from the preamble send opportunity of competition region
The corresponding preamble send opportunity of the number of preamble send opportunity determines the preamble send opportunity of selection
For the preamble send opportunity for sending state, the transmission state will be removed in one group of preamble send opportunity
Send opportunity except preamble send opportunity is determined as the preamble send opportunity of non-sent state.
Preferably, transceiver 1103 successively handles each of preamble send opportunity of the competition region
Preamble send opportunity:
If the preamble send opportunity is transmission state, sent in the preamble send opportunity
preamble;
Whether if the preamble send opportunity is non-sent state, monitoring in the preamble send opportunity has
Other UE send preamble, if having listened to other UE sends preamble, otherwise resource contention failure, continues with down
One preamble send opportunity;
Until not hearing other UE in the preamble send opportunity of each non-sent state sends preamble
When, resource contention success.
Preferably, it after processor determines resource contention failure, is summed using the continuous resource competition frequency of failure and setting value
Resulting calculated result updates storage the continuous resource competition frequency of failure of the UE saved in device;
After processor determines resource contention success, more by the continuous resource competition frequency of failure of the UE saved in memory
It is newly preset initial value.
Preferably, preamble send opportunity includes transmitting portion and processing part;
If the preamble send opportunity is transmission state,
For the transmitting portion for sending lead code, the processing unit is divided into the conversion between transmission state and reception state
Protection interval;
If the preamble send opportunity is non-sent state,
The transmitting portion is for receiving lead code, and the processing part is for judging whether before transmitting portion receives
Leading code, and the protection interval for being converted between reception state and transmission state.
Preferably, preamble send opportunity is made of integer OFDM symbol.
Preferably, if the competition region includes multiple subchannels, the subchannel in the competition region and data are transmitted
Subchannel in region corresponds;
Transceiver 1103 is sent out by subchannel in competition region, in the preamble send opportunity of the transmission state
Send preamble, and by subchannel in competition region, monitored in the preamble send opportunity of non-sent state and be
It is no to there are other UE to send preamble.
Preferably, the subchannel and data transmission region neutron in preset competition region are also preserved in memory 1101
Corresponding relationship between channel;
After processor determines resource contention success, according to the subchannel in the preset competition region saved in memory
With the corresponding relationship between the sub-channels of data transmission region, subchannel of the resource contention successfully in the competition region is determined
The corresponding subchannel in data transmission region.
Based on the above-mentioned technical proposal, in the embodiment of the present invention, UE according to preset continuous resource compete the frequency of failure with
Corresponding relationship between the number of preamble send opportunity obtains the corresponding preamble hair of the continuous resource competition frequency of failure
The number for sending chance is determined and is sent in one group of preamble send opportunity according to the number of the preamble send opportunity of acquisition
The preamble send opportunity of state and the preamble send opportunity of non-sent state, in the preamble hair of the state of transmission
It send and sends preamble in chance, and whether monitor in the preamble send opportunity of non-sent state has other UE to send
Preamble is sent if having listened to other UE in the preamble send opportunity of any one non-sent state
Preamble, then resource contention fails, otherwise, resource contention success.So that UE can send state with self adaptive control
The number of preamble send opportunity passes through simple energy measuring or the method competitive resource of sequence coherent detection, the inspection of UE
Survey complexity is lower, and access probability is higher, and access delay is lower, reduces the occupied expense of resource contention, is suitable for decimal
According to the resource contention of amount business.
In the embodiment of the present invention, without each competitive resource before data transmission, reduces the expense of resource contention, keep away
Exempted from number of users it is more when service conflict aggravate the case where, avoid the deterioration of system performance.Also, it is applicable to narrow band transmission
Mode.Meanwhile avoiding in asynchronous communication mode, it receives UE and is constantly in reception state to have known whether that institute occurs for business
The power consumption of increased UE.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention
Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more,
The shape for the computer program product implemented in usable storage medium (including but not limited to magnetic disk storage and optical memory etc.)
Formula.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to include these modifications and variations.