Disclosure of Invention
The invention aims to provide a method and a system for testing the polarization code rate of a power quantum secret communication system, which are used for providing related data support and test verification for the application of a quantum secret communication technology in power service information.
In order to solve the technical problem, the invention provides a method for testing the polarization code rate of a power quantum secret communication system, which comprises the following steps:
s1: presetting various types of test cases related to power grid environment parameters;
s2: checking a test environment and a test sample, and selecting a target test case according to a test request after receiving the test request of a user;
s3: and controlling the power quantum communication system to generate a corresponding quantum key for the test sample under the target test case so as to carry out quantum key encryption transmission of power service information, and recording a test result.
Preferably, the test case includes a communication distance attenuation loss test case, a waving loss test case, a quantum channel line connection loss test case, a lattice type vibration loss test case, a polarization dependent loss test case, an electromagnetic interference loss test case, and/or a temperature loss test case of the quantum channel.
Preferably, when the target test case is the communication distance attenuation loss test case of the quantum channel, the S3 specifically includes:
s10: setting a communication distance attenuation initial value of a quantum channel in the power quantum communication system;
s11: starting the power quantum communication system by taking the current communication distance attenuation value as a test parameter;
s12: after the power quantum communication system stably operates for a preset time, recording the average encoding rate of quantum keys formed by the power quantum communication system;
s13: judging whether the current average bit rate is 0; if yes, go to step S14, otherwise, go to step S15;
s14: outputting the average encoding rate corresponding to each communication distance attenuation value;
s15: a step is added based on the current communication distance attenuation value and the process returns to step S11.
Preferably, when the target test case is the galloping loss test case, the S3 specifically includes:
s20: setting a wind power initial value of a quantum channel in the power quantum communication system;
s21: starting the power quantum communication system by taking the current wind force value as a test parameter;
s22: after the power quantum communication system stably operates for a preset time, recording the average encoding rate of quantum keys formed by the power quantum communication system;
s23: judging whether the current average bit rate is 0; if yes, go to step S24, otherwise, go to step S25;
s24: outputting the average resultant code rate corresponding to each wind force value;
s25: judging whether the current wind force value is less than 12 levels; if yes, go to step S26, otherwise go to step S24;
s26: a level is added on the basis of the current wind force value, and the process returns to step S21.
Preferably, when the target test case is the quantum channel line connection loss test case, the S3 specifically includes:
s30: setting an initial value of the number of FC joints of a quantum channel in the power quantum communication system to be 0;
s31: starting the power quantum communication system by taking the current FC joint number as a test parameter;
s32: after the power quantum communication system stably operates for a preset time, recording the average composition rate and the line attenuation value of a quantum key formed by the power quantum communication system;
s33: judging whether the current average bit rate is 0; if yes, go to step S34, otherwise, go to step S35;
s34: outputting the average resultant code rate and the line attenuation value corresponding to the number of the FC joints;
s35: and adding one joint on the basis of the current FC joint number, and returning to the step S31.
Preferably, when the target test case is the lattice-type shock loss test case, the S3 specifically includes:
s40: setting an initial value of a lattice type vibration level of a quantum channel in the power quantum communication system to be 0;
s41: starting the power quantum communication system by taking the current lattice type vibration level as a test parameter;
s42: after the power quantum communication system stably operates for a preset time, recording the average encoding rate of quantum keys formed by the power quantum communication system;
s43: judging whether the current average bit rate is 0; if yes, go to step S44, otherwise, go to step S45;
s44: outputting the average resultant code rate corresponding to each dot array type vibration level;
s45: a level is added on the basis of the current lattice vibration level and the process returns to step S41.
Preferably, when the target test case is the polarization dependent loss test case, the S3 specifically includes:
s50: setting an initial value of the number of APC joints of a quantum channel in the power quantum communication system to 0;
s51: starting the power quantum communication system by taking the current APC joint number as a test parameter;
s52: after the power quantum communication system stably operates for a preset time, recording the average composition rate and the quantum channel polarization-related loss value of a quantum key formed by the power quantum communication system;
s53: judging whether the current average bit rate is 0; if yes, go to step S54, otherwise, go to step S55;
s54: outputting the average resultant code rate and the quantum channel polarization correlation loss value corresponding to the number of the APC joints;
s55: one splice is added based on the current number of APC splices, and the process returns to step S51.
Preferably, when the target test case is the electromagnetic interference loss test case, the S3 specifically includes:
s60: setting an initial voltage value of the power transmission conductor;
s61: starting the power quantum communication system by taking the voltage value of the current power transmission conductor as a test parameter;
s62: after the power quantum communication system stably operates for a preset time, recording the average encoding rate of quantum keys formed by the power quantum communication system and the electromagnetic radiation quantity of a power transmission conductor;
s63: judging whether the current average bit rate is 0; if yes, go to step S64, otherwise, go to step S65;
s64: outputting the average encoding rate and the electromagnetic radiation quantity of the power transmission conductors corresponding to the voltage value of each power transmission conductor;
s65: a step is added on the basis of the current value of the voltage of the power conductor and the process returns to step S61.
Preferably, when the target test case is the temperature loss test case, the S3 specifically includes:
s70: setting an initial temperature value of a quantum channel in the power quantum communication system;
s71: starting the power quantum communication system by taking the temperature value of the current quantum channel as a test parameter;
s72: after the power quantum communication system stably operates for a preset time, recording the average encoding rate of quantum keys formed by the power quantum communication system;
s73: judging whether the current average bit rate is 0; if yes, go to step S74, otherwise, go to step S75;
s74: outputting average code rate corresponding to the temperature value of each quantum channel;
s75: and increasing a grade on the basis of the temperature value of the current quantum channel, and returning to the step S71.
In order to solve the above problem, the present invention further provides a system for testing polarization coding rate of a power quantum secure communication system, including:
the test case setting device is used for presetting various types of test cases related to the power grid environment parameters;
the test management host is used for checking a test environment and a test sample, and selecting a target test case according to a test request after receiving the test request of a user; controlling the power quantum communication system to generate a corresponding quantum key for the test sample under the target test case so as to carry out quantum key encryption transmission of power business information, and recording a test result;
the power quantum communication system is used for generating a corresponding quantum key for the test sample under the target test case so as to carry out quantum key encryption transmission of the power service information.
The invention provides a method and a system for testing polarization code rate of a power quantum secret communication system, which comprises the steps of presetting various types of test cases related to power grid environment parameters; checking a test environment and a test sample, and selecting a target test case according to a test request after receiving the test request of a user; and controlling the power quantum communication system to generate a corresponding quantum key for the test sample under the target test case so as to carry out quantum key encryption transmission of power service information, and recording a test result. The method aims to overcome the problems of complex power communication networking, large environmental factor interference and the like by setting various types of test cases, and carries out quantum signal performance test work of the quantum secret communication system under the simulated power grid environment, thereby realizing the test of the running condition and various performance indexes of the quantum secret communication system under the power grid environment and verifying the feasibility and the safety of the quantum secret communication system applied to the power grid service.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without any creative work belong to the protection scope of the present invention.
The core of the invention is to provide a method and a system for testing the polarization code rate of a power quantum secret communication system, which are used for providing related data support and test verification for the application of a quantum secret communication technology in power service information.
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
Fig. 2 is a flowchart of a method for testing polarization coding rate of a power quantum secure communication system according to an embodiment of the present invention. As shown in fig. 2, includes:
s1: and presetting various types of test cases related to the power grid environment parameters.
S2: and checking the test environment and the test sample, and selecting a target test case according to the test request after receiving the test request of the user.
S3: and controlling the power quantum communication system to generate a corresponding quantum key for the test sample under the target test case so as to carry out quantum key encryption transmission of the power service information, and recording the test result.
It should be noted that the electric power quantum communication system in this document is the same as the existing quantum secure communication system, and the specific structure can be referred to in the prior art, but the quantum secure communication system is herein combined with the electric power industry to transmit the electric power service information.
The transmission medium used by the quantum channel can adopt an overhead single-mode optical fiber/single-mode power communication optical cable fiber core and the like. Because the transmission distance of the transmission medium is very far and is easily influenced by the external environment, how to apply the quantum secret communication system to the power industry needs early test work, thereby providing data support for subsequent practical application.
Therefore, in this embodiment, a plurality of types of test cases are set according to the power grid environment parameters, where the test cases are the real environments where the simulated power quantum communication system is located. The test sample can generate the quantum key after being processed by the quantum key terminal in the power quantum communication system. And after receiving a test request of a user, selecting a target test case according to the test request. It is understood that the target test case is one of the test cases, and herein, for the sake of distinction only, any test case may become the target test case.
After the above configuration is completed, the power quantum communication system is controlled to start, that is, the power quantum communication system generates a corresponding quantum key for the test sample under the target test case to perform quantum key encryption transmission of the power service information, and then records the communication result of the power quantum communication system, that is, records the test result. Corresponding test results are provided for various test cases, so that the influence of the external environment on a quantum channel in the power quantum communication system can be obtained, and a real reference basis is provided when the quantum communication system is set. It should be noted that, if a fault occurs during the test, the cause of the fault and the related test result also need to be recorded. And, every time a test case is tested, necessary cleaning work is needed so that the subsequent test result is not affected.
The method for testing the polarization code rate of the electric power quantum secret communication system comprises the steps of presetting various types of test cases related to power grid environment parameters; checking a test environment and a test sample, and selecting a target test case according to a test request after receiving the test request of a user; and controlling the power quantum communication system to generate a corresponding quantum key for the test sample under the target test case so as to carry out quantum key encryption transmission of power service information, and recording a test result. The method aims to overcome the problems of complex power communication networking, large environmental factor interference and the like by setting various types of test cases, and carries out quantum signal performance test work of the quantum secret communication system under the simulated power grid environment, thereby realizing the test of the running condition and various performance indexes of the quantum secret communication system under the power grid environment and verifying the feasibility and the safety of the quantum secret communication system applied to the power grid service.
The invention fully considers various transmission losses, climatic weather environment, electromagnetic field and other factors existing in the actual operation of the electric power quantum secret communication system, and designs a communication distance attenuation loss test case, a galloping loss test case, a quantum channel line connection loss test case, a lattice type vibration loss test case, a polarization correlation loss test case, an electromagnetic interference loss test case and/or a temperature loss test case which comprise quantum channels. Hereinafter, a plurality of test cases will be described separately. It is to be understood that the plurality of test cases are only some of the plurality of test cases, and are not representative of only the plurality of test cases. The polarization type is a quantum signal source modulation method, which generates a quantum signal of a single photon by modulation, and generally modulates a polarization state signal of light by controlling a polarization controller through a circuit. The test method of the present invention is based on polarization.
1) Communication distance attenuation loss test case for quantum channel
The purpose of the communication distance attenuation loss test is to test the influence of the quantum channel distance on the rate forming performance of quantum key generation equipment in the power quantum communication system. Fig. 3 is a test flowchart corresponding to a communication distance attenuation loss test case of a quantum channel according to an embodiment of the present invention. When the target test case is a communication distance attenuation loss test case of a quantum channel, S3 specifically includes:
s10: setting a communication distance attenuation initial value of a quantum channel in the power quantum communication system;
s11: starting the power quantum communication system by taking the current communication distance attenuation value as a test parameter;
s12: after the power quantum communication system stably operates for a preset time, recording the average encoding rate of quantum keys formed by the power quantum communication system;
s13: judging whether the current average bit rate is 0; if yes, go to step S14, otherwise, go to step S15;
s14: outputting the average encoding rate corresponding to each communication distance attenuation value;
s15: a step is added based on the current communication distance attenuation value and the process returns to step S11.
The communication distance attenuation loss test case provides a distance (attenuation loss is increased along with the increase of the distance) simulation function of a quantum channel (single photon) in a test system, establishes an attenuation loss simulation of quantum channel transmission distance change and a test environment of related parameter configuration, and realizes the quantitative influence test of the quantum signal on the communication distance attenuation loss in a polarization mode.
The average bit rate in this context is an average value calculated according to the real-time bit rate over the above 1-hour sampling period.
The predetermined time in this embodiment may be 1 hour, and the step size may be set to 0.5 dB.
2) Test case for waving loss
The purpose of the galloping loss test is to test the influence of the galloping action of the overhead power communication optical cable generated by wind power on the rate-forming performance of quantum key generation equipment in the power quantum communication system. Fig. 4 is a test flow chart corresponding to the waving loss test case provided in the embodiment of the present invention. When the target test case is a galloping loss test case, S3 specifically includes:
s20: setting a wind power initial value of a quantum channel in a power quantum communication system;
s21: starting the power quantum communication system by taking the current wind force value as a test parameter;
s22: after the power quantum communication system stably operates for a preset time, recording the average encoding rate of quantum keys formed by the power quantum communication system;
s23: judging whether the current average bit rate is 0; if yes, go to step S24, otherwise, go to step S25;
s24: outputting the average resultant code rate corresponding to each wind force value;
s25: judging whether the current wind force value is less than 12 levels; if yes, go to step S26, otherwise go to step S24;
s26: a level is added on the basis of the current wind force value, and the process returns to step S21.
The galloping loss test case provides a function of simulating the galloping state of the overhead optical cable of the power communication network in an outdoor environment due to ice coating and strong wind in a test system, the scene of the test case can act on the quantum channel through wind with different wind levels generated by simulation of a wind-driven device (wind can wave the overhead optical cable bearing the quantum channel), and the test of the galloping influence of the power overhead optical cable (OPGW/ADSS) is realized.
In this embodiment, the initial value of the wind power may be set to 0, and the level may be increased by one level according to the wind power level, for example, if the current wind power value is 4 levels, the current wind power value becomes 5 levels and the maximum is 12 levels after the increase of one level. The predetermined time in this embodiment may be 1 hour,
3) connection loss test case for quantum channel line
The purpose of the quantum channel line connection loss test is to test the influence of the quantum channel connection loss on the rate-forming performance of quantum key generation equipment in the power quantum communication system. Fig. 5 is a test flowchart corresponding to a test case of continuous loss of a quantum channel line according to an embodiment of the present invention. When the target test case is a quantum channel line connection loss test case, S3 specifically includes:
s30: setting an initial value of the FC joint number of a quantum channel in the power quantum communication system to be 0;
s31: starting the power quantum communication system by taking the current FC joint number as a test parameter;
s32: after the power quantum communication system stably operates for a preset time, recording the average composition rate and the line attenuation value of a quantum key formed by the power quantum communication system;
s33: judging whether the current average bit rate is 0; if yes, go to step S34, otherwise, go to step S35;
s34: outputting the average resultant code rate and the line attenuation value corresponding to the number of the FC joints;
s35: and adding one joint on the basis of the current FC joint number, and returning to the step S31.
The quantum channel line connection loss test case simulates the change of transmission loss values caused by the mutual connection of different optical fiber sections through a movable joint device or fusion welding and the like in a test system, and realizes the quantitative test of the influence of the connection loss of the power communication optical cable/optical fiber on quantum signals in a polarization mode. The predetermined time in the present embodiment may be 1 hour.
4) Lattice type vibration loss test case
The purpose of the lattice type vibration loss test is to test the influence of the loss of a quantum channel caused by external force lattice type vibration (the invention mainly simulates the vibration impact of raindrops on an overhead communication optical cable under different rain conditions) on the rate forming performance of quantum key generation equipment in the power quantum communication system. Fig. 6 is a test flow chart corresponding to a lattice vibration loss test case provided in an embodiment of the present invention. When the target test case is a dot-matrix vibration loss test case, S3 specifically includes:
s40: setting an initial value of a lattice type vibration level of a quantum channel in the power quantum communication system to be 0;
s41: starting the power quantum communication system by taking the current lattice type vibration level as a test parameter;
s42: after the power quantum communication system stably operates for a preset time, recording the average encoding rate of quantum keys formed by the power quantum communication system;
s43: judging whether the current average bit rate is 0; if yes, go to step S44, otherwise, go to step S45;
s44: outputting the average resultant code rate corresponding to each dot array type vibration level;
s45: a level is added on the basis of the current lattice vibration level and the process returns to step S41.
The dot-matrix vibration loss test case provides a vibration phenomenon that similar raindrops or hail particles impact the overhead power communication optical cable with external force to form under different strengths generated by simulation in a test system, and quantitatively tests the influence of the dot-matrix vibration loss on quantum signals in a polarization mode. The predetermined time in the present embodiment may be 1 hour. The levels herein may be set according to light rain, medium rain, heavy rain, and extra heavy rain references.
5) Polarization dependent loss test case
The purpose of the polarization dependent loss test case is to test the influence of the quantum channel polarization dependent loss (the polarization dependent loss generated by the power optical cable and the jumper joint) on the code rate performance of quantum key generation equipment in the power quantum communication system. Fig. 7 is a test flowchart corresponding to a polarization dependent loss test case provided in an embodiment of the present invention. When the target test case is a polarization dependent loss test case, S3 specifically includes:
s50: setting an initial value of the number of APC joints of a quantum channel in the power quantum communication system to be 0;
s51: starting the power quantum communication system by taking the current APC joint number as a test parameter;
s52: after the power quantum communication system stably operates for a preset time, recording the average composition rate of quantum keys formed by the power quantum communication system and the polarization-related loss value of a quantum channel;
s53: judging whether the current average bit rate is 0; if yes, go to step S54, otherwise, go to step S55;
s54: outputting the average resultant code rate and the quantum channel polarization correlation loss value corresponding to the number of the APC joints;
s55: one splice is added based on the current number of APC splices, and the process returns to step S51.
The polarization correlation loss test case provides disturbance of the simulated power communication optical cable on the polarization state of the input optical quantum signal and sensitivity measurement of the disturbance in the test system, so that the influence of different polarization correlation losses on the transmission performance of the quantum signal is quantitatively tested. The predetermined time in the present embodiment may be 1 hour. In this embodiment, one additional connector is used to connect the same type of equal-length pigtails to the quantum channel.
6) Electromagnetic interference loss test case
The purpose of the electromagnetic interference loss test is to test the influence of different external electromagnetic interference degrees (referring to the voltage level simulation of a transmission line to set the electromagnetic radiation intensity, and correspondingly dividing the electromagnetic radiation intensity into levels of 6kV, 10kV, 35kV, 110kV, 220kV, 330kV, 500kV, 750kV, 1000kV and the like) on the quantum key generation equipment rate performance in the power quantum communication system. Fig. 8 is a test flowchart corresponding to an electromagnetic interference loss test case provided in an embodiment of the present invention. When the target test case is an electromagnetic interference loss test case, S3 specifically includes:
s60: setting an initial voltage value of the power transmission conductor;
s61: starting the power quantum communication system by taking the voltage value of the current power transmission conductor as a test parameter;
s62: after the power quantum communication system stably operates for a preset time, recording the average composition rate of quantum keys formed by the power quantum communication system and the electromagnetic radiation quantity of a power transmission conductor;
s63: judging whether the current average bit rate is 0; if yes, go to step S64, otherwise, go to step S65;
s64: outputting the average encoding rate and the electromagnetic radiation quantity of the power transmission conductors corresponding to the voltage value of each power transmission conductor;
s65: a step is added on the basis of the current value of the voltage of the power conductor and the process returns to step S61.
The electromagnetic interference loss test case provides a function of simulating the electromagnetic field radiation interference environment with different field intensity degrees generated by emission in a test system, and realizes the test of the influence of the electromagnetic field interference on the transmission performance of the quantum signals. The predetermined time in this embodiment is 2 hours, and the level may be increased in accordance with 6kV, 10kV, 35kV, 110kV, 220kV, 330kV, 500kV, 750kV, 1000 kV. It will be appreciated that the particular number of voltage levels described above is only one application scenario and not just that option.
7) Temperature loss test case
The temperature loss test aims to test the influence of the quantum channel on the rate-forming performance of quantum key generation equipment in the power quantum communication system when the quantum channel is influenced by external temperature. Fig. 9 is a test flow chart corresponding to a temperature loss test case according to an embodiment of the present invention. When the target test case is a temperature loss test case, S3 specifically includes:
s70: setting an initial temperature value of a quantum channel in the power quantum communication system;
s71: starting the power quantum communication system by taking the temperature value of the current quantum channel as a test parameter;
s72: after the power quantum communication system stably operates for a preset time, recording the average encoding rate of quantum keys formed by the power quantum communication system;
s73: judging whether the current average bit rate is 0; if yes, go to step S74, otherwise, go to step S75;
s74: outputting average code rate corresponding to the temperature value of each quantum channel;
s75: and increasing a grade on the basis of the temperature value of the current quantum channel, and returning to the step S71.
The temperature loss test case provides variable environments with different temperatures in a test system in a simulation mode, and achieves the effect test of the transmission performance of quantum signals in different temperature environments (particularly in high-temperature and extremely cold weather environments). The predetermined time in this embodiment may be 1 hour, and the level may be increased in steps of 5 ℃.
The invention also provides a system for testing the polarization code rate of the power quantum secret communication system corresponding to the method. Fig. 10 is a structural diagram of a system for testing polarization code rate of a power quantum secure communication system according to an embodiment of the present invention. The test system for the polarization code rate of the power quantum secret communication system comprises:
the test case setting device 1 is used for presetting various types of test cases related to power grid environment parameters;
the test management host 2 is used for checking a test environment and a test sample, and selecting a target test case according to a test request after receiving the test request of a user; controlling the power quantum communication system to generate a corresponding quantum key for the test sample under the target test case so as to carry out quantum key encryption transmission of the power service information, and recording the test result;
and the power quantum communication system 3 is used for generating a corresponding quantum key for the test sample under the target test case so as to perform quantum key encryption transmission of the power business information.
As shown in fig. 10, the test case setting apparatus 1 may include a plurality of test case modules, for example, a communication distance attenuation loss test case module of a quantum channel, a waving loss test case module, a quantum channel line connection loss test case module, a lattice type vibration loss test case module, a polarization dependent loss test case module, an electromagnetic interference loss test case module, and a temperature loss test case module. Since the embodiment of the system portion and the embodiment of the method portion correspond to each other, please refer to the description of the embodiment of the system portion for the embodiment of the system portion, which is not repeated here.
The test system for the polarization code rate of the electric power quantum secret communication system comprises a test case setting device, a test case setting device and a test case setting device, wherein the test case setting device is used for presetting various types of test cases related to power grid environment parameters; the test management host is used for checking the test environment and the test samples and selecting a target test case according to the test request after receiving the test request of the user; controlling the power quantum communication system to generate a corresponding quantum key for the test sample under the target test case so as to carry out quantum key encryption transmission of the power service information, and recording the test result; and the power quantum communication system is used for generating a corresponding quantum key for the test sample under the target test case so as to carry out quantum key encryption transmission of the power business information. The system is provided with various types of test cases, aims to overcome the problems of complex power communication networking, large environmental factor interference and the like, and carries out quantum signal performance test work of the quantum secret communication system under the simulated power grid environment, so that the operation condition and various performance indexes of the quantum secret communication system under the tested power grid environment are realized, and the feasibility and the safety of the quantum secret communication system applied to the power grid service are verified.
The method and the system for testing the polarization code rate of the power quantum secure communication system are described in detail above. The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.