Physical layer key generation method, device, electronic device and medium
The use of an intelligent reflective surface to enhance channel variation and randomize control in semantic communication systems addresses the low generation rate of physical layer keys, ensuring secure key establishment through semantic drift features and mathematical quantization.
Patent Information
- Application Number
- CN202210952171.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-09
- Publication Date
- 2024-12-31
- Estimated Expiration
- 2042-08-09
AI Technical Summary
The generation rate of physical layer keys in semantic communication systems is reduced due to their static environment with limited time variation and randomness, hindering the key generation process.
A method involving an intelligent reflective surface (RIS) is used to calculate a semantic drift feature between channel detection signals, generate a switch sequence for RIS control, and convert initial channel detection signals into target signals to establish a physical layer key, incorporating mathematical quantization and BCD code for key negotiation and privacy amplification.
Enhances channel characteristics variation, ensuring secure key generation by increasing randomness and addressing vulnerabilities in semantic communication systems.
Smart Images

Figure CN115484596B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to data processing technology, and in particular to a method, device, electronic device and medium for generating a physical layer key. Background Art
[0002] In related technologies, semantic communication systems are being used continuously with the development of various businesses. Among them, the currently implemented deep learning-based semantic communication (DNN-based End-to-End Communication System, DLSC) relies on deep neural networks to extract and encode semantic information, and then uses wireless channels to transmit signals.
[0003] Furthermore, the Physical Layer Key Generation (PKG) method is a method for establishing keys between wireless communication parties that relies on multiple random characteristics of the wireless channel. In the PKG model, the transmitter and the receiver exchange information through the same wireless channel and perform channel detection alternately to obtain channel characteristics that describe channel changes. Due to the reciprocity of the channel, the characteristics obtained by both parties will have a high degree of similarity, and then through quantization, information coordination and privacy methods, the two parties can obtain exactly the same random key stream.
[0004] However, the semantic communication system in the related art belongs to a static environment, which has the characteristics of limited time variation and quite limited randomness provided by the channel. Understandably, this will reduce the generation rate of the physical layer key and seriously hinder the key generation process. Summary of the invention
[0005] The embodiments of the present application provide a method, device, electronic device and medium for generating a physical layer key, so as to solve the problem in the related art that the generation rate of the physical layer key is reduced due to the semantic communication system belonging to a static environment with limited changes.
[0006] According to one aspect of an embodiment of the present application, a method for generating a physical layer key is provided, which is applied to a semantic communication system including an intelligent reflective surface (RIS), wherein:
[0007] Based on a first channel sounding signal sent by a transmitting end of the semantic communication system to a receiving end, and based on a second channel sounding signal received by the receiving end, a semantic drift feature for reflecting a semantic offset between the first channel sounding signal and the second channel sounding signal is calculated;
[0008] Based on the semantic drift feature, generating a switch sequence for randomly controlling the RIS;
[0009] When the transmitting end sends an initial channel detection signal to the receiving end through the RIS, the switching sequence is used to control the switching of multiple elements of the RIS so that the initial channel detection signal is converted into a target channel detection signal;
[0010] The sending end and the receiving end establish a physical layer key in the semantic communication system through the target channel detection signal.
[0011] Optionally, in another embodiment based on the above method of the present application, calculating and obtaining a semantic drift feature for reflecting a semantic offset between the first channel detection signal and the second channel detection signal includes:
[0012] Acquire a first semantic code reflected by the first channel sounding signal; and acquire a second semantic code reflected by the second channel sounding signal;
[0013] Difference information between the first semantic code and the second semantic code is calculated, and the difference information is used as the semantic drift feature.
[0014] Optionally, in another embodiment of the method of the present application, generating a switch sequence for randomly controlling the RIS based on the semantic drift feature includes:
[0015] Performing mathematical quantization processing on the semantic drift feature to obtain a character string sequence quantized to 0 to 1;
[0016] The character string sequence is used as a switch sequence for randomizing control of the RIS.
[0017] Optionally, in another embodiment of the method of the present application, the using the switch sequence to perform switch control on multiple elements of the RIS so as to convert the initial channel detection signal into a target channel detection signal includes:
[0018] The transmitting end sends the initial channel sounding signal to the RIS, so that the receiving end receives the target channel sounding signal generated by the RIS.
[0019] Optionally, in another embodiment of the method of the present application, the step of establishing a physical layer key in the semantic communication system by the transmitting end and the receiving end through the target channel detection signal includes:
[0020] The transmitting end and the receiving end respectively analyze the target channel detection signal to obtain a channel parameter reflecting channel strength or channel information;
[0021] The transmitting end and the receiving end perform quantization processing on the channel parameters based on a double threshold quantization technology of mean and variance, respectively, to obtain bit sequences quantized to 0 and 1;
[0022] The transmitting end and the receiving end establish a physical layer key in the semantic communication system based on the quantized bit sequence.
[0023] Optionally, in another embodiment of the method of the present application, the transmitting end and the receiving end establish a physical layer key in the semantic communication system based on the quantized bit sequence, including:
[0024] The transmitting end and the receiving end perform information negotiation using BCD code to obtain a consistent bit sequence;
[0025] The sending end and the receiving end use a hash function to amplify the key obtained based on the bit sequence to obtain a physical layer key in the semantic communication system.
[0026] Optionally, in another embodiment based on the above method of the present application, the transmitting end and the receiving end use BCD code to perform information negotiation to obtain a consistent bit sequence, including:
[0027] The transmitting end and the receiving end respectively obtain a syndrome by multiplying the original key sequence with the check matrix; and the transmitting end sends its own first syndrome to the receiving end;
[0028] The receiving end uses its own second syndrome and the received first syndrome to correct errors in its own original key sequence to obtain the key.
[0029] According to another aspect of the embodiment of the present application, a physical layer key generation device is provided, which is applied to a semantic communication system including an intelligent reflection surface RIS, wherein:
[0030] A calculation module, configured to calculate a semantic drift feature reflecting a semantic offset between the first channel detection signal and the second channel detection signal based on a first channel detection signal sent by a transmitting end of the semantic communication system to a receiving end, and based on a second channel detection signal received by the receiving end;
[0031] A generating module, configured to generate a switch sequence for randomly controlling the RIS based on the semantic drift feature;
[0032] a conversion module configured to, when the transmitting end sends an initial channel detection signal to the receiving end through the RIS, use the switch sequence to perform switch control on multiple elements of the RIS so as to convert the initial channel detection signal into a target channel detection signal;
[0033] The establishing module is configured to establish a physical layer key in the semantic communication system by the transmitting end and the receiving end through the target channel detection signal.
[0034] According to another aspect of the embodiments of the present application, an electronic device is provided, including:
[0035] A memory for storing executable instructions; and
[0036] A display is used to execute the executable instructions together with the memory to complete the operation of any of the above-mentioned methods for generating physical layer keys.
[0037] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided for storing computer-readable instructions, which, when executed, perform the operations of any of the above-mentioned methods for generating a physical layer key.
[0038] In the present application, based on the first channel detection signal sent from the transmitter of the semantic communication system to the receiver, and based on the second channel detection signal received by the receiver, a semantic drift feature for reflecting the semantic offset between the first channel detection signal and the second channel detection signal can be calculated; based on the semantic drift feature, a switch sequence for randomized control of RIS is generated; when the transmitter sends the initial channel detection signal to the receiver through RIS, the switch sequence is used to switch and control multiple elements of RIS so that the initial channel detection signal is converted into a target channel detection signal; through the target channel detection signal, the transmitter and the receiver establish a physical layer key in the semantic communication system. By applying the technical solution of the present application, on the one hand, the purpose of increasing the amount of change in the channel characteristics of the transmitter and the receiver in the transmission signal can be achieved by deploying RIS in the semantic communication system. On the other hand, the semantic drift phenomenon can be combined to achieve randomized control of the RIS channel, thereby avoiding the problem of reducing the low generation rate of the physical layer key in the semantic communication system.
[0039] The technical solution of the present application is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] The accompanying drawings, which constitute a part of the specification, illustrate embodiments of the present application and, together with the description, serve to explain the principles of the present application.
[0041] The present application can be more clearly understood from the following detailed description with reference to the accompanying drawings, in which:
[0042] Figure 1 A schematic diagram showing a method for generating a physical layer key provided in an embodiment of the present application is shown;
[0043] Figure 2 A schematic diagram of the system architecture of a method for generating a physical layer key provided in an embodiment of the present application is shown;
[0044] Figure 3 A schematic diagram of a flow chart of a method for generating a physical layer key provided in an embodiment of the present application is shown;
[0045] Figure 4 A schematic diagram of the structure of an electronic device provided by an embodiment of the present application is shown;
[0046] Figure 5 A schematic diagram of the structure of an electronic device provided by an embodiment of the present application is shown;
[0047] Figure 6 A schematic diagram of a storage medium provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0048] Various exemplary embodiments of the present application will now be described in detail with reference to the accompanying drawings. It should be noted that unless otherwise specifically stated, the relative arrangement of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present application.
[0049] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.
[0050] The following description of at least one exemplary embodiment is merely illustrative in nature and is not intended to limit the present application, its application, or uses.
[0051] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.
[0052] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0053] In addition, the technical solutions between the various embodiments of the present application can be combined with each other, but it must be based on the fact that ordinary technicians in the field can implement it. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.
[0054] It should be noted that all directional indications in the embodiments of the present application (such as up, down, left, right, front, back, etc.) are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0055] Combine the following Figure 1-Figure 3 To describe the method for generating a physical layer key according to an exemplary embodiment of the present application. It should be noted that the following application scenarios are only shown to facilitate understanding of the spirit and principle of the present application, and the embodiments of the present application are not limited in this regard. On the contrary, the embodiments of the present application can be applied to any applicable scenario.
[0056] The present application also proposes a method, device, electronic device and medium for generating a physical layer key.
[0057] Figure 1 The following schematically shows a flow chart of a method for generating a physical layer key according to an embodiment of the present application. Figure 1 As shown, the method is applied to a semantic communication system including an intelligent reflective surface RIS, wherein:
[0058] S101, based on a first channel detection signal sent by a transmitting end of a semantic communication system to a receiving end, and based on a second channel detection signal received by the receiving end, a semantic drift feature for reflecting a semantic offset between the first channel detection signal and the second channel detection signal is calculated.
[0059] S102, generating a switch sequence for randomly controlling RIS based on the semantic drift feature.
[0060] S103, when the transmitting end sends an initial channel detection signal to the receiving end via the RIS, a switch sequence is used to control the switching of multiple elements of the RIS so that the initial channel detection signal is converted into a target channel detection signal.
[0061] S104, the sending end and the receiving end establish a physical layer key in the semantic communication system through the target channel detection signal.
[0062] In the related art, with the emergence of various new applications with high requirements for large-scale data transmission and connectivity, such as autonomous transportation, consumer robots, environmental monitoring, and remote health, the existing communication systems for these applications are difficult to meet, so semantic communication systems are proposed to deal with the above problems.
[0063] Among them, the purpose of the semantic communication system is to extract the meaning of the data, filter out non-essential information, and only transmit the meaning of the data; at the same time, the system will further compress the data while retaining the meaning of the information, which is suitable for scenarios with large-scale data transmission and low latency requirements.
[0064] In the related technology, the currently implemented deep learning-based semantic communication (DNN-based End-to-End Communication System, DLSC) relies on deep neural networks to extract and encode semantic information, and then uses wireless channels to transmit signals. Due to the openness of wireless channels and the fragility of network models, DLSC is vulnerable to attacks such as eavesdropping, traffic analysis, monitoring, interference, deception, modification, etc. Therefore, how to ensure the communication security of this system will be an important issue.
[0065] Furthermore, Physical Layer Key Generation (PKG) is a method for establishing keys between two wireless communication parties. Physical layer key technology does not require a fixed key distribution facility, and its security does not depend on the computational complexity of the algorithm.
[0066] The implementation of physical layer keys relies on three random characteristics of wireless channels, namely channel reciprocity, time variation, and spatial decorrelation. Among them, time variation is caused by the movement of the transmitter, receiver, or any object in the environment, which will change the reflection, refraction, and scattering of the channel path. These random movements will cause random changes in the channel, which serves as a random source for key generation.
[0067] In the PKG model, there are usually two roles: Alice as the sender and Bob as the receiver. Alice and Bob exchange information through the same wireless channel and perform channel detection alternately to obtain channel characteristics that describe channel changes. Due to channel reciprocity, the characteristics obtained by both parties will have a high degree of similarity. After quantization, information coordination and privacy methods, the two parties can obtain exactly the same random key stream, thereby completing the construction of the physical layer key.
[0068] However, the semantic communication system in the related art belongs to a static environment, which has the characteristics of limited time variation and quite limited randomness provided by the channel. Understandably, this will reduce the generation rate of the physical layer key and seriously hinder the key generation process.
[0069] In one way, Figure 2 As shown, it is a system architecture diagram for a physical layer key generation method proposed in the present application. As can be seen from the figure, the present application is a general physical key generation scheme with a reconfigurable intelligent surface (RIS) deployed in a semantic communication system. That is, RIS is used as a new random source for the wireless channel, and the opening and closing of at least one element contained in RIS is timely updated and controlled when the channel is detected at the transceiver end, thereby enhancing the time-varying characteristics of the channel, and realizing a key generation scheme based on the physical layer in a static environment.
[0070] Further, such as Figure 3 FIG. 1 is a flow chart of a method for generating a physical layer key proposed in the present application, which includes:
[0071] Step 1: Acquire a first channel detection signal sent by a transmitting end of a semantic communication system to a receiving end, and acquire a second channel detection signal received by the receiving end.
[0072] Step 2: Obtain a first semantic code reflected by the first channel sounding signal; and obtain a second semantic code reflected by the second channel sounding signal.
[0073] Step 3: Calculate the difference information between the first semantic code and the second semantic code, and use the difference information as a semantic drift feature.
[0074] Among them, since the semantic communication of the semantic communication system only needs to complete semantic transmission, it does not require the decoding sequence to strictly match the encoding sequence, which also leads to certain differences in information transmission between the two ends. That is, although the information of the sender and the receiver are matched at the semantic level, due to the non-strict matching of the decoding sequence and the encoding sequence, there will be some differences in words and fixed sentences, thus forming the semantic random deviation phenomenon unique to semantic transmission.
[0075] In one embodiment, the present application uses the difference information between the first semantic code reflected by the first channel detection signal and the second semantic code reflected by the second channel detection signal as a semantic drift feature.
[0076] In one embodiment, the semantic drift feature is used as a random source in the process of transmitting information in the semantic communication system. As an example, mathematical reasoning can be used to find that there is a mathematical relationship between the information at the input end and the information obtained by semantic reconstruction at the receiving end.
[0077] Step 4: Perform mathematical quantization on the semantic drift features to obtain a string sequence quantized from 0 to 1, and use the string sequence as a switch sequence for randomizing the control of RIS.
[0078] Furthermore, in the channel detection stage of physical key generation, the embodiment of the present application can extract the semantic drift characteristics of the channel detection signal sent by the receiving end to the transmitting end, and quantize it into 0, 1 through mathematical processing to form a switching sequence for controlling the random changes of the RIS channel.
[0079] Furthermore, the embodiment of the present application may also select an iterative bilinear alternating least squares algorithm (BLAS) based on a parallel factor to complete subsequent channel estimation.
[0080] Step 5: When the switch sequence is used to control the switching of multiple elements of the RIS, the transmitting end sends an initial channel detection signal to the RIS, so that the receiving end receives the target channel detection signal generated by the RIS.
[0081] Step 6: The transmitting end and the receiving end respectively analyze the target channel detection signal to obtain channel parameters reflecting channel strength or channel information.
[0082] Step 7: The transmitting end and the receiving end quantize the channel parameters based on the dual threshold quantization technology of mean and variance, respectively, to obtain bit sequences quantized to 0 and 1, respectively.
[0083] Among them, in the embodiment of the present application, it is necessary to quantize the channel parameters reflecting the channel strength or channel information in the target channel detection signal.
[0084] In one method, the quantization process is to quantize the channel strength or channel information obtained by the communicating parties through channel detection into a bit sequence. In one method, the embodiment of the present application can be based on a dual threshold quantization method of mean and variance, quantizing data greater than a higher threshold to 1, data less than a lower threshold to 0, and data between the thresholds is discarded. Thus, a bit sequence quantized to 0 and 1 is obtained.
[0085] Step 8: The sending end and the receiving end use BCD code to negotiate information and obtain a consistent bit sequence.
[0086] Among them, for the information negotiation process between the receiving end and the sending end, it is aimed at the situation where there is inconsistency in the bit stream after quantization of the communicating parties. Information negotiation is used to correct the bit stream, thereby reducing the inconsistency rate.
[0087] In one way, in an embodiment of the present application, the transmitting end and the receiving end can respectively obtain a syndrome by multiplying the original key sequence with the check matrix; and the transmitting end sends its own first syndrome to the receiving end; the receiving end uses its own second syndrome and the received first syndrome to correct the error of its own original key sequence to obtain the key.
[0088] In one embodiment, the BCD code can be used for information negotiation in the embodiment of the present application, and the receiving end and the sending end obtain a syndrome by multiplying the key sequence with the check matrix, so that the sending end sends the obtained syndrome to the receiving end. Further, the receiving end corrects the original key sequence generated by itself by comparing the syndrome difference.
[0089] Step 9: The sender and the receiver use a hash function to amplify the key obtained based on the bit sequence to obtain the physical layer key in the semantic communication system.
[0090] Among them, for the privacy amplification process of the receiving end and the sending end, privacy amplification reduces the bit stream of the key output, thereby deleting the leaked information in the key and enhancing the security of the key. Privacy amplification can be achieved using a universal hash function to output a short output stream data with strong randomness from a long input stream with weak randomness. In order to better reflect the impact of the added random source on key generation.
[0091] In the present application, based on the first channel detection signal sent from the transmitter of the semantic communication system to the receiver, and based on the second channel detection signal received by the receiver, a semantic drift feature for reflecting the semantic offset between the first channel detection signal and the second channel detection signal can be calculated; based on the semantic drift feature, a switch sequence for randomized control of RIS is generated; when the transmitter sends the initial channel detection signal to the receiver through RIS, the switch sequence is used to switch and control multiple elements of RIS so that the initial channel detection signal is converted into a target channel detection signal; through the target channel detection signal, the transmitter and the receiver establish a physical layer key in the semantic communication system. By applying the technical solution of the present application, on the one hand, the purpose of increasing the amount of change in the channel characteristics of the transmitter and the receiver in the transmission signal can be achieved by deploying RIS in the semantic communication system. On the other hand, the semantic drift phenomenon can be combined to achieve randomized control of the RIS channel, thereby avoiding the problem of reducing the low generation rate of the physical layer key in the semantic communication system.
[0092] Optionally, in another embodiment based on the above method of the present application, calculating and obtaining a semantic drift feature for reflecting a semantic offset between the first channel detection signal and the second channel detection signal includes:
[0093] Acquire a first semantic code reflected by a first channel sounding signal; and, acquire a second semantic code reflected by a second channel sounding signal;
[0094] The difference information between the first semantic code and the second semantic code is calculated, and the difference information is used as a semantic drift feature.
[0095] Optionally, in another embodiment of the method of the present application, based on the semantic drift feature, a switch sequence for randomly controlling RIS is generated, including:
[0096] The semantic drift features are mathematically quantified to obtain a string sequence quantized to 0 to 1;
[0097] Use the string sequence as the switch sequence for randomizing the control RIS.
[0098] Optionally, in another embodiment of the method of the present application, a switch sequence is used to control the switching of multiple elements of the RIS so as to convert the initial channel detection signal into the target channel detection signal, including:
[0099] The transmitting end sends an initial channel detection signal to the RIS, so that the receiving end receives a target channel detection signal generated by the RIS.
[0100] Optionally, in another embodiment of the method of the present application, the physical layer key in the semantic communication system is established by the transmitting end and the receiving end through the target channel detection signal, including:
[0101] The transmitting end and the receiving end respectively analyze the target channel detection signal to obtain channel parameters reflecting channel strength or channel information;
[0102] The transmitting end and the receiving end quantize the channel parameters based on the double threshold quantization technology of mean and variance, respectively, to obtain bit sequences quantized to 0 and 1;
[0103] The sender and the receiver establish a physical layer key in the semantic communication system based on the quantized bit sequence.
[0104] Optionally, in another embodiment of the method of the present application, the transmitting end and the receiving end establish a physical layer key in the semantic communication system based on the quantized bit sequence, including:
[0105] The sender and receiver use BCD code to negotiate information and obtain a consistent bit sequence;
[0106] The sender and the receiver use a hash function to amplify the key obtained based on the bit sequence to obtain the physical layer key in the semantic communication system.
[0107] Optionally, in another embodiment based on the above method of the present application, the transmitting end and the receiving end use BCD code to negotiate information to obtain a consistent bit sequence, including:
[0108] The sending end and the receiving end respectively obtain a syndrome by multiplying the original key sequence with the check matrix; and the sending end sends its own first syndrome to the receiving end;
[0109] The receiving end uses its own second syndrome and the received first syndrome to correct errors in its own original key sequence to obtain the key.
[0110] It is understandable that the semantic communication system based on deep learning is very vulnerable to various attacks, such as eavesdropping, surveillance, and deception, due to the openness of the wireless channel and the fragility of the neural model. In order to solve this problem, the embodiment of the present application proposes a physical layer key generation scheme, which aims to ensure the communication security of the semantic communication system based on deep learning by exploring the underlying randomness.
[0111] Optionally, in another embodiment of the present application, Figure 4 As shown, the present application also provides a physical layer key generation device, which is applied to a semantic communication system including an intelligent reflective surface RIS, wherein:
[0112] The calculation module 201 is configured to calculate a semantic drift feature reflecting a semantic offset between the first channel detection signal and the second channel detection signal based on a first channel detection signal sent by the sending end of the semantic communication system to the receiving end and based on a second channel detection signal received by the receiving end;
[0113] A generating module 202, configured to generate a switch sequence for randomly controlling the RIS based on the semantic drift feature;
[0114] The transformation module 203 is configured to, when the transmitting end sends an initial channel detection signal to the receiving end through the RIS, use the switch sequence to perform switch control on multiple elements of the RIS so that the initial channel detection signal is transformed into a target channel detection signal;
[0115] The establishing module 204 is configured to establish a physical layer key in the semantic communication system by the transmitting end and the receiving end through the target channel detection signal.
[0116] By applying the technical solution of the present application, on the one hand, the purpose of increasing the channel characteristic variation of the transmitting end and the receiving end in the transmission signal can be achieved by deploying RIS in the semantic communication system. On the other hand, the semantic drift phenomenon can be combined to realize randomization control of the RIS channel, thereby avoiding the problem of low generation rate of physical layer keys in the semantic communication system.
[0117] In another embodiment of the present application, the calculation module 201 is configured to perform the following steps:
[0118] Acquire a first semantic code reflected by the first channel sounding signal; and acquire a second semantic code reflected by the second channel sounding signal;
[0119] Difference information between the first semantic code and the second semantic code is calculated, and the difference information is used as the semantic drift feature.
[0120] In another embodiment of the present application, the calculation module 201 is configured to perform the following steps:
[0121] Performing mathematical quantization processing on the semantic drift feature to obtain a character string sequence quantized to 0 to 1;
[0122] The character string sequence is used as a switch sequence for randomizing control of the RIS.
[0123] In another embodiment of the present application, the calculation module 201 is configured to perform the following steps:
[0124] When the switch sequence is used to control the switching of multiple elements of the RIS, the transmitting end sends the initial channel sounding signal to the RIS, so that the receiving end receives the target channel sounding signal generated by the RIS.
[0125] In another embodiment of the present application, the calculation module 201 is configured to perform the following steps:
[0126] The transmitting end and the receiving end respectively analyze the target channel detection signal to obtain a channel parameter reflecting channel strength or channel information;
[0127] The transmitting end and the receiving end perform quantization processing on the channel parameters based on a double threshold quantization technology of mean and variance, respectively, to obtain bit sequences quantized to 0 and 1;
[0128] The transmitting end and the receiving end establish a physical layer key in the semantic communication system based on the quantized bit sequence.
[0129] In another embodiment of the present application, the calculation module 201 is configured to perform the following steps:
[0130] The transmitting end and the receiving end perform information negotiation using BCD code to obtain a consistent bit sequence;
[0131] The sending end and the receiving end use a hash function to amplify the key obtained based on the bit sequence to obtain a physical layer key in the semantic communication system.
[0132] In another embodiment of the present application, the calculation module 201 is configured to perform the following steps:
[0133] The transmitting end and the receiving end respectively obtain a syndrome by multiplying the original key sequence with the check matrix; and the transmitting end sends its own first syndrome to the receiving end;
[0134] The receiving end uses its own second syndrome and the received first syndrome to correct errors in its own original key sequence to obtain the key.
[0135] The present application also provides an electronic device to execute the above-mentioned method for generating a physical layer key. Figure 5 , which shows a schematic diagram of an electronic device provided by some embodiments of the present application. Figure 5 As shown, the electronic device 3 includes: a processor 300, a memory 301, a bus 302 and a communication interface 303, and the processor 300, the communication interface 303 and the memory 301 are connected via the bus 302; the memory 301 stores a computer program that can be run on the processor 300, and when the processor 300 runs the computer program, it executes the method for generating the physical layer key provided in any of the aforementioned embodiments of the present application.
[0136] The memory 301 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage. The communication connection between the device network element and at least one other network element is realized through at least one communication interface 303 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used.
[0137] The bus 302 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The memory 301 is used to store programs, and the processor 300 executes the programs after receiving the execution instruction. The data identification method disclosed in any implementation of the embodiment of the present application may be applied to the processor 300, or implemented by the processor 300.
[0138] The processor 300 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 300. The above processor 300 can be a general-purpose processor, including a processor (Central Processing Unit, referred to as CPU), a network processor (Network Processor, referred to as NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a readily available programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware decoding processor to execute, or the hardware and software modules in the decoding processor can be executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 301, and the processor 300 reads the information in the memory 301 and completes the steps of the above method in combination with its hardware.
[0139] The electronic device provided in the embodiment of the present application and the method for generating the physical layer key provided in the embodiment of the present application are based on the same inventive concept and have the same beneficial effects as the methods adopted, operated or implemented therein.
[0140] The present application also provides a computer-readable storage medium corresponding to the method for generating a physical layer key provided in the above embodiment. Figure 6 The computer-readable storage medium shown is a CD 40 on which a computer program (ie, a program product) is stored. When the computer program is run by a processor, the method for generating a physical layer key provided in any of the aforementioned embodiments will be executed.
[0141] It should be noted that examples of the computer-readable storage medium may also include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other optical or magnetic storage media, which are not listed here one by one.
[0142] The computer-readable storage medium provided in the above-mentioned embodiments of the present application and the method for data identification provided in the embodiments of the present application are based on the same inventive concept and have the same beneficial effects as the method adopted, run or implemented by the application program stored therein.
[0143] It should be noted that:
[0144] In the description provided herein, a large number of specific details are described. However, it is understood that the embodiments of the present application can be practiced without these specific details. In some instances, well-known structures and technologies are not shown in detail so as not to obscure the understanding of this description.
[0145] Similarly, it should be understood that in order to streamline the present application and help understand one or more of the various inventive aspects, in the above description of the exemplary embodiments of the present application, the various features of the present application are sometimes grouped together into a single embodiment, figure, or description thereof. However, the disclosed method should not be interpreted as reflecting the following schematic diagram: the claimed application requires more features than the features clearly stated in each claim. More specifically, as reflected in the claims below, the inventive aspects are less than all the features of the single embodiment disclosed above. Therefore, the claims following the specific embodiment are hereby expressly incorporated into the specific embodiment, wherein each claim itself serves as a separate embodiment of the present application.
[0146] In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present application and form different embodiments. For example, in the claims below, any one of the claimed embodiments may be used in any combination.
[0147] The above is only a preferred specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A method for generating a physical layer key, characterized in that: Applicable to a semantic communication system including a smart reflective surface (RIS), wherein: Based on a first channel sounding signal sent by a transmitting end of the semantic communication system to a receiving end, and based on a second channel sounding signal received by the receiving end, a semantic drift feature for reflecting a semantic offset between the first channel sounding signal and the second channel sounding signal is calculated; Based on the semantic drift feature, generating a switch sequence for randomly controlling the RIS; When the transmitting end sends an initial channel detection signal to the receiving end through the RIS, the switching sequence is used to control the switching of multiple elements of the RIS so that the initial channel detection signal is converted into a target channel detection signal; The transmitting end and the receiving end establish a physical layer key in the semantic communication system through the target channel detection signal; The step of establishing a physical layer key in the semantic communication system by the transmitting end and the receiving end through the target channel detection signal includes: The transmitting end and the receiving end respectively analyze the target channel detection signal to obtain a channel parameter reflecting channel strength or channel information; The transmitting end and the receiving end perform quantization processing on the channel parameters based on a double threshold quantization technology of mean and variance, respectively, to obtain bit sequences quantized to 0 and 1; The transmitting end and the receiving end establish a physical layer key in the semantic communication system based on the quantized bit sequence; The transmitting end and the receiving end establish a physical layer key in the semantic communication system based on the quantized bit sequence, including: The transmitting end and the receiving end perform information negotiation using BCD code to obtain a consistent bit sequence; The sending end and the receiving end use a hash function to amplify the key obtained based on the bit sequence to obtain a physical layer key in the semantic communication system; The transmitting end and the receiving end perform information negotiation using BCD code to obtain a consistent bit sequence, including: The transmitting end and the receiving end respectively obtain a syndrome by multiplying the original key sequence with the check matrix; and the transmitting end sends its own first syndrome to the receiving end; The receiving end uses its own second syndrome and the received first syndrome to correct errors in its own original key sequence to obtain the key.
2. The method according to claim 1, characterized in that The calculating and obtaining a semantic drift feature for reflecting a semantic offset between the first channel detection signal and the second channel detection signal includes: Acquire a first semantic code reflected by the first channel sounding signal; and acquire a second semantic code reflected by the second channel sounding signal; Difference information between the first semantic code and the second semantic code is calculated, and the difference information is used as the semantic drift feature.
3. The method according to claim 1, characterized in that The step of generating a switch sequence for randomly controlling the RIS based on the semantic drift feature comprises: Performing mathematical quantization processing on the semantic drift feature to obtain a character string sequence quantized to 0 to 1; The character string sequence is used as a switch sequence for randomizing control of the RIS.
4. The method according to claim 1, characterized in that The step of using the switch sequence to switch multiple elements of the RIS so as to convert the initial channel detection signal into a target channel detection signal includes: When the switch sequence is used to control the switching of multiple elements of the RIS, the transmitting end sends the initial channel sounding signal to the RIS, so that the receiving end receives the target channel sounding signal generated by the RIS.
5. A device for generating a physical layer key, characterized in that: Applicable to a semantic communication system including a smart reflective surface (RIS), wherein: A calculation module, configured to calculate a semantic drift feature reflecting a semantic offset between the first channel detection signal and the second channel detection signal based on a first channel detection signal sent by a transmitting end of the semantic communication system to a receiving end, and based on a second channel detection signal received by the receiving end; A generating module, configured to generate a switch sequence for randomly controlling the RIS based on the semantic drift feature; a conversion module configured to, when the transmitting end sends an initial channel detection signal to the receiving end through the RIS, use the switch sequence to perform switch control on multiple elements of the RIS so as to convert the initial channel detection signal into a target channel detection signal; An establishing module, configured to establish a physical layer key in the semantic communication system by the transmitting end and the receiving end through the target channel detection signal; The step of establishing a physical layer key in the semantic communication system by the transmitting end and the receiving end through the target channel detection signal includes: The transmitting end and the receiving end respectively analyze the target channel detection signal to obtain a channel parameter reflecting channel strength or channel information; The transmitting end and the receiving end perform quantization processing on the channel parameters based on a double threshold quantization technology of mean and variance, respectively, to obtain bit sequences quantized to 0 and 1; The transmitting end and the receiving end establish a physical layer key in the semantic communication system based on the quantized bit sequence; The transmitting end and the receiving end establish a physical layer key in the semantic communication system based on the quantized bit sequence, including: The transmitting end and the receiving end perform information negotiation using BCD code to obtain a consistent bit sequence; The sending end and the receiving end use a hash function to amplify the key obtained based on the bit sequence to obtain a physical layer key in the semantic communication system; The transmitting end and the receiving end perform information negotiation using BCD code to obtain a consistent bit sequence, including: The transmitting end and the receiving end respectively obtain a syndrome by multiplying the original key sequence with the check matrix; and the transmitting end sends its own first syndrome to the receiving end; The receiving end uses its own second syndrome and the received first syndrome to correct errors in its own original key sequence to obtain the key.
6. An electronic device, characterized in that: include: A memory for storing executable instructions; as well as, A processor is used to execute the executable instructions with the memory to complete the operation of the method for generating a physical layer key in any one of claims 1-4.
7. A computer-readable storage medium for storing computer-readable instructions, characterized in that: When the instruction is executed, the operation of the method for generating a physical layer key in any one of claims 1-4 is performed.