CN111355572A - Method and device for acquiring QKD (quantum key distribution) fast-offset equipment running log in power overhead environment - Google Patents

Method and device for acquiring QKD (quantum key distribution) fast-offset equipment running log in power overhead environment Download PDF

Info

Publication number
CN111355572A
CN111355572A CN201811581036.8A CN201811581036A CN111355572A CN 111355572 A CN111355572 A CN 111355572A CN 201811581036 A CN201811581036 A CN 201811581036A CN 111355572 A CN111355572 A CN 111355572A
Authority
CN
China
Prior art keywords
qkd
fast
command
server
running log
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811581036.8A
Other languages
Chinese (zh)
Inventor
夏同飞
赵峰
王继业
魏晓箐
曾楠
陈超
万涛
李志浩
谢科军
胡茂留
叶志远
倪鹏程
蒲强
陈颢
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
State Grid Corp of China SGCC
State Grid Information and Telecommunication Co Ltd
Information and Telecommunication Branch of State Grid Zhejiang Electric Power Co Ltd
Quantumctek Co Ltd
Original Assignee
State Grid Corp of China SGCC
State Grid Information and Telecommunication Co Ltd
Information and Telecommunication Branch of State Grid Zhejiang Electric Power Co Ltd
Quantumctek Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by State Grid Corp of China SGCC, State Grid Information and Telecommunication Co Ltd, Information and Telecommunication Branch of State Grid Zhejiang Electric Power Co Ltd, Quantumctek Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN201811581036.8A priority Critical patent/CN111355572A/en
Publication of CN111355572A publication Critical patent/CN111355572A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0816Key establishment, i.e. cryptographic processes or cryptographic protocols whereby a shared secret becomes available to two or more parties, for subsequent use
    • H04L9/0852Quantum cryptography

Abstract

The invention discloses a method and a device for acquiring a QKD (quantum key distribution) quick-offset device running log in an electric power overhead environment, which are applied to a server, wherein the method comprises the following steps: 1) sending a query command to each QKD fast-migration module corresponding to the QKD fast-migration equipment to be subjected to log running acquisition; 2) receiving a response, analyzing information contained in the response returned aiming at the query command, and if the information contained in the response returned aiming at the query command is that the running log can be exported, sending an export command to the QKD fast-biasing device; 3) receiving a response corresponding to the export command, analyzing information contained in the response corresponding to the export command, and if the running log is in a ready state, sending a transmission command to the QKD fast-biased equipment corresponding to the export command so that the QKD fast-biased equipment transmits the running log to the server; 4) and receiving a running log corresponding to the transmission command. By applying the embodiment of the invention, the running log of the QKD fast-biasing equipment can be obtained in time.

Description

Method and device for acquiring QKD (quantum key distribution) fast-offset equipment running log in power overhead environment
Technical Field
The invention relates to a method and a device for acquiring an operation log, in particular to a method and a device for acquiring an operation log of a QKD (quantum key distribution) fast-offset device in an overhead power environment.
Background
At present, in a transmission system of quantum key signals, the transmission of the quantum key signals is very convenient by using an optical cable link in an electric power tower system, and in order to ensure the normal work of the quantum key transmission link, a rapid polarization tracking feedback device can be used for detecting the polarization change of the quantum key transmission signals in an overhead optical cable and compensating the variable quantity, so that QKD (quantum key distribution) rapid-deflection equipment at an opposite end can work normally. However, in order to understand the operational status of the QKD fast-biasing device, it is necessary to obtain a working log of the QKD fast-biasing device. At present, the operation log of the QKD fast-biasing device in the traditional power overhead environment is acquired by logging in the QKD fast-biasing device through a network interface after a worker arrives at the site of the QKD fast-biasing device and then transmitting the operation log through a network.
By adopting a traditional acquisition mode, when the QKD fast-biasing equipment is few or distributed intensively, the requirement for acquiring the running log can be met, but after the QKD fast-biasing equipment forms a quantum secret communication network in an electric overhead environment, the QKD fast-biasing equipment is distributed at different places far away from each other in a discrete manner, and an electric machine room is far away in position and strict in management, so that a worker cannot arrive at or cannot arrive at the site of the QKD fast-biasing equipment in time, and further the running log of the QKD fast-biasing equipment cannot be acquired in time.
Therefore, the technical problem that the operation log of the QKD fast-deflection equipment is not timely acquired when the QKD fast-deflection equipment forms a quantum secret communication network in the power overhead environment exists in the prior art.
Disclosure of Invention
The invention aims to solve the technical problem of how to timely acquire the QKD fast-biasing equipment running log in the power overhead environment.
The invention solves the technical problems through the following technical scheme:
the embodiment of the invention provides a method for acquiring a QKD fast-offset device running log in an electric overhead environment, which is applied to a server and comprises the following steps:
1) sending a query command to each QKD fast deviation module corresponding to the QKD fast deviation equipment to be obtained with respect to each fast deviation equipment in the QKD fast deviation equipment to be obtained with the running log;
2) receiving a response returned by the QKD fast-biasing device corresponding to the server for the query command, analyzing information contained in the response returned for the query command, and if the information contained in the response returned for the query command is that a running log can be exported, sending an export command to the QKD fast-biasing device so that the QKD fast-biasing device exports the state of the running log of the corresponding module;
3) receiving a response corresponding to the export command, analyzing information contained in the response corresponding to the export command, and if the running log is in a ready state, sending a transmission command to the QKD fast-biased device corresponding to the export command so that the QKD fast-biased device transmits the running log to the server;
4) and receiving a running log corresponding to the transmission command.
Optionally, the sending a transmission command to the QKD fast-biasing device corresponding to the derivation command, so that the QKD fast-biasing device transmits the running log to the server, includes:
determining the number of transmitted frames and the storage format of the running log at the server according to the size, the coding format and the compression state information of the running log contained in the response corresponding to the export command; and sending a transmission command to the QKD fast-biasing equipment corresponding to the export command so that the QKD fast-biasing equipment transmits the running log to the server according to the determined transmission frame number.
Optionally, the step 4) includes:
carrying out validity check on the received current framing data corresponding to the transmission command, if the current framing data is legal, storing the current framing data, taking the next frame data of the current framing data as the current framing data, and sending the transmission command aiming at the current framing data to QKD fast-biased equipment corresponding to the export command until all framing data corresponding to the running log are obtained;
and if the current framing data is illegal, sending a transmission command for transmitting the current framing data to the QKD fast-biasing equipment corresponding to the derivation command again until a legal verification result of the current framing data is obtained or the transmission command for the current framing data is sent for a set number of times.
The embodiment of the invention provides a method for acquiring a QKD (quantum key distribution) fast-offset device running log in an electric overhead environment, which is applied to QKD fast-offset devices and comprises the following steps:
11) receiving an inquiry command sent by a server, analyzing module identification information and time period information contained in the inquiry command, inquiring an operation log of a QKD fast-offset module corresponding to the module identification information in the time period according to the module identification information and the time period information, and sending a result of whether the acquired operation log can be exported to the server as a response, wherein the QKD fast-offset device corresponds to at least one QKD fast-offset module;
12) receiving a export command returned by the server, analyzing the state of the running log of the QKD fast-biasing module corresponding to the export command, if the state of the running log is a ready state, acquiring the size, the encoding format and the compression state information of the running log, and sending the acquired information to the server as the response of the export command;
13) and after receiving a transmission command corresponding to the response of the export command, analyzing the transmission command and framing the running log according to the frame number information according to the transmission command and sending the running log to a server.
Optionally, the step 11) includes:
the method comprises the steps that a QKD fast-biasing device controller receives an inquiry command, analyzes module identification information and time period information contained in the inquiry command, and when the QKD fast-biasing module is connected with the QKD fast-biasing device controller, the inquiry command is sent to a corresponding QKD fast-biasing module, so that the QKD fast-biasing module inquires an operation log of the QKD fast-biasing module in the time period, and sends a result of whether the obtained operation log can be exported to the QKD fast-biasing device controller as a response, so that the QKD fast-biasing device controller sends the response to a server.
Optionally, the step 13) includes:
after receiving a transmission command corresponding to the response of the export command, analyzing the transmission command and sending the current framing data to a server according to the frame number information of the running log by the transmission command;
after the re-received transmission command sent by the server is a transmission command for the current framing data, sending the current framing data to the server again; until the server does not send the transmission command aiming at the current framing data any more, or the number of times of sending the current framing data reaches the set number of times;
and when the re-received transmission command sent by the server is a transmission command for the next subframe data of the current subframe data, sending the next subframe data of the current subframe data to the server until all subframe data are sent to the server.
The embodiment of the invention provides a device for acquiring a QKD fast-biased equipment running log in an electric overhead environment, which is applied to a server and comprises:
the device comprises a first sending module and a second sending module, wherein the first sending module is used for sending a query command to each QKD fast deviation module corresponding to the QKD fast deviation equipment of which the running log is to be acquired aiming at each fast deviation equipment in the QKD fast deviation equipment of which the running log is to be acquired;
receiving a response returned by a QKD fast-biasing device corresponding to the server for the query command, analyzing information contained in the response returned for the query command, and if the information contained in the response returned for the query command is that a running log can be exported, sending an export command to the QKD fast-biasing device so that the QKD fast-biasing device exports the state of the running log of a corresponding module;
a first receiving module, configured to receive a response corresponding to the export command, parse information included in the response corresponding to the export command, and send a transmission command to a QKD fast-biased device corresponding to the export command if the running log is in a ready state, so that the QKD fast-biased device transmits the running log to the server;
and receiving a running log corresponding to the transmission command.
Optionally, the first sending module is configured to:
determining the number of transmitted frames and the storage format of the running log at the server according to the size, the coding format and the compression state information of the running log contained in the response corresponding to the export command; and sending a transmission command to the QKD fast-biasing equipment corresponding to the export command so that the QKD fast-biasing equipment transmits the running log to the server according to the determined transmission frame number.
Optionally, the first receiving module is configured to:
carrying out validity check on the received current framing data corresponding to the transmission command, if the current framing data is legal, storing the current framing data, taking the next frame data of the current framing data as the current framing data, and sending the transmission command aiming at the current framing data to QKD fast-biased equipment corresponding to the export command until all framing data corresponding to the running log are obtained;
and if the current framing data is illegal, sending a transmission command for transmitting the current framing data to the QKD fast-biasing equipment corresponding to the derivation command again until a legal verification result of the current framing data is obtained or the transmission command for the current framing data is sent for a set number of times.
The embodiment of the invention provides a device for acquiring a running log of a QKD (quantum key distribution) quick-deflection device in an electric overhead environment, which is applied to the QKD quick-deflection device and comprises:
the second receiving module is used for receiving the query command sent by the server, analyzing the module identification information and the time period information contained in the query command, querying the running log of the QKD fast-offset module corresponding to the module identification information in the time period according to the module identification information and the time period information, and sending the result of whether the obtained running log can be derived to the server as a response, wherein the QKD fast-offset device corresponds to at least one QKD fast-offset module;
receiving a export command returned by the server, analyzing the state of the running log of the QKD fast-biasing module corresponding to the export command, if the state of the running log is a ready state, acquiring the size, the encoding format and the compression state information of the running log, and sending the acquired information to the server as the response of the export command;
and the second sending module is used for analyzing the frame number information contained in the transmission command after receiving the transmission command corresponding to the response of the export command, and sending the running log to a server in a framing manner according to the frame number information.
Optionally, the second receiving module is configured to:
the method comprises the steps that a QKD fast-biasing device controller receives an inquiry command, analyzes module identification information and time period information contained in the inquiry command, and when the QKD fast-biasing module is connected with the QKD fast-biasing device controller, the inquiry command is sent to a corresponding QKD fast-biasing module, so that the QKD fast-biasing module inquires an operation log of the QKD fast-biasing module in the time period, and sends a result of whether the obtained operation log can be exported to the QKD fast-biasing device controller as a response, so that the QKD fast-biasing device controller sends the response to a server.
Optionally, the second sending module is configured to:
after receiving a transmission command corresponding to the response of the export command, analyzing the transmission command and sending the current framing data to a server according to the frame number information of the running log by the transmission command;
after the re-received transmission command sent by the server is a transmission command for the current framing data, sending the current framing data to the server again; until the server does not send the transmission command aiming at the current framing data any more, or the number of times of sending the current framing data reaches the set number of times;
and when the re-received transmission command sent by the server is a transmission command for the next subframe data of the current subframe data, sending the next subframe data of the current subframe data to the server until all subframe data are sent to the server.
The embodiment of the invention provides a system for acquiring a QKD fast-offset device running log in an electric overhead environment, which comprises:
the server according to any one of the above;
and the number of the first and second groups,
a QKD fast-biasing device according to any of the preceding claims.
Compared with the prior art, the invention has the following advantages:
by applying the embodiment of the invention, the server establishes the connection with the QKD fast-biasing equipment, and receives the running log sent by the QKD fast-biasing equipment under the condition that the running log of the QKD fast-biasing equipment obtained by the server can be exported.
Drawings
Fig. 1 is a schematic flowchart of a method for acquiring an operation log of a QKD fast-biasing device in an overhead power environment according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an operation log obtaining system of the method for obtaining an operation log of a QKD fast-biasing device in an application power overhead environment according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of another method for acquiring an operation log of a QKD fast-biasing device in an overhead power environment according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an apparatus for acquiring an operation log of a QKD fast-biasing device in an overhead power environment according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an apparatus for acquiring an operation log of a QKD fast-biasing device in another power overhead environment according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a system for acquiring an operation log of a QKD fast-biasing device in an overhead power environment according to an embodiment of the present invention.
Detailed Description
The following examples are given for the detailed implementation and specific operation of the present invention, but the scope of the present invention is not limited to the following examples.
The embodiment of the invention provides a method and a device for acquiring QKD fast-offset device running logs in an electric overhead environment, and firstly introduces an acquisition party of the QKD fast-offset device running logs in the electric overhead environment.
In a first aspect, embodiments of the present invention provide a method for obtaining an operation log of a QKD fast-biasing device in an overhead power environment, where the method is preferably applied to a server.
Fig. 1 is a schematic flowchart of a method for acquiring a QKD fast-biasing device operation log in an overhead power environment according to an embodiment of the present invention, where as shown in fig. 1, the method includes:
s101: and sending an inquiry command to each QKD fast deviation module corresponding to the QKD fast deviation equipment to be subjected to the operation log acquisition aiming at each fast deviation equipment in the QKD fast deviation equipment to be subjected to the operation log acquisition.
Fig. 2 is a schematic structural diagram of an operation log obtaining system of the method for obtaining an operation log of a QKD fast-biasing device in an application power overhead environment according to an embodiment of the present invention; as shown in fig. 2, the server needs to obtain the operation log of the QKD fast-biasing device 1-QKD fast-biasing device n, and the server communicates with the QKD fast-biasing device through a classical communication network, such as a 3G network, a 4G network, a 5G network, an internet communication network based on a TCP/IP protocol, and the like.
In addition, each QKD fast-biasing device includes n QKD fast-biasing modules; the QKD fast-biasing module corresponding to the same QKD fast-biasing device enables communication with the QKD fast-biasing device over an internal network.
The following describes the operation log acquisition flow of the QKD fast-bias module 1 of the QKD fast-bias device 1.
And the server sends an inquiry command for acquiring the running log of the QKD fast-biasing module to the QKD fast-biasing device through a classical communication network.
In practical application, the server can send a query command to the QKD fast-biasing device in a polling mode; the query command can also be sent to the QKD fast-biasing device in a concurrent manner, and the embodiment of the present invention does not limit the manner in which the server sends the query command to the QKD fast-biasing device.
It is emphasized that the server is provided with remote software, and the server realizes communication with the QKD fast-biasing device by using the remote software; the specific operation of the QKD fast-biasing device is also to implement control of each QKD fast-biasing module through QKD fast-biasing device control software installed on the device itself, and in addition, the QKD fast-biasing module is also called as a QKD fast-biasing device software module.
S102: receiving a response returned by a QKD fast-biasing device corresponding to the server for the query command, analyzing information contained in the response returned for the query command, and if the information contained in the response returned for the query command is that a running log can be exported, sending an export command to the QKD fast-biasing device so that the QKD fast-biasing device exports the state of the running log of a corresponding module;
the server receives a response which can be exported and is returned by the QKD fast-biasing device controller of the QKD fast-biasing device 1, and the server sends an export command to the QKD fast-biasing device controller of the QKD fast-biasing device 1, so that the QKD fast-biasing device 1 judges whether the running log of the QKD fast-biasing module 1 is in a ready state or not after receiving the export command.
S103: receiving a response corresponding to the export command, analyzing information contained in the response corresponding to the export command, and if the running log is in a ready state, sending a transmission command to a QKD fast-biased device corresponding to the export command so that the QKD fast-biased device transmits the running log to the server;
specifically, the sending a transmission command to the QKD fast-biasing device corresponding to the derivation command, so that the QKD fast-biasing device transmits the running log to the server, includes:
determining the number of transmitted frames and the storage format of the running log at the server according to the size, the coding format and the compression state information of the running log contained in the response corresponding to the export command; and sending a transmission command to the QKD fast-biasing equipment corresponding to the export command so that the QKD fast-biasing equipment transmits the running log to the server according to the determined transmission frame number.
Illustratively, after receiving a response of the QKD fast-biasing module 1 to the export command, the server analyzes whether the running log of the QKD fast-biasing module 1 contained in the response is in a ready state, and if so, according to information such as the data size, the encoding format, the compression state and the like of the running log of the QKD fast-biasing module 1 between 12:00:00 in month 1 and 1 day 2 in month 1 and 2 in 2001; determining a storage format required by the server for storing the information, the number of transmitted frames and the like; and then adding the information of the determined transmission frame number into the pure command, and sending the transmission command to the server.
It is understood that determining the storage format and the number of frames transmitted and the like required by the server for storing the information is prior art and will not be described herein again.
S104: and receiving a running log corresponding to the transmission command.
Specifically, validity check is performed on the received current framing data corresponding to the transmission command, if the current framing data is valid, the current framing data is stored, the next frame data of the current framing data is used as the current framing data, and the transmission command for the current framing data is sent to the QKD fast-offset device corresponding to the export command until all the framing data corresponding to the operation log is obtained;
and if the current framing data is illegal, sending a transmission command for transmitting the current framing data to the QKD fast-biasing equipment corresponding to the derivation command again until a legal verification result of the current framing data is obtained or the transmission command for the current framing data is sent for a set number of times.
Illustratively, after receiving the current framing data, the server performs validity check on the current framing data, for example, checks whether the framing data is from QKD fast bias module 1, whether the content of the current framing data is safe, whether the current framing data is overtime, and the like. Under the condition that the current framing data is legal, storing the current framing data according to the format determined in the step S103; then, the next frame data of the current framing data is used as the current framing data, for example, the current framing data is the first frame, then the second frame data may be used as the next frame framing data of the current framing data, and then the second frame data is used as the current framing data. And then the transmission command aiming at the new current framing data is sent to a QKD fast-biasing device controller in the QKD fast-biasing device, so that the QKD fast-biasing device controller sends the transmission command to a QKD fast-biasing module.
If the current framing data received by the server is illegal, the server indicates that the current framing data needs to be received again, and the server can send the transmission command for the current framing data to the QKD fast-biasing device controller in the QKD fast-biasing device again, so that the QKD fast-biasing device controller sends the transmission command to the QKD fast-biasing module. If the number of times of sending the transmission command for the current framing data by the server reaches a set number of times, such as 5 times, the framing data of the next frame of the current framing is directly used as the current framing data, and then the transmission command is sent for the new current framing data.
By applying the embodiment of the invention shown in the figure 1, the server is connected with the QKD fast-biasing equipment, and the running log sent by the QKD fast-biasing equipment is received under the condition that the running log of the QKD fast-biasing equipment obtained by the server can be exported.
Moreover, the number of QKD fast-biasing devices is large, the distribution is dispersed, the machine room management is strict, and meanwhile, with the further expansion of the quantum secret communication network in the overhead environment, the number of the QKD fast-biasing devices is increased, the distribution is more dispersed, the machine room admission process is more complicated, more manpower and capital are required to be invested for obtaining the operation logs of the QKD fast-biasing devices, and the cost for obtaining the operation logs is increased; by applying the embodiment of the invention, the cost for acquiring the QKD fast-biasing equipment running log can be saved.
In addition, the traditional method for acquiring the running log of the QKD fast-biasing device needs to repeatedly log in network interfaces of different QKD fast-biasing devices, and sometimes, the process of acquiring the running log of the QKD fast-biasing device is complicated because the running logs of different QKD fast-biasing modules of the same QKD fast-biasing device need to repeatedly log in different network interfaces. Moreover, after the QKD fast-biasing devices form a quantum secure communication network, the number of QKD fast-biasing devices is greatly increased, and the operation log acquisition process is too complex by adopting the conventional operation log acquisition method. By applying the embodiment of the invention, the QKD fast-biasing equipment does not need to be repeatedly logged in, and the running log of the QKD fast-biasing equipment can be more simply and conveniently acquired.
In a second aspect, the embodiment of the present invention further provides another method for obtaining an operation log of a QKD fast-biasing device in an overhead power environment, and the method is preferably applied to the QKD fast-biasing device.
Fig. 3 is a schematic flowchart of another method for acquiring an operation log of a QKD fast-biasing device in an overhead power environment according to an embodiment of the present invention, where as shown in fig. 3, the method includes:
s301: receiving an inquiry command sent by a server, analyzing module identification information and time period information contained in the inquiry command, inquiring an operation log of a QKD fast-offset module corresponding to the module identification information in the time period according to the module identification information and the time period information, and sending a result of whether the acquired operation log can be exported to the server as a response, wherein the QKD fast-offset device corresponds to at least one QKD fast-offset module;
specifically, the QKD fast-biasing device controller receives an inquiry command, analyzes module identification information and time period information contained in the inquiry command, and when the QKD fast-biasing module is connected with the QKD fast-biasing device controller, sends the inquiry command to a corresponding QKD fast-biasing module, so that the QKD fast-biasing module inquires an operation log of the QKD fast-biasing module in the time period, and sends a result of whether the obtained operation log can be derived to the QKD fast-biasing device controller as a response, so that the QKD fast-biasing device controller sends the response to the server.
For example, after receiving the query command sent by the server, the QKD fast-biasing device controller of the QKD fast-biasing device 1 analyzes the query command, and in general, the query command includes identification information of a QKD fast-biasing module of the QKD fast-biasing device to be subjected to obtaining of the operation log, such as the QKD fast-biasing module 1, and a time period of the operation log to be obtained, such as 12:00: 1/2/1/2001, 24:00: 00.
When the QKD fast-biasing device 1 is connected with the QKD fast-biasing device controller, the QKD fast-biasing device controller of the QKD fast-biasing device 1 sends an inquiry command to the QKD fast-biasing module 1, the QKD fast-biasing module 1 inquires a running log between 12:00:00-2001, 2, 1, 2, 24:00:00, 2 and 2001 per se, judges whether the running log is in a state capable of being exported, and if so, sends out a response capable of being exported to the QKD fast-biasing device controller; if not, a response is sent to the QKD fast-biasing device controller that cannot be derived.
S302: receiving a export command returned by the server, analyzing the state of the running log of the QKD fast-biasing module corresponding to the export command, if the state of the running log is a ready state, acquiring the size, the encoding format and the compression state information of the running log, and sending the acquired information to the server as the response of the export command;
after receiving the export command, the QKD fast deviation device 1 judges whether the running log of the QKD fast deviation module 1 is in a ready state; if yes, acquiring information such as data size, encoding format, compression state and the like of the running log of the QKD fast-biasing module 1 between 12:00:00 in 1/2/1/2001-2/1/24: 00:00 in 2001; and transmits the acquired information to the server as a response to the export command.
It should be noted that the information for obtaining the QKD fast-bias module includes, but is not limited to, the above information.
S303: and after receiving a transmission command corresponding to the response of the export command, analyzing the transmission command and framing the running log according to the frame number information according to the transmission command and sending the running log to a server.
Specifically, after receiving a transmission command corresponding to a response of the export command, analyzing the transmission command and sending the running log to a server according to the frame number information and the frame number information according to the transmission command; after the re-received transmission command sent by the server is a transmission command for the current framing data, sending the current framing data to the server again; until the server does not send the transmission command aiming at the current framing data any more, or the number of times of sending the current framing data reaches the set number of times; and when the re-received transmission command sent by the server is a transmission command for the next subframe data of the current subframe data, sending the next subframe data of the current subframe data to the server until all subframe data are sent to the server.
Illustratively, a QKD fast-biasing device controller of the QKD fast-biasing device 1 receives a transmission command, analyzes frame number information contained in the transmission command, and then sends the determined frame number information to the QKD fast-biasing module 1 when the QKD fast-biasing device controller of the QKD fast-biasing device 1 is in a connected state with the QKD fast-biasing module 1, the QKD fast-biasing module 1 compresses an operation log between 12:00:00-2001 2 month 1 day 24:00:00 according to the determined frame number, and then sends the framing data of a first frame to a server as current framing data, so that the server performs validity check on the current framing data, and after receiving a transmission command of the server for the current framing data, sends the current framing data to the server again; and after receiving a transmission command of the server for the framing data of the next frame of the current framing, sending the framing data of the next frame of the current framing to the server. If the number of times of sending the current framing data in the QKD fast-offset module 1 reaches a set number of times, such as 5 times, the framing data of the next frame of the current framing is directly sent out.
By applying the embodiment of the invention shown in fig. 3, the server establishes the connection with the QKD fast-biasing device, and receives the running log sent by the QKD fast-biasing device under the condition that the running log of the QKD fast-biasing device obtained by the server can be exported.
Corresponding to the first aspect of the present invention, a third aspect of the embodiments of the present invention further provides an apparatus for obtaining an operation log of a QKD fast-biasing device in an overhead power environment, which is preferably suitable for being applied to a server.
Fig. 4 is a schematic structural diagram of an apparatus for acquiring an operation log of a QKD fast-biasing device in an overhead power environment according to an embodiment of the present invention, where as shown in fig. 4, the apparatus includes:
a first sending module 401, configured to send, for each of the QKD fast-biasing devices to be subjected to log running, an inquiry command to each QKD fast-biasing module corresponding to the QKD fast-biasing device to be subjected to log running;
receiving a response returned by a QKD fast-biasing device corresponding to the server for the query command, analyzing information contained in the response returned for the query command, and if the information contained in the response returned for the query command is that a running log can be exported, sending an export command to the QKD fast-biasing device so that the QKD fast-biasing device exports the state of the running log of a corresponding module;
a first receiving module 402, configured to receive a response corresponding to the export command, parse information included in the response corresponding to the export command, and send a transmission command to a QKD fast-biased device corresponding to the export command if the running log is in a ready state, so that the QKD fast-biased device transmits the running log to the server;
and receiving a running log corresponding to the transmission command.
By applying the embodiment of the invention shown in FIG. 4, the server is connected with the QKD fast-biasing device, and the running log sent by the QKD fast-biasing device is received under the condition that the running log of the QKD fast-biasing device obtained by the server can be exported.
In a specific implementation manner of the embodiment of the present invention, the first sending module 401 is configured to:
determining the number of transmitted frames and the storage format of the running log at the server according to the size, the coding format and the compression state information of the running log contained in the response corresponding to the export command; and sending a transmission command to the QKD fast-biasing equipment corresponding to the export command so that the QKD fast-biasing equipment transmits the running log to the server according to the determined transmission frame number.
In a specific implementation manner of the embodiment of the present invention, the first receiving module 402 is configured to:
carrying out validity check on the received current framing data corresponding to the transmission command, if the current framing data is legal, storing the current framing data, taking the next frame data of the current framing data as the current framing data, and returning to execute the step of sending the transmission command to the QKD fast offset device corresponding to the export command in the step 3) until all the framing data corresponding to the operation log is obtained;
and if the current framing data is illegal, returning to execute the step of sending the transmission command to the QKD fast-biasing equipment corresponding to the derivation command in the step 3) until a legal verification result of the current framing data is obtained or the transmission command aiming at the current framing data is sent for a set number of times.
Corresponding to the second aspect of the present invention, a fourth aspect of the embodiments of the present invention further provides another apparatus for obtaining an operation log of a QKD fast-biasing device in an overhead power environment, which is preferably suitable for being applied to a QKD fast-biasing device.
Fig. 5 is a schematic structural diagram of another apparatus for acquiring an operation log of a QKD fast-biasing device in an overhead power environment, as shown in fig. 5, the apparatus includes:
a second receiving module 501, configured to receive an inquiry command sent by a server, parse module identification information and time period information included in the inquiry command, query, according to the module identification information and the time period information, an operation log of a QKD fast-skew module corresponding to the module identification information in the time period, and send a result indicating whether the obtained operation log can be derived to the server as a response, where the QKD fast-skew device corresponds to at least one QKD fast-skew module;
receiving a export command returned by the server, analyzing the state of the running log of the QKD fast-biasing module corresponding to the export command, if the state of the running log is a ready state, acquiring the size, the encoding format and the compression state information of the running log, and sending the acquired information to the server as the response of the export command;
a second sending module 502, configured to, after receiving a transmission command corresponding to a response of the export command, parse the transmission command and send the running log to a server in frames according to the frame number information according to the transmission command.
By applying the embodiment of the invention shown in fig. 5, the server establishes the connection with the QKD fast-biasing device, and receives the running log sent by the QKD fast-biasing device under the condition that the running log of the QKD fast-biasing device obtained by the server can be exported.
In a specific implementation manner of the embodiment of the present invention, the second receiving module 501 is configured to:
the method comprises the steps that a QKD fast-biasing device controller receives an inquiry command, analyzes module identification information and time period information contained in the inquiry command, and when the QKD fast-biasing module is connected with the QKD fast-biasing device controller, the inquiry command is sent to a corresponding QKD fast-biasing module, so that the QKD fast-biasing module inquires an operation log of the QKD fast-biasing module in the time period, and sends a result of whether the obtained operation log can be exported to the QKD fast-biasing device controller as a response, so that the QKD fast-biasing device controller sends the response to a server.
The second sending module 502 is configured to:
after receiving a transmission command corresponding to the response of the export command, analyzing the transmission command and sending the current framing data to a server according to the frame number information of the running log by the transmission command;
after the re-received transmission command sent by the server is a transmission command for the current framing data, sending the current framing data to the server again; until the server does not send the transmission command aiming at the current framing data any more, or the number of times of sending the current framing data reaches the set number of times;
and when the re-received transmission command sent by the server is a transmission command for the next subframe data of the current subframe data, sending the next subframe data of the current subframe data to the server until all subframe data are sent to the server.
In a fifth aspect, embodiments of the present invention provide a system for acquiring a QKD fast-biasing device operation log in an overhead power environment.
Fig. 6 is a schematic structural diagram of a system for acquiring an operation log of a QKD fast-biasing device in an overhead power environment according to an embodiment of the present invention, where as shown in fig. 6, the system includes:
the server 601 according to the third aspect of the present invention;
and the number of the first and second groups,
a QKD fast-biasing device 602 according to the third aspect of the invention.
By applying the embodiment of the invention shown in fig. 6, the server establishes the connection with the QKD fast-biasing device, and receives the running log sent by the QKD fast-biasing device under the condition that the running log of the QKD fast-biasing device obtained by the server can be exported.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

Claims (12)

1. The method for acquiring the QKD fast-biased equipment running log in the power overhead environment is characterized by being applied to a server and comprising the following steps:
1) sending a query command to each QKD fast deviation module corresponding to the QKD fast deviation equipment to be obtained with respect to each fast deviation equipment in the QKD fast deviation equipment to be obtained with the running log;
2) receiving a response returned by the QKD fast-biasing device corresponding to the server for the query command, analyzing information contained in the response returned for the query command, and if the information contained in the response returned for the query command is that a running log can be exported, sending an export command to the QKD fast-biasing device so that the QKD fast-biasing device exports the state of the running log of the corresponding module;
3) receiving a response corresponding to the export command, analyzing information contained in the response corresponding to the export command, and if the running log is in a ready state, sending a transmission command to the QKD fast-biased device corresponding to the export command so that the QKD fast-biased device transmits the running log to the server;
4) and receiving a running log corresponding to the transmission command.
2. The method for obtaining the running log of the QKD fast-biasing device in the overhead power environment according to claim 1, wherein the sending a transmission command to the QKD fast-biasing device corresponding to the derivation command to make the QKD fast-biasing device transmit the running log to the server includes:
determining the number of transmitted frames and the storage format of the running log at the server according to the size, the coding format and the compression state information of the running log contained in the response corresponding to the export command; and sending a transmission command to the QKD fast-biasing equipment corresponding to the export command so that the QKD fast-biasing equipment transmits the running log to the server according to the determined transmission frame number.
3. The method for acquiring the QKD fast-biased device running log in the power overhead environment according to the claim 1, wherein the step 4) comprises the following steps:
carrying out validity check on the received current framing data corresponding to the transmission command, if the current framing data is legal, storing the current framing data, taking the next frame data of the current framing data as the current framing data, and sending the transmission command aiming at the current framing data to QKD fast-biased equipment corresponding to the export command until all framing data corresponding to the running log are obtained;
and if the current framing data is illegal, sending a transmission command for transmitting the current framing data to the QKD fast-biasing equipment corresponding to the derivation command again until a legal verification result of the current framing data is obtained or the transmission command for the current framing data is sent for a set number of times.
4. The method for acquiring the QKD fast-biasing device running log in the power overhead environment is characterized by being applied to the QKD fast-biasing device, and comprises the following steps:
11) receiving an inquiry command sent by a server, analyzing module identification information and time period information contained in the inquiry command, inquiring an operation log of a QKD fast-offset module corresponding to the module identification information in the time period according to the module identification information and the time period information, and sending a result of whether the acquired operation log can be exported to the server as a response, wherein the QKD fast-offset device corresponds to at least one QKD fast-offset module;
12) receiving a export command returned by the server, analyzing the state of the running log of the QKD fast-biasing module corresponding to the export command, if the state of the running log is a ready state, acquiring the size, the encoding format and the compression state information of the running log, and sending the acquired information to the server as the response of the export command;
13) and after receiving a transmission command corresponding to the response of the export command, analyzing the transmission command and framing the running log according to the frame number information according to the transmission command and sending the running log to a server.
5. The method for acquiring the QKD fast-biased device running log in the power overhead environment according to the claim 4, wherein the step 11) comprises the following steps:
the method comprises the steps that a QKD fast-biasing device controller receives an inquiry command, analyzes module identification information and time period information contained in the inquiry command, and when the QKD fast-biasing module is connected with the QKD fast-biasing device controller, the inquiry command is sent to a corresponding QKD fast-biasing module, so that the QKD fast-biasing module inquires an operation log of the QKD fast-biasing module in the time period, and sends a result of whether the obtained operation log can be exported to the QKD fast-biasing device controller as a response, so that the QKD fast-biasing device controller sends the response to a server.
6. The method for acquiring the QKD fast-biased device running log in the power overhead environment according to the claim 4, wherein the step 13) comprises the following steps:
after receiving a transmission command corresponding to the response of the export command, analyzing the transmission command and sending the current framing data to a server according to the frame number information of the running log by the transmission command;
after the re-received transmission command sent by the server is a transmission command for the current framing data, sending the current framing data to the server again; until the server does not send the transmission command aiming at the current framing data any more, or the number of times of sending the current framing data reaches the set number of times;
and when the re-received transmission command sent by the server is a transmission command for the next subframe data of the current subframe data, sending the next subframe data of the current subframe data to the server until all subframe data are sent to the server.
7. The device for acquiring the QKD fast-biased equipment running log in the power overhead environment is characterized by being applied to a server and comprising:
the device comprises a first sending module and a second sending module, wherein the first sending module is used for sending a query command to each QKD fast deviation module corresponding to the QKD fast deviation equipment of which the running log is to be acquired aiming at each fast deviation equipment in the QKD fast deviation equipment of which the running log is to be acquired;
receiving a response returned by a QKD fast-biasing device corresponding to the server for the query command, analyzing information contained in the response returned for the query command, and if the information contained in the response returned for the query command is that a running log can be exported, sending an export command to the QKD fast-biasing device so that the QKD fast-biasing device exports the state of the running log of a corresponding module;
a first receiving module, configured to receive a response corresponding to the export command, parse information included in the response corresponding to the export command, and send a transmission command to a QKD fast-biased device corresponding to the export command if the running log is in a ready state, so that the QKD fast-biased device transmits the running log to the server;
and receiving a running log corresponding to the transmission command.
8. The apparatus for obtaining QKD fast-biasing device log in an overhead power environment according to claim 7, wherein the first sending module is configured to:
determining the number of transmitted frames and the storage format of the running log at the server according to the size, the coding format and the compression state information of the running log contained in the response corresponding to the export command; and sending a transmission command to the QKD fast-biasing equipment corresponding to the export command so that the QKD fast-biasing equipment transmits the running log to the server according to the determined transmission frame number.
9. The apparatus for obtaining QKD fast-biasing device operation log in an overhead power environment according to claim 7, wherein the first receiving module is configured to:
carrying out validity check on the received current framing data corresponding to the transmission command, if the current framing data is legal, storing the current framing data, taking the next frame data of the current framing data as the current framing data, and sending the transmission command aiming at the current framing data to QKD fast-biased equipment corresponding to the export command until all framing data corresponding to the running log are obtained;
and if the current framing data is illegal, sending a transmission command for transmitting the current framing data to the QKD fast-biasing equipment corresponding to the derivation command again until a legal verification result of the current framing data is obtained or the transmission command for the current framing data is sent for a set number of times.
10. The device for acquiring the running log of the QKD fast-biasing equipment in the power overhead environment is characterized by being applied to the QKD fast-biasing equipment, and the device comprises:
the second receiving module is used for receiving the query command sent by the server, analyzing the module identification information and the time period information contained in the query command, querying the running log of the QKD fast-offset module corresponding to the module identification information in the time period according to the module identification information and the time period information, and sending the result of whether the obtained running log can be derived to the server as a response, wherein the QKD fast-offset device corresponds to at least one QKD fast-offset module;
receiving a export command returned by the server, analyzing the state of the running log of the QKD fast-biasing module corresponding to the export command, if the state of the running log is a ready state, acquiring the size, the encoding format and the compression state information of the running log, and sending the acquired information to the server as the response of the export command;
and the second sending module is used for analyzing the transmission command and sending the running log to a server in frames according to the frame number information according to the transmission command after receiving the transmission command corresponding to the response of the export command.
11. The apparatus for obtaining QKD fast-biasing device log in an overhead power environment according to claim 10, wherein the second receiving module is configured to:
the method comprises the steps that a QKD fast-biasing device controller receives an inquiry command, analyzes module identification information and time period information contained in the inquiry command, and when the QKD fast-biasing module is connected with the QKD fast-biasing device controller, the inquiry command is sent to a corresponding QKD fast-biasing module, so that the QKD fast-biasing module inquires an operation log of the QKD fast-biasing module in the time period, and sends a result of whether the obtained operation log can be exported to the QKD fast-biasing device controller as a response, so that the QKD fast-biasing device controller sends the response to a server.
12. The method of claim 10, wherein the second sending module is configured to:
after receiving a transmission command corresponding to the response of the export command, analyzing the transmission command and sending the current framing data to a server according to the frame number information of the running log by the transmission command;
after the re-received transmission command sent by the server is a transmission command for the current framing data, sending the current framing data to the server again; until the server does not send the transmission command aiming at the current framing data any more, or the number of times of sending the current framing data reaches the set number of times;
and when the re-received transmission command sent by the server is a transmission command for the next subframe data of the current subframe data, sending the next subframe data of the current subframe data to the server until all subframe data are sent to the server.
CN201811581036.8A 2018-12-24 2018-12-24 Method and device for acquiring QKD (quantum key distribution) fast-offset equipment running log in power overhead environment Pending CN111355572A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811581036.8A CN111355572A (en) 2018-12-24 2018-12-24 Method and device for acquiring QKD (quantum key distribution) fast-offset equipment running log in power overhead environment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811581036.8A CN111355572A (en) 2018-12-24 2018-12-24 Method and device for acquiring QKD (quantum key distribution) fast-offset equipment running log in power overhead environment

Publications (1)

Publication Number Publication Date
CN111355572A true CN111355572A (en) 2020-06-30

Family

ID=71195514

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811581036.8A Pending CN111355572A (en) 2018-12-24 2018-12-24 Method and device for acquiring QKD (quantum key distribution) fast-offset equipment running log in power overhead environment

Country Status (1)

Country Link
CN (1) CN111355572A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105574205A (en) * 2016-01-18 2016-05-11 国家电网公司 Dynamic log analyzing system for distributed computing environment
CN105589791A (en) * 2015-12-28 2016-05-18 江苏省电力公司信息通信分公司 Method for application system log monitoring management in cloud computing environment
CN108108466A (en) * 2017-12-29 2018-06-01 咪咕文化科技有限公司 A kind of distributed system journal query analysis method and device
CN108759901A (en) * 2018-03-28 2018-11-06 合肥云智物联科技有限公司 Power grid voluntarily diagnostic system and its method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105589791A (en) * 2015-12-28 2016-05-18 江苏省电力公司信息通信分公司 Method for application system log monitoring management in cloud computing environment
CN105574205A (en) * 2016-01-18 2016-05-11 国家电网公司 Dynamic log analyzing system for distributed computing environment
CN108108466A (en) * 2017-12-29 2018-06-01 咪咕文化科技有限公司 A kind of distributed system journal query analysis method and device
CN108759901A (en) * 2018-03-28 2018-11-06 合肥云智物联科技有限公司 Power grid voluntarily diagnostic system and its method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈智雨等: "电力量子保密通信实用化技术研究进展与展望", 《电子信息与通信技术》 *

Similar Documents

Publication Publication Date Title
EP3726806A1 (en) Method for remotely controlling vehicle on the basis of smart apparatus
US7386733B2 (en) Alert transmission apparatus and method for policy-based intrusion detection and response
CN109327493B (en) Cloud-based remote medical monitoring system and monitoring method
CN103812829B (en) A kind of method, remote desktop server and system for improving remote desktop security
CN111882704B (en) Control method of intelligent door lock system and intelligent door lock management system
CN103440142A (en) GPRS (General Packet Radio Service)-based remote upgrade and dynamic loading method
US20230114166A1 (en) Log acquisition method and apparatus, terminal, server, and computer readable storage medium
CN107317852A (en) Smart machine, communication system and the method extended based on MODBUS
CN112235308A (en) Data transmission method and system for industrial equipment with different communication protocols
CN104076792A (en) Frequency converter remote monitoring system based on internet
CN109607341B (en) Elevator running information management system based on block chain
CN103369000A (en) Data transmission method and data transmission system
CN103581338A (en) On-line pollution source monitoring data monitoring system
CN102202071A (en) Microsoft service network (MSN)-based network video monitoring method and system
CN111355572A (en) Method and device for acquiring QKD (quantum key distribution) fast-offset equipment running log in power overhead environment
KR101898486B1 (en) Information collection and analysis system for industrial network monitor and remote control
CN109446086A (en) A kind of method of App inside packet capturing
CN112208579B (en) FAO log transmission method and FAO system
CN106534369B (en) Communication means and device
CN103001932A (en) Method and server for user authentication
CN112118284A (en) Gateway device-oriented http data request method, device and medium
KR20090063504A (en) Oma-dm system, device management server and terminal device
CN110809025A (en) Data acquisition and monitoring method based on data routing gateway
CN102868917B (en) The method and system of the multiple elevator of remote monitoring simultaneously video
CN104917728A (en) Implementation method of cross-terminal single sign-on system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination