A method and system for detecting whether QKD can defend against double counting attacks

Through online detection devices and programs, the optical signal intensity and polarization state decomposition of the QKD system are enhanced, and the tolerance threshold is set, which solves the professional skills and quantitative detection problems of detecting QKD defense double count attacks, and achieves efficient and reliable detection results.

CN118473666BActive Publication Date: 2024-10-25THREE GORGES INTELLIGENT ENG CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410931728.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-12
Publication Date
2024-10-25
Estimated Expiration
2044-07-12

AI Technical Summary

Technical Problem

Existing technology requires high professional skills and quantum knowledge to detect whether a quantum key distribution (QKD) system can defend against double counting attacks, and lacks quantitative detection methods, which leads to the risk of inconsistent code review and falsified operating data.

Method used

By increasing the intensity of the optical signal at the QKD transmitter under test, filtering and decomposing the polarized light signal, recording the detection events of the detector, and setting the tolerance threshold, it is determined whether the QKD system can defend against double counting attacks, and online detection devices and programs are used Execute this method.

Benefits of technology

It reduces the professional skill requirements of detection personnel, avoids the risk of code inconsistency, provides quantitative and reliable results, and ensures the authenticity and effectiveness of detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118473666B_ABST
    Figure CN118473666B_ABST
Patent Text Reader

Abstract

The present invention belongs to the field of digital information transmission technology, and particularly relates to a method and device for detecting whether QKD can defend against double counting attacks. By extracting the number of times a polarization state optical signal with enhanced adjustment is captured by a detector after base decoding at the QKD receiving end, the expected detection count value used to generate the original key in a single cycle when the QKD with a defense mechanism is subjected to a double counting attack is simulated and calculated, and the expected detection count value is compared with the actual original key generation rate in the same cycle to determine whether the QKD to be tested can defend against double counting attacks. The method is simple and easy to operate, does not require high professional skills of the detection personnel, and can be directly reviewed online. There is no possibility of cheating during the inspection process, the deviation can be quantified, and the result is true and reliable. The present invention also provides a non-transient readable recording medium storing the method program and a system containing the medium, and the program can be called through a processing circuit to execute the above method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of digital information transmission, and discloses a method, a device, a recording medium and a system for detecting whether QKD can defend against double counting attacks. Background Art

[0002] Encryption technology is widely used in modern digital information transmission to convert plaintext into ciphertext for transmission. The continuous evolution of encryption technology has ensured the security of information transmission. In theory, the key of quantum encryption cannot be deciphered, but in the quantum key distribution (QKD) link, double counting attacks still pose a threat to the correct distribution of keys.

[0003] The BB84 protocol is the earliest quantum key distribution protocol proposed by Bennett and Bassard in 1984. It is also the most mature and widely used quantum key distribution protocol to date, and its theoretical security has been strictly proven.

[0004] Multiple physical quantities of photons, such as polarization, phase, frequency, etc., can be encoded as quantum bits. The original BB84 protocol uses a single photon as the carrier of information and divides the polarization state of light into two sets of conjugated bases. The two polarization states in each set of bases are orthogonal to each other. The two polarization states in one set of conjugated bases are generally called H state and V state, and the two polarization states in the other set of conjugated bases are called P state and N state. Since the two sets of bases are in mutually non-orthogonal Hilbert spaces, and the projection of each vector in one set of bases to each vector in the other set of bases is equal. Therefore, if the bases used by the sender and the receiver are different, the detection result is random with equal probability; if the same base is used, the photon will be detected or not detected deterministically.

[0005] The single-photon detection device at the QKD receiving end may have dark counts and also receive multi-photon signals, which may lead to events in which multiple detectors respond simultaneously. Typically, if a single-photon detector simply discards the events in which two detectors respond simultaneously under the same measurement basis, then an attacker can use this processing method to attack. This attack is called a double-count attack, which is based on an interception and retransmission attack. The retransmitted light is a stronger light, which can make the two single-photon detectors with inconsistent basis vectors at the receiving end receive enough photons, resulting in both responses. If this situation is discarded, the attacker can prevent this situation from being recorded so that there is no bit error and the attack behavior will not be discovered.

[0006] Currently, there are optional defense measures against double counting attacks: For active basis vector selection schemes using two single-photon detectors, such as a dual-detector phase-coded QKD system, a true random number generator can be used to randomly select one of them from the detection information; for passive basis vector selection schemes using four single-photon detectors, such as a four-detector polarization-coded QKD system, dual-photon detection events under the same basis vector are processed using the same random assignment method, and dual-detector response events under different basis vectors can be directly discarded. This can make the double counting attack behavior leave traces in the record.

[0007] Managers need to know whether the quantum key distribution information transmission channel has defense mechanisms to face the following problems:

[0008] 1) The professional skills level of the testing personnel is required to be high;

[0009] The relevant codes of the QKD being tested are reviewed manually, but the principle of the quantum process of QKD itself is relatively obscure and difficult to understand, requiring the testers to have both good code review capabilities and a certain amount of quantum knowledge reserves.

[0010] 2) There is a risk that the code submitted for inspection is inconsistent with the actual operating code of the QKD system to be tested;

[0011] Code review is a type of offline testing method, so the party submitting the test needs to provide the code corresponding to the corresponding function for the test party to review. In this case, there is a risk of fraud that the QKD running code is inconsistent with the test code, that is, "two sets of codes".

[0012] 3) Without quantitative detection methods, the operating data of the QKD device to be tested may be falsified. Summary of the invention

[0013] In view of the above problems, the present invention provides a method for detecting whether QKD can defend against double counting attacks, comprising the following steps:

[0014] S1. Increase the optical signal strength of the QKD transmitter to be tested to 8-22 photons / pulse;

[0015] S2. Filter the optical signal of any polarization state among H / V / P / N to enter the QKD receiving end to be tested;

[0016] S3. The optical signal of any polarization state entering the QKD receiving end to be tested is equally divided into two beams and respectively decomposed into optical paths of each polarization state through the basis decoding modules of the same basis vector and different basis vectors and enters each polarization state detector;

[0017] S4. Record the time when each detector detects the light signal within a cycle, remove the records of different detectors detecting the light signal at the same time, and count the number of remaining records of all detectors;

[0018] S5. Set a tolerance threshold between the original key generation rate in the same period and the number of items. If the deviation of the original key generation rate in the same period relative to the number of items is within the tolerance threshold, it is determined that the QKD to be tested can defend against double counting attacks; otherwise, it is determined that the QKD to be tested cannot defend against double counting attacks.

[0019] Preferably, in step S2, an optical signal in the H polarization state is selected to enter the QKD receiving end to be tested; in step S3, after the optical signal in the H polarization state enters the QKD receiving end to be tested, it is split by an optical beam splitter, and 50% of the photons enter the H / V base selection decoding module, and 50% of the photons enter the P / N base selection decoding module; the H / V base selection decoding module causes the incoming photons to be output in the H state optical path and enter the H detector; the P / N base selection decoding module causes half of the incoming photons to be output in the P state optical path and enter the P detector; and the other half to be output in the N state optical path and enter the N detector;

[0020] In step S4, the detection output signals of the H detector, the P detector and the N detector and their corresponding times are recorded respectively with the unit time as a period, and it can be obtained that within one period, the detection count of the H detector is NH, the detection count of the P detector is NP, the detection count of the N detector is NN, the detection count of the H detector, the P detector and the N detector appearing simultaneously is NHPN, the detection count of the H detector and the P detector appearing simultaneously but not the N detector appearing simultaneously is NHP, the detection count of the H detector and the N detector appearing simultaneously but not the P detector appearing simultaneously is NHN, the detection count of the N detector and the P detector appearing simultaneously but not the H detector appearing simultaneously is NNP; the detection count of the H detector, the P detector and the N detector appearing simultaneously is NHPN;

[0021] The number of such items in one cycle is calculated as follows: N'=(NH+NP+NN)-(NHPN×3)-(NHP×2)-(NHN×2)-NNP.

[0022] Preferably, in step S1, the optical signal intensity is increased to 20 photons / pulse, and in step S4, the cycle duration is set to 1 second.

[0023] Another embodiment of the present invention is to provide a non-transitory readable recording medium for storing one or more programs including a plurality of instructions. When the instructions are executed, the processing circuit will execute the above-mentioned method for detecting whether QKD can defend against double counting attacks.

[0024] Another embodiment of the present invention is to provide a system for detecting whether QKD can defend against double counting attacks, including a processing circuit and a memory electrically coupled thereto, wherein the memory is configured to store at least one program, wherein the program includes multiple instructions, and the processing circuit runs the program to execute the above-mentioned method for detecting whether QKD can defend against double counting attacks.

[0025] The present invention also provides a device for detecting whether QKD can defend against double counting attacks to practice the above method.

[0026] Compared with the prior art, the device for detecting whether QKD can defend against double counting attacks and the method for detecting using the device provided by the present invention have the following beneficial effects:

[0027] 1) The professional skill level of the inspectors is not high, and code review capabilities and quantum knowledge reserves are not required.

[0028] 2) Direct online review, without the risk of inconsistency between the submitted code and the actual running code of the QKD system to be tested;

[0029] 3) Quantify the deviation range through the set tolerance threshold, focus on the operating data of the QKD device to be tested, and the results are true and reliable. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 A flow chart of a method for detecting whether QKD can defend against double counting attacks in an embodiment of the present invention;

[0031] Figure 2 Schematic diagram of signal flow between the detection device and the quantum cryptography transmitter and receiver in an embodiment of the present invention;

[0032] Figure 3 This is a wiring diagram of a device for detecting whether QKD can defend against double counting attacks in an embodiment of the present invention. DETAILED DESCRIPTION

[0033] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be described below in conjunction with the drawings in the embodiments of the present invention. The described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making innovative efforts are within the scope of protection of the present invention.

[0034] like Figure 2 , Figure 3 As shown, an embodiment of a device for detecting whether QKD can defend against double counting attacks provided by the present invention is as follows:

[0035] The detection device comprises an optical switching module, an optical delay module, an analysis module and a human-computer interaction module.

[0036] The optical switching module of the detection device receives optical signals of various polarization states input by the QKD transmitting end to be tested; and outputs the optical signal of the specified polarization state to the optical delay module of the detection device according to the test mode configuration issued by the human-computer interaction module of the detection device.

[0037] The optical delay module of the detection device receives the optical signal of specified polarization input by the optical switching module of the detection device; and calculates the optical signal delay adjustment value according to the trigger frequency of the QKD receiving end detector to be tested issued by the human-computer interaction module of the detection device, and outputs the optical signal to the QKD photosynthesis module to be tested after delay adjustment.

[0038] The analysis module of the detection device receives the trigger door-opening signal output by the QKD to be tested as a clock signal, and times the received detection signal; receives the detection signal output by each detector of the QKD to be tested, and records the occurrence time of the detection signal input by each detector; the analysis module calculates the theoretical original key generation rate, and compares and analyzes it with the actual original key generation rate of the QKD to be tested transmitted by the human-computer interaction module of the detection device, to verify whether the QKD to be tested has taken defense measures against double counting attacks.

[0039] The user needs to input the following pre-test parameters in the human-computer interaction module of the detection device: the trigger frequency of the detector at the QKD receiving end to be tested; the selection of the coding state of the light source at the QKD transmitting end to be tested for this test verification; the actual original key generation rate value of the QKD to be tested. The human-computer interaction module of the detection device receives the test results of the analysis module and displays the judgment results to the user.

[0040] An optical signal interface is reserved between the four quantum optical lasers (laser H, laser V, laser P, laser N) at the QKD transmitting end and the optical beam combining module;

[0041] Lead the external trigger signal of the single photon detector at the QKD receiving end to an output interface of the same frequency signal;

[0042] The single-photon detector at the QKD receiving end reserves an electrical signal interface for detecting the output signal.

[0043] The details of each module in the detection device are as follows:

[0044] (1) Optical switching module

[0045] The main component of the optical switching module of the detection device is a four-input and one-output optical switch. The optical switching module of the detection device receives the input of the four polarization state optical signals of the QKD to be tested, and is controlled by the human-computer interaction module to switch the optical path so that the optical signal of the specified polarization state is output to the optical delay module of the detection device.

[0046] (2) Optical delay module

[0047] The main components of the optical delay module of the detection device are an adjustable optical delay device and an MCU (microcontroller unit). The optical delay module calculates the optical signal delay adjustment value according to the trigger frequency of the QKD receiving end detector to be tested transmitted by the human-computer interaction module of the detection device. The adjustable optical delay device applies a corresponding delay to the optical signal passing through the optical delay module of the detection device. The delay is calculated as delay = N (1 / F) - D, where deley is the delay value that needs to be applied by the optical delay module, F is the trigger frequency of the QKD receiving end detector to be tested, and D is the inherent delay of the optical signal output by the QKD transmitting end laser to be tested from the entire optical path of "the optical switching module of the detection device to the optical delay module", and N is a positive integer, and the value of N is the minimum value of N under the condition that N (1 / F) - D ≥ 0.

[0048] This enables delay compensation for the optical signal that is to be output through the optical switching module and the optical delay module, ensuring that the optical signal that reaches the single-photon detector at the QKD receiving end to be tested falls exactly within the effective detection area.

[0049] (3) Analysis module

[0050] The main components of the analysis module of the detection device are a multi-channel TDC module (time to digital converter) and an MCU module (micro control unit).

[0051] TDC is an instrument that can identify the time of occurrence and convert analog signals into digital signals. When working, TDC needs an external signal output as a clock signal to accurately record the time of other input signals to be recorded. In this device, the TDC module receives the trigger door opening signal output by the QKD to be tested as a clock signal to time the received detection signal; receives the detection signal output by each detector of the QKD to be tested, and records the occurrence time of the detection signal input by each detector.

[0052] The MCU module calculates the theoretical original key generation rate based on the counting of each (four-way) detector, and compares it with the actual original key generation rate of the QKD to be tested transmitted by the human-computer interaction module of the detection device to verify whether the QKD to be tested has taken defense measures against double counting attacks. The judgment result is fed back to the human-computer interaction module of the detection device.

[0053] (4) Human-computer interaction module

[0054] The user needs to input the following pre-test parameters in the human-computer interaction module of the detection device: the trigger frequency of the detector at the QKD receiving end to be tested; the selection of the coding state of the light source at the QKD transmitting end to be tested for this test verification; the actual original key generation rate value of the QKD to be tested. The human-computer interaction module of the detection device receives the test results of the analysis module and displays the judgment results to the user.

[0055] The online detection using the above device constitutes a method embodiment for detecting whether QKD can defend against double counting attacks, which specifically includes:

[0056] (1) The trigger frequency of the detector at the QKD receiving end to be tested is 40MHz; the light source with H polarization state encoding at the QKD transmitting end to be tested is selected for this detection verification; the length of the optical path from the entrance of the optical switching module of the detection device to the exit of the optical delay module is 1.8m, which is converted into an optical delay of 9ns (the delay of 1m optical fiber is 5ns), that is, the inherent delay is 9ns.

[0057] (2) The user inputs the parameters of the QKD to be tested in the human-computer interaction module of the detection device: the trigger frequency of the QKD receiving end detector to be tested is 40MHz; and the light source with H polarization state encoding of the QKD transmitting end to be tested is selected for this detection verification.

[0058] (3) The user increases the optical signal intensity of the QKD transmitter to the multi-photon level of 20 photons / pulse; the user connects the trigger door opening signal output by the QKD to be tested to the analysis module of the detection device as a clock signal; and connects the detection (electrical) signal output by each detector of the QKD to be tested to the analysis module of the detection device for timing and counting.

[0059] (4) The optical switching module of the detection device switches the optical path according to the instruction of the human interaction module so that only the optical signal of the specified H polarization state is output to the optical delay module of the detection device.

[0060] (5) The inherent delay D of the optical path from the entrance of the optical switching module of the detection device to the exit of the optical delay module is 9ns. The trigger frequency F of the detector at the receiving end of the QKD to be tested is 40MHz. The optical delay module of the detection device can obtain delay=N(1 / F)-D=1×25ns-9ns=18ns according to the calculation method of delay adjustment, and applies an optical delay of 18ns to the optical signal passing through the optical delay module of the detection device.

[0061] (6) The analysis module of the detection device records the detection output signals of the H detector, the P detector and the N detector and their corresponding time with a unit time of 1 second. In one cycle, the detection count N of the H detector is His 100k, the detection count of P detector is N P is 48k, the detection count of N detectors is N N is 51k, and the detection count N of H detector, P detector and N detector appearing simultaneously HPN The detection count N of H detector and P detector simultaneously but not N detector is 0.1k. HP The detection count N of H detectors that appear simultaneously with N detectors but not with P detectors is 4.5k. HN The detection count N of the N detector that appears simultaneously with the P detector but not with the H detector is 5.5k. NP The calculation and analysis show that the detection count value used to generate the original key should be N'= (N H +N P +N N )-(N HPN ×3)-(N HP ×2)-(N HN ×2)-N NP = (100k+48k+51k)-(0.1k×3)-(4.5k×2)-(5.5k×2)-2.2k=176.5k.

[0062] (7) The user inputs the actual original key generation rate value 177.2k of the QKD to be tested in the human-computer interaction module of the detection device.

[0063] (8) The analysis module of the detection device compares N' with the original key generation rate of the QKD to be tested and finds that the deviation is within a threshold of 5% (taking into account the normal fluctuation of the original key generation of the QKD), and determines that the QKD to be tested has defense measures against double counting attacks.

[0064] (9) The analysis module of the detection device transmits the determination result to the human-computer interaction module, and the human-computer interaction module displays the detection result to the user.

[0065] Compiling the above method steps into a program and then storing it on a hard disk or other non-transitory storage medium constitutes an embodiment of "a non-transitory readable recording medium" of the present invention; and electrically connecting the storage medium to a computer processor and completing the detection of whether QKD can defend against double counting attacks through data processing constitutes an embodiment of "a system for detecting whether QKD can defend against double counting attacks" of the present invention.

[0066] It should be understood by those skilled in the art that the embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computers, available storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer program code.

[0067] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0068] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0069] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0070] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method to detect whether QKD can defend against double counting attacks, It is characterized in that The following steps are involved: S1. Increase the optical signal strength of the QKD transmitter to be tested to 8-22 photons / pulse; S2. Filter the optical signal of any polarization state among H / V / P / N to enter the QKD receiving end to be tested; S3. The optical signal of any polarization state entering the QKD receiving end to be tested is equally divided into two beams and decomposed into optical paths of each polarization state through the basis decoding modules of the same basis vector and different basis vectors respectively and enters each polarization state detector; S4. Record the time when each detector detects the light signal within a cycle, remove the records of different detectors detecting the light signal at the same time, and count the number of remaining records of all detectors; S5. Setting a tolerance threshold between the original key generation rate in the same period and the number of keys. If the deviation of the original key generation rate in the same period relative to the number of keys is within the tolerance threshold, it is determined that the QKD to be tested can defend against double counting attacks; Otherwise, it is determined that the QKD to be tested cannot defend against double counting attacks.

2. A method for detecting whether QKD can defend against double counting attacks according to claim 1, It is characterized in that In step S2, the optical signal in the H polarization state is selected to enter the QKD receiving end to be tested; in step S3, after the optical signal in the H polarization state enters the QKD receiving end to be tested, it is split by the optical beam splitter, and 50% of the photons enter the H / V base selection decoding module, and 50% of the photons enter the P / N base selection decoding module; the H / V base selection decoding module makes the incoming photons output in the H state optical path and enter the H detector; the P / N base selection decoding module makes half of the incoming photons output in the P state optical path and enter the P detector; the other half are output in the N state optical path and enter the N detector; In step S4, the detection output signals of the H detector, the P detector and the N detector and their corresponding times are recorded respectively with the unit time as a period, and it can be obtained that within one period, the detection count of the H detector is NH, the detection count of the P detector is NP, the detection count of the N detector is NN, the detection count of the H detector, the P detector and the N detector appearing simultaneously is NHPN, the detection count of the H detector and the P detector appearing simultaneously but not the N detector appearing simultaneously is NHP, the detection count of the H detector and the N detector appearing simultaneously but not the P detector appearing simultaneously is NHN, the detection count of the N detector and the P detector appearing simultaneously but not the H detector appearing simultaneously is NNP; the detection count of the H detector, the P detector and the N detector appearing simultaneously is NHPN; The number of such items in one cycle is calculated as follows: N'=(NH+NP+NN)-(NHPN×3)-(NHP×2)-(NHN×2)-NNP.

3. A method for detecting whether QKD can defend against double counting attacks according to claim 2, It is characterized in that In step S1, the optical signal intensity is increased to 20 photons / pulse, and in step S4, the cycle duration is set to 1 second.

4. A non-transitory readable recording medium for storing one or more programs comprising a plurality of instructions, It is characterized in that When the instruction is executed, the processing circuit will be caused to execute a method for detecting whether QKD can defend against double counting attacks as described in any one of claims 1-3.

5. A system for detecting whether QKD can defend against double counting attacks, comprising a processing circuit and a memory electrically coupled thereto, It is characterized in that The memory configuration stores at least one program, which includes multiple instructions. The processing circuit runs the program to execute a method for detecting whether QKD can defend against double counting attacks as described in any one of claims 1-3.

6. A device for detecting whether QKD can defend against double counting attacks, Features It includes an optical switching module, an optical delay module, an analysis module and a human-computer interaction module; The human-computer interaction module is used to manage the input and output of various data between the management personnel and the detection device; The optical switching module is used to select the optical signal of polarization state according to the configuration sent by the human-computer interaction module, and output it to the optical delay module; The optical delay module is used to receive the optical signal of the specified polarization input by the optical switching module; and calculate the optical signal delay adjustment value according to the trigger frequency of the detector of the QKD receiving end to be tested issued by the human-computer interaction module, and after delay adjustment of the optical signal, combine the light signal and output it to the QKD receiving end to be tested; The analysis module is used to receive the trigger door opening signal output by the QKD to be tested as a clock signal, and to time the received detection signal; receive the detection signal output by each detector of the QKD to be tested, and to record the occurrence time of the detection signal input by each detector; The total number of detection records after excluding the records of light signals detected simultaneously by different detectors is calculated, and compared with the actual original key generation rate of the QKD to be tested transmitted by the human-computer interaction module of the detection device to verify whether the QKD to be tested can defend against double counting attacks.