Communication method and device
By adopting non-Grey code mapping rules and key encryption technology in the constellation diagram, communication security is improved, the problem of low communication security in the prior art is solved, and higher security and reliability are achieved.
Patent Information
- Application Number
- CN202310503376.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-04
- Publication Date
- 2024-11-05
AI Technical Summary
In communication, the existing constellation mapping technology is less secure in communication and is easily illegally demodulated by eavesdroppers.
The constellation diagram is designed using non-Grey code mapping rules, so that the bit sequence Hamming of two adjacent modulation symbols is more random, increasing the difficulty of demodulation of eavesdroppers, and further improving security through key encryption.
Improve the security of communication, reduce the risk of modulated symbols being leaked, and enhance the stability of keys and the reliability of communication.
Smart Images

Figure CN118900227A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of communication technology, and in particular, to a communication method and device. Background Art
[0002] Constellation mapping is a digital modulation technology. Constellation mapping can be implemented through a constellation diagram. The constellation diagram defines the mapping relationship between bits and modulation symbols. The bits to be transmitted can be mapped to modulation symbols suitable for actual channel transmission through the constellation diagram. The constellation diagram can be understood as a set of modulation symbols. Each modulation symbol on the constellation diagram can be regarded as a constellation point (or simply referred to as a "point"). Each modulation symbol corresponds to a bit sequence, and a bit sequence includes one or more bits. Under constellation mapping, the transmitter can use the constellation diagram to modulate the bit sequence, obtain the modulation symbol, and send the modulation symbol through the channel. The receiver can use the constellation diagram to demodulate the modulation symbol received through the channel to obtain a bit sequence.
[0003] Currently, the constellation Figure 1 Generally, it conforms to the mapping rule of Gray code. The mapping rule of Gray code means that the Hamming distance between two adjacent modulation symbols in the constellation diagram is 1. In other words, the bit sequence corresponding to two adjacent modulation symbols has only one bit value different in one position, and the bit values in other positions are the same. The advantage of using this constellation diagram modulation is that even if the demodulation error occurs at the receiving end, it will generally only cause errors in bits at a small number of positions, which is conducive to ensuring a low bit error rate at the receiving end. However, since the bit sequence corresponding to two adjacent modulation symbols has only one bit value different in one position, the modulation symbol is easily illegally demodulated by an eavesdropper, and the security of communication is low. Summary of the invention
[0004] The embodiments of the present application provide a communication method and device for improving the security of communication.
[0005] In a first aspect, an embodiment of the present application provides a communication method, which can be performed by a first communication device. The first communication device is, for example, a terminal device, a software module in a terminal device, or a hardware module in a terminal device (such as a chip, specifically a baseband chip), a network device, a software module in a network device, or a hardware module in a network device (such as a chip). The method includes: according to a constellation diagram, modulating M bits to obtain a first modulation symbol, and modulating N bits to obtain a second modulation symbol, where M and N are both positive integers; sending the first modulation symbol and the second modulation symbol to a second communication device; wherein the first bit sequence and the second bit sequence have different values at the first position, and the third bit sequence and the fourth bit sequence are the same; or, the first bit sequence and the second bit sequence are the same, and the third bit sequence and the fourth bit sequence have different values at the second position; wherein the first bit sequence is a bit sequence corresponding to the real part of the first modulation symbol, the second bit sequence is a bit sequence corresponding to the real part of the second modulation symbol, the third bit sequence is a bit sequence corresponding to the imaginary part of the first modulation symbol, the fourth bit sequence is a bit sequence corresponding to the imaginary part of the second modulation symbol, the first position is the position of any bit in the first bit sequence or the second bit sequence, the second position is the position of any bit in the third bit sequence or the fourth bit sequence, and the first modulation symbol and the second modulation symbol are symmetrical along the horizontal axis or the vertical axis of the constellation diagram.
[0006] In the embodiment of the present application, the bit sequences corresponding to the two modulation symbols (such as the first modulation symbol and the second modulation symbol) are designed from the modulation symbols symmetrical along the horizontal axis or the vertical axis of the constellation diagram, rather than using the Gray code mapping rule to design the constellation diagram, which increases the randomness of the Hamming distance of the bit sequences corresponding to the two adjacent modulation symbols in the constellation diagram, making the arrangement of the bit sequences corresponding to the two adjacent modulation symbols more random. In this way, the difficulty of demodulating the modulation symbols modulated based on the above constellation diagram is increased, the risk of the transmitted modulation symbols being leaked is reduced, and the security of communication is improved.
[0007] In a possible implementation, before sending the first modulation symbol and the second modulation symbol to the second communication device, the method further includes: encrypting the first modulation symbol according to a first key to obtain an encrypted first modulation symbol; and / or encrypting the second modulation symbol according to a second key to obtain an encrypted second modulation symbol.
[0008] In the above implementation, the first communication device may encrypt the first modulation symbol and / or the second modulation symbol, further reducing the probability of illegal demodulation by an eavesdropper, which is beneficial to improving the security of communication.
[0009] In one possible implementation, the first key and / or the second key is generated based on the first information, and the first information includes a third key; wherein the third key is a preconfigured or predefined key, or the third key is generated based on a fourth key, and the fourth key is a preconfigured or predefined key, or a key configured for the core network, and the core network configuration is, for example, an access and mobility management function (AMF) configuration in the core network.
[0010] In the above implementation, a variety of ways to generate the first key and / or the second key are provided. Moreover, since the third key in the first information may be preconfigured or predefined, this makes the first key generated according to the first information relatively stable. Alternatively, the first communication device may generate the first key based on the first information including the third key, and the third key may be generated based on the fourth key. Since the fourth key is also preconfigured or predefined or received from the core network element, this also ensures the stability of the first key, and the first key can be regarded as being obtained by calculating the fourth key twice, which increases the complexity of generating the first key, and also reduces the possibility of illegally generating the first key, that is, improving the security of the first key, thereby improving the security of the communication.
[0011] In a possible implementation manner, the third key is a key shared by the first communication device and the second communication device.
[0012] In the above embodiment, the first communication device and the second communication device both share the third key, which enables the first communication device and the second communication device to respectively generate consistent first keys, ensuring that the second communication device can successfully decrypt the second modulation symbol, etc., thereby ensuring the reliability of communication between the first communication device and the second communication device.
[0013] In a possible implementation manner, the first information further includes information that the first communication device has sent to the second communication device, and / or information that the first communication device has received from the second communication device.
[0014] In the above embodiment, in addition to the third key, the first information may also include information transmitted between the first communication device and the second communication device. Since there are some random deviations in the information transmitted between the first communication device and the second communication device, this reduces the possibility of an eavesdropper obtaining the same first information to generate a key, that is, reduces the possibility of illegally generating the first key and / or the second key, and is also beneficial to improving the security of communication.
[0015] In a possible implementation, the method further includes: encrypting the first information according to a first encryption algorithm to obtain a fifth key; encrypting the fifth key according to a second encryption algorithm to obtain a sixth key; wherein the first key is part or all of the bits in the sixth key, or the first key is part or all of the bits in the seventh key, and the seventh key is determined based on the fifth key and the sixth key.
[0016] In the above implementation, the first communication device can encrypt the first information twice in sequence to obtain the sixth key, thereby increasing the complexity of generating the sixth key, thereby increasing the security of the first key. In addition, the first key can be part or all of the bits of the sixth key or the seventh key, providing multiple possible forms of the first key.
[0017] In a possible implementation manner, the second key is part or all of the bits in the sixth key except the first key, or is part or all of the bits in the seventh key except the first key.
[0018] In the above embodiment, some or all of the bits in the sixth key or the seventh key except the first key can be used as the second key, which is equivalent to the first communication device performing a calculation to obtain a key for encrypting multiple modulation symbols, which is beneficial to reducing the number of times the first communication device calculates the key.
[0019] In a possible implementation, a first modulation symbol is encrypted according to a first key to obtain an encrypted first modulation symbol, including: determining a translation length and / or direction angle of the first modulation symbol in a constellation diagram according to the first key; moving the first modulation symbol in the constellation diagram in a direction indicated by the direction angle by the translation length to obtain the encrypted first modulation symbol; or, superimposing a phase of a third modulation symbol on the phase of the first modulation symbol to obtain the encrypted first modulation symbol, wherein the third modulation symbol is obtained by modulating the first key according to the constellation diagram.
[0020] In the above implementation, two methods for encrypting the first modulation symbol are provided, which enriches the methods for encrypting the first modulation symbol. In addition, since both the first communication device and the second communication device can generate a relatively stable first key based on the first information, this ensures that the second communication device can smoothly decrypt the modulation symbol encrypted by the first communication device, thereby ensuring the reliability of communication between the first communication device and the second communication device.
[0021] In a possible implementation, the translation length and the direction angle satisfy the following relationship:
[0022] and or,
[0023] and
[0024] Wherein, ρ represents the translation length, and θ represents the direction angle.
[0025] In the above implementation, the translation length and direction angle can meet the above conditions, and the encryption security of the first communication device can be guaranteed.
[0026] In a second aspect, an embodiment of the present application provides a communication method, which can be performed by a second communication device. The second communication device is, for example, a terminal device, a software module in a terminal device, or a hardware module in a terminal device (such as a chip, specifically a baseband chip), a network device, a software module in a network device, or a hardware module in a network device (such as a chip). In the embodiment of the present application, the second communication device is used as a receiving end or a receiving device for illustration. The method includes: receiving a first modulation symbol and a second modulation symbol from a first communication device; demodulating the first modulation symbol according to a constellation diagram to obtain M bits, and demodulating the second modulation symbol to obtain N bits, where N and M are positive integers; wherein the first bit sequence and the second bit sequence have different values at the first position, and the third bit sequence and the fourth bit sequence are the same; or, the first bit sequence and the second bit sequence are the same, and the third bit sequence and the fourth bit sequence have different values at the second position; wherein the first bit sequence is a bit sequence corresponding to the real part of the first modulation symbol, the second bit sequence is a bit sequence corresponding to the real part of the second modulation symbol, the third bit sequence is a bit sequence corresponding to the imaginary part of the first modulation symbol, the fourth bit sequence is a bit sequence corresponding to the imaginary part of the second modulation symbol, the first position is the position of any bit in the first bit sequence or the second bit sequence, the second position is the position of any bit in the third bit sequence or the fourth bit sequence, and the first modulation symbol and the second modulation symbol are symmetrical along the horizontal axis or the vertical axis of the constellation diagram.
[0027] In one possible implementation, receiving a first modulation symbol and a second modulation symbol from a first communication device includes: receiving an encrypted first modulation symbol and an encrypted second modulation symbol from the first communication device; the method also includes: decrypting the encrypted first modulation symbol according to a first key to obtain a first modulation symbol; and / or decrypting the encrypted second modulation symbol according to a second key to obtain a second modulation symbol.
[0028] In a possible implementation, the first key and / or the second key are generated based on the first information, and the first information includes a third key; wherein the third key is a preconfigured or predefined key, or the third key is generated based on an eighth key, and the eighth key is a preconfigured or predefined key, or a key configured for the core network. Optionally, the key configured for the core network is, for example, an AMF in the core network.
[0029] In a possible implementation manner, the third key is a key shared by the first communication device and the second communication device.
[0030] In a possible implementation manner, the first information further includes information that the second communication device has sent to the first communication device, and / or information that the second communication device has received from the first communication device.
[0031] In a possible implementation, the method further includes: encrypting the first information according to a first encryption algorithm to obtain a fifth key; encrypting the fifth key according to a second encryption algorithm to obtain a sixth key, wherein the first key is part or all of the bits in the sixth key, or the first key is part or all of the bits in the seventh key, and the seventh key is determined based on the fifth key and the sixth key.
[0032] In a possible implementation manner, the second key is part or all of the bits in the sixth key except the first key, or part or all of the bits in the seventh key except the first key.
[0033] In a possible implementation, the encrypted first modulation symbol is decrypted according to the first key to obtain the first modulation symbol, including: determining the translation length and / or direction angle of the first modulation symbol in the constellation diagram according to the first key; moving the encrypted first modulation symbol in the constellation diagram by the translation length in the opposite direction indicated by the direction angle to obtain the first modulation symbol; or, subtracting the phase of the third modulation symbol from the phase of the encrypted first modulation symbol to obtain the first modulation symbol, wherein the third modulation symbol is obtained by modulating the first key according to the constellation diagram.
[0034] In a possible implementation, the translation length and the direction angle satisfy the following relationship:
[0035] and or,
[0036] and
[0037] Wherein, ρ represents the translation length, and θ represents the direction angle.
[0038] In a third aspect, an embodiment of the present application provides a communication method, which can be executed by a communication system. The communication system includes a first communication device and a second communication device. The implementation method of the first communication device can refer to the content discussed in the first aspect of the first communication device and the content of the second communication device in the second aspect, which are not listed here. The method includes: the above-mentioned first aspect and any possible implementation method executed by the first communication device, and the above-mentioned second aspect and any possible implementation method executed by the second communication device.
[0039] In a fourth aspect, an embodiment of the present application provides a communication method, which can be performed by a first communication device. The implementation of the first communication device can refer to the content of the discussion of the implementation of the first communication device in the first aspect above, which will not be listed here. The method includes: modulating M bits according to a constellation diagram to obtain a first modulation symbol, where M is a positive integer, and sending the first modulation symbol to a second communication device, wherein the constellation diagram satisfies: the two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the horizontal axis are the same, and the values of the bits of the two bit sequences corresponding to the imaginary parts at the i-th position are different; and / or, the two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the vertical axis in the constellation diagram have different values of the bits at the j-th position, and the two bit sequences corresponding to the imaginary parts are the same, and i and j are positive integers; or, the constellation diagram may satisfy the following conditions: the two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the horizontal axis have different values of the bits at the j-th position, and the two bit sequences corresponding to the imaginary parts are the same; and / or, the two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the vertical axis in the constellation diagram are the same, and the values of the bits of the two bit sequences corresponding to the imaginary parts are different, and i and j are positive integers.
[0040] When the constellation diagram satisfies the above conditions, any two modulation symbols symmetrical along the horizontal axis or the vertical axis modulated by the first communication device using the constellation diagram also satisfy the above corresponding conditions. For example, the first modulation symbol and the second modulation symbol in the above first aspect satisfy the corresponding conditions satisfied by the constellation diagram in the embodiment of the present application. The above first aspect can be regarded as two modulation symbols symmetrical along the horizontal axis or the vertical axis modulated by the first communication device, and an example is given to introduce the conditions satisfied by the constellation diagram.
[0041] In the embodiment of the present application, by adopting the above-mentioned constellation diagram, the Hamming distance of the bit sequence corresponding to two adjacent modulation symbols in the constellation diagram is made more random, and the arrangement randomness of the bit sequence corresponding to two adjacent modulation symbols in the constellation diagram is increased. In this way, the difficulty for an eavesdropper to demodulate the modulation symbols modulated based on the above-mentioned constellation diagram is increased, the risk of leakage of the transmitted bits is reduced, and the security of communication is improved.
[0042] In a possible implementation, sending the first modulation symbol to the second communication device includes: encrypting the first modulation symbol according to a first key to obtain an encrypted first modulation symbol, and sending the encrypted first modulation symbol to the second communication device.
[0043] In a possible implementation, the first key is generated based on the first information, the first information includes a third key, wherein the third key is a preconfigured or predefined key, or the second key is generated based on a fourth key, wherein the fourth key is a preconfigured or predefined key, or is configured by the core network. Optionally, the core network is, for example, AMF.
[0044] In a possible implementation manner, the third key is a key shared by the first communication device and the second communication device.
[0045] In a possible implementation manner, the first information further includes information that the first communication device has sent to the second communication device, and / or information that the first communication device has received from the second communication device.
[0046] In a possible implementation, the method further includes: encrypting the first information according to the first encryption algorithm to obtain a fifth key, encrypting the fifth key according to the second encryption algorithm to obtain a sixth key, wherein the first key is part or all of the bits in the sixth key, or the first key is part or all of the bits in the seventh key, and the seventh key is determined according to the fifth key and the sixth key. The first encryption algorithm and the second encryption algorithm are the same or different.
[0047] In a possible implementation, when the first key is a partial bit of the sixth key or the seventh key, the method further includes: modulating N bits according to a constellation diagram to obtain a second modulation symbol, where N is a positive integer; encrypting the second modulation symbol according to some or all of the bits in the sixth key except some of the bits of the first key, or according to some or all of the bits in the seventh key except some of the bits of the first key, to obtain an encrypted second modulation symbol; and sending the encrypted second modulation symbol to a second communication device.
[0048] In a possible implementation, encrypting the first modulation symbol according to the first key to obtain the encrypted first modulation symbol includes: determining the translation length and / or direction angle of the first modulation symbol in the constellation diagram according to the first key, and moving the first modulation symbol in the constellation diagram by the translation length in the direction indicated by the direction angle to obtain the encrypted first modulation symbol. Alternatively, superimposing the phase of the third modulation symbol on the phase of the first modulation symbol to obtain the encrypted first modulation symbol, where the third modulation symbol is obtained by modulating the first key according to the constellation diagram.
[0049] In a possible implementation, the translation length and the direction angle satisfy the following relationship:
[0050] and or,
[0051] and
[0052] Among them, ρ represents the translation length and θ represents the direction angle.
[0053] In a fifth aspect, an embodiment of the present application provides a communication method, which can be performed by a second communication device. The implementation method of the second communication device can refer to the content discussed in the second aspect above. The method includes: receiving a first modulation symbol from a first communication device, and demodulating the first modulation symbol according to a constellation diagram to obtain M bits, where M is a positive integer, and the constellation diagram satisfies: the two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the horizontal axis are the same, and the two bit sequences corresponding to the imaginary parts have different values of the bits at the i-th position; and / or, the two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the vertical axis in the constellation diagram have different values of the bits at the j-th position, and the two bit sequences corresponding to the imaginary parts are the same, and i and j are positive integers; or, the constellation diagram may satisfy the following conditions: the two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the horizontal axis have different values of the bits at the j-th position, and the two bit sequences corresponding to the imaginary parts are the same; and / or, the two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the vertical axis in the constellation diagram are the same, and the two bit sequences corresponding to the imaginary parts have different values of the bits at the i-th position, and i and j are positive integers.
[0054] In a possible implementation, receiving a first modulation symbol from a first communication device includes: receiving an encrypted first modulation symbol from the first communication device; the method further includes: decrypting the encrypted first modulation symbol to obtain the first modulation symbol.
[0055] In a possible implementation, the first key is generated according to the first information, the first information includes a third key, wherein the third key is a preconfigured or predefined key, or the second key is generated according to an eighth key, wherein the eighth key is a preconfigured or predefined key, or a key configured for the core network. Optionally, the core network is, for example, AMF.
[0056] In a possible implementation manner, the third key is a key shared by the first communication device and the second communication device.
[0057] In a possible implementation manner, the first information further includes information that the second communication device has sent to the first communication device, and / or information that the second communication device has received from the first communication device.
[0058] In a possible implementation, the method further includes: encrypting the first information according to a first encryption algorithm to obtain a fifth key; encrypting the fifth key according to a second encryption algorithm to obtain a sixth key, wherein the first key is part or all of the bits in the sixth key, or the first key is part or all of the bits in the seventh key, and the seventh key is determined based on the fifth key and the sixth key.
[0059] In a possible implementation, the method also includes: receiving an encrypted second modulation symbol; decrypting the encrypted second modulation symbol according to some bits of the sixth key except some bits of the first key, or according to some bits of the seventh key except some bits of the first key, to obtain a second modulation symbol; and demodulating the second modulation symbol according to a constellation diagram to obtain N bits, where N is a positive integer.
[0060] In a possible implementation, the encrypted modulation symbol is decrypted according to the first key to obtain the first modulation symbol, including: determining the translation length and / or direction angle of the first modulation symbol in the constellation diagram according to the first key; moving the encrypted first modulation symbol in the constellation diagram by the translation length in the opposite direction indicated by the direction angle to obtain the first modulation symbol; or, subtracting the phase of the third modulation symbol from the phase of the encrypted first modulation symbol to obtain the first modulation symbol, wherein the third modulation symbol is obtained by modulating the first key according to the constellation diagram.
[0061] In a possible implementation, the translation length and direction angle satisfy the following conditions:
[0062] and or,
[0063] and
[0064] Among them, ρ represents the translation length and θ represents the direction angle.
[0065] In a sixth aspect, an embodiment of the present application provides a communication method, which can be executed by a communication system, wherein the communication system includes a first communication device and a second communication device. The implementation of the first communication device can refer to the content discussed in the first communication device in the third aspect above, and the content of the second communication device in the fourth aspect, which are not listed here. The method includes: the third aspect and any possible implementation method executed by the first communication device, and the fourth aspect and any possible implementation method executed by the second communication device.
[0066] In the seventh aspect, an embodiment of the present application provides a communication method. The method can be executed by a communication system, which includes a first communication device and a second communication device. The implementation form of the first communication device can refer to the content discussed in the first aspect, and the implementation form of the second communication device can refer to the content discussed in the second aspect. The method includes: the first communication device modulates M bits according to the constellation diagram to obtain a first modulation symbol; encrypts the first modulation symbol according to the first key to obtain the encrypted first modulation symbol, the first key is generated by the first communication device according to the first information, and the first information includes a third key; sends the encrypted first modulation symbol to the second communication device; the second communication device decrypts the encrypted first modulation symbol according to the first key to obtain the first modulation symbol, the first key is generated by the second communication device according to the first information, wherein the third key is a key shared by the first communication device and the second communication device; the second communication device demodulates the first modulation symbol according to the constellation diagram to obtain M bits.
[0067] Compared with the scheme of not encrypting the modulation symbol, the modulation symbol is encrypted by using the first key in the embodiment of the present application, thereby improving the security of communication. Moreover, the first communication device and the second communication device both share the third key, and both can generate the first key according to the third key, which enables the first communication device and the second communication device to generate a relatively stable first key, so that the second communication device can smoothly decrypt the encrypted first modulation symbol, thereby ensuring the reliability of communication between the first communication device and the second communication device.
[0068] In a possible implementation, the third key is a preconfigured or predefined key, or the third key is generated by the first communication device according to the fourth key, and the fourth key is a preconfigured or predefined key, or a key configured for the core network.
[0069] In the above implementation, several methods are provided for the first communication device to obtain the second key.
[0070] In a possible implementation, the third key is a preconfigured or predefined key, or the third key is generated by the second communication device according to the eighth key, and the eighth key is a preconfigured or predefined key, or a key configured for the core network.
[0071] In the above implementation, several methods are provided for the second communication device to obtain the third key.
[0072] In a possible implementation, the fourth key and the eighth key may be the same or different. For example, the fourth key is a preconfigured or predefined key, and the eighth key is received from a core network element; or the fourth key is configured by the core network, and the eighth key is a preconfigured or predefined key.
[0073] In a possible implementation manner, the first information further includes information that the first communication device has sent to the second communication device, and / or information that the first communication device has received from the second communication device.
[0074] In a possible implementation, the method further includes: the first communication device or the second communication device encrypts the first information according to the first encryption algorithm to obtain a fifth key; and encrypts the fifth key according to the second encryption algorithm to obtain a sixth key, wherein the first key is part or all of the bits in the sixth key, or the first key is part or all of the bits in the seventh key, and the seventh key is determined based on the fifth key and the sixth key.
[0075] In a possible implementation, the constellation diagram satisfies: the two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the horizontal axis are the same, and the two bit sequences corresponding to the imaginary parts have different bit values at the i-th position; and / or, the two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the vertical axis in the constellation diagram have different bit values at the j-th position, and the two bit sequences corresponding to the imaginary parts are the same, and i and j are positive integers; or, the constellation diagram may satisfy the following conditions: the two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the horizontal axis have different bit values at the j-th position, and the two bit sequences corresponding to the imaginary parts are the same; and / or, the two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the vertical axis in the constellation diagram are the same, and the two bit sequences corresponding to the imaginary parts have different bit values at the i-th position, and i and j are positive integers.
[0076] In a possible implementation, the first communication device encrypts the first modulation symbol according to the first key to obtain the encrypted first modulation symbol, including: determining the translation length and / or direction angle of the first modulation symbol in the constellation diagram according to the first key; moving the first modulation symbol in the direction indicated by the direction angle in the constellation diagram by the translation length to obtain the encrypted first modulation symbol; or, superimposing the phase of a third modulation symbol on the phase of the first modulation symbol to obtain the encrypted first modulation symbol, the third modulation symbol being obtained by modulating the first key according to the constellation diagram.
[0077] In a possible implementation manner, the translation length and the direction angle satisfy the following conditions:
[0078] and or,
[0079] and
[0080] Wherein, ρ represents the translation length, and θ represents the direction angle.
[0081] In a possible implementation, the method also includes: a second communication device receives an encrypted second modulation symbol; decrypts the encrypted second modulation symbol according to some bits of the sixth key except some bits of the first key, or according to some bits of the seventh key except some bits of the first key, to obtain a second modulation symbol; and demodulates the second modulation symbol according to a constellation diagram to obtain N bits, where N is a positive integer.
[0082] In a possible implementation, the second communication device decrypts the encrypted first modulation symbol according to the first key to obtain the first modulation symbol, including: the second communication device determines the translation length and / or direction angle of the first modulation symbol in the constellation diagram according to the first key; and moves the encrypted first modulation symbol in the constellation diagram by the translation length in the opposite direction indicated by the direction angle to obtain the first modulation symbol.
[0083] In a possible implementation, the second communication device decrypts the encrypted first modulation symbol according to the first key to obtain the first modulation symbol, including: the second communication device subtracts the phase of the third modulation symbol from the phase of the encrypted first modulation symbol to obtain the first modulation symbol, and the third modulation symbol is obtained by modulating the first key according to the constellation diagram.
[0084] In an eighth aspect, an embodiment of the present application provides a communication method, which can be performed by a first communication device, and the implementation method of the first communication device can refer to the content discussed in the first aspect above. The method includes: modulating M bits according to a constellation diagram to obtain a first modulation symbol; encrypting the first modulation symbol according to a first key to obtain an encrypted first modulation symbol, and sending the encrypted first modulation symbol to a second communication device, wherein the first key is generated according to the first information, and the first information includes a third key, wherein the third key is a key shared by the first communication device and the second communication device.
[0085] The first communication device may also execute any possible implementation method executed by the first communication device in the seventh aspect mentioned above, which will not be listed one by one here.
[0086] In a ninth aspect, an embodiment of the present application provides a communication method. The method can be performed by a second communication device, and the implementation form of the second communication device can refer to the content discussed in the second aspect above. The method includes: receiving an encrypted first modulation symbol; decrypting the encrypted first modulation symbol according to a first key to obtain a first modulation symbol, wherein the first key is generated according to the first information, the first information includes a third key, and the third key is a key shared by the first communication device and the second communication device.
[0087] The second communication device may also execute any possible implementation method executed by the second communication device in the eighth aspect above, which will not be listed one by one here.
[0088] In a tenth aspect, an embodiment of the present application provides a communication device, which may be the first communication device in the above-mentioned first aspect and any possible implementation, or has the function of the first communication device. The first communication device includes corresponding means (means) or modules for executing the above-mentioned first aspect or any optional implementation. For example, the communication device includes a processing module (sometimes also referred to as a processing unit), and a transceiver module (sometimes also referred to as a transceiver unit).
[0089] For example, the processing module is used to modulate M bits according to the constellation diagram to obtain a first modulation symbol, and to modulate N bits to obtain a second modulation symbol, where M and N are both positive integers; the sending module is used to send the first modulation symbol and the second modulation symbol to the second communication device; wherein the values of the first bit sequence and the second bit sequence at the first position are different, and the third bit sequence is the same as the fourth bit sequence; or, the first bit sequence is the same as the second bit sequence, and the values of the third bit sequence and the fourth bit sequence at the second position are different; wherein the first bit sequence is the bit sequence corresponding to the real part of the first modulation symbol, the second bit sequence is the bit sequence corresponding to the real part of the second modulation symbol, the third bit sequence is the bit sequence corresponding to the imaginary part of the first modulation symbol, the fourth bit sequence is the bit sequence corresponding to the imaginary part of the second modulation symbol, the first position is the position of any bit in the first bit sequence or the second bit sequence, the second position is the position of any bit in the third bit sequence or the fourth bit sequence, and the first modulation symbol and the second modulation symbol are symmetrical along the horizontal axis or the vertical axis of the constellation diagram.
[0090] In an eleventh aspect, an embodiment of the present application provides a communication device, which may be the second communication device in the second aspect and any possible implementation, or has the function of a second communication device. The second communication device includes corresponding means (means) or modules for executing the second aspect or any optional implementation. For example, the communication device includes a processing module (sometimes also referred to as a processing unit), and a transceiver module (sometimes also referred to as a transceiver unit).
[0091] For example, the transceiver module is used to receive a first modulation symbol and a second modulation symbol from a first communication device; the processing module is used to demodulate the first modulation symbol according to a constellation diagram to obtain M bits, and to demodulate the second modulation symbol to obtain N bits, where N and M are positive integers; wherein the values of the first bit sequence and the second bit sequence at the first position are different, and the third bit sequence and the fourth bit sequence are the same; or, the first bit sequence and the second bit sequence are the same, and the values of the third bit sequence and the fourth bit sequence at the second position are different; wherein the first bit sequence is a bit sequence corresponding to the real part of the first modulation symbol, the second bit sequence is a bit sequence corresponding to the real part of the second modulation symbol, the third bit sequence is a bit sequence corresponding to the imaginary part of the first modulation symbol, the fourth bit sequence is a bit sequence corresponding to the imaginary part of the second modulation symbol, the first position is the position of any bit in the first bit sequence or the second bit sequence, the second position is the position of any bit in the third bit sequence or the fourth bit sequence, and the first modulation symbol and the second modulation symbol are symmetrical along the horizontal axis or the vertical axis of the constellation diagram.
[0092] In a twelfth aspect, an embodiment of the present application provides a communication device, which may be the first communication device in the fourth aspect and any possible implementation, or has the function of a first communication device. The first communication device includes corresponding means or modules for executing the fourth aspect or any optional implementation. For example, the communication device includes a processing module (sometimes also referred to as a processing unit), and a transceiver module (sometimes also referred to as a transceiver unit).
[0093] For example, the processing module is used to modulate M bits according to a constellation diagram to obtain a first modulation symbol, where M is a positive integer, and the transceiver module is used to send the first modulation symbol to a second communication device, wherein the constellation diagram satisfies: the two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the horizontal axis are the same, and the values of the bits of the two bit sequences corresponding to the imaginary parts at the i-th position are different; and / or, the two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the vertical axis in the constellation diagram have different values of the bits at the j-th position, and the two bit sequences corresponding to the imaginary parts are the same, and i and j are positive integers; or, the constellation diagram may satisfy the following conditions: the two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the horizontal axis have different values of the bits at the j-th position, and the two bit sequences corresponding to the imaginary parts are the same; and / or, the two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the vertical axis in the constellation diagram are the same, and the values of the bits of the two bit sequences corresponding to the imaginary parts are different, and i and j are positive integers.
[0094] In a thirteenth aspect, an embodiment of the present application provides a communication device, which may be the second communication device in the fifth aspect and any possible implementation, or has the function of a second communication device. The second communication device includes corresponding means or modules for executing the fifth aspect or any optional implementation. For example, the communication device includes a processing module (sometimes also referred to as a processing unit), and a transceiver module (sometimes also referred to as a transceiver unit).
[0095] For example, the transceiver module is used to receive a first modulation symbol from a first communication device, and the processing module is used to demodulate the first modulation symbol according to a constellation diagram to obtain M bits, where M is a positive integer, and the constellation diagram satisfies: the two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the horizontal axis are the same, and the values of the bits of the two bit sequences corresponding to the imaginary parts at the i-th position are different; and / or, the two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the vertical axis in the constellation diagram have different values of the bits at the j-th position, and the two bit sequences corresponding to the imaginary parts are the same, and i and j are positive integers; or, the constellation diagram may satisfy the following conditions: the two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the horizontal axis have different values of the bits at the j-th position, and the two bit sequences corresponding to the imaginary parts are the same; and / or, the two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the vertical axis in the constellation diagram are the same, and the values of the bits of the two bit sequences corresponding to the imaginary parts are different, and i and j are positive integers.
[0096] In a fourteenth aspect, an embodiment of the present application provides a communication device, which may be the first communication device in the eighth aspect and any possible implementation, or has the function of a first communication device. The first communication device includes corresponding means or modules for executing the eighth aspect or any optional implementation. For example, the communication device includes a processing module (sometimes also referred to as a processing unit), and a transceiver module (sometimes also referred to as a transceiver unit).
[0097] For example, the processing module is used to modulate M bits according to the constellation diagram to obtain a first modulation symbol; encrypt the first modulation symbol according to the first key to obtain an encrypted first modulation symbol; the transceiver module is used to send the encrypted first modulation symbol to the second communication device, the first key is generated based on the first information, the first information includes a third key, wherein the third key is a key shared by the first communication device and the second communication device.
[0098] In a fifteenth aspect, an embodiment of the present application provides a communication device, which may be the second communication device in the ninth aspect and any possible implementation, or has the function of a second communication device. The second communication device includes corresponding means or modules for executing the ninth aspect or any optional implementation. For example, the communication device includes a processing module (sometimes also referred to as a processing unit), and a transceiver module (sometimes also referred to as a transceiver unit).
[0099] For example, the transceiver module is used to receive an encrypted first modulation symbol; the processing module is used to decrypt the encrypted first modulation symbol according to a first key to obtain a first modulation symbol, wherein the first key is generated according to first information, the first information includes a third key, and the third key is a key shared by the first communication device and the second communication device.
[0100] In the sixteenth aspect, an embodiment of the present application provides a communication device, comprising: a processor and a communication interface, wherein the communication interface is used to receive signals from other devices outside the communication device and transmit them to the processor or send signals from the processor to other devices outside the communication device, and the processor executes code instructions through a logic circuit to implement a communication method as described in any one of the first aspect, the second aspect, the fourth aspect, the fifth aspect, the eighth aspect and the ninth aspect and any possible implementation manner.
[0101] Optionally, the communication device further includes other components, such as an antenna, an input / output module, an interface, etc. These components may be hardware, software, or a combination of software and hardware.
[0102] In a seventeenth aspect, an embodiment of the present application provides a chip system, the chip system comprising: a processor and an interface. The processor is used to call and run instructions from the interface, and when the processor executes the instructions, the communication method described in any one of the first aspect, the second aspect, the third aspect or the fourth aspect and any possible implementation manner is implemented.
[0103] In the eighteenth aspect, an embodiment of the present application provides a computer-readable storage medium, which is used to store computer programs or instructions. When the computer-readable storage medium is executed, it implements the communication method described in any one of the above-mentioned first to ninth aspects and any possible implementation methods.
[0104] In the nineteenth aspect, an embodiment of the present application provides a computer program product comprising instructions, which, when executed on a computer, implements the communication method described in any one of the first to ninth aspects and any possible implementation manners.
[0105] Regarding the beneficial effects of the second to sixth aspects and the eighth to nineteenth aspects, reference may be made to the beneficial effects discussed in the first or seventh aspect and will not be listed here. BRIEF DESCRIPTION OF THE DRAWINGS
[0106] Figure 1 is a schematic diagram of a constellation diagram that complies with the Gray code mapping rule;
[0107] Figure 2 A schematic diagram of a scenario applicable to an embodiment of the present application;
[0108] Figure 3 A schematic diagram of a protocol stack of a first communication device and a second communication device provided in an embodiment of the present application;
[0109] Figure 4 A schematic diagram of a communication method provided in an embodiment of the present application;
[0110] Figure 5 A partial schematic diagram of a constellation diagram provided in an embodiment of the present application;
[0111] Figure 6 A schematic diagram of a constellation diagram provided in an embodiment of the present application;
[0112] Figure 7 A partial schematic diagram of another constellation diagram provided in an embodiment of the present application;
[0113] Figure 8 A schematic diagram of a process for encrypting a first modulation symbol provided in an embodiment of the present application;
[0114] Fig. 9 A schematic diagram of another communication method provided in an embodiment of the present application;
[0115] Fig.10 A schematic diagram of a simulation test result provided in an embodiment of the present application;
[0116] Fig.11 A schematic diagram of another communication method provided in an embodiment of the present application;
[0117] Fig.12 A schematic diagram of the structure of a communication device provided in an embodiment of the present application;
[0118] Fig.13 A schematic diagram of the structure of another communication device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0119] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.
[0120] To facilitate understanding by those skilled in the art, the terms involved in the embodiments of the present application are introduced below.
[0121] 1. Terminal equipment is a device with wireless transceiver function, which can be a fixed device, mobile device, handheld device, wearable device, vehicle-mounted device, or a wireless device built into the above device (for example, a communication module or chip system, etc.). The terminal equipment is used to connect people, objects, machines, etc., and can be widely used in various scenarios, such as but not limited to the following scenarios: cellular communication, device-to-device communication (D2D), vehicle to everything (V2X), machine-to-machine / machine-type communication (M2M / MTC), Internet of Things (IoT), virtual reality (VR), augmented reality (AR), industrial control, self-driving, remote medical, smart grid, smart furniture, smart office, smart wear, smart transportation, smart city, drone, robot and other scenarios. The terminal device may sometimes be referred to as user equipment (UE), terminal, access station, UE station, remote station, wireless communication device, or user device, etc.
[0122] 2. Network equipment includes, for example, access network devices (or referred to as access network equipment or access network elements), and / or core network devices (or referred to as core network equipment or core network elements).
[0123] The access network device is a device with wireless transceiver function, which is used to communicate with the terminal device. The access network device includes but is not limited to the base station (BTS, Node B, eNodeB / eNB, or gNodeB / gNB) in the above-mentioned communication system, the transceiver point (t(R)ANsmission reception point, TRP), the base station of the subsequent evolution of 3GPP, the access node in the wireless fidelity (wireless fidelity, WiFi) system, the wireless relay node, the wireless backhaul node, the satellite or the drone, etc. The base station can be: a macro base station, a micro base station, a micro-micro base station, a small station, a relay station, etc. Multiple base stations can support the networks of the same access technology mentioned above, or they can support the networks of the different access technologies mentioned above. The base station can include one or more co-site or non-co-site transmission and reception points. The access network element can also be a wireless controller, a centralized unit (CU), which can also be called a convergence unit, and / or a distributed unit (DU) in the cloud radio access network (C(R)AN) scenario. The access network device can also be a server, a wearable device, or a vehicle-mounted device. For example, the access network element in the vehicle to everything (V2X) technology can be a road side unit (RSU). The following takes the base station as an example to illustrate the access network device. The multiple access network devices in the communication system can be base stations of the same type or different types. The base station can communicate with the terminal device or communicate with the terminal device through a relay station. The terminal device can communicate with multiple base stations in different access technologies.
[0124] The access network device is used to implement at least one of the functions of mobility management, data processing, session management, policy and billing. The names of the devices that implement the core network functions in systems with different access technologies may be different, and the embodiments of the present application do not limit this. Taking the 5G system as an example, the access network device includes: AMF, session management function (SMF) or user plane function (UPF), etc.
[0125] 3. Device, which can be a single device, a software module or hardware module (such as a chip) in a single device, or a device integrating multiple devices.
[0126] 4. Gray code was proposed by Frank Gray of Bell Labs in 1940 to prevent errors when transmitting signals using the PCM (Pulse Code Modulation) method. Gray code is a set of numbers in which only one bit changes between two adjacent numbers, and the order of Gray code is not unique.
[0127] 5. A constellation diagram that complies with Gray code mapping rules refers to a constellation diagram generated using Gray code design rules. The Hamming distance between two adjacent modulation symbols in this constellation diagram is 1. In other words, the bit sequences corresponding to two adjacent modulation symbols have only one bit value at one position that is different, and the values of the bits at other positions are the same. For example, the bit sequence corresponding to one modulation symbol is 1111, and the bit sequence corresponding to the other modulation symbol is 1110, and the one modulation symbol differs from the other modulation symbol only in the value of the bit at the fourth position.
[0128] Combine the following Figure 1 A constellation diagram that complies with the Gray code mapping rule is shown, and the constellation diagram that complies with the Gray code mapping rule is introduced. The modulation mode corresponding to the constellation diagram is 16 quadrature amplitude modulation (quadrature amplitude modulation, 16QAM / 16-QAM) mode. In this case, the constellation diagram can be called a 16QAM constellation diagram.
[0129] like Figure 1 As shown, the constellation diagram includes an X-axis (also called a horizontal axis) and a Y-axis (also called a vertical axis). The constellation diagram may also include 16 modulation symbols, and the 16 modulation symbols include the following: Figure 1 16 modulation symbols shown in a1 to a16. Each modulation symbol corresponds to a bit sequence, and a bit sequence includes four bits. Figure 1 As shown, the bit sequences corresponding to the 16 modulation symbols a1 to a16 are: 0001, 0101, 0100, 0000, 0010, 0110, 0111, 0011, 1110, 1010, 1011, 1111, 1101, 1001, 1000 and 1100 respectively.
[0130] like Figure 1 As shown, the two bit sequences corresponding to any two adjacent modulation symbols have only one bit different in one position, for example, constellation points a1 and a4 have only different values of the bit in the fourth position, and constellation points a4 and a3 have only different values of the bit in the second position.
[0131] The following assumes that the transmitted bit sequence is 0001 and the constellation diagram is Figure 1 Taking the constellation diagram shown in FIG. 1 as an example, the communication process between the transmitter and the receiver is introduced.
[0132] The sender can use Figure 1 The constellation diagram shown in FIG. 1 modulates the bit sequence to obtain modulation symbols (i.e., Figure 1 The modulated symbol is a modulation symbol shown in a1 in the figure, and the modulated symbol is sent to the receiving end. The receiving end demodulates the modulated symbol. Even if the receiving end demodulates the modulated symbol incorrectly, it is possible that the modulated symbol is demodulated to 0000 or 0101, and the bit sequence demodulated by the receiving end is different from the correct bit sequence by only one bit position, that is, the bit error rate of the receiving end is relatively low. In the process of the sending end sending the modulated symbol to the receiving end, the eavesdropper may eavesdrop on the modulated symbol sent by the sending end, then the eavesdropper can also demodulate the modulated symbol and obtain a bit sequence close to the bit sequence sent by the sending end, which makes the communication less secure.
[0133] In view of this, an embodiment of the present application provides a communication method, in which the two bit sequences corresponding to the real parts of the first modulation symbol and the second modulation symbol corresponding to the horizontal axis or the vertical axis are the same, and the values of the bits of the two bit sequences corresponding to the imaginary parts at the second position are different; and / or, the values of the bits of the two bit sequences corresponding to the real parts at the first position are different, and the two bit sequences corresponding to the imaginary parts are the same, that is, the constellation diagram adopts a non-Gray code design. Since the Hamming distance of adjacent modulation symbols in the constellation diagram is not limited in the method, the distribution of the bit sequences corresponding to two adjacent modulation symbols in the constellation diagram is relatively random, which increases the difficulty for an eavesdropper to demodulate the modulation symbols, which is conducive to improving the security of communication using the constellation diagram.
[0134] The method provided in the embodiment of the present application can be applied to the fifth generation (5G) mobile communication system, such as the new radio (NR) system, or to the future evolved mobile communication system or other similar communication systems, specifically, it can be applicable to the air interface communication system, or the sidelink communication system, etc. The sidelink communication system is such as the vehicle to everything (V2X) or device to device (D2D) communication system, etc. The embodiment of the present application does not make specific limitations on this.
[0135] Please refer to Figure 2 , is a schematic diagram of a scenario applicable to the embodiment of the present application, or can also be regarded as a structural diagram of a communication system. Figure 2 As shown, the scenario includes a first communication device and a second communication device communicating with each other.
[0136] The first communication device may send a signal to the second communication device (at Figure 2In this case, the first communication device can be regarded as a transmitting end or a transmitting device, and the second communication device can be regarded as a receiving end or a receiving device. Of course, the second communication device can also send a signal to the first communication device (in Figure 2 In this case, the second communication device may be regarded as a transmitting end or a transmitting device, and the first communication device may be regarded as a receiving end or a receiving device.
[0137] For example, the first communication device is a terminal device, or a software module or hardware module (such as a chip, specifically a baseband chip) in a terminal device, and the second communication device is a network device, a software module or hardware module (such as a chip, specifically a baseband chip) in a network device, etc. Or, for example, the first communication device is a network device, a software module or hardware module (such as a chip, specifically a baseband chip) in a network device, and the second communication device is, for example, a terminal device, or a software module or hardware module (such as a chip, specifically a baseband chip) in a terminal device. Wherein, the implementation form of the network device and the terminal device can refer to the foregoing. Or, for example, the first communication device is, for example, a terminal device, or a software module or hardware module (such as a chip, specifically a baseband chip) in a terminal device, and the second communication device is a terminal device, or a software module or hardware module (such as a chip, specifically a baseband chip) in a terminal device, etc. The embodiment of the present application does not limit the specific implementation form of the first communication device and the second communication device. Wherein, the implementation form of the network device and the terminal device can refer to the foregoing.
[0138] Figure 2 In the example, the number of the first communication device and the number of the second communication device are both 1, but in fact, the number of the first communication device and the second communication device is not limited.
[0139] In addition, in the embodiments of the present application, the number of nouns, unless otherwise specified, means "singular noun or plural noun", that is, "one or more". "At least one" means one or more, and "plural" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. For example, A / B means: A or B. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c means: a, b, c, a and b, a and c, b and c, or a and b and c, where a, b, c can be single or multiple.
[0140] Please refer to Figure 3 , is a schematic diagram of the protocol stack of the first communication device and the second communication device provided in the embodiment of the present application. Figure 3 As shown, the protocol stacks of the first communication device and the second communication device both include a radio resource control (RRC) layer, a packet data convergence protocol (PDCP) layer, a radio link control (RLC) layer, a medium access control (MAC) layer, and a physical (PHY) layer. In addition, the first communication device also includes a non-access stratum (NAS).
[0141] The protocol stacks of the first communication device and the second communication device may be adapted to each other, for example, the RRC layer of the first communication device is adapted (or corresponds) to the RRC layer of the second communication device, the PDCP layer of the first communication device is adapted to the PDCP layer of the second communication device, the RLC layer of the first communication device is adapted to the RLC layer of the second communication device, the MAC layer of the first communication device is adapted to the MAC layer of the second communication device, and the PHY layer of the first communication device is adapted to the PHY layer of the second communication device.
[0142] The following describes the method provided by the embodiments of the present application in conjunction with the accompanying drawings. In the accompanying drawings corresponding to the various embodiments of the present application, all steps indicated by dotted lines are optional steps. The first communication device involved in the various embodiments of the present application is, for example, Figure 2 The first communication device and the second communication device involved are, for example, Figure 2 The protocol stacks of the second communication device, the first communication device and the second communication device involved can refer to the above Figure 3 In each embodiment of the present application, the first communication device is used as a transmitting end and the second communication device is used as a receiving end.
[0143] Please refer to Figure 4 , which is a schematic diagram of a communication method provided in an embodiment of the present application.
[0144] S401: A first communication device modulates M bits using a constellation diagram to obtain a first modulation symbol, where M is a positive integer.
[0145] The M bits may be bits to be sent by the first communication device, and the M bits may be regarded as a bit sequence, a bit stream, or a portion of bits in a bit stream. Exemplarily, the first communication device may group the bits in the bit stream to obtain at least one group of bits. Each group of bits in the at least one group of bits includes M bits. In this case, the M bits in S401 may be a group of bits in the at least one group of bits.
[0146] Optionally, before executing S401, the first communication device may perform channel coding on the first original bit sequence. The first original bit sequence refers to bits to be sent and belong to a service flow. Channel coding is, for example, adding a check bit sequence. For example, the first communication device may determine a first check bit sequence corresponding to the first original bit sequence, and the first communication device uses the first original bit sequence and the first check bit sequence as M bits. The first original bit sequence is used to indicate the service data corresponding to the service flow, and the first check bit sequence is used to check the original bit sequence. The number of bits of the first check bit sequence may be specified by the protocol, or determined by negotiation between the first communication device and the second communication device.
[0147] The constellation diagram may include multiple modulation symbols. Any modulation symbol in the constellation diagram corresponds to a bit sequence. The bit sequence includes, for example, m bits, where m is a positive integer and m may be equal to M. The modulation order corresponding to the constellation diagram may also be 2 m Optionally, the number of modulation symbols in the constellation diagram is Y=2 m Any modulation symbol in the constellation diagram may be a complex number, that is, any modulation symbol may include a real part and an imaginary part. The real part in any modulation symbol may correspond to a portion of the m bits corresponding to any modulation symbol, for example, a portion of the m bits is, for example, m / 2 bits of the m bits, and the imaginary part in any modulation symbol may correspond to another portion of the m bits corresponding to any modulation symbol, for example, another portion of the m bits is, for example, 2 / m bits of the m bits.
[0148] The constellation diagram may be a constellation diagram corresponding to any modulation mode, such as pulse amplitude modulation (PAM), QAM, phase shift keying (PSK) modulation mode, etc. PSK may include pulse PSK (QPSK). Taking the constellation diagram corresponding to the QAM mode (also referred to as the QAM constellation diagram) as an example, different modulation orders correspond to different constellation diagrams. Different constellation diagrams may refer to different numbers of constellation points included in different constellation diagrams. For example, the QAM constellation diagram can be divided into 16QAM or 64QAM, etc.
[0149] In a possible implementation manner, the constellation diagram may satisfy any first condition in the following A1 to A6: Any first condition in A1 to A6 may be regarded as a non-Gray code mapping rule.
[0150] A1. The two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the horizontal axis in the constellation diagram are the same, and the two bit sequences corresponding to the imaginary parts of any two modulation symbols symmetrical along the horizontal axis in the constellation diagram have different bit values at the i-th position. The two bit sequences corresponding to the real parts of any two modulation symbols in the constellation diagram have the same total number of bits, and the two bit sequences corresponding to the imaginary parts have the same total number of bits.
[0151] The horizontal axis may be, for example, an X-axis, an I-axis, or a real-part axis, and the horizontal axis may represent an in-phase component or a real part. Two modulation symbols symmetrical along the horizontal axis may also be described as two modulation symbols corresponding along the horizontal axis. The vertical axis may be, for example, a Y-axis, a Q-axis, or an imaginary-part axis. The vertical axis may represent an orthogonal component or an imaginary part. Two modulation symbols symmetrical along the vertical axis may also be described as two modulation symbols corresponding along the vertical axis.
[0152] To simplify the description, the two bit sequences corresponding to the real parts of two modulation symbols symmetrical along the horizontal axis are referred to as the first group of bit sequences, and the two bit sequences corresponding to the imaginary parts of any two modulation symbols symmetrical along the horizontal axis are referred to as the second group of bit sequences.
[0153] The fact that the two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the horizontal axis are the same can be understood as the value of the bit at the jth position of the first group of bit sequences being the same, where j can be any positive integer from 1 to k. k can be the total number of bits (or the number of digits) of any bit sequence in the first group of bit sequences.
[0154] The values of the bits at the i-th position of the second group of bit sequences are different, i can be any positive integer from 1 to r, and r is the total number of bits in a bit sequence in the second group of bit sequences. The values of r and k are the same or different, and the sum of k and r is equal to m, for example, the values of k and r can both be m / 2.
[0155] Under the first condition shown in A1, the two bit sequences corresponding to the real parts of the two modulation symbols symmetrical along the vertical axis in the constellation diagram (hereinafter referred to as the third group of bit sequences) are the same, and the two bit sequences corresponding to the imaginary parts of the two modulation symbols symmetrical along the vertical axis in the constellation diagram (hereinafter referred to as the fourth group of bit sequences) have different values of the bits at the i-th position. Alternatively, the values of the third group of bit sequences at the j-th position may be different, and the fourth group of bit sequences are the same. The embodiment of the present application does not specifically limit the conditions satisfied by the two modulation symbols symmetrical along the vertical axis in the constellation diagram under the first condition shown in A1. The contents of j and i can refer to the above.
[0156] For example, see Figure 5 , which is a partial schematic diagram of a constellation diagram provided in an embodiment of the present application. Figure 5 Each modulation symbol in corresponds to four bits, the first two bits of each modulation symbol correspond to the real part, and the last two bits of the modulation symbol correspond to the imaginary part. Figure 5 The constellation diagram in includes modulation symbols a1 and a2. Figure 5 As shown, the modulation symbol a1 and the modulation symbol a2 are symmetrical (or corresponding) along the horizontal axis.
[0157] like Figure 5 As shown, the bit sequence corresponding to the real part of the modulation symbol a1 (i.e., 00) is the same as the bit sequence corresponding to the real part of the modulation symbol a2 (i.e., 00), and the bit sequence corresponding to the imaginary part of the modulation symbol a1 (i.e., 01) is different from the bit sequence corresponding to the imaginary part of the modulation symbol a2 (i.e., 10) in the value of the bit at the first position, and the value of the bit at the second position is also different.
[0158] A2. The two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the vertical axis in the constellation diagram (i.e., the third group of bit sequences) have different bit values at the j-th position, and the two bit sequences corresponding to the imaginary parts of any two modulation symbols symmetrical along the vertical axis in the constellation diagram (i.e., the fourth group of bit sequences) are the same.
[0159] The contents of any two modulation symbols symmetrical along the vertical axis in the constellation diagram, the two bit sequences corresponding to the real parts, and the two bit sequences corresponding to the imaginary parts can refer to the contents of the previous text.
[0160] Under the first condition shown in A2, the bit sequences corresponding to the real parts of the two modulation symbols symmetrical along the horizontal axis in the constellation diagram (i.e., the first group of bit sequences) are the same, or. The bit sequences corresponding to the imaginary parts of the two modulation symbols symmetrical along the horizontal axis in the constellation diagram (i.e., the second group of bit sequences) have different values at the i-th position. Alternatively, the values of the first group of bit sequences at the j-th position are different, and the second group of bit sequences are the same. The embodiment of the present application does not specifically limit the conditions satisfied by the two modulation symbols symmetrical along the horizontal axis in the constellation diagram under the first condition shown in A2.
[0161] For example, please refer to Figure 5 The constellation diagram also includes a modulation symbol a3. The modulation symbol a1 is symmetrical with the modulation symbol a3 along the vertical axis.
[0162] like Figure 5 As shown, the bit sequence corresponding to the real part of the modulation symbol a1 (i.e., 00) and the bit sequence corresponding to the real part of the modulation symbol a3 (i.e., 11) are different in the bit at the first position, and different in the bit at the second position, and the bit sequence corresponding to the imaginary part of the modulation symbol a1 (i.e., 01) is the same as the bit sequence corresponding to the imaginary part of the modulation symbol a3 (i.e., 01).
[0163] A3. The two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the horizontal axis in the constellation diagram (i.e., the first group of bit sequences) are the same, the two bit sequences corresponding to the imaginary parts of any two modulation symbols symmetrical along the horizontal axis in the constellation diagram (i.e., the second group of bit sequences) have different values of bits at corresponding positions, the two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the vertical axis in the constellation diagram (i.e., the third group of bit sequences) have different values of bits at corresponding positions, and the two bit sequences corresponding to the imaginary parts of any two modulation symbols symmetrical along the vertical axis in the constellation diagram (i.e., the fourth group of bit sequences) have the same values of bits at corresponding positions.
[0164] The meanings of any two modulation symbols symmetrical along the horizontal axis, two modulation symbols symmetrical along the vertical axis, and any two bit sequences at corresponding positions can be referred to the previous content.
[0165] For example, see Figure 6 , is a schematic diagram of a constellation diagram provided in an embodiment of the present application. Figure 6 As shown, the constellation diagram includes 16 modulation symbols shown as a1 to a16, wherein each modulation symbol corresponds to four bits, the first two bits of each modulation symbol correspond to the real part, and the last two bits of the modulation symbol correspond to the imaginary part. Figure 6 As shown, modulation symbol a1 is symmetrical with modulation symbol a8 along the horizontal axis, and modulation symbol a1 is symmetrical with a14 along the vertical axis. Modulation symbol a2 is symmetrical with modulation symbol a7 along the horizontal axis, and modulation symbol a2 is symmetrical with a13 along the vertical axis. Modulation symbol a3 is symmetrical with modulation symbol a6 along the horizontal axis, and modulation symbol a3 is symmetrical with a16 along the vertical axis. Modulation symbol a4 is symmetrical with modulation symbol a5 along the horizontal axis, and modulation symbol a4 is symmetrical with a15 along the vertical axis. Modulation symbol a5 is symmetrical with modulation symbol a10 along the vertical axis. Modulation symbol a6 is symmetrical with modulation symbol a9 along the vertical axis. Modulation symbol a7 is symmetrical with modulation symbol a12 along the vertical axis. Modulation symbol a8 is symmetrical with modulation symbol a11 along the vertical axis. Modulation symbol a9 is symmetrical with modulation symbol a16 along the horizontal axis. Modulation symbol a10 is symmetrical with modulation symbol a15 along the horizontal axis. Modulation symbol a11 is symmetrical with modulation symbol a14 along the horizontal axis. Modulation symbol a12 is symmetrical with modulation symbol a13 along the horizontal axis.
[0166] The bit sequence corresponding to the real part of modulation symbol a1 (i.e., 00) is the same as the bit sequence corresponding to the real part of modulation symbol a8 (i.e., 00), and the bit sequence corresponding to the imaginary part of modulation symbol a1 (i.e., 01) is different from the bit sequence corresponding to the imaginary part of modulation symbol a8 (i.e., 10) in the first position and in the second position. The bit sequence corresponding to the real part of modulation symbol a1 (i.e., 00) is different from the bit sequence corresponding to the real part of modulation symbol a14 (i.e., 11) in the first position and in the second position, and the bit sequence corresponding to the imaginary part of modulation symbol a1 (i.e., 01) is the same as the bit sequence corresponding to the imaginary part of modulation symbol a14 (i.e., 01). The other two modulation symbols symmetrical along the horizontal axis and the two modulation symbols corresponding along the vertical axis all meet the first condition shown in A3 above, and are not listed here.
[0167] A4. The two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the horizontal axis in the constellation diagram have different bit values at the j-th position, and the two bit sequences corresponding to the imaginary parts of any two modulation symbols symmetrical along the horizontal axis in the constellation diagram are the same.
[0168] Under the first condition shown in A4, the two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the vertical axis in the constellation diagram are the same, and the two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the vertical axis in the constellation diagram have different bit values at the i-th position. Alternatively, the two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the vertical axis in the constellation diagram have the same bit values at the j-th position, and the two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the vertical axis in the constellation diagram are the same. The embodiment of the present application does not specifically limit the conditions satisfied by the two modulation symbols symmetrical along the vertical axis in the constellation diagram under the first condition shown in A4.
[0169] For example, see Figure 7 , which is a partial schematic diagram of a constellation diagram provided in an embodiment of the present application. Figure 7 Each modulation symbol in corresponds to eight bits, the first four bits of each modulation symbol correspond to the real part, and the last four bits of the modulation symbol correspond to the imaginary part. Figure 7 As shown, a1 and a2 are two corresponding modulation symbols along the horizontal axis, and the bit sequence corresponding to the real part of modulation symbol a1 (i.e., 1010) and the bit sequence corresponding to the real part of modulation symbol a2 (i.e., 0101) have different bit values at the first position, different bit values at the second position, different bit values at the third position, and different bit values at the fourth position. The bit sequence corresponding to the imaginary part of modulation symbol a1 (i.e., 1010) is the same as the bit sequence corresponding to the imaginary part of modulation symbol a2 (i.e., 1010).
[0170] A5. The two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the vertical axis in the constellation diagram (i.e., the third group of bit sequences) are the same, and the two bit sequences corresponding to the imaginary parts of any two modulation symbols symmetrical along the vertical axis in the constellation diagram (i.e., the fourth group of bit sequences) have different bits at the i-th position.
[0171] For example, please refer to Figure 7 , Figure 7 It also includes a modulation symbol a3, which is symmetrical with the modulation symbol a1 along the vertical axis. The bit sequence corresponding to the real part of the modulation symbol a3 (i.e., 1010) is the same as the real part of the modulation symbol a1 (i.e., 1010), and the bit sequence corresponding to the imaginary part of the modulation symbol a3 (i.e., 0101) and the bit sequence corresponding to the imaginary part of the modulation symbol a1 (i.e., 1010) have different bit values at the first position, different bit values at the second position, different bit values at the third position, and different bit values at the fourth position.
[0172] Under the first condition shown in A5, the two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the horizontal axis in the constellation diagram are the same, and the two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the horizontal axis in the constellation diagram have different bit values at the i-th position. Alternatively, the two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the horizontal axis in the constellation diagram have the same bit values at the j-th position, and the two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the horizontal axis in the constellation diagram are the same. The embodiment of the present application does not specifically limit the conditions satisfied by the two modulation symbols symmetrical along the horizontal axis in the constellation diagram under the first condition shown in A5.
[0173] A6. The two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the horizontal axis in the constellation diagram have different bit values at the j-th position, and the two bit sequences corresponding to the imaginary parts of any two modulation symbols symmetrical along the horizontal axis in the constellation diagram are the same, and the two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the vertical axis in the constellation diagram (i.e., the third group of bit sequences) are the same, and the two bit sequences corresponding to the imaginary parts of any two modulation symbols symmetrical along the vertical axis in the constellation diagram (i.e., the fourth group of bit sequences) have different bits at the i-th position.
[0174] The constellation diagram may be determined by negotiation between the first communication device and the second communication device, or the protocol may be configured in the first communication device, or the first communication device may receive it from the second communication device, and the embodiment of the present application does not limit this. After the first communication device determines the M bits to be sent, the M bits may be modulated (or mapped) through the constellation diagram to obtain a first modulation symbol. The first modulation symbol may be regarded as the modulation symbol corresponding to the M bits on the constellation diagram. In other words, the first modulation symbol may correspond to the M bits.
[0175] For example, if M bits are 0001, the constellation diagram is Figure 6 Taking the constellation diagram shown as an example, the first communication device can determine that the first modulation symbol is the modulation symbol shown by a1. For example, the real part of the modulation symbol shown by a1 is The real part is Then the first modulation symbol can be expressed as
[0176] In another possible scheme (such as an embodiment corresponding to any one of the fourth to sixth aspects of the above invention content), in this case, it is not optional for the constellation diagram to satisfy the first condition of any one of A1 to A6 above, that is, the constellation diagram must satisfy the first condition of any one of A1 to A6 above.
[0177] S402: The first communication device modulates N bits using a constellation diagram to obtain a second modulation symbol, where N is a positive integer.
[0178] In addition to modulating the above-mentioned M bits, the first communication device may also use a constellation diagram to modulate N bits to obtain a second modulation symbol. The method of modulating N bits can refer to the content of modulating M bits in the previous text, which will not be repeated here. N is a positive integer, and N can be equal to M. The N bits can be regarded as a bit sequence, a bit stream, or part of the bits in a bit stream. Optionally, the N bits and the M bits may belong to part of the same bit stream, or to different bit streams. Optionally, the first communication device may perform channel coding on the second original bit sequence to obtain N bits. In this case, the N bits include the second original bit sequence, and a second check bit sequence for checking the second original bit sequence. The relationship between the first modulation symbol and the second modulation symbol is explained below.
[0179] Case 1: The first modulation symbol and the second modulation symbol are symmetrical along the horizontal axis in the constellation diagram.
[0180] In the first case, the bit sequence corresponding to the real part of the first modulation symbol (hereinafter referred to as the first bit sequence) and the bit sequence corresponding to the real part of the second modulation symbol (hereinafter referred to as the second bit sequence) have different values at the first position, and the bit sequence corresponding to the imaginary part of the first modulation symbol (hereinafter referred to as the third bit sequence) and the bit sequence corresponding to the imaginary part of the second modulation symbol (hereinafter referred to as the fourth bit sequence) are the same.
[0181] Alternatively, the first bit sequence is the same as the second bit sequence, and the third bit sequence and the fourth bit sequence have different values at the second position. The first position is the position where any bit in the first bit sequence or the second bit sequence is located. The second position is the position where any bit in the third bit sequence or the fourth bit sequence is located.
[0182] Case 2: The first modulation symbol and the second modulation symbol are symmetrical along the vertical axis in the constellation diagram.
[0183] In case 2, the first bit sequence and the second bit sequence have different values at the first position, and the third bit sequence and the fourth bit sequence have different values at the second position. Alternatively, the first bit sequence and the second bit sequence are the same, and the third bit sequence and the fourth bit sequence have different values at the second position.
[0184] In the case where the constellation diagram satisfies any first condition among A1 to A6 above, if the first condition satisfied by the constellation diagram is different and the relationship between the first modulation symbol and the second modulation symbol is different, then the relationship between the bit sequences corresponding to the first modulation symbol and the second modulation symbol may also be different, as illustrated below with examples.
[0185] B1. The constellation diagram satisfies the first condition shown in A1 above, and the first modulation symbol and the second modulation symbol are symmetrical along the horizontal axis, then the first bit sequence and the second bit sequence are the same, and the values of the bits at the second position of the third bit sequence and the fourth bit sequence are different.
[0186] B2. The constellation diagram satisfies the first condition shown in A2 above, and the first modulation symbol and the second modulation symbol are symmetrical along the vertical axis, then the values of the bits at the first position of the first bit sequence and the second bit sequence are different, and the third bit sequence and the fourth bit sequence are the same.
[0187] B3. The constellation diagram satisfies the first condition shown in A4 above, and the first modulation symbol and the second modulation symbol are symmetrical along the horizontal axis, the values of the bits at the first position of the first bit sequence and the second bit sequence are different, and the third bit sequence and the fourth bit sequence are the same.
[0188] B4. The constellation diagram satisfies the first condition shown in A5 above, and the first modulation symbol and the second modulation symbol are symmetrical along the vertical axis, then the first bit sequence and the second bit sequence are the same, and the values of the bits at the second position of the third bit sequence and the fourth bit sequence are different.
[0189] In the above cases B1 to B4, the first modulation symbol and the second modulation symbol can be regarded as an example of a constellation diagram satisfying the first condition.
[0190] The first communication device may execute steps S401 and S402 in any order, for example, executing S401 first and then S402; or executing S402 first and then S401; or executing S401 and S402 simultaneously, which is not limited in the embodiments of the present application.
[0191] S403: The first communication device processes the first modulation symbol to obtain a fourth modulation symbol. There are many ways for the first communication device to obtain the fourth modulation symbol, which are described in the following examples.
[0192] C1. Encrypt the first modulation symbol according to the first key to obtain an encrypted modulation symbol. In this case, the fourth modulation symbol is the encrypted first modulation symbol.
[0193] The first key may be a key preconfigured or predefined in the first communication device, for example, may be predefined in the first communication device by a protocol. Alternatively, the first key may be generated by the first communication device according to the first information.
[0194] The first information may include a third key. The third key may be a preconfigured or predefined key. Alternatively, the third key may be generated by the first communication device according to the third key.
[0195] For example, the third key may be obtained by encrypting the fourth key by the first communication device based on the third encryption algorithm. The number of bits (or digits) of the fourth key may be arbitrary, for example, the number of bits of the fourth key is 512. The third encryption algorithm is, for example, a secure hash algorithm (SHA), such as a SHA2-512 algorithm.
[0196] The fourth key may be preconfigured or predefined in the first communication device, for example, the fourth key may be preconfigured or predefined in a non-physical layer of the first communication device, the non-physical layer may include, for example, a non-access layer, a radio resource control layer, a packet data convergence protocol layer, a radio link control layer, or a media access control layer. Alternatively, the fourth key may be received by the first communication device from a core network element, the core network element being, for example, an AMF.
[0197] Optionally, in addition to the third key, the first information may also include information that the first communication device has sent to the second communication device, and / or information that the first communication device has received from the second communication device. Since the information that the first communication device has sent to the second communication device and the information that the first communication device has received from the second communication device are generally cached in the physical layer of the first communication device, the information that the first communication device has sent to the second communication device and the information that the first communication device has received from the second communication device can be regarded as the physical layer parameter ρ. phy .
[0198] The information that the first communication device has sent to the second communication device may be, for example, one or more of a service flow, a reference signal (RS), and a random number, and the reference signal may be, for example, a sounding reference signal (SRS), a demodulation reference signal (DMRS), or a channel state information reference signal. The information that the first communication device has received from the second communication device may be, for example, one or more of service data, a reference signal, and a random number. In the case where the first information also includes a service flow, since the service flow can be stored in the physical layer in frames, the service flow in the first information may also be referred to as physical layer subframe information.
[0199] Optionally, when the first communication device is a terminal device and the second communication device is a network device, the fourth key is, for example, a third key used to generate and authenticate the first communication device during the process of the first communication device accessing (or registering) the second communication device or the core network. In this case, the third key can be, for example, represented by K gNB Authentication, for example, includes verifying the identity of the first communication device. In this case, the first communication device may be pre-configured or pre-defined with a fourth key, and the second communication device may receive the fourth key from a core network device (such as AMF).
[0200] Alternatively, the first communication device is a network device, the second communication device is a terminal device, and the fourth key is, for example, a third key used to generate and authenticate the second communication device during the process of the second communication device accessing (or registering) the first communication device or the core network. In this case, the first communication device may be pre-configured or pre-defined with the fourth key, and the second communication device receives the fourth key from the core network device (such as AMF).
[0201] The following is an example of a process in which the first communication device generates a first key based on the first information.
[0202] Mode 1: The first communication device encrypts the first information according to the fourth encryption algorithm to obtain the first key. The fourth encryption algorithm may also be, for example, a SHA algorithm, and the fourth encryption algorithm may be the same as or different from the third encryption algorithm. The fourth encryption algorithm may be preconfigured or predefined, or may be determined by negotiation between the first communication device and the second communication device.
[0203] In this method, the first information only needs to be encrypted once to generate the first key, and the method of generating the first key is simple.
[0204] Method 2: The first communication device may encrypt the first information according to the first encryption algorithm to obtain the fifth key. The first communication device may encrypt the fifth key according to the second encryption algorithm to obtain the sixth key. The second encryption algorithm and the first encryption algorithm may be the same or different, and the first encryption algorithm and the second encryption algorithm may be preconfigured or predefined, or may be determined by negotiation between the first communication device and the second communication device.
[0205] Exemplarily, the first communication device may generate the fifth key by key derivation. For example, the first communication device may derive the third key and the physical layer parameters in the first information to obtain the initial vector, and encrypt the initial vector and the physical layer subframe information in the first information according to the first encryption algorithm to obtain the fifth key. The fifth key may be regarded as a root key. The total number of bits of the initial vector is, for example, 512. The first communication device may perform key expansion on the fifth key according to the second encryption algorithm to obtain the sixth key. The following is an introduction to the possible forms of the first key under the second method.
[0206] 1. The first key is all the bits in the sixth key.
[0207] 2. The first key is part of the bits in the sixth key.
[0208] Exemplarily, the first communication device groups the sixth key to obtain multiple groups of keys, wherein the total number of bits of any two groups of keys may be the same. The first communication device may use one group of keys in the multiple groups of keys as the first key.
[0209] For example, the total number of bits of the sixth key is u1*n, where u1 is an integer greater than 1, n is a positive integer, * represents multiplication, and the n bits in the sixth key are the first key.
[0210] Optionally, in the case where the first key is a key in a plurality of key groups, other key groups in the plurality of key groups except the first key may be used to encrypt other modulation symbols. For example, a key group in the plurality of key groups except the first key (which may be regarded as an example of the second key) may be used to encrypt the second modulation symbol in the foregoing text to obtain the encrypted second modulation symbol. In other words, some or all of the bits in the fifth key except the first key may also be used to encrypt the second modulation symbol.
[0211] 3. The first key is all the bits in the seventh key.
[0212] The seventh key may be determined according to the fifth key and the sixth key. For example, the seventh key is the result of the arrangement of the fifth key and the sixth key. For example, if the fourth key is 00001111 and the fifth key is 010101, then the sixth key may be 00001111010101. Alternatively, the seventh key may be the result of the encryption of the fifth key and the sixth key.
[0213] 4. The first key is a portion of the bits in the seventh key. The method for obtaining the seventh key can refer to the above content.
[0214] Exemplarily, the first communication device groups the seventh key to obtain multiple groups of keys, wherein the total number of bits of any two groups of keys may be the same. The first communication device may use one group of keys in the multiple groups of keys as the first key.
[0215] For example, the total number of bits of the seventh key is u2*n, u2 is an integer greater than 1, u2 and n are both positive integers, and the n bits of the seventh key are the first key.
[0216] Optionally, a group of keys other than the first key in the multiple groups of keys (which can be regarded as an example of the second key) can also be used to encrypt the second modulation symbol in the foregoing text to obtain the encrypted second modulation symbol. In other words, some or all of the bits in the seventh key other than the first key can also be used to encrypt the second modulation symbol.
[0217] In the above-mentioned second mode, the first communication device is equivalent to encrypting the first information multiple times, which can ensure the security of the first key. In addition, the first communication device can also obtain the key for encrypting multiple modulation symbols based on one calculation, which is conducive to reducing the number of key calculations.
[0218] The above describes the process of generating the first key. The following describes how the first communication device encrypts the first modulation symbol based on the first key. The encryption method for the first modulation symbol based on the first key may include the method shown in D1 or D2, which are described below.
[0219] D1. The first communication device shifts the first modulation symbol based on the first key to obtain an encrypted modulation symbol.
[0220] D1-1, the first communication device can determine the translation length of the first modulation symbol in the constellation diagram according to the first key, and based on the translation length and the direction angle, translate the first modulation symbol in the constellation diagram to obtain the encrypted modulation symbol.
[0221] The direction angle indicates the direction and angle of moving the first modulation symbol. For example, the direction angle is +30 degrees, which indicates moving 30 degrees in the clockwise direction of the constellation diagram, or the direction angle is -30 degrees, which indicates moving 30 degrees in the counterclockwise direction of the constellation diagram.
[0222] Exemplarily, the first communication device may move the first modulation symbol along the direction indicated by the direction angle by a set length and an angle indicated by the movement direction angle, thereby obtaining an encrypted first modulation symbol.
[0223] For example, a calculation formula for the translation length may refer to the following formula (1).
[0224]
[0225] Where ρ represents the translation length, k ii represents the first key, and n represents the number of bits of the first key.
[0226] The above formula (1) can be applied when the modulation mode corresponding to the constellation diagram is QPSK.
[0227] Alternatively, a calculation formula for the translation length may refer to the following formula (2).
[0228]
[0229] The above formula (2) is applicable when the modulation mode corresponding to the constellation diagram is QAM.
[0230] In the case of D1-1, the direction angle may be determined by negotiation between the first communication device and the second communication device. Alternatively, the direction angle is preconfigured or predefined, for example, the direction angle may be (π / 4). Alternatively, the direction angle may be determined by the first communication device according to the translation length.
[0231] Exemplarily, the first communication device may be preconfigured or predefined with a relationship (such as a first relationship) between the translation length and the direction angle. After determining the translation length, the first communication device may determine the direction angle according to the translation length and the first relationship.
[0232] The first relationship is, for example, and Optionally, the first relationship also includes that when θ=π / 4, ρ>1. The first relationship may be applicable when the modulation mode corresponding to the constellation diagram is QPSK.
[0233] Alternatively, the first relationship is, for example, and Optionally, the first relationship also includes when θ=π / 4, The first relationship may be applicable when the modulation mode corresponding to the constellation diagram is QAM.
[0234] For example, see Figure 8 , is a schematic diagram of a process for obtaining an encrypted first modulation symbol provided in an embodiment of the present application. Figure 8 In the figure, the direction of translating the first modulation symbol is the counterclockwise direction along the constellation diagram. Figure 8 As shown, the first communication device determines that the translation length is ρ and the preconfigured direction angle is θ. Then the first communication device can translate the first modulation symbol a1 in the counterclockwise direction of the constellation diagram according to the translation length ρ and the direction angle θ, thereby obtaining the encrypted first modulation symbol a2.
[0235] D1-2. The first communication device may determine the direction angle of the first modulation symbol in the constellation diagram according to the first key, and translate the first modulation symbol in the constellation diagram based on the direction angle and the translation length, thereby obtaining the encrypted first modulation symbol.
[0236] For example, the direction angle is the phase corresponding to the third modulation symbol. The third modulation symbol may be obtained by modulating the first key according to the constellation diagram, that is, the third modulation symbol may be understood as the modulation symbol corresponding to the first key.
[0237] In the case of D1-2, the translation length may be determined by negotiation between the first communication device and the second communication device, or may be preconfigured or predefined. For example, the translation length may be 2, or may be determined by the first communication device according to the direction angle.
[0238] Exemplarily, the first communication device may be preconfigured or predefined with a first relationship between the translation length and the direction angle. After the first communication device determines the direction angle based on the first key, the translation length may be determined according to the direction angle and the first relationship. The content of the first relationship may refer to the content of the first relationship in D1-1 above.
[0239] D1-3. The first communication device can determine the translation length and direction angle of the first modulation symbol in the constellation diagram according to the first key, and based on the translation length and direction angle, translate the first modulation symbol in the constellation diagram to obtain the encrypted first modulation symbol.
[0240] For the content of determining the translation length based on the first key, reference may be made to the content discussed in D1-1 above. For the content of determining the direction angle based on the first key, reference may be made to the content discussed in D1-2 above.
[0241] D2. The first communication device performs phase rotation on the first modulation symbol based on the first key to obtain an encrypted first modulation symbol.
[0242] Exemplarily, the first communication device may superimpose the phase of the third modulation symbol on the phase of the first modulation symbol to obtain the encrypted first modulation symbol. The meaning of the third modulation symbol may refer to the above content.
[0243] For example, a method for calculating the second modulation symbol is as follows: Formula (3).
[0244]
[0245] Where angle(x) represents the phase of x, c 0-li represents the second modulation symbol, k li represents the first key, Represents the phase of the fifth modulation symbol.
[0246] When the phase of the first modulation symbol is superimposed on the constellation diagram, the direction of the phase of the superimposed first modulation symbol may also be considered, and the direction of the phase of the superimposed first modulation symbol may be, for example, a counterclockwise or clockwise translation along the constellation diagram. The direction of the superimposed phase may be preconfigured or predefined in the first communication device, or may be determined by negotiation between the first communication device and the second communication device, and this is not limited in the embodiments of the present application.
[0247] C2. The first communication device may use the first modulation symbol as the fourth modulation symbol. In this case, it can be regarded that the first communication device does not need to perform step S403, that is, step S403 is an optional step. Figure 4 Indicated by dotted line.
[0248] C3. The first communication device performs post-processing on the first modulation symbol to obtain a post-processed modulation symbol. In this case, the fourth modulation symbol can be regarded as the post-processed first modulation symbol. Post-processing, for example, includes inverse fast Fourier transform (IFFT) and / or adding a cyclic prefix (CP). IFFT is used to convert a signal represented in the frequency domain into a signal represented in the time domain. The encrypted first modulation symbol represented by a complex number can be regarded as a signal represented in the frequency domain. Adding CP means adding CP to a signal represented in a time series.
[0249] C4. The first communication device encrypts the first modulation symbol based on the first key, and performs post-processing on the encrypted first modulation symbol to obtain a fourth modulation symbol. The post-processing includes IFFT and / or CP.
[0250] The first communication device may obtain the fourth modulation symbol in various ways, which are not specifically limited in the present embodiment. The manner in which the first communication device determines the fourth modulation symbol may be configured by a protocol, or may be determined by negotiation between the first communication device and the second communication device.
[0251] S404: The first communication device processes the second modulation symbol to obtain a fifth modulation symbol.
[0252] E1. The first communication device may encrypt the second modulation symbol based on the second key to obtain the encrypted second modulation symbol, and use the encrypted second modulation symbol as the fifth modulation symbol.
[0253] For example, the first communication device may determine the second key based on the first information, wherein the method for determining the second key may refer to the content of determining the first key in the foregoing text and will not be listed here.
[0254] Alternatively, the first communication device determines the first key and the second key based on the first information.
[0255] Exemplarily, when the first key is part of the sixth key or the seventh key, the second key may be part or all of the sixth key or the seventh key except the first key. In this way, the first communication device determines the first key and the second key based on the first information.
[0256] The manner in which the first communication device encrypts the second modulation symbol based on the second key may also refer to the content of encrypting the first modulation symbol based on the first key in the previous text, which will not be listed here.
[0257] E2. The first communication device directly determines the second modulation symbol as the fifth modulation symbol. In this case, it can be regarded that the first communication device does not need to perform step S404, that is, step S404 is an optional step. Figure 4 Indicated by dotted line.
[0258] E3. The first communication device post-processes the second modulation symbol to obtain the post-processed second modulation symbol, and uses the post-processed first modulation symbol as the fifth modulation symbol.
[0259] E4. The first communication device encrypts the second modulation symbol and performs post-processing on the encrypted second modulation symbol to obtain a fifth modulation symbol.
[0260] The first communication device may execute steps S403 and S404 in any order, for example, executing S403 first and then S404; or executing S403 first and then S404; or executing S403 and S404 simultaneously, which is not limited in the embodiments of the present application.
[0261] S405: The first communication device sends a fourth modulation symbol and a fifth modulation symbol to the second communication device. Correspondingly, the second communication device receives the fourth modulation symbol and the fifth modulation symbol from the first communication device.
[0262] The order of sending the fourth modulation symbol and the fifth modulation symbol can be arbitrary. For example, the first communication device first sends the fourth modulation symbol and then sends the fifth modulation symbol; or, the first communication device sends the fourth modulation symbol and the fifth modulation symbol at the same time; or, the first communication device first sends the fifth modulation symbol and then sends the fourth modulation symbol. The embodiments of the present application do not limit this.
[0263] In the case where one of the first communication device and the second communication device is a terminal device and the other is a network device, the first communication device may send the fourth modulation symbol and the fifth modulation symbol to the second communication device via a channel air interface (such as a Uu port).
[0264] S406. The second communication device obtains the first modulation symbol according to the fourth modulation symbol.
[0265] The first communication device obtains the fourth modulation symbol in different ways, and the second communication device obtains the first modulation symbol in different ways, which are respectively introduced below.
[0266] If the first communication device determines the fourth modulation symbol in the manner shown in C1 above, the second communication device may decrypt the fourth modulation symbol based on the first key to obtain the first modulation symbol.
[0267] The first key may be a key preconfigured or predefined in the second communication device, for example, it may be predefined in the second communication device through a protocol. Alternatively, the first key may be generated by the second communication device according to the first information. The meaning of the first information may refer to the content of the previous text.
[0268] The third key may be a key preconfigured or predefined in the second communication device, or the third key may be generated by the first communication device according to the eighth key. The content of the eighth key may refer to the content of the fourth key in the foregoing text, and the second communication device may refer to the content of the third key generated by the first communication device according to the fourth key in the foregoing text based on the manner in which the third key is generated according to the eighth key. The eighth key may be the same as or different from the fourth key. The eighth key may be preconfigured or predefined in the non-physical layer of the second communication device, and the non-physical layer may include, for example, a radio resource control layer, a packet data convergence protocol layer, a radio link control layer, or a media access control layer. The manner in which the second communication device obtains the eighth key may also refer to the content of the first communication device obtaining the fourth key in the foregoing text.
[0269] Optionally, the third key may be a key shared by the first communication device and the second communication device. In this case, the first communication device and the second communication device may determine that the other party has the third key, thereby ensuring that the first communication device and the second communication device each generate a consistent first key.
[0270] The first communication device encrypts the second modulation symbol in different ways, and the second communication device decrypts the second modulation symbol in different ways, which are introduced below respectively.
[0271] If the first communication device encrypts the first modulation symbol using the offset encryption method shown in D1 above, the second communication device can perform offset decryption on the second modulation symbol.
[0272] For example, according to the first key, the translation length of the first modulation symbol in the constellation diagram is determined, and based on the translation length and the direction angle, the fourth modulation symbol is translated in the constellation diagram to obtain the first modulation symbol. Shifting the second modulation symbol in the constellation diagram is, for example, translating the fourth modulation symbol in the constellation diagram in the opposite direction of the direction in which the first communication device translates the first modulation symbol. Among them, the second communication device determines the direction of translating the first modulation symbol, or the opposite direction of the direction of translating the first modulation symbol. The content of the first communication device determining the direction of translating the first modulation symbol in the previous text is not listed here.
[0273] If the first communication device uses the phase rotation encryption method shown in D2 above to encrypt the first modulation symbol, then the second communication device can perform phase rotation decryption on the fourth modulation symbol, for example, based on the first key, phase rotate the fourth modulation symbol to obtain the first modulation symbol.
[0274] Exemplarily, the first communication device may subtract the phase of the third modulation symbol from the phase of the fourth modulation symbol to obtain the first modulation symbol. The fourth modulation symbol is phase-rotated, for example, by subtracting the phase of the third modulation symbol along the direction of the phase of the first modulation symbol superimposed by the first communication device in the constellation diagram. The second communication device determines the direction of the phase of the superimposed first modulation symbol, which can refer to the content of the first communication device determining the direction of the phase of the superimposed first modulation symbol in the previous text, and is not listed here.
[0275] If the first communication device determines the fourth modulation symbol in the manner shown in C2 above, the second communication device can directly use the fourth modulation symbol as the first modulation symbol. Of course, this situation can be regarded as the second communication device not needing to perform step S406, that is, step S406 is an optional step. Figure 4 Indicated by dotted line.
[0276] If the first communication device determines the fourth modulation symbol in the manner shown in C3 above, the second communication device can perform a reverse process corresponding to the post-processing on the fourth modulation symbol to obtain the first modulation symbol. The reverse process corresponding to IFFT is FFT, and the reverse process of adding CP is removing CP.
[0277] If the first communication device determines the fourth modulation symbol in the manner shown in C4 above, the second communication device may decrypt the fourth modulation symbol based on the first key to obtain the decrypted fourth modulation symbol, and perform a reverse process corresponding to the post-processing on the decrypted fourth modulation symbol to obtain the first modulation symbol. The content of decrypting the fourth modulation symbol based on the first key may refer to the above text, and the content of the reverse process may also refer to the above text.
[0278] The second communication device may obtain the first modulation symbol in a variety of ways, which are not specifically limited in the present embodiment. The manner in which the second communication device determines the first modulation symbol may be configured by a protocol, or may be determined by negotiation between the first communication device and the second communication device.
[0279] S407: The second communication device obtains a second modulation symbol according to the fifth modulation symbol.
[0280] The first communication device obtains the fifth modulation symbol in different ways, and the second communication device obtains the second modulation symbol in different ways, which are introduced below respectively.
[0281] If the first communication device determines the fifth modulation symbol in the manner shown in E1 above, the second communication device may decrypt the fifth modulation symbol based on the second key to obtain the second modulation symbol.
[0282] The second communication device decrypts the fifth modulation symbol, and the second communication device decrypts the fourth modulation symbol, which is also referred to as the second communication device decrypts the fourth modulation symbol.
[0283] If the first communication device determines the fifth modulation symbol in the manner shown in E2 above, the second communication device may not need to perform step S407, that is, step S407 is an optional step. Figure 4 Indicated by dotted line.
[0284] If the first communication device determines the fifth modulation symbol in the manner shown in E3 above, the second communication device may perform the opposite processing corresponding to the post-processing on the fifth modulation symbol to obtain the second modulation symbol.
[0285] If the first communication device determines the fifth modulation symbol in the manner shown in E4 above, the second communication device may decrypt the fifth modulation symbol and perform the opposite post-processing on the decrypted fifth modulation symbol to obtain the second modulation symbol.
[0286] The order in which the second communication device executes steps S406 and S407 can be arbitrary. For example, the second communication device first executes S406 and then executes S407; or, first executes S407 and then executes S406; or, executes steps S406 and S407 at the same time, which is not limited in the embodiments of the present application.
[0287] S408. The second communication device demodulates the first modulation symbol according to the constellation diagram to obtain M bits.
[0288] The manner in which the second communication device obtains the constellation diagram may refer to the content of the first communication device obtaining the constellation diagram in the foregoing text. After the second communication device determines the first modulation symbol, the first modulation symbol may be demapped (or demodulated) through the constellation diagram to obtain M bits. When the first communication device performs channel coding to obtain M bits, the second communication device may also perform channel decoding on the M bits.
[0289] Exemplarily, when the channel coding is to add a first check bit sequence, the M bits include a first original bit sequence and a first check bit sequence, so that the second communication device can determine the first check bit sequence and the first original bit sequence in the M bits based on the M bits. Optionally, the second communication device can also verify the first original bit sequence based on the first check bit sequence to verify whether the second communication device has received the correct first original bit sequence.
[0290] S409. The second communication device demodulates the second modulation symbol according to the constellation diagram to obtain N bits.
[0291] The second communication device may demodulate the second modulation symbol in the manner described above for demodulating the first modulation symbol, which is not listed here. When the first communication device performs channel coding to obtain N bits, the second communication device may also perform channel decoding on the N bits.
[0292] Exemplarily, in the case where the channel coding is to add a second check bit sequence, the N bits include a second original bit sequence and a second check bit sequence, so that the second communication device can determine the second check bit sequence and the second original bit sequence in the N bits based on the N bits. Optionally, the second communication device can also verify the second original bit sequence based on the second check bit sequence to verify whether the second communication device has received the correct second original bit sequence.
[0293] The order in which the second communication device executes steps S408 and S409 can be arbitrary. For example, the second communication device first executes S408 and then executes S409; or, first executes S408 and then executes S409; or, executes steps S408 and S409 at the same time, which is not limited in the embodiments of the present application.
[0294] In the embodiment of the present application, since the constellation diagram is designed from the modulation symbols corresponding to the horizontal axis or the vertical axis, that is, the constellation diagram is not designed using the Gray code mapping rule, the randomness of the arrangement of the bit sequence corresponding to the two adjacent modulation symbols in the constellation diagram is relatively large, which increases the difficulty of illegal demodulation by the eavesdropper, which is conducive to improving the security of communication. Further, after simulation testing, the modulation symbols modulated by the embodiment of the present application are used, and the bit error probability (bit error ratio, BER) corresponding to the simulated illegal node eavesdropping is close to 0.5, which can ensure the security of communication. Since the BER is close to 0.5, it means that the probability of the corresponding bit being correct is 0.5, and the probability of error is also 0.5. From the perspective of information entropy, the uncertainty is the largest and the information entropy is the largest. Therefore, after the illegal demodulation by the eavesdropper, it is equivalent to not obtaining any valid information, which is equivalent to the eavesdropper still having to randomly guess the bits, which increases the difficulty of the eavesdropper illegally obtaining bits, thereby improving the security of communication. In addition, in the embodiment of the present application, the modulation symbols can also be encrypted, which can further improve the security of communication. Furthermore, the first communication device and the second communication device use a common third key to generate the first key, thereby ensuring the stability of generating the first key and facilitating smooth demodulation by the second communication device.
[0295] The following takes the first communication device using the above C4 method to obtain the fourth modulation symbol, and using the E4 method to obtain the fifth modulation symbol as an example to introduce the communication method provided in the embodiment of the present application. Fig. 9 , which is a schematic diagram of a communication method provided in an embodiment of the present application.
[0296] S901. The first communication device performs channel coding.
[0297] Exemplarily, the first communication device performs channel coding on the first original bit sequence to obtain M bits, and performs channel coding on the second original bit sequence to obtain N bits. The channel coding method may refer to the above content.
[0298] S902. The first communication device uses a constellation diagram to modulate M bits to obtain a first modulation symbol, and modulates N bits to obtain a second modulation symbol.
[0299] S903: The first communication device encrypts the first modulation symbol and the second modulation symbol respectively. In this way, the encrypted first modulation symbol and the encrypted second modulation symbol are obtained. The encryption is, for example, the offset encryption or phase rotation encryption mentioned above. The offset encryption or phase rotation encryption method can refer to the content discussed above.
[0300] S904: The first communication device performs IFFT on the encrypted first modulation symbol and the encrypted second modulation symbol respectively. In this way, the first modulation symbol after IFFT processing and the second modulation symbol after IFFT processing can be obtained. The content of IFFT can refer to the above text.
[0301] S905. The first communication device performs CP adding processing on the results of S904 to obtain a fourth modulation symbol and a fifth modulation symbol.
[0302] Exemplarily, the first communication device performs CP processing on the first modulation symbol after IFFT processing to obtain a fourth modulation symbol, and performs CP processing on the second modulation symbol after IFFT processing to obtain a fifth modulation symbol. The content of the CP processing can be referred to above.
[0303] S906: The first communication device sends a fourth modulation symbol and a fifth modulation symbol to the second communication device. Correspondingly, the second communication device receives the fourth modulation symbol and the fifth modulation symbol from the first communication device.
[0304] The order and manner in which the first communication device sends the fourth modulation symbol and the fifth modulation symbol to the second communication device may refer to the above content.
[0305] S907: The second communication device performs CP removal processing on the fourth modulation symbol and the fifth modulation symbol, respectively. In this way, the fourth modulation symbol after CP removal processing and the fifth modulation symbol after CP removal processing are obtained. The content of the CP removal processing can be referred to above.
[0306] S908: The second communication device performs FFT on the results of S907. For example, the second communication device performs FFT on the fourth modulation symbol after CP removal to obtain the fourth modulation symbol after FFT, and performs FFT on the fifth modulation symbol after CP removal to obtain the fifth modulation symbol after FFT. The content of FFT can refer to the content of the previous text.
[0307] S909: The second communication device decrypts the results of S908 respectively to obtain the first modulation symbol and the second modulation symbol.
[0308] Decryption includes, for example, offset decryption or phase rotation decryption. The content of offset decryption or phase rotation decryption can refer to the content of the previous text. For example, the second communication device decrypts the fourth modulation symbol after FFT to obtain the first modulation symbol, and decrypts the fifth modulation symbol after FFT to obtain the second modulation symbol.
[0309] S910: The second communication device demodulates the first modulation symbol and the second modulation symbol respectively to obtain M bits and N bits. The demodulation content can refer to the above content.
[0310] S911: The second communication device performs channel decoding. The content of channel decoding can be referred to above.
[0311] The above steps S901 and S911 are optional steps, and the above steps S904-S908 are also optional steps. Fig. 9 Indicated by dotted line.
[0312] To verify Fig. 9 The effect of the embodiment shown in the embodiment of the present application is Fig. 9 Please refer to the simulation measurement of the embodiments involved. Fig.10 , is a schematic diagram of the results of a simulation test provided in an embodiment of the present application. Fig.10 The vertical axis represents BER, and the horizontal axis represents ρ SR Indicates the power loss during the communication process. The unit of power loss is decibel (db). Fig.10 The modulation method of the constellation diagram involved is, for example, 16QAM.
[0313] like Fig.10 As shown, the curve shown in s1 represents the adoption of scheme 1 (i.e. Fig. 9 The curve shown in s2 is a schematic diagram of the modulation symbols obtained by scheme 2 (i.e., the constellation diagram using the Gray code mapping rule) and the BSR corresponding to the demodulation of the simulated illegal node. The curve shown in s3 is a schematic diagram of the modulation symbols obtained by scheme 1 and the BSR corresponding to the demodulation of the simulated legal node. The curve shown in s4 is a schematic diagram of the modulation symbols obtained by scheme 3 (i.e., the constellation diagram using the Gray code mapping rule) and the BSR corresponding to the demodulation of the simulated illegal node. Fig. 9 A schematic diagram of the BER corresponding to the modulation symbols obtained by another embodiment (including steps S901-S902, S904 to S908, and S910-S911) and demodulated by a simulated legitimate node is shown.
[0314] like Fig.10As shown in the figure, when scheme 1 is used for modulation, the BSR corresponding to the demodulation of the eavesdropping node is close to 0.5, while when scheme 2 is used for modulation, the BSR corresponding to the demodulation of the eavesdropping node is lower than 0.5. It can be seen that scheme 1 can improve the security of communication. Fig.10 It can be seen that if solution 1 is adopted, that is, the modulation symbols are encrypted, although the first communication device will lose some power, the power loss is relatively small.
[0315] Under the constellation diagram technology, the bit stream can be mapped to the modulation symbol on the constellation diagram, which is equivalent to converting the bit stream into the form of electromagnetic waves. However, this modulation method only converts the form of the bit stream, and it is difficult to ensure the security of communication.
[0316] In view of this, an embodiment of the present application also provides a communication method, in which a first communication device can generate a first key based on a third key, and encrypt a first modulation symbol based on the first key to improve the security of transmission.
[0317] The following describes the method provided by the embodiments of the present application in conjunction with the accompanying drawings. In the accompanying drawings corresponding to the various embodiments of the present application, all steps indicated by dotted lines are optional steps. The first communication device involved in the various embodiments of the present application is, for example, Figure 2 The first communication device and the second communication device involved are, for example, Figure 2 The architecture of the protocol stack of the second communication device, the first communication device and the second communication device involved can refer to the above Figure 3 In each embodiment of the present application, the first communication device is used as a transmitting end and the second communication device is used as a receiving end.
[0318] Please refer to Fig.11 , which is a flow chart of a communication method provided in an embodiment of the present application.
[0319] S1101: The first communication device and the second communication device maintain a third key. The first communication device and the second communication device obtain the third key in a manner and the content of the third key can refer to the above content.
[0320] S1102: The first communication device and the second communication device both generate a first key. The method for generating the first key and the content of the first key can refer to the above content.
[0321] The above S1101-S1102 may be performed by the first communication device and the second communication device in the first process. The first process is, for example, the first communication device accessing the second communication device or the core network, or the second communication device accessing the first communication device or the core network, which is not specifically limited in the present embodiment.
[0322] S1103: The first communication device performs channel coding. The content of channel coding can be referred to above.
[0323] S1104. The first communication device uses a constellation diagram to modulate M bits to obtain a first modulation symbol.
[0324] The constellation diagram in the embodiment of the present application may be a constellation diagram that complies with the Gray code mapping rule; or a constellation diagram that complies with any of the first conditions in any of A1 to A6 above. The content of the first condition may refer to the content of the previous text.
[0325] S1105: The first communication device encrypts the first modulation symbol. The encryption includes, for example, the offset encryption shown in C1 or the phase rotation encryption shown in C2. The offset encryption or phase rotation encryption can refer to the content discussed above.
[0326] S1106: The first communication device performs IFFT on the encrypted first modulation symbol. The content of IFFT can be referred to above.
[0327] S1107: The first communication device adds CP to the modulation symbol after IFFT to obtain a fourth modulation symbol. The content of adding CP can be referred to above.
[0328] S1108: The first communication device sends a fourth modulation symbol to the second communication device. Correspondingly, the second communication device receives the fourth modulation symbol from the first communication device. The manner in which the first communication device sends the fourth modulation symbol to the second communication device can refer to the above content.
[0329] S1109: The second communication device performs CP removal processing on the fourth modulation symbol. The content of the CP removal processing can be referred to above.
[0330] S1110: The second communication device performs FFT on the modulation symbols after the CP is removed. The content of FFT can refer to the content in the previous text.
[0331] S1111. The second communication device decrypts the modulation symbol after FFT. The decryption method includes the offset decryption shown in E1 above, or the phase rotation decryption shown in E2 above. The content of the offset decryption or the phase rotation decryption can refer to the content of the previous text. After executing S812, the second communication device can obtain the first modulation symbol.
[0332] S1112: The second communication device demodulates the first modulation symbol to obtain M bits. The demodulation content can refer to the above content.
[0333] S1113: The second communication device performs channel decoding. The content of channel decoding can also be referred to above.
[0334] The above steps S1103 and S1113 are optional steps. S1106 to S1110 are optional steps. Fig.11 Indicated by dotted line.
[0335] In a possible implementation, the first communication device may also modulate N bits to obtain a second modulation symbol, process the second modulation symbol to obtain a fifth modulation symbol, and send the fifth modulation symbol to the second communication device. Correspondingly, the second communication device may also process the fifth modulation symbol to obtain a second modulation symbol, and demodulate the second modulation symbol to obtain N bits. The process involved in this implementation may refer to the above Figure 4 or Fig. 9 The content of the discussion will not be listed here.
[0336] In the embodiment of the present application, the first communication device can encrypt the first modulation symbol to ensure the security of communication. In addition, since the first communication device and the second communication device both share the third key, the stability of the first key generated by the first communication device and the second communication device is ensured, so that the second communication device can smoothly decrypt the encrypted first modulation symbol, thereby ensuring the reliability of communication between the first communication device and the second communication device.
[0337] The present application embodiment provides a communication device. Fig.12 , is a schematic diagram of the structure of a communication device provided in an embodiment of the present application. Fig.12 As shown, the communication device 1200 includes a transceiver module 1201 and a processing module 1202 .
[0338] In the first embodiment, the communication device 1200 can be used to implement Figure 4 or Fig. 9 The function of the first communication device involved. Accordingly, the communication device 1200 can implement Figure 4 or Fig. 9 The steps involved are performed by the first communication device.
[0339] For example, the communication device 1200 is used to implement Figure 4 The functionality of the first communication device involved.
[0340] Exemplarily, the transceiver module 1201 may be used to send the second modulation symbol to the second communication device, and the processing module 1202 may be used to perform steps S401 and S402. Optionally, the processing module 1202 may be used to send the fourth modulation symbol and the fifth modulation symbol to the second communication device. Optionally, the processing module 1202 may also be used to perform steps S403 and S404. The second modulation symbol and the contents of each step may refer to the above. Figure 4 content.
[0341] For another example, the communication device 1200 is used to implement Fig. 9 The functionality of the first communication device involved.
[0342] Exemplarily, the transceiver module 1201 may be used to send the fourth modulation symbol and the fifth modulation symbol to the second communication device, and the processing module 1202 may be used to execute step S902. Optionally, the processing module 1202 may also be used to execute steps S901, and S903-S905.
[0343] In the second embodiment, the communication device 1200 can be used to implement Figure 4 or Fig. 9 The function of the second communication device involved. Accordingly, the communication device 1200 can implement Figure 4 or Fig. 9 The steps are performed by the second communication device involved.
[0344] For example, the communication device 1200 is used to implement Figure 4 The functionality of the second communication device involved.
[0345] Exemplarily, the transceiver module 1201 may be used to receive the fourth modulation symbol and the fifth modulation symbol from the first communication device, and the processing module 1202 may be used to perform steps S408 and S409. Optionally, the processing module 1202 may be used to perform steps S406-S407.
[0346] For another example, the communication device 1200 is used to implement Fig. 9 The functionality of the second communication device involved.
[0347] Exemplarily, the transceiver module 1201 may be used to receive the fourth modulation symbol and the fifth modulation symbol from the first communication device, and the processing module 1202 may be used to execute step S910. Optionally, the processing module 1202 may also be used to execute steps S907-S909 and S911.
[0348] In the third embodiment, the communication device 1200 can be used to implement Fig.11 The function of the first communication device involved. Accordingly, the communication device 1200 can implement Fig.11 The steps involved are performed by the first communication device.
[0349] Exemplarily, the transceiver module 1201 may be used to send the fourth modulation symbol to the second communication device, and the processing module 1202 may be used to perform steps S1104 and S1105. Optionally, the processing module 1202 may also be used to perform steps S1103, and S1106-S1107.
[0350] In the fourth embodiment, the communication device 1200 can be used to implement Fig.11 The function of the second communication device involved. Accordingly, the communication device 1200 can implement Fig.11 The steps are performed by the second communication device involved.
[0351] Exemplarily, the transceiver module 1201 may be used to receive the fourth modulation symbol from the first communication device, and the processing module 1202 may be used to perform steps S1111 and S1112. Optionally, the processing module 1202 may also be used to perform steps S1109-S1110 and S1113. Fig.12 The contents of each step involved can refer to the previous content and will not be listed here.
[0352] The present application embodiment provides a communication device. Fig.13 , is a schematic diagram of the structure of a communication device provided in an embodiment of the present application. Fig.13 As shown, the communication device 1300 includes a processor 1301 and a communication interface 1302. The processor 1301 and the communication interface 1302 are coupled to each other. It can be understood that the communication interface 1302 can be a transceiver or an input / output interface. Among them, the processor 1301 and the communication interface 1302 can implement the above Figure 4 , Fig. 9 or Fig.11 Any of the communication methods described above.
[0353] It is understandable that the processor 1301 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. A general-purpose processor may be a microprocessor or any conventional processor.
[0354] Optionally, the communication device 1300 may further include a memory 1303. Fig.13 The memory 1303 is used to store instructions executed by the processor 1301 or to store input data required by the processor 1301 to run instructions or to store data generated after the processor 1301 runs instructions.
[0355] Any two of the processor 1301, the communication interface 1302, and the memory 1303 may communicate with each other via the bus 1304. The bus may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus 1304 may be divided into an address bus, a data bus, a control bus, etc.
[0356] The memory 1303 may include a volatile memory, such as a random access memory (RAM). The memory 1303 may also include a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD), or a solid state drive (SSD).
[0357] Optionally, the processor 1301 is used to implement the functions of the above-mentioned processing module 1202, and the communication interface 1302 is used to implement the functions of the above-mentioned transceiver module 1201.
[0358] The present application provides a communication system, which includes the Figure 4 or Fig. 9 The first communication device involved, and Figure 4 or Fig. 9 The second communication device involved.
[0359] The present application provides a communication system, which includes the Fig.11 The first communication device involved, and Fig.11 The second communication device involved.
[0360] The present application provides a chip system, which includes: a processor and an interface. The processor is used to call and run instructions from the interface. When the processor executes the instructions, any of the above communication methods is implemented, such as Figure 4 , Fig. 9 or Fig.11 Any communication method involved.
[0361] The embodiment of the present application provides a computer-readable storage medium, which is used to store a computer program or instruction, and when the computer program or instruction is executed, any of the above communication methods is implemented, such as Figure 4 , Fig. 9 or Fig.11 Any communication method involved.
[0362] The embodiment of the present application provides a computer program product including instructions, which, when executed on a computer, implements any of the above communication methods, such as Figure 4 , Fig. 9 or Fig.11 Any communication method involved.
[0363] The method steps in the embodiments of the present application can be implemented by hardware, or by a processor executing software instructions. The software instructions can be composed of corresponding software modules, and the software modules can be stored in a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an erasable programmable read-only memory, an electrically erasable programmable read-only memory, a register, a hard disk, a mobile hard disk, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an ASIC. In addition, the ASIC can be located in a base station or a terminal. Of course, the processor and the storage medium can also be present in a base station or a terminal as discrete components.
[0364] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instruction is loaded and executed on a computer, the process or function described in the embodiment of the present application is executed in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, a network device, a user device or other programmable device. The computer program or instruction may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer program or instruction may be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired or wireless means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server, data center, etc. that integrates one or more available media. The available medium may be a magnetic medium, for example, a floppy disk, a hard disk, a tape; it may also be an optical medium, for example, a digital video disc; it may also be a semiconductor medium, for example, a solid-state hard disk. The computer-readable storage medium may be a volatile or nonvolatile storage medium, or may include both volatile and nonvolatile types of storage media.
[0365] In the various embodiments of the present application, unless otherwise specified or provided for in any logical conflict, the terms and / or descriptions between the different embodiments are consistent and may be referenced to each other, and the technical features in the different embodiments may be combined to form new embodiments according to their inherent logical relationships.
[0366] It is understood that the various numbers involved in the embodiments of the present application are only for the convenience of description and are not used to limit the scope of the embodiments of the present application. The size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic.
Claims
1. A communication method, It is characterized in that Applied to a first communication device, the method comprises: According to the constellation diagram, M bits are modulated to obtain a first modulation symbol, and according to the constellation diagram, N bits are modulated to obtain a second modulation symbol, where M and N are both positive integers; Sending the first modulation symbol and the second modulation symbol to a second communication device; The first bit sequence and the second bit sequence have different values at the first position, and the third bit sequence and the fourth bit sequence are the same; or the first bit sequence and the second bit sequence are the same, and the third bit sequence and the fourth bit sequence have different values at the second position; The first bit sequence is a bit sequence corresponding to the real part of the first modulation symbol, the second bit sequence is a bit sequence corresponding to the real part of the second modulation symbol, the third bit sequence is a bit sequence corresponding to the imaginary part of the first modulation symbol, the fourth bit sequence is a bit sequence corresponding to the imaginary part of the second modulation symbol, the first position is the position of any bit in the first bit sequence or the second bit sequence, the second position is the position of any bit in the third bit sequence or the fourth bit sequence, and the first modulation symbol and the second modulation symbol are symmetrical along the horizontal axis or the vertical axis of the constellation diagram.
2. The method according to claim 1, It is characterized in that Before sending the first modulation symbol and the second modulation symbol to the second communication device, the method further includes: Encrypting the first modulation symbol according to a first key to obtain the encrypted first modulation symbol; and / or, The second modulation symbol is encrypted according to the second key to obtain the encrypted second modulation symbol.
3. The method according to claim 2, It is characterized in that The first key and / or the second key are generated according to first information, and the first information includes a third key; The third key is a preconfigured or predefined key, or the third key is generated according to the fourth key, and the fourth key is a preconfigured or predefined key, or a key configured for the core network.
4. The method according to claim 3, It is characterized in that The third key is a key shared by the first communication device and the second communication device.
5. The method according to claim 3 or 4, It is characterized in that The first information also includes information that the first communication device has sent to the second communication device and / or information that the first communication device has received from the second communication device.
6. The method according to any one of claims 3 to 5, It is characterized in that The method further comprises: Encrypting the first information according to a first encryption algorithm to obtain a fifth key; Encrypting the fifth key according to the second encryption algorithm to obtain a sixth key; The first key is part or all of the bits in the sixth key, or the first key is part or all of the bits in the seventh key, and the seventh key is determined according to the fifth key and the sixth key.
7. The method according to claim 6, It is characterized in that The second key is part or all of the bits of the sixth key except the first key, or is part or all of the bits of the seventh key except the first key.
8. The method according to any one of claims 2 to 7, It is characterized in that Encrypting the first modulation symbol according to the first key to obtain the encrypted first modulation symbol includes: Determine, according to the first key, a translation length and / or a direction angle of the first modulation symbol in the constellation diagram; In the constellation diagram, the first modulation symbol is moved by the translation length in the direction indicated by the direction angle to obtain the encrypted first modulation symbol.
9. The method according to claim 8, It is characterized in that The translation length and the direction angle satisfy the following relationship: and or, and Wherein, ρ represents the translation length, and θ represents the direction angle.
10. The method according to any one of claims 2 to 7, It is characterized in that Encrypting the first modulation symbol according to the first key to obtain the encrypted first modulation symbol includes: The encrypted first modulation symbol is obtained by superimposing the phase of the third modulation symbol on the phase of the first modulation symbol, where the third modulation symbol is obtained by modulating the first key according to the constellation diagram.
11. A communication method, It is characterized in that Applied to a second communication device, the method comprises: receiving a first modulation symbol and a second modulation symbol from a first communication device; Demodulating the first modulation symbol according to the constellation diagram to obtain M bits, and demodulating the second modulation symbol according to the constellation diagram to obtain N bits, where N and M are positive integers; The first bit sequence and the second bit sequence have different values at the first position, and the third bit sequence and the fourth bit sequence are the same; or the first bit sequence and the second bit sequence are the same, and the third bit sequence and the fourth bit sequence have different values at the second position; The first bit sequence is a bit sequence corresponding to the real part of the first modulation symbol, the second bit sequence is a bit sequence corresponding to the real part of the second modulation symbol, the third bit sequence is a bit sequence corresponding to the imaginary part of the first modulation symbol, the fourth bit sequence is a bit sequence corresponding to the imaginary part of the second modulation symbol, the first position is the position of any bit in the first bit sequence or the second bit sequence, the second position is the position of any bit in the third bit sequence or the fourth bit sequence, and the first modulation symbol and the second modulation symbol are symmetrical along the horizontal axis or the vertical axis of the constellation diagram.
12. The method according to claim 11, It is characterized in that Receiving a first modulation symbol and a second modulation symbol from a first communication device includes: receiving the encrypted first modulation symbol and the encrypted second modulation symbol from the first communication device; The method further comprises: Decrypt the encrypted first modulation symbol according to the first key to obtain the first modulation symbol; and / or, The encrypted second modulation symbol is decrypted according to the second key to obtain the second modulation symbol.
13. The method according to any one of claims 12, It is characterized in that The first key and / or the second key are generated according to first information, and the first information includes a third key; The third key is a preconfigured or predefined key, or the third key is generated according to the eighth key, and the eighth key is a preconfigured or predefined key, or a key configured for the core network.
14. The method according to claim 13, It is characterized in that The third key is a key shared by the first communication device and the second communication device.
15. The method according to claim 13 or 14, It is characterized in that The first information also includes information that the second communication device has sent to the first communication device, and / or information that the second communication device has received from the first communication device.
16. The method according to any one of claims 13 to 15, It is characterized in that The method further comprises: Encrypting the first information according to a first encryption algorithm to obtain a fifth key; According to the second encryption algorithm, the fifth key is encrypted to obtain a sixth key, wherein the first key is part or all of the bits in the sixth key, or the first key is part or all of the bits in the seventh key, and the seventh key is determined based on the fifth key and the sixth key.
17. The method according to claim 16, It is characterized in that The second key is part or all of the bits of the sixth key except the first key, or is part or all of the bits of the seventh key except the first key.
18. The method according to any one of claims 12 to 17, It is characterized in that Decrypting the encrypted first modulation symbol according to the first key to obtain the first modulation symbol includes: Determine, according to the first key, a translation length and / or a direction angle of the first modulation symbol in the constellation diagram; The encrypted first modulation symbol is moved in the constellation diagram in the opposite direction indicated by the direction angle by the translation length to obtain the encrypted first modulation symbol.
19. The method according to claim 18, It is characterized in that The translation length and the direction angle satisfy the following relationship: and or, and Wherein, ρ represents the translation length, and θ represents the direction angle.
20. The method according to any one of claims 12 to 18, It is characterized in that Decrypting the encrypted first modulation symbol according to the first key to obtain the first modulation symbol includes: The first modulation symbol is obtained by subtracting the phase of the third modulation symbol from the phase of the encrypted first modulation symbol, wherein the third modulation symbol is obtained by modulating the first key according to the constellation diagram.
21. A communication device, It is characterized in that The apparatus comprises a module for executing the method according to any one of claims 1-20.
22. A communication device, It is characterized in that include: A processor and a communication interface, wherein the communication interface is used to receive signals from other devices outside the communication device and transmit them to the processor or send signals from the processor to other devices outside the communication device, and the processor executes code instructions through a logic circuit to implement the method described in any one of claims 1-20.
23. A computer program product comprising instructions, It is characterized in that When the instruction is executed by the communication device, the communication device executes the method according to any one of claims 1 to 20.
24. A computer-readable storage medium, It is characterized in that The storage medium stores a computer program or instruction, and when the computer program or instruction is executed by the communication device, the method according to any one of claims 1 to 20 is implemented.
Citation Information
Cited By
Communication method and apparatus
EP4694048A1
