This application relates to the field of communications technologies, and in particular, to a channel transmission method and an apparatus.
An Internet of Things (IoT) system performs channel transmission by loading to-be-transmitted data onto a subcarrier. There are two channel transmission manners: a scheduling manner and a non-scheduling manner.
In non-scheduling-based uplink channel transmission, a terminal device and a base station pre-agree on agreement information such as a physical uplink shared channel (PUSCH) carrier index and a modulation and coding scheme (MCS) index, or the base station allocates, to the terminal device in a process in which the terminal device accesses the base station, the agreement information such as the PUSCH carrier index and the MCS index, and notifies the terminal device. Instead of needing the base station to send downlink control information (DCI) indication information for uplink grant, the terminal device sends, when data needs to be sent, uplink data to the base station on a PUSCH corresponding to the PUSCH carrier index based on the agreement information. The base station receives the uplink data on the PUSCH corresponding to the PUSCH carrier index based on the agreement information. In an uplink channel transmission process, the terminal device usually scrambles the uplink data by using a cell radio network temporary identifier (C-RNTI) of the terminal device. However, in the non-scheduling-based uplink channel transmission, if a plurality of terminal devices are configured on a same PUSCH channel, when receiving the uplink data on the PUSCH, the base station does not know which terminal device sends the uplink data and cannot learn of a scrambling parameter of the uplink data. Therefore, when descrambling the uplink data, the base station performs blind detection by using C-RNTIs of all the terminal devices configured on the PUSCH. Consequently, complexity is relatively high when the base station descrambles the uplink data.
Embodiments of this application provide a channel transmission method and an apparatus, to resolve a problem of relatively high complexity of uplink data descrambling performed by a base station in the prior art.
According to a first aspect, this application provides a channel transmission method, and the method includes: scrambling, by a terminal device in a non-scheduling transmission mode, to-be-sent data by using a first radio network temporary identifier RNTI, where the first RNTI is a preset value, or a correspondence exists between the first RNTI and a specified frequency domain resource index; or scrambling, by the terminal device in a scheduling transmission mode, the to-be-sent data by using a second RNTI, where the second RNTI is different from the first RNTI. In the foregoing design, when using the non-scheduling transmission mode, the terminal device may scramble the to-be-sent data by using the preset value, and the base station may perform descrambling by using the preset value without performing the descrambling in a blind detection manner. Therefore, complexity of the descrambling may be effectively reduced. Alternatively, when using the non-scheduling transmission mode, the terminal device may further determine the first RNTI based on the specified frequency domain resource index, and then perform scrambling by using the first RNTI. The base station may determine the first RNTI based on the specified frequency domain resource index, and then perform descrambling by using the first RNTI without performing the descrambling in a blind detection manner. Therefore, complexity of the descrambling may be effectively reduced.
In a possible design, when the correspondence exists between the first RNTI and the specified frequency domain resource index, the terminal device may determine the first RNTI based on the specified frequency domain resource index. In the foregoing design, the first RNTI is determined based on the specified frequency domain resource index. Compared with the prior art in which a scrambling parameter is a C-RNTI corresponding to the terminal device, the scrambling is performed by using the RNTI determined based on the frequency domain resource index, so that the base station may determine, based on a frequency domain resource that receives data, a scrambling parameter of the data. Therefore, the complexity of the descrambling may be effectively reduced.
In a possible design, the terminal device may perform a modulo operation on the specified frequency domain resource index and the preset value, to obtain the first RNTI. In the foregoing design, the base station may determine the scrambling parameter of the received data based on the preset value and a frequency domain resource index of the frequency domain resource that receives the data, so that the received data may be descrambled based on the determined scrambling parameter. In this way, the blind detection manner may be avoided, and the complexity of the descrambling may be effectively reduced.
In a possible design, when scrambling the to-be-sent data by using the first RNTI, the terminal device may perform cyclic redundancy check CRC coding on the to-be-sent data, to obtain check coded data, perform redundancy information expansion processing on the check coded data, to obtain error-correction coded data, perform rate matching on the error-correction coded data, to obtain rate-matched data, determine a pseudo-random sequence based on the first RNTI, and scramble the rate-matched data by using the pseudo-random sequence. Compared with the prior art in which the pseudo-random sequence is determined based on the C-RNTI of the terminal device, in the foregoing design, the pseudo-random sequence is determined based on the first RNTI, so that the base station may not care about the C-RNTI of the terminal device that sends data. Therefore, data does not need to be descrambled in the blind detection manner, and the complexity of the descrambling may be effectively reduced.
In a possible design, when scrambling the to-be-sent data by using the first RNTI, the terminal device may perform cyclic redundancy check CRC coding on the to-be-sent data, to obtain check coded data, and then scramble a check bit of the check coded data by using the first RNTI. In the foregoing design, an objective of interference randomization may be achieved by scrambling a CRC by using the first RNTI, so that inter-channel interference may be reduced.
In a possible design, when scrambling the to-be-sent data by using the first RNTI, the terminal device may perform cyclic redundancy check CRC coding on the to-be-sent data, to obtain check coded data, scramble a check bit of the check coded data by using the first RNTI, to obtain scrambled check coded data, perform redundancy information expansion processing on the scrambled check coded data, to obtain error-correction coded data, perform rate matching on the error-correction coded data, to obtain rate-matched data, determine a pseudo-random sequence based on the first RNTI, and scramble the rate-matched data by using the pseudo-random sequence. In the foregoing design, on one hand, the to-be-sent data is scrambled by using the first RNTI unrelated to an identity of the terminal device, so that the base station may determine a scrambling parameter without using the blind detection manner, and the complexity of the descrambling may be effectively reduced. On the other hand, the CRC is scrambled by using the first RNTI, and the pseudo-random sequence is determined based on the first RNTI, so that the objective of the interference randomization may be achieved, thereby reducing the inter-channel interference.
In a possible design, when scrambling the check bit of the check coded data by using the first RNTI, the terminal device performs an exclusive OR operation on the first RNTI and the check bit of the check coded data. In the foregoing design, the interference randomization may be implemented by performing an exclusive OR operation on the first RNTI and the CRC, so that the inter-channel interference may be reduced.
According to a second aspect, this application provides a channel transmission method, and the method includes: receiving, by a base station, data sent by a terminal device; and in a non-scheduling transmission mode, descrambling, by the base station, the data by using a first RNTI, where the first RNTI is a preset value, or a correspondence exists between the first RNTI and a specified frequency domain resource index; or in a scheduling transmission mode, descrambling, by the base station, the data by using a second RNTI, where the second RNTI is different from the first RNTI. In the foregoing design, when the terminal device uses the non-scheduling transmission mode, after receiving the data, the base station may not care about the terminal device that sends the data, but may descramble the received data by using the preset value, or descramble the received data based on an RNTI corresponding to the specified frequency domain resource index. Compared with that the base station descrambles the data in a blind detection manner, the foregoing design may effectively reduce complexity of descrambling.
In a possible design, when the correspondence exists between the first RNTI and the specified frequency domain resource index, the base station may determine the first RNTI based on the specified frequency domain resource index. Compared with the prior art in which a scrambling parameter is a C-RNTI corresponding to the terminal device, in the foregoing design, because the first RNTI is determined based on the frequency domain resource index, the base station may determine, based on a frequency domain resource that receives data, a scrambling parameter of the data, so that the complexity of the descrambling may be effectively reduced.
In a possible design, when determining the first RNTI based on the specified frequency domain resource index, the base station may perform a modulo operation on the specified frequency domain resource index and the preset value, to obtain the first RNTI. In the foregoing design, the base station may determine the scrambling parameter of the received data based on the preset value and a frequency domain resource index of the frequency domain resource that receives the data, so that the received data may be descrambled based on the determined scrambling parameter. In this way, the blind detection manner may be avoided, and the complexity of the descrambling may be effectively reduced.
In a possible design, when descrambling the data by using the first RNTI, the base station may determine a pseudo-random sequence based on the first RNTI, and then descramble the data by using the pseudo-random sequence. Compared with the prior art in which the pseudo-random sequence is determined based on the C-RNTI of the terminal device, in the foregoing design, the pseudo-random sequence is determined based on the first RNTI, so that the base station may not care about the C-RNTI of the terminal device that sends data. Therefore, data does not need to be descrambled in the blind detection manner, and the complexity of the descrambling may be effectively reduced.
In a possible design, when descrambling the data by using the first RNTI, the base station may descramble the data, to obtain descrambled data, perform inverse processing of rate matching on the descrambled data, to obtain data that exists before the rate matching, perform de-redundancy processing on the data that exists before the rate matching, to obtain de-redundant data, descramble a check bit of the de-redundant data by using the first RNTI, to obtain check coded data, and perform inverse processing of cyclic redundancy check CRC coding on the check coded data. In the foregoing design, an objective of interference randomization may be achieved by the terminal device by scrambling a CRC by using the first RNTI, so that inter-channel interference may be reduced.
In a possible design, when descrambling the data by using the first RNTI, the base station may determine a pseudo-random sequence based on the first RNTI, descramble the data by using the pseudo-random sequence, to obtain descrambled data, perform inverse processing of rate matching on the descrambled data, to obtain data that exists before the rate matching, perform de-redundancy processing on the data that exists before the rate matching, to obtain de-redundant data, descramble a check bit of the de-redundant data by using the first RNTI, to obtain check coded data, and perform inverse processing of cyclic redundancy check CRC coding on the de-redundant data by using the check coded data. In the foregoing design, on one hand, the to-be-sent data is scrambled by using the first RNTI unrelated to an identity of the terminal device, so that the base station may determine a scrambling parameter without using the blind detection manner, and the complexity of the descrambling may be effectively reduced. On the other hand, the CRC is scrambled by using the first RNTI, and the pseudo-random sequence is determined based on the first RNTI, so that the objective of the interference randomization may be achieved, thereby reducing the inter-channel interference.
In a possible design, when descrambling the check bit of the de-redundant data by using the first RNTI, the base station may perform an exclusive OR operation on the first RNTI and the check bit of the de-redundant data. In the foregoing design, the interference randomization may be implemented by performing an exclusive OR operation on the first RNTI and the CRC, so that the inter-channel interference may be reduced.
According to a third aspect, this application provides a terminal device, including: a scrambling module, configured to: in a non-scheduling transmission mode, scramble to-be-sent data by using a first RNTI, where the first RNTI is a preset value, or a correspondence exists between the first RNTI and a specified frequency domain resource index; or in a non-scheduling transmission mode, scramble the to-be-sent data by using a second RNTI, where the second RNTI is different from the first RNTI.
In a possible design, the terminal device further includes a determining module, configured to: when the correspondence exists between the first RNTI and the specified frequency domain resource index, determine the first RNTI based on the specified frequency domain resource index.
In a possible design, the determining module is specifically configured to perform an exclusive OR modulo operation on the specified frequency domain resource index and the preset value, to obtain the first RNTI.
In a possible design, when scrambling the to-be-sent data by using the first RNTI, the scrambling module is specifically configured to: perform cyclic redundancy check CRC coding on the to-be-sent data, to obtain check coded data; perform redundancy information expansion processing on the check coded data, to obtain error-correction coded data; perform rate matching on the error-correction coded data, to obtain rate-matched data; determine a pseudo-random sequence based on the first RNTI; and scramble the rate-matched data by using the pseudo-random sequence.
In a possible design, when scrambling the to-be-sent data by using the first RNTI, the scrambling module is specifically configured to: perform cyclic redundancy check CRC coding on the to-be-sent data, to obtain check coded data, and then scramble a check bit of the check coded data by using the first RNTI.
In a possible design, when scrambling the to-be-sent data by using the first RNTI, the scrambling module is specifically configured to: perform cyclic redundancy check CRC coding on the to-be-sent data, to obtain check coded data; scramble a check bit of the check coded data by using the first RNTI, to obtain scrambled check coded data; perform redundancy information expansion processing on the scrambled check coded data, to obtain error-correction coded data; perform rate matching on the error-correction coded data, to obtain rate-matched data; determine a pseudo-random sequence based on the first RNTI; and scramble the rate-matched data by using the pseudo-random sequence.
In a possible design, when scrambling the check bit of the check coded data by using the first RNTI, the scrambling module performs an exclusive OR operation on the first RNTI and the check bit of the check coded data.
According to a fourth aspect, this application provides a base station, including: a receiving module, configured to receive data sent by a terminal device; and a descrambling module, configured to: in a non-scheduling transmission mode, descramble the data by using a first RNTI, where the first RNTI is a preset value, or a correspondence exists between the first RNTI and a specified frequency domain resource index; or in a scheduling transmission mode, descramble the data by using a second RNTI, where the second RNTI is different from the first RNTI.
In a possible design, the base station further includes a determining module, configured to: when the correspondence exists between the first RNTI and the specified frequency domain resource index, determine the first RNTI based on the specified frequency domain resource index.
In a possible design, the determining module is specifically configured to perform a modulo operation on the specified frequency domain resource index and the preset value, to obtain the first RNTI.
In a possible design, when descrambling the data by using the first RNTI, the descrambling module is specifically configured to: determine a pseudo-random sequence based on the first RNTI, and descramble the data by using the pseudo-random sequence.
In a possible design, when descrambling the data by using the first RNTI, the descrambling module is specifically configured to: descramble the data, to obtain descrambled data; perform inverse processing of rate matching on the descrambled data, to obtain data that exists before the rate matching; perform de-redundancy processing on the data that exists before the rate matching, to obtain de-redundant data; descramble a check bit of the de-redundant data by using the first RNTI, to obtain check coded data; and perform inverse processing of cyclic redundancy check CRC coding on the check coded data.
In a possible design, when descrambling the data by using the first RNTI, the descrambling module is specifically configured to: determine a pseudo-random sequence based on the first RNTI; descramble the data by using the pseudo-random sequence, to obtain the descrambled data; perform inverse processing of rate matching on the descrambled data, to obtain data that exists before the rate matching; perform de-redundancy processing on the data that exists before the rate matching, to obtain de-redundant data; descramble a check bit of the de-redundant data by using the first RNTI, to obtain check coded data; and perform inverse processing of cyclic redundancy check CRC coding on the check coded data.
In a possible design, when descrambling the check bit of the de-redundant data by using the first RNTI, the descrambling module is specifically configured to perform an exclusive OR operation on the first RNTI and the check bit of the de-redundant data.
According to a fifth aspect, an embodiment of this application further provides a terminal device. The terminal device includes a processor and a memory, where the memory is configured to store a software program, and the processor is configured to read the software program stored in the memory and implement the method provided in the first aspect or any design of the first aspect.
According to a sixth aspect, an embodiment of this application further provides a base station. The base station includes a processor and a memory, where the memory is configured to store a software program, and the processor is configured to read the software program stored in the memory and implement the method provided in the second aspect or any design of the second aspect.
According to a seventh aspect, an embodiment of this application further provides a computer storage medium. The storage medium stores a software program; when read and executed by one or more processors, the software program may implement the method provided in the first aspect or any design of the first aspect, or the method provided in the second aspect or any design of the second aspect.
According to an eighth aspect, an embodiment of this application provides a computer program product including an instruction. When the computer program product runs on a computer, the computer is enabled to perform the method provided in the first aspect or any design of the first aspect, or the method provided in the second aspect or any design of the second aspect.
The following further describes in detail embodiments of this application with reference to accompanying drawings.
The network architecture and the service scenario described in the embodiments of this application are intended to describe the technical solutions in the embodiments of this application more clearly, and do not constitute a limitation on the technical solutions provided in the embodiments of this application. Persons of ordinary skill in the art may know that: With the evolution of the network architecture and the emergence of new service scenarios, the technical solutions provided in the embodiments of this application are also applicable to similar technical problems.
A channel transmission method provided in this application may be applied to an Internet of Things (IoT) system, and a bandwidth of a channel in the IoT system may be 25 kHz. As shown in
The base station in the IoT system may be a common base station (for example, a Node B or an eNB), a new radio controller (NR controller), a gNodeB (gNB) in a 5G system, a centralized network element (centralized unit), a new radio base station, a radio remote module, a micro base station, a relay, a distributed network element (distributed unit), a transmission reception point (TRP), a transmission point (TP), or any other radio access device. However, this is not limited in the embodiments of this application.
The terminal device is also referred to as user equipment (UE), and is a device, for example, a handheld device or a vehicle-mounted device having a wireless connection function, providing voice and/or data connectivity for the terminal device. A common terminal includes, for example, a mobile phone, a tablet, a notebook computer, a palmtop computer, a mobile Internet device (MID), and a wearable device such as a smartwatch, a smart band, or a pedometer.
In the IoT system, channel transmission may be performed between the base station and the terminal device in a non-scheduling-based manner, or data transmission may be performed in a scheduling grant-based manner. In non-scheduling-based uplink channel transmission, the terminal device and the base station pre-agree on agreement information such as a physical uplink shared channel (PUSCH) carrier index, a modulation and coding scheme (MCS) index, a period, a starting position (offset), and duration , or the base station allocates, to the terminal device in a process in which the terminal device accesses the base station, agreement information such as a PUSCH carrier index, an MCS index, a period, an offset, and duration, and notifies the terminal device. Instead of needing the base station to send downlink control information (DCI) indication information for uplink grant, the terminal device sends, when data needs to be sent, uplink data to the base station on a PUSCH corresponding to the PUSCH carrier index based on the agreement information. The base station receives the uplink data on the PUSCH corresponding to the PUSCH carrier index based on a modulation and coding scheme corresponding to the MCS index. The base station receives the uplink data on the PUSCH corresponding to the PUSCH carrier index based on the agreement information.
Before sending the data, the terminal device performs coding and modulation processing on to-be-sent data, as shown in
S201: The terminal device performs check coding on the to-be-sent data, to obtain a check coded codeword (transport block cyclic redundancy check, TB CRC).
Specifically, the terminal device adds cyclic redundancy check (CRC) code to the end of the to-be-sent data, to obtain the TB CRC.
S202: The terminal device performs redundancy information expansion processing on the TB CRC, to obtain error-correction coded data.
The redundancy information expansion processing may be tail-biting convolutional coding.
S203: The terminal device performs rate matching on the error-correction coded data, to obtain rate-matched data.
S204: The terminal device scrambles the rate-matched data, to obtain scrambled data.
Specifically, the terminal device determines a pseudo-random sequence by using a cell radio network temporary identifier (C-RNTI) of the terminal device, and scrambles the rate-matched data by using the pseudo-random sequence.
The pseudo-random sequence may meet the following formula:
c
init
=n
RNTI
·a+n
f
·b+n
s
·c+N
ID
Ncell
+d,
where cinit is the pseudo-random sequence, nRNTI is the C-RNTI of the terminal device, nf is a frame number, ns is a slot number, and NIDNcell is a cell identifier number, where a, b, c, and d are integers.
The to-be-sent data may meet the following formula:
b′=(b+cinit)mod 2
where b′ is the to-be-sent data, b is the rate-matched data, and cinit is the pseudo-random sequence.
S205: The terminal device modulates the scrambled data based on the modulation and coding scheme corresponding to the MCS index, to obtain modulated data.
S206: The terminal device performs inverse fast Fourier transform (IFFT) on the modulated data, to obtain IFFT data.
S207: The terminal device adds a cyclic prefix (CP) to the IFFT data.
In the IoT system, a range corresponding to a radio network temporary identifier (RNTI) may be 0000 to FFFF (hexadecimal). Specifically, range distribution corresponding to different RNTIs is shown in Table 1.
In the non-scheduling-based uplink channel transmission, if a plurality of terminal devices are configured on a same PUSCH channel, the terminal devices separately scramble data by using respective C-RNTIs during data transmission. In this case, when receiving the uplink data on the PUSCH, the base station does not know which terminal device sends the uplink data and cannot learn of a scrambling parameter of the uplink data. Therefore, when descrambling the uplink data, the base station needs to perform blind detection by using C-RNTIs of all the terminal devices configured on the PUSCH. Consequently, complexity is relatively high when the base station descrambles the uplink data.
To resolve this problem, this application provides a channel transmission method and an apparatus, and the channel transmission method and the apparatus may be applied to the IoT system shown in
In the following, some terms in this application are described, to help persons skilled in the art have a better understanding.
A unit frequency domain resource is a channel, a subcarrier, data, or the like in the IoT system.
Exclusive OR operation: A mathematical symbol of the exclusive OR operation is “⊕”, and X⊕Y=0 or 1. If X and Y are two different values, a result of the exclusive OR operation is 1. If X and Y are two same values, a result of the exclusive OR operation is 0. In this case, an exclusive OR operation algorithm in binary is: 0⊕0=0, 1⊕0=1, 0⊕1=1, and 1⊕1=0.
“Multiple” refers to two or more than two.
In addition, it should be understood that in descriptions of this application, terms such as “first” and “second” are merely intended for purposes of description, and should not be understood as an indication or implication of relative importance, and cannot be understood as an indication or implication of a sequence.
In a non-scheduling transmission mode, S301: A terminal device scrambles to-be-sent data by using a second RNTI. The second RNTI may be a C-RNTI of the terminal device. Specifically, if the transmission mode is scheduling transmission, the terminal device sends a scheduling request (SR) to a base station when the terminal device needs to send data to the base station. Therefore, after receiving the SR, the base station allocates, to the terminal device, a resource used to transmit uplink data, and notifies the terminal device by using DCI information including an uplink scheduling grant, that is, indicates, by using the DCI information, information such as a frequency domain resource that can be used by the terminal device to transmit data. The terminal device may scramble the to-be-sent data by using the C-RNTI of the terminal device, and then send the to-be-sent data by using the frequency domain resource indicated by the DCI information.
In the non-scheduling transmission mode, S302: The terminal device scrambles the to-be-sent data by using a first RNTI. The first RNTI may be a preset value, or a correspondence may further exist between the first RNTI and a specified frequency domain resource index. The specified frequency domain resource index may be an index corresponding to the frequency domain resource that is allocated by the base station to the terminal device when the terminal device is accessed and that is used for uplink transmission. In the non-scheduling-based transmission mode, the terminal device may directly perform transmission on the specified frequency domain resource index when the terminal device needs to send data to the base station, and the base station does not need to send uplink scheduling DCI information. Alternatively, the specified frequency domain resource index may be predetermined by the terminal device and the base station.
In this embodiment of this application, when using the non-scheduling transmission mode, the terminal device may scramble the to-be-sent data by using the preset value, and the base station may perform descrambling by using the preset value without performing the descrambling in a blind detection manner. Therefore, complexity of the descrambling may be effectively reduced. Alternatively, when using the non-scheduling transmission mode, the terminal device may further determine the first RNTI based on the specified frequency domain resource index, and then perform scrambling by using the first RNTI. The base station may determine the first RNTI based on the specified frequency domain resource index, and then perform descrambling by using the first RNTI without performing the descrambling in a blind detection manner. Therefore, complexity of the descrambling may be effectively reduced.
The first RNTI mentioned in this embodiment of this application may be an RNTI of the frequency domain resource. For ease of description, the RNTI of the frequency domain resource may be referred to as a GL-RNTI in this embodiment of this application. The following describes in detail a process in which uplink transmission is performed between the terminal device and the base station in the non-scheduling transmission mode.
If the first RNTI is a preset value, the terminal device may determine the first RNTI in either of the following two manners:
Manner 1: The base station may notify the terminal device of a mapping relationship between a PUSCH index of the frequency domain resource and the GL-RNTI by using a system message, so that the terminal device determines, based on the PUSCH index of the specified frequency domain resource, a corresponding GL-RNTI as the first RNTI.
In this embodiment of this application, some values from 0000 to FFFF in a hexadecimal value table may be selected as GL-RNTIs. For example, 0001 to 01E0 may be used as GL-RNTIs, and range distribution corresponding to different RNTIs is shown in Table 2.
Alternatively, FE13 to FFF3 may be used as GL-RNTIs, and range distribution corresponding to different RNTIs is shown in Table 3.
Certainly, another value may be selected as the GL-RNTI. This is not specifically limited in this embodiment of this application.
Manner 2: The terminal device and the base station pre-agree on a value as the first RNTI, so that the terminal device performs scrambling in the non-scheduling-based transmission mode by using the value.
If the correspondence exists between the first RNTI and the specified frequency domain resource index, the terminal device may determine the first RNTI based on the PUSCH index of the specified frequency domain resource.
Specifically, the terminal device may perform a modulo operation on the PUSCH index of the specified frequency domain resource and the preset value, where the preset value may be pre-agreed on by the terminal device and the base station. For ease of description, the preset value may be referred to as a GL-RNTI number. The GL-RNTI may meet the following formula:
GL-RNTI=mod (PUSCH carrier index, GL-RNTI number).
For example, if the GL-RNTI number is 480, and the PUSCH index of the specified frequency domain resource is 170, the GL-RNTI is 170.
Before sending the uplink data to the base station, the terminal device may perform coding and modulation on the to-be-sent data by performing steps S201 to S207. When scrambling the to-be-sent data by using the first RNTI, the terminal device may implement scrambling in any one of the following three scrambling manners:
First scrambling manner: The terminal device uses the first RNTI in a process of performing check coding on the to-be-sent data to obtain the TB CRC in step S201.
In a first implementation, the terminal device may perform cyclic redundancy check CRC coding on the to-be-sent data, to obtain check coded data, and then scramble a check bit of the check coded data by using the first RNTI.
Specifically, when scrambling the check bit of the check coded data by using the first RNTI, the terminal device may perform an exclusive OR operation on the first RNTI and the check bit of the check coded data. That is,
A=B⊕C.
A is scrambled check coded data, B is a binary sequence of the first RNTI, and C is the check bit of the check coded data. For ease of description, the check bit of the check coded data may be referred to as a TB CRC check bit.
When a quantity m of bits of the TB CRC check bit is greater than a quantity n of bits of the binary sequence of the first RNTI, the terminal device may perform an exclusive OR operation bit by bit on an n-bit sequence in the TB CRC check bit and the binary sequence of the first RNTI, where a location of the n-bit sequence may be pre-agreed on by the terminal device and the base station, or the location of the n-bit sequence may be specified by the base station in a process in which the terminal device accesses the base station. For example, the location of the n-bit sequence may be locations of first n bits in the TB CRC check bit, or may be locations of last n bits in the TB CRC check bit. Alternatively, (m-n) zeros may be added before the binary sequence of the first RNTI, and then an exclusive OR operation is performed on the zero-added binary sequence of the first RNTI and the TB CRC check bit. For example, if m is 10, the TB CRC check bit is 0101010001, n is 6, and the binary sequence of the first RNTI is 110010, four zeros are added before the binary sequence of the first RNTI, and the zero-added binary sequence of the first RNTI is 0000110010.
For example, if m is 24, n is 16, the TB CRC check bit is 010100101110101001010101, and the first RNTI is 00E0, the binary sequence of the first RNTI is 0000000011100000.
If the location of the n-bit sequence is the locations of the first n bits in the TB CRC check bit, an exclusive OR operation performed on the first RNTI and the TB CRC check bit is:
(0101001011101010)⊕(0000000011100000)=(0101001000001010).
If the location of the n-bit sequence is the locations of the last n bits in the TB CRC check bit, an exclusive OR operation performed on the first RNTI and the TB CRC check bit is:
(1110101001010101)⊕(0000000011100000)=(1110101010110101).
If eight zeros are added before the binary sequence of the first RNTI, the zero-added binary sequence of the first RNTI is 000000000000000011100000. An exclusive OR operation performed on the first RNTI and the TB CRC check bit is:
(010100101110101001010101)⊕(000000000000000011100000)=(010100101110101 010110101).
When a quantity m of bits of the TB CRC check bit is less than a quantity n of bits of the binary sequence of the first RNTI, the terminal device may perform an exclusive OR operation bit by bit on the TB CRC check bit and an m-bit sequence in the binary sequence of the first RNTI, where a location of the m-bit sequence may be pre-agreed on by the terminal device and the base station, or the location of the m-bit sequence may be specified by the base station in a process in which the terminal device accesses the base station. For example, the location of the m-bit sequence may be locations of first m bits in the binary sequence of the first RNTI, or may be locations of last m bits in the binary sequence of the first RNTI.
For example, if m is 12, n is 16, the TB CRC check bit is 101001010101, and the first RNTI is 00E0, the binary sequence of the first RNTI is 0000000011100000.
If the location of the m-bit sequence is the locations of the first m bits in the binary sequence of the first RNTI, an exclusive OR operation performed on the first RNTI and the TB CRC check bit is:
(101001010101)⊕(000000001110)=(101001011011).
If the location of the m-bit sequence is the locations of the last m bits in the binary sequence of the first RNTI, an exclusive OR operation performed on the first RNTI and the TB CRC check bit is:
(101001010101)⊕(000000001110)=(101001011011).
In a second implementation, the terminal device may perform cyclic redundancy check CRC coding on the to-be-sent data, to obtain the TB CRC, and then scramble the TB CRC by using the first RNTI, to obtain scrambled TB CRC.
Specifically, when scrambling the TB CRC by using the first RNTI, the terminal device may perform an exclusive OR operation on the first RNTI and the TB CRC check bit. For details herein, refer to the exclusive OR operation method in the first implementation. Details are not described herein again in this embodiment of this application.
Second scrambling manner: When performing step S205 to scramble the rate-matched data to obtain the to-be-sent data, the terminal device scrambles the rate-matched data by using the first RNTI.
Specifically, the terminal device may determine a pseudo-random sequence based on the first RNTI, and then scramble the rate-matched data by using the pseudo-random sequence, to obtain scrambled data. The pseudo-random sequence may meet the following formula requirement:
c
init
=n
RNTI
·a
1
+n
f
·b
1
+n
s
·c
1
+N
ID
Ncell
+d
1,
where cinit is the pseudo-random sequence, nRNTI is the first RNTI, nf is a frame number, ns is a slot number, and NIDNcell is a cell identifier number, where a1, b1, c1, and d1, are integers.
The scrambled data may meet the following formula:
b′=(b+cinit)mod 2,
where b′ is the scrambled data, b is the rate-matched data, and cinit is the pseudo-random sequence.
Third scrambling manner: The terminal device uses the first RNTI in a process of performing check coding on the to-be-sent data to obtain the TB CRC in step S201. In addition, when performing step S205 to scramble the rate-matched data, the terminal device scrambles the rate-matched data by using the first RNTI.
For a method of using the first RNTI by the terminal device in the process of performing the check coding on the to-be-sent data to obtain the TB CRC, refer to the first scrambling manner. For a method of scrambling the rate-matched data by the terminal device by using the first RNTI, refer to the second scrambling manner. Details are not described herein again in this embodiment of this application.
In this embodiment of this application, the terminal device may scramble the to-be-sent data by using the preset value or the RNTI corresponding to the PUSCH index, and then send the to-be-sent data on the frequency domain resource corresponding to the PUSCH index. After receiving the data on the frequency domain resource corresponding to the PUSCH index, the base station may descramble the received data by using the preset value or the RNTI corresponding to the PUSCH index. However, if a plurality of terminal devices are configured on a same frequency domain resource, after receiving the data on the frequency domain resource, the base station still does not know which terminal device sends the data. In this case, after performing coding and modulation on the to-be-sent data, before sending the to-be-sent data, and when adding a MAC header to the scrambled data by using a media access control (media access control, MAC) sublayer protocol layer, the terminal device may add the C-RNTI of the terminal device to the MAC header corresponding to the data at the MAC layer. For a format of a MAC packet assembly, refer to
After scrambling the to-be-sent data in step S301 or S302, the terminal device performs step S303.
S303: The terminal device sends the scrambled to-be-sent data. Step S304 is performed.
Specifically, when the transmission mode corresponding to the transmission mode identifier is the non-scheduling transmission, the terminal device may send the scrambled to-be-sent data on the frequency domain resource corresponding to the PUSCH index.
When the transmission mode corresponding to the transmission mode identifier is the scheduling transmission, the terminal device may send the scrambled to-be-sent data based on DCI indication including an uplink scheduling grant of the base station.
S304: The base station receives the data sent by the terminal device. In the scheduling transmission mode, step S305 is performed. In the non-scheduling transmission mode, step S306 is performed.
S305: The base station descrambles the data by using the second RNTI. The second
RNTI may be the C-RNTI of the terminal device.
S306: The base station descrambles the received data by using the first RNTI. The first RNTI is the preset value, or the correspondence exists between the first RNTI and the specified frequency domain resource index.
If the first RNTI is the preset value, the base station may determine the first RNTI in either of the following two manners:
Manner 1: The base station may record a mapping relationship between the frequency domain resource and the GL-RNTI, use the system message to notify the terminal device of the mapping relationship between the frequency domain resource and the GL-RNTI, and then allocate the frequency domain resource to the terminal device in a process in which the terminal device accesses the base station. The base station determines that the GL-RNTI corresponding to the allocated frequency domain resource is the first RNTI.
Manner 2: The terminal device and the base station pre-agree on a value as the first RNTI, so that the base station performs descrambling by using the value when receiving the data that is based on the non-scheduling transmission.
If the correspondence exists between the first RNTI and the PUSCH index of the specified frequency domain resource, the base station may determine the first RNTI based on the PUSCH index of the specified frequency domain resource.
Specifically, the base station may perform a modulo operation on the PUSCH index of the specified frequency domain resource and the GL-RNTI number, where the GL-RNTI number may be pre-agreed on by the terminal device and the base station. The first RNTI may meet the following formula:
GL-RNTI=mod (PUSCH carrier index, GL-RNTI number).
For example, if the GL-RNTI number is 480, and the PUSCH index of the specified frequency domain resource is 170, the first RNTI is 170.
After receiving the data, the base station may perform demodulation and decoding processing on the data. For details, refer to
S501: The base station removes a CP of the data, to obtain data without the CP.
S502: The base station performs fast Fourier transform (FFT) on the data without the CP, to obtain FFT data.
S503: The base station demodulates the FFT data based on a modulation and coding scheme corresponding to an MCS index, to obtain demodulated data.
S504: The base station descrambles the demodulated data, to obtain descrambled data.
S505: The base station performs inverse processing of rate matching on the descrambling data, to obtain data that exists before the rate matching.
S506: The base station performs de-redundancy processing on the data that exists before the rate matching, to obtain de-redundant data.
The de-redundancy processing may be inverse processing of tail-biting convolutional coding.
S507: The base station performs inverse check coding on the de-redundant data, to obtain original data.
Specifically, the inverse check coding may be specifically removing a CRC after the de-redundant data.
That the base station descrambles the received data by using the first RNTI may be implemented in any one of the following three descrambling manners:
First descrambling manner: When the terminal device scrambles the to-be-sent data in the first scrambling manner, the base station may use the first RNTI in a process of performing the inverse check coding in step S507.
In a first implementation, the base station may descramble a check bit of the de-redundant data by using the first RNTI, to obtain check coded data, and then perform inverse check coding on the check coded data. When descrambling the check bit of the de-redundant data by using the first RNTI, the base station may perform an exclusive OR operation on the first RNTI and the check bit of the de-redundant data. For details herein, refer to the method of performing the exclusive OR operation on the first RNTI and the CRC by the terminal device in the first scrambling manner. Details are not described herein again in this embodiment of this application.
In a second implementation, the base station may descramble the de-redundant data by using the first RNTI, to obtain check coded data, and then perform inverse check coding on the check coded data. When descrambling the de-redundant data by using the first RNTI, the terminal device may perform an exclusive OR operation on the first RNTI and the de-redundant data. For details herein, refer to the method of performing the exclusive OR operation on the first RNTI and the CRC by the terminal device in the first scrambling manner. Details are not described herein again in this embodiment of this application.
Second descrambling manner: When the terminal device scrambles the to-be-sent data in the second scrambling manner, when performing step S504 of descrambling the demodulated data to obtain the descrambled data, the base station may demodulate the demodulated data by using the first RNTI.
Specifically, the base station may determine a pseudo-random sequence based on the first RNTI, and then descramble the demodulated data by using the pseudo-random sequence, to obtain descrambled data. The pseudo-random sequence may meet the following formula requirement:
c
init
=n
RNTI
·a
1
+n
f
·b
1
+n
s
·c
1
+N
ID
Ncell
+d
1,
where cinit is the pseudo-random sequence, nRNTI is the first RNTI, nf is a frame number, ns is a slot number, and NIDNcell is a cell identifier number, where a1, b1, c1, and d1, are integers.
The descrambled data may meet the following formula:
b′=(b+cinit)mod 2,
where b′ is the scrambled data, b is the rate-matched data, and cinit is the pseudo-random sequence.
Third descrambling manner: When the terminal device scrambles the to-be-sent data in the third scrambling manner, the base station may use the first RNTI in a process of performing inverse check coding in step S507; when performing step S504 of descrambling the demodulated data to obtain the descrambled data, the base station may demodulate the demodulated data by using the first RNTI.
For a method in which the base station uses the first RNTI in a process of performing the inverse check coding, refer to the first descrambling manner. For a method in which the base station descrambles the demodulated data to obtain the descrambled data, refer to the method in the second descrambling manner. Details are not described herein again in this embodiment of this application.
After receiving the data, the base station may further obtain, from a MAC header of the data, a C-RNTI of the terminal device that sends the data.
In this embodiment of this application, when using the non-scheduling transmission mode, the terminal device may scramble the to-be-sent data by using a preset value, and the base station may perform descrambling by using the preset value without performing the descrambling in a blind detection manner. Therefore, complexity of the descrambling may be effectively reduced. Alternatively, when using the non-scheduling transmission mode, the terminal device may further determine the first RNTI based on a frequency domain resource index carried in an indication message, and then perform scrambling by using the first RNTI. The base station may determine the first RNTI based on the frequency domain resource index, and then perform descrambling by using the first RNTI without performing the descrambling in a blind detection manner. Therefore, complexity of the descrambling may be effectively reduced.
Based on a same inventive concept as the method embodiment, an embodiment of this application provides a terminal device, and the terminal device is specifically configured to implement the method described in the embodiment in
The terminal device may further include a determining module 602, configured to: when the correspondence exists between the first RNTI and the frequency domain resource index, determine the first RNTI based on the specified frequency domain resource index.
In a specific implementation, the determining module 602 may be specifically configured to perform an exclusive OR modulo operation on the specified frequency domain resource index and the preset value, to obtain the first RNTI.
Optionally, when scrambling the to-be-sent data by using the first RNTI, the scrambling module 601 may be specifically configured to: perform cyclic redundancy check CRC coding on the to-be-sent data, to obtain check coded data; perform redundancy information expansion processing on the check coded data, to obtain error-correction coded data; perform rate matching on the error-correction coded data, to obtain rate-matched data; determine a pseudo-random sequence based on the first RNTI; and scramble the rate-matched data by using the pseudo-random sequence. Alternatively, the scrambling module 601 may be specifically configured to: perform cyclic redundancy check CRC coding on the to-be-sent data, to obtain check coded data; and then scramble a check bit of the check coded data by using the first RNTI. Alternatively, the scrambling module 601 may be specifically configured to: perform cyclic redundancy check CRC coding on the to-be-sent data, to obtain check coded data; scramble a check bit of the check coded data by using the first RNTI, to obtain scrambled check coded data; perform redundancy information expansion processing on the scrambled check coded data, to obtain error-correction coded data; perform rate matching on the error-correction coded data, to obtain rate-matched data; determine a pseudo-random sequence based on the first RNTI; and scramble the rate-matched data by using the pseudo-random sequence.
In a specific implementation, when scrambling the check bit of the check coded data by using the first RNTI, the scrambling module 601 performs an exclusive OR operation on the first RNTI and the check bit of the check coded data.
In the embodiments of this application, division of modules is an example, and is merely logical function division. In an actual implementation, there may be another division manner. In addition, function modules in the embodiments of this application may be integrated into one processor, or each of the modules may exist alone physically, or two or more modules may be integrated into one module. The integrated module may be implemented in a form of hardware, or may be implemented in a form of a software function module.
When the integrated module is implemented in the form of hardware, as shown in
The processor 702 is configured to execute the program code stored in the memory 703, and is specifically configured to perform any method in the embodiment shown in
In this embodiment of this application, a specific connection medium among the foregoing transceiver 701, processor 702, and memory 703 is not limited. In this embodiment of this application, the memory 703, the processor 702, and the transceiver 701 are connected to each other by using a bus 704 in
An embodiment of the present invention further provides a chip. The chip includes the foregoing transceiver and the foregoing processor, and is configured to support a first relay device in implementing any method in the embodiment shown in
An embodiment of this application further provides a computer-readable storage medium, configured to store a computer software instruction that needs to be executed for executing the foregoing processor. The computer-readable storage medium includes a program that needs to be executed for executing the foregoing processor.
Based on a same inventive concept as the method embodiment, an embodiment of this application provides a base station, and the base station is specifically configured to implement the method described in the embodiment in
The base station may further include a determining module 803, configured to: when the correspondence exists between the first RNTI and the specified frequency domain resource index, determine the first RNTI based on the specified frequency domain resource index.
In a specific implementation, the determining module 803 is specifically configured to perform a modulo operation on the specified frequency domain resource index and the preset value, to obtain the first RNTI.
Optionally, when descrambling the data by using the first RNTI, the descrambling module 802 may be specifically configured to: determine a pseudo-random sequence based on the first RNTI, and descramble the data by using the pseudo-random sequence. Alternatively, the descrambling module 802 may be specifically configured to: descramble the data, to obtain descrambled data; perform inverse processing of rate matching on the descrambled data, to obtain data that exits before the rate matching; perform de-redundancy processing on the data that exits before the rate matching, to obtain de-redundant data; descramble a check bit of the de-redundant data by using the first RNTI, to obtain check coded data; and perform inverse processing of cyclic redundancy check CRC coding on the check coded data. Alternatively, the descrambling module 802 may be specifically configured to: determine a pseudo-random sequence based on the first RNTI; descramble the data by using the pseudo-random sequence, to obtain descrambled data; perform inverse processing of rate matching on the descrambled data, to obtain data that exits before the rate matching; perform de-redundancy processing on the data that exits before the rate matching, to obtain de-redundant data; descramble a check bit of the de-redundant data by using the first RNTI, to obtain check coded data; and perform inverse processing of cyclic redundancy check CRC coding on the check coded data.
In a specific implementation, when descrambling the check bit of the de-redundant data by using the first RNTI, the descrambling module 802 may be specifically configured to perform an exclusive OR operation on the first RNTI and the check bit of the de-redundant data.
In the embodiments of this application, division of modules is an example, and is merely logical function division. In an actual implementation, there may be another division manner. In addition, function modules in the embodiments of this application may be integrated into one processor, or each of the modules may exist alone physically, or two or more modules may be integrated into one module. The integrated module may be implemented in a form of hardware, or may be implemented in a form of a software function module.
When the integrated module is implemented in the form of hardware, as shown in
The processor 902 is configured to execute the program code stored in the memory 903, and is specifically configured to perform any method in the embodiment shown in
In this embodiment of this application, a specific connection medium among the foregoing transceiver 901, processor 902, and memory 903 is not limited. In this embodiment of this application, the memory 903, the processor 902, and the transceiver 901 are connected to each other by using a bus 904 in
An embodiment of the present invention further provides a chip. The chip includes the foregoing transceiver and the foregoing processor, and is configured to support a first relay device in implementing any method in the embodiment shown in
An embodiment of this application further provides a computer-readable storage medium, configured to store a computer software instruction that needs to be executed for executing the foregoing processor. The computer-readable storage medium includes a program that needs to be executed for executing the foregoing processor.
Persons skilled in the art should understand that the embodiments of this application may be provided as a method, a system, or a computer program product. Therefore, this application may use a form of hardware only embodiments, software only embodiments, or embodiments with a combination of software and hardware. Moreover, this application may use a form of a computer program product that is implemented on one or more computer-usable storage media (including but not limited to a disk memory, a CD-ROM, an optical memory, and the like) that include computer usable program code.
This application is described with reference to the flowcharts and/or block diagrams of the method, the device (system), and the computer program product according to the embodiments of this application. It should be understood that computer program instructions may be used to implement each process and/or each block in the flowcharts and/or the block diagrams and a combination of a process and/or a block in the flowcharts and/or the block diagrams. The computer program instructions may be provided for a general-purpose computer, a dedicated computer, an embedded processor, or a processor of any other programmable data processing device to generate a machine, so that the instructions executed by a computer or a processor of any other programmable data processing device generate an apparatus for implementing a specific function in one or more processes in the flowcharts and/or in one or more blocks in the block diagrams.
The computer program instructions may be stored in a computer-readable memory that can instruct the computer or any other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory generate an artifact that includes an instruction apparatus. The instruction apparatus implements a specific function in one or more processes in the flowcharts and/or in one or more blocks in the block diagrams.
The computer program instructions may be loaded onto a computer or another programmable data processing device, so that a series of operations and steps are performed on the computer or the another programmable device, thereby generating computer-implemented processing. Therefore, the instructions executed on the computer or the another programmable device provide steps for implementing a specific function in one or more processes in the flowcharts and/or in one or more blocks in the block diagrams.
Obviously, persons skilled in the art can make various modifications and variations to the embodiments of this application without departing from the spirit and scope of the embodiments of this application. This application is intended to cover the modifications and variations provided that they fall within the scope of protection defined by the following claims and their equivalent technologies.
This application is a continuation of International Application No. PCT/CN2018/075632, filed on Feb. 7, 2018, the disclosure of which is hereby incorporated by reference in its entirety.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2018/075632 | Feb 2018 | US |
Child | 16943740 | US |