Key updating method and device of optical transport network equipment, electron and medium

By setting the session key application time of the optical transmission network device according to the device unique identification and key application cycle of the OTN device, the problem of excessive concurrency when the OTN device applies for session keys is solved, and the efficiency of key application is improved and success rate ensures data security.

CN119070986AActive Publication Date: 2024-12-03中电信量子信息科技集团有限公司

Patent Information

Application Number
CN202411189872.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-27
Publication Date
2024-12-03
Estimated Expiration
2044-08-27

AI Technical Summary

Technical Problem

When a large number of OTN devices apply for session keys at the same time, it leads to excessive concurrency and surge in traffic. The quantum cryptographic service platform is unable to generate session keys in time, affecting data security.

Method used

According to the device unique identification and key application cycle of the OTN device, the time when the optical transmission network device applies for a session key is reset, so that it is evenly distributed at different time points within a day, and the session key is applied for off-peak, thereby reducing the quantum cryptographic service The pressure on the platform.

Benefits of technology

By applying for session keys through staggered peaks, the efficiency and success rate of key applications are improved, the pressure on the quantum cryptographic service platform is reduced, and data security is ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119070986A_ABST
    Figure CN119070986A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a secret key updating method and device of optical transport network equipment, an electronic device and a medium. The method comprises the following steps: acquiring an equipment unique identifier and a secret key application period of the optical transport network equipment; determining a reference moment when the optical transport network device applies for a session key for the first time according to the device unique identifier and the key application period; and according to the reference moment and the key application period, determining an update moment when the optical transport network equipment applies for the session key again, thereby resetting the moment when the optical transport network equipment applies for the session key according to the unique identifier of the equipment. The time when different optical transport network devices apply for the session key is uniformly distributed at different time points in one day as far as possible, the session key is applied in a peak shifting manner, the pressure of a session key generator is reduced, and the session key application efficiency and success rate are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of quantum secure communication technology, and in particular to a key updating method, device, equipment and medium for optical transmission network equipment. Background Art

[0002] OTN (Optical Transport Network) devices will reapply for session keys at certain intervals after the device goes online according to the scheduling rules of the default timer. When many OTN devices apply for session keys at the same time, it will cause excessive pressure on the key generator (such as the quantum cryptography service platform). In severe cases, it may affect server resources, such as disk IO, CPU, memory, bandwidth, number of connections, etc. This not only affects the quantum cryptography service platform's provision of other services to the outside world, but also affects the efficiency of the quantum cryptography service platform in generating session keys. When the session keys of OTN devices cannot be updated in time, it also poses a threat to data security. When a large number of OTN devices apply for session keys at the same time, the concurrency is too large and the traffic surges, which may cause the quantum cryptography service platform to be unable to generate session keys in a timely and effective manner, thereby affecting the subsequent data encryption and decryption of the OTN device, and posing a data security risk. Summary of the invention

[0003] In order to solve the above problems, the embodiments of the present invention disclose a key updating method, device, electronic device and medium for an optical transport network device.

[0004] In a first aspect, an embodiment of the present invention provides a key updating method for an optical transport network device, the method comprising:

[0005] Obtaining a unique device identifier and a key application period of the optical transport network device;

[0006] Determining a reference time when the optical transport network device first applies for a session key according to the device unique identifier and the key application period;

[0007] The update time at which the optical transport network device applies for the session key again is determined according to the reference time and the key application period.

[0008] Optionally, determining, according to the device unique identifier and the key application period, a reference time at which the optical transport network device applies for a session key for the first time includes:

[0009] Performing a hash operation on the unique device identifier of the optical transport network device to obtain a hash value;

[0010] According to the hash value and the key application period, a reference time when the optical transport network device applies for a session key for the first time is determined.

[0011] Optionally, determining, according to the hash value and the key application period, a reference time at which the optical transport network device applies for a session key for the first time includes:

[0012] Obtaining the time slice and the initial time when the optical transport network device applies for a session key;

[0013] Performing a product operation on the key application period and the time slice to obtain a target value;

[0014] Performing a modulo operation on the target value through the hash value to obtain a target time interval;

[0015] According to the initial time and the target time interval, a reference time at which the optical transport network device applies for a session key for the first time is determined.

[0016] Optionally, determining, according to the initial time and the target time interval, a reference time at which the optical transport network device applies for a session key for the first time includes:

[0017] The sum of the initial time and the target time interval is used as the reference time when the optical transport network device applies for the session key for the first time.

[0018] Optionally, the determining, according to the reference time and the key application period, the update time at which the optical transport network device applies for the session key again includes:

[0019] The time after the reference time and every time the key application cycle passes is used as the update time for the optical transport network device to apply for the session key again.

[0020] Optionally, the method further comprises:

[0021] When the time for the optical transport network device to apply for the session key again is reached, sending a session key application request to the optical transport network controller;

[0022] Receive a new session key sent by the optical transport network controller; the new session key forwards the session key application request to the key controller through the optical transport network controller, applies for the session key from the quantum cryptography service platform through the key controller, and is generated through the quantum cryptography service platform.

[0023] In a second aspect, an embodiment of the present invention provides a key update system for an optical transport network device, the system comprising: at least one optical transport network device, an optical transport network controller, a key controller, and a quantum cryptography service platform;

[0024] The optical transport network device is used to obtain a unique device identifier and a key application period of the optical transport network device; determine a reference time when the optical transport network device first applies for a session key according to the unique device identifier and the key application period; determine an update time when the optical transport network device applies for a session key again according to the reference time and the key application period; send a session key application request to an optical transport network controller when the update time when the optical transport network device applies for a session key again is reached; and receive a new session key sent by the optical transport network controller;

[0025] The optical transport network controller is used to receive a session key application request sent by the optical transport network device, and forward the session key application request to the key controller;

[0026] The key controller is used to receive the session key application request sent by the optical transport network controller, and apply to the quantum cryptography service platform for a session key application;

[0027] The quantum cryptography service platform is used to generate the new session key.

[0028] In a third aspect, an embodiment of the present invention provides a key updating device for an optical transport network device, the device comprising:

[0029] A device information acquisition module, used to obtain a unique device identifier and a key application period of the optical transport network device;

[0030] A reference time determination module, used to determine the reference time when the optical transport network device first applies for a session key according to the device unique identifier and the key application period;

[0031] The update time determination module is used to determine the update time when the optical transport network device applies for the session key again according to the reference time and the key application period.

[0032] Optionally, the reference time determination module includes:

[0033] A hash operation submodule, used to perform a hash operation on the unique device identifier of the optical transport network device to obtain a hash value;

[0034] The reference time determination submodule is used to determine the reference time when the optical transport network device applies for the session key for the first time according to the hash value and the key application period.

[0035] Optionally, the reference time determination submodule includes:

[0036] A device information acquisition unit, used to acquire a time slice and an initial time when the optical transport network device applies for a session key;

[0037] a target value determination unit, configured to perform a product operation on the key application period and the time slice to obtain a target value;

[0038] a time interval determination unit, configured to perform a modulo operation on the target value through the hash value to obtain a target time interval;

[0039] The reference time determination unit is used to determine the reference time when the optical transport network device first applies for the session key according to the initial time and the target time interval.

[0040] Optionally, the reference time determination unit includes:

[0041] The reference time determination subunit is used to use the sum of the initial time and the target time interval as the reference time for the optical transport network device to apply for the session key for the first time.

[0042] Optionally, the update time determination module includes:

[0043] The update time determination submodule is used to use the time after the reference time and after each key application cycle as the update time for the optical transport network device to apply for the session key again.

[0044] Optionally, the device further comprises:

[0045] An application request sending module, used for sending a session key application request to the optical transport network controller when the time for the optical transport network device to apply for the session key again is reached;

[0046] The session key receiving module is used to receive a new session key sent by the optical transport network controller; the new session key forwards the session key application request to the key controller through the optical transport network controller, applies for the session key from the quantum cryptography service platform through the key controller, and is generated through the quantum cryptography service platform.

[0047] In a fourth aspect, the present invention shows an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned key update method for an optical transport network device when executing the computer program.

[0048] In a fifth aspect, the present invention shows a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above-mentioned key update method for an optical transport network device are implemented.

[0049] The embodiments of the present invention include the following advantages:

[0050] The embodiment of the present invention can obtain the device unique identification and key application cycle of the optical transport network device; determine the reference time when the optical transport network device first applies for the session key according to the device unique identification and the key application cycle; determine the update time when the optical transport network device applies for the session key again according to the reference time and the key application cycle, so that the time when the optical transport network device applies for the session key can be reset according to the device unique identification, so that the time when different optical transport network devices apply for the session key is as evenly distributed as possible at different time points in a day, and the session key is applied at different peaks, which reduces the pressure on the quantum cryptography service platform and improves the efficiency and success rate of the session key application. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0052] Figure 1 It is a flowchart of the steps of a key updating method of an optical transport network device according to an embodiment of the present invention;

[0053] Figure 2 is a flowchart of another method for updating a key of an optical transport network device according to an embodiment of the present invention;

[0054] Figure 3 It is a logic diagram of a key updating method for an optical transport network device according to an embodiment of the present invention;

[0055] Figure 4 It is a structural block diagram of a key update system for an optical transport network device according to an embodiment of the present invention;

[0056] Figure 5 The present invention is a structural block diagram of a key updating device for optical transport network equipment according to an embodiment of the present invention.

[0057] Description of reference numerals:

[0058] The key update system 40 of the optical transmission network equipment, the optical transmission network equipment 41, the optical transmission network controller 42, the key controller 43, and the quantum cryptography service platform 44. DETAILED DESCRIPTION

[0059] With the development of optical communication technology, the deployment and use of optical transport network (OTN) are becoming more and more widespread. OTN is a type of network, which refers to a transmission network that realizes the transmission, multiplexing, routing, monitoring, etc. of service signals in the optical domain and guarantees its performance indicators and survivability. OTN technology is a compromise between electrical network and all-optical network. It transplants the powerful and perfect OAM&P (Operations, Administration, Maintenance, and Provisioning, a series of activities for managing and maintaining network services) concept and function of Synchronous Digital Hierarchy (SDH) into Wavelength Division Multiplexing (WDM) optical network, effectively making up for the shortcomings of existing WDM system in performance monitoring and maintenance management. Among them, OAM&P refers to the actual needs of network operation of operators, and usually divides the management work of the network into three categories: operation, administration, and maintenance, referred to as OAM, and P is provisioning guarantee. The goal is to realize intelligent network management.

[0060] OTN technology can support transparent transmission of customer signals, high-bandwidth multiplexing switching and configuration (the minimum cross-connection particle is ODU1, about 2.5Gbit / s), has strong overhead support capabilities, provides powerful OAM functions, supports multi-layer nested tandem connection monitoring (Tandem Connection Monitor, referred to as TCM) functions, and has forward error correction (Forward Error Correction, referred to as FEC) support capabilities. The OTN frame structure of the OTN optical path layer greatly enhances the digital monitoring capabilities of the optical path layer OCh, making it possible to use end-to-end and multiple segments to simultaneously monitor performance when OTN networking.

[0061] Compared with SDH private lines and WDM networks that use IPSec to solve end-to-end security issues, OTN private lines have more technical means to solve problems such as key synchronization control, online key distribution, and encrypted load framing, making it easier to achieve end-to-end direct encryption of OTN nodes. Currently, the emergence and continuous maturity of quantum key distribution (QKD) technology also provides a strong support for OTN end-to-end direct encryption. Based on OTN and QKD co-fiber technology, the transmission of keys and encrypted data can be carried out on the same physical channel.

[0062] The OTN device key application module is used to apply for a session key from a subkey distribution network and associate the session key with a corresponding encryption strategy, wherein applying for a session key from a subkey distribution network includes: sending a key application message to a connected key controller and receiving a key distribution message returned by the connected key controller, wherein the key distribution message is generated by the key controller querying the cryptographic service platform for the QKD node information of the opposite OTN device, and obtaining the session key and the key start and end sequence number from the key pool corresponding to the QKD link between the QKD node of the local OTN device and the QKD node of the opposite OTN device; the payload encryption and decryption module is used to associate any key in the optical path layer with the key application message of the OTN device. The frame structure of the layer is divided into an overhead area and a payload area, and when the current sender OTN device supports adding additional information in the overhead area, the session key sequence number used for encrypting the current frame of the current port is added to the overhead area, the payload area of ​​the current frame is encrypted using the session key based on the encryption strategy, and then the entire frame is sent to the opposite end OTN device; and when the current sender OTN device does not support adding additional information in the overhead area, the payload area of ​​the current frame is encrypted using the session key based on the encryption strategy and then sent to the opposite end OTN device; a key synchronization control module is used to periodically send a session key synchronization message to the opposite end OTN device when the current sender OTN device does not support adding additional information in the overhead area.

[0063] The present invention proposes a key update method for optical transport network equipment, the purpose of which is to solve the problem that when a large number of OTN devices apply for session keys at the same time point, the concurrency is too large, the traffic surges, and the quantum cryptography service platform cannot generate session keys in a timely and effective manner. In order to achieve this goal, the embodiment of the present invention resets the time when the optical transport network device applies for the session key according to the device unique identifier of the OTN device, so that the time when different optical transport network devices apply for the session key is as evenly distributed as possible at different time points in a day, and the session key is applied at a staggered peak, thereby reducing the pressure on the quantum cryptography service platform and improving the efficiency and success rate of the session key application.

[0064] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0065] Reference Figure 1 , shows a flowchart of a key update method for an optical transport network device according to an embodiment of the present invention, wherein the method may specifically include the following steps:

[0066] Step 101, obtaining a unique device identifier and a key application period of the optical transport network device;

[0067] In an embodiment of the present invention, the OTN device can obtain its own device unique identification and key application period. The device unique identification refers to a unique identification code used to distinguish different OTN devices. The device unique identification can be a device serial number, MAC address, UUID (Universal Unique Identifier), IMEI (International Mobile Equipment Identity), UDID (Unique Device Identifier), etc. The key application period can be a key application period set in advance by a technician for each OTN device. The key application periods corresponding to different OTN devices can be the same or different. The key application period can be 1 / 6 / 12 / 24 hours. Those skilled in the art can set the key application period to other appropriate values ​​based on the concept of the present invention, and the present invention does not limit this.

[0068] Among them, the device serial number is a unique serial number assigned at the time of production. This serial number is usually printed somewhere on the OTN device and can also be read by software. Each OTN device can have a unique MAC address, which is a 48-bit binary number, usually expressed as 12 hexadecimal digits, such as '00:1A:2B:3C:4D:5E'. UUID is a 128-bit number, usually used for unique identification at the software level. UUID can be generated by an algorithm to ensure uniqueness worldwide. For mobile devices, each device can have a unique IMEI number, which is a 15-digit number. For iOS devices, UDID is a 40-character hexadecimal string that is used to uniquely identify each device.

[0069] Step 102, determining a reference time for the optical transport network device to initially apply for a session key according to the device unique identifier and the key application period;

[0070] In the embodiment of the present invention, the OTN device can determine the reference time when the optical transport network device first applies for the session key according to the device unique identifier and the key application cycle, and the reference time can be used to indicate the new time when the optical transport network device applies for the session key. The embodiment of the present invention resets the time when the optical transport network device applies for the session key so that the time when different optical transport network devices apply for the session key is as evenly distributed as possible at different time points in a day, and the session key is applied at different peaks, which reduces the pressure on the quantum cryptography service platform and improves the efficiency and success rate of the session key application.

[0071] Step 103: Determine the update time for the optical transport network device to apply for the session key again according to the reference time and the key application period.

[0072] In the embodiment of the present invention, the OTN device can determine the update time of the optical transport network device to re-apply for the session key according to the reference time and the key application cycle. Since the reference time is determined according to the device unique identifier of the OTN device, the reference times of different OTN devices are different from each other, so that the update times of re-applying for the session key determined by different ONT devices according to the reference time and the key application cycle are also different from each other, so that different OTN devices apply for the session key at different peaks, reduce the pressure of the quantum cryptography service platform, and improve the efficiency and success rate of the session key application.

[0073] In the embodiment of the present invention, the OTN device can obtain its own device unique identification and key application cycle; determine the reference time when the OTN device applies for the session key for the first time according to the device unique identification and the key application cycle; determine the update time when the OTN device applies for the session key again according to the reference time and the key application cycle, so that the time when the optical transport network device applies for the session key can be reset according to the device unique identification, so that the time when different optical transport network devices apply for the session key is as evenly distributed as possible at different time points in a day, and the session key is applied at off-peak times, which reduces the pressure on the quantum cryptography service platform and improves the efficiency and success rate of the session key application.

[0074] Reference Figure 2 , shows a flowchart of another method for updating a key of an optical transport network device according to an embodiment of the present invention, wherein the method may specifically include the following steps:

[0075] Step 201, obtaining a unique device identifier and a key application period of the optical transport network device;

[0076] In an embodiment of the present invention, the OTN device can obtain its own device unique identification and key application period. The device unique identification refers to a unique identification code used to distinguish different OTN devices. The device unique identification can be a device serial number, MAC address, UUID (Universal Unique Identifier), IMEI (International Mobile Equipment Identity), UDID (Unique Device Identifier), etc. The key application period can be a key application period set in advance by a technician for each OTN device. The key application periods corresponding to different OTN devices can be the same or different. The key application period can be 1 / 6 / 12 / 24 hours. Those skilled in the art can set the key application period to other appropriate values ​​based on the concept of the present invention, and the present invention does not limit this.

[0077] Among them, the device serial number is a unique serial number assigned at the time of production. This serial number is usually printed somewhere on the OTN device and can also be read by software. Each OTN device can have a unique MAC address, which is a 48-bit binary number, usually expressed as 12 hexadecimal digits, such as '00:1A:2B:3C:4D:5E'. UUID is a 128-bit number, usually used for unique identification at the software level. UUID can be generated by an algorithm to ensure uniqueness worldwide. For mobile devices, each device can have a unique IMEI number, which is a 15-digit number. For iOS devices, UDID is a 40-character hexadecimal string that is used to uniquely identify each device.

[0078] Step 202, determining a reference time for the optical transport network device to initially apply for a session key according to the device unique identifier and the key application period;

[0079] In one embodiment, the step of determining the reference time when the optical transport network device first applies for the session key according to the device unique identifier and the key application period may further include the following sub-steps:

[0080] Sub-step S11, performing a hash operation on the unique device identifier of the optical transport network device to obtain a hash value;

[0081] Sub-step S12: determining a reference time when the optical transport network device applies for a session key for the first time according to the hash value and the key application period.

[0082] In an embodiment of the present invention, the OTN device can determine the reference time when the optical transport network device first applies for the session key based on the device unique identifier and the key application cycle, and the reference time can be used to indicate the new time when the optical transport network device applies for the session key. Specifically, the OTN device can perform a hash operation on its own device unique identifier to obtain a hash value, and then determine the reference time when the optical transport network device first applies for the session key based on the hash value and the key application cycle. The embodiment of the present invention resets the time when the optical transport network device applies for the session key so that the time when different optical transport network devices apply for the session key is as evenly distributed as possible at different time points in a day, and the session key is applied at different peaks, which reduces the pressure on the quantum cryptography service platform and improves the efficiency and success rate of the session key application.

[0083] In one embodiment, the determining, according to the hash value and the key application period, the reference time at which the optical transport network device applies for the session key for the first time may further include the following sub-steps:

[0084] Sub-step S121, obtaining the time slice and the initial time when the optical transport network device applies for a session key;

[0085] In an embodiment of the present invention, the OTN device can obtain a time slice and the initial moment when the OTN device applies for a session key. The time slice can be 3600, which is used to divide the time period of each key application into a time slice that is 3600 times the key application period, so that the moments when different OTN devices apply for keys are scattered in different time slices, and key application conflicts are avoided as much as possible. The initial moment when the OTN device applies for a session key can be the current moment when the OTN device first goes online or the service is activated, and the first session key application is made. Those skilled in the art can set the time slice to other appropriate values ​​according to the idea of ​​the present invention, and can also set the initial moment when the OTN device applies for a session key to other moments, such as the moment when the session key was last applied for, and the present invention does not limit this.

[0086] Sub-step S122, performing a product operation on the key application period and the time slice to obtain a target value;

[0087] In the embodiment of the present invention, the OTN device may perform a product operation on the key application period X and the time slice 3600 to obtain a target value X*3600.

[0088] Sub-step S123, performing a modulo operation on the target value through the hash value to obtain a target time interval;

[0089] In the embodiment of the present invention, the OTN device can perform a modulo operation on the target value through the hash value to obtain the target time interval. Specifically, the target value X*3600 is modulo operated through the hash value A to obtain the target time interval B=A%(X*3600), where B is the remainder of A%(X*3600).

[0090] Sub-step S124: determining a reference time for the optical transport network device to apply for a session key for the first time according to the initial time and the target time interval.

[0091] In one embodiment, the step of determining the reference time when the optical transport network device first applies for the session key based on the initial time and the target time interval may include: using the sum of the initial time and the target time interval as the reference time when the optical transport network device first applies for the session key.

[0092] In the embodiment of the present invention, the OTN device can determine the reference time when the optical transport network device first applies for the session key according to the initial time and the target time interval. Specifically, the sum of the initial time and the target time interval can be used as the reference time when the OTN device first applies for the session key. Computer personnel in this field can set the reference time to other appropriate values, such as the sum of preset multiples of the initial time and the target time interval, or the difference between the initial time and the target time interval, etc., and the present invention does not limit this.

[0093] The initial time when the OTN device in the embodiment of the present invention applies for the session key can be the current time when the OTN device first goes online or the service is activated, and the first session key application is made. The reference time can be used to indicate the new time when the optical transport network device applies for the session key. The embodiment of the present invention adjusts the initial time when the OTN device applies for the session key through the reference time, so that the time when different optical transport network devices apply for the session key is as evenly distributed as possible at different time points in a day, and the session key is applied at different peaks, which reduces the pressure on the quantum cryptography service platform and improves the efficiency and success rate of the session key application.

[0094] Step 203, determining the update time for the optical transport network device to apply for the session key again according to the reference time and the key application period;

[0095] In one embodiment, the step of determining the update time at which the optical transport network device applies for the session key again according to the reference time and the key application period may further include the following sub-steps:

[0096] Sub-step S21, taking the time after the reference time and each time after the key application cycle as the update time for the optical transport network device to apply for the session key again.

[0097] In the embodiment of the present invention, the OTN device can determine the update time when the optical transport network device re-applies for the session key according to the reference time and the key application cycle. Specifically, the time after the reference time and each time after the key application cycle can be used as the update time when the optical transport network device re-applies for the session key. Since the reference time is determined according to the device unique identifier of the OTN device, the reference times of different OTN devices are different from each other, so that the update times for re-applying for the session key determined by different ONT devices according to the reference time and the key application cycle are also different from each other, so that different OTN devices apply for the session key at different peaks, which reduces the pressure on the quantum cryptography service platform and improves the efficiency and success rate of the session key application.

[0098] Exemplarily, it is assumed that the time when the OTN device first applies for a session key is T0=00:00:00; it is assumed that the device serial number of the OTN device is: 003; the hexadecimal number obtained after the hash operation is: 9e107d9d372bb6826bd8 1d3542a4 19d6; the hexadecimal number is converted into a decimal number: 13474929378068736387302425433374; it is assumed that the key application interval period configured for the OTN device is: X=20 hours; the above decimal number is modulo-operated with (X*3600) to obtain the remainder B=53374 seconds=14.83 hours=14:49:48; the new starting time for applying for the session key is: T1=TO+B=14:49:98; the OTN device can re-apply for the session key after every X=20 hours after the T1 time.

[0099] Step 204, when the time for the optical transport network device to apply for the session key again is reached, a session key application request is sent to the optical transport network controller;

[0100] In the embodiment of the present invention, the OTN device can also send a session key application request to the optical transport network controller to obtain a new session key when the optical transport network device re-applies for the update time of the session key to obtain a new session key. Specifically, the OTN device can send the session key application request to the message queue, and the OTN controller can monitor the key application message of the message queue. After receiving the session key application request, the session key application request is forwarded to the key controller. The key controller can apply for the session key from the quantum cryptography service platform according to the session key application request, and the quantum cryptography service platform can generate the session key according to the session key application request.

[0101] Step 205, receiving a new session key sent by the optical transport network controller; the new session key forwards the session key application request to the key controller through the optical transport network controller, applies for the session key to the quantum cryptography service platform through the key controller, and is generated through the quantum cryptography service platform.

[0102] In an embodiment of the present invention, the OTN device can receive a new session key sent by the optical transport network controller. The new session key is forwarded by the optical transport network controller to the key controller through the session key application request, and the key controller applies for the session key from the quantum cryptography service platform, and is generated by the quantum cryptography service platform. The specific process of the OTN device receiving the new session key can be: after the quantum cryptography service platform generates the new session key, the new session key is transmitted to the key controller, and the key controller transmits the new session key to the OTN controller, and finally the OTN controller transmits the new session key to the OTN device.

[0103] The embodiment of the present invention can reset the time when the optical transport network device applies for the session key according to the unique identifier of the device, so that the time when different optical transport network devices apply for the session key is distributed as evenly as possible at different time points in a day, and the session keys are applied at different peaks, which reduces the pressure on the quantum cryptography service platform and improves the efficiency and success rate of the session key application.

[0104] Reference Figure 3 , shows a logic diagram of a key update method for an optical transport network device provided by an embodiment of the present invention, in order to enable those skilled in the art to better understand the embodiment of the present invention, the following Figure 3 The embodiments of the present invention are described as follows:

[0105] Step 301: When the OTN device is first online or the service is activated, a session key application is completed and the current time is recorded as T0. Thereafter, the OTN device will update the session key every X hours of a key application cycle.

[0106] Step 301: The OTN device performs a hash calculation on the device unique identifier to obtain a hash value A, where A is a random integer.

[0107] Step 302, perform a modulus operation on the product of the key application period X and the time slice through the hash value A, A%(X*3600), to obtain the target time interval B, where B is the remainder of A%(X*3600).

[0108] Step 303: A reference time T1 is obtained according to the sum of the initial time TO and the target time interval B. After the reference time T1, each time of the key application cycle is used as the update time for the OTN device to apply for the session key again.

[0109] Step 304: When the time for the OTN device to apply for the session key update again arrives, the OTN device sends the session key application request to the message queue.

[0110] Step 305: The OTN controller monitors the message queue and, upon receiving a session key application request, forwards the request to the key controller.

[0111] Step 306: The key controller applies to the quantum cryptographic service platform for a new session key, and then returns the key to the OTN device layer by layer.

[0112] Step 307: after each key application period of X hours, repeat steps 305 to 307.

[0113] In the embodiment of the present invention, the OTN device can obtain its own device unique identification and the key application cycle device unique identification to perform hash operation to obtain a hash value, and perform modulus operation on the product of the key application cycle and the time slice through the hash value to obtain the target time interval, and use the sum of the initial time when the OTN device first applies for the session key and the target time interval as the reference time when the OTN device first applies for the session key; after the reference time, the time after each key application cycle is used as the update time when the OTN device applies for the session key again, so that the time when the optical transport network device applies for the session key can be reset according to the device unique identification, so that the time when different optical transport network devices apply for the session key is as evenly distributed as possible at different time points in a day, and the session key is applied for at off-peak times, which reduces the pressure on the quantum cryptography service platform and improves the efficiency and success rate of the session key application.

[0114] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0115] Reference Figure 4 , shows a structural block diagram of a key update system for an optical transport network device provided by an embodiment of the present invention. The system 40 includes: at least one optical transport network device 41, an optical transport network controller 42, a key controller 43, and a quantum cryptography service platform 44;

[0116] The optical transport network device 41 is used to obtain the device unique identifier and key application period of the optical transport network device; determine the reference time when the optical transport network device first applies for the session key according to the device unique identifier and the key application period; determine the update time when the optical transport network device applies for the session key again according to the reference time and the key application period; send a session key application request to the optical transport network controller when the update time when the optical transport network device applies for the session key again is reached; and receive the new session key sent by the optical transport network controller;

[0117] The optical transport network controller 42 is used to receive a session key application request sent by the optical transport network device and forward the session key application request to the key controller;

[0118] The key controller 43 is used to receive the session key application request sent by the optical transport network controller, and apply to the quantum cryptography service platform for a session key application;

[0119] The quantum cryptography service platform 44 is used to generate the new session key.

[0120] In the embodiment of the present invention, the OTN device can obtain its own device unique identification and the key application cycle device unique identification to perform hash operation to obtain a hash value, and perform modulus operation on the product of the key application cycle and the time slice through the hash value to obtain the target time interval, and use the sum of the initial time when the OTN device first applies for the session key and the target time interval as the reference time when the OTN device first applies for the session key; after the reference time, the time after each key application cycle is used as the update time when the OTN device applies for the session key again, so that the time when the optical transport network device applies for the session key can be reset according to the device unique identification, so that the time when different optical transport network devices apply for the session key is as evenly distributed as possible at different time points in a day, and the session key is applied for at off-peak times, which reduces the pressure on the quantum cryptography service platform and improves the efficiency and success rate of the session key application.

[0121] As for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment part.

[0122] Reference Figure 5 , shows a structural block diagram of a key updating device for an optical transport network device provided by an embodiment of the present invention, which may specifically include the following modules:

[0123] The device information acquisition module 501 is used to obtain the device unique identification and key application period of the optical transport network device;

[0124] A reference time determination module 502, configured to determine a reference time at which the optical transport network device first applies for a session key according to the device unique identifier and the key application period;

[0125] The update time determination module 503 is used to determine the update time when the optical transport network device applies for the session key again according to the reference time and the key application period.

[0126] In the embodiment of the present invention, the reference time determination module 502 includes:

[0127] A hash operation submodule, used to perform a hash operation on the unique device identifier of the optical transport network device to obtain a hash value;

[0128] The reference time determination submodule is used to determine the reference time when the optical transport network device applies for the session key for the first time according to the hash value and the key application period.

[0129] In the embodiment of the present invention, the reference time determination submodule includes:

[0130] A device information acquisition unit, used to acquire a time slice and an initial time when the optical transport network device applies for a session key;

[0131] a target value determination unit, configured to perform a product operation on the key application period and the time slice to obtain a target value;

[0132] a time interval determination unit, configured to perform a modulo operation on the target value through the hash value to obtain a target time interval;

[0133] The reference time determination unit is used to determine the reference time when the optical transport network device first applies for the session key according to the initial time and the target time interval.

[0134] In an embodiment of the present invention, the reference time determination unit includes:

[0135] The reference time determination subunit is used to use the sum of the initial time and the target time interval as the reference time for the optical transport network device to apply for the session key for the first time.

[0136] In the embodiment of the present invention, the update time determination module 503 includes:

[0137] The update time determination submodule is used to use the time after the reference time and after each key application cycle as the update time for the optical transport network device to apply for the session key again.

[0138] In an embodiment of the present invention, the device further includes:

[0139] An application request sending module, used for sending a session key application request to the optical transport network controller when the time for the optical transport network device to apply for the session key again is reached;

[0140] The session key receiving module is used to receive a new session key sent by the optical transport network controller; the new session key forwards the session key application request to the key controller through the optical transport network controller, applies for the session key from the quantum cryptography service platform through the key controller, and is generated through the quantum cryptography service platform.

[0141] In the embodiment of the present invention, the OTN device can obtain its own device unique identification and the key application cycle device unique identification to perform hash operation to obtain a hash value, and perform modulus operation on the product of the key application cycle and the time slice through the hash value to obtain the target time interval, and use the sum of the initial time when the OTN device first applies for the session key and the target time interval as the reference time when the OTN device first applies for the session key; after the reference time, the time after each key application cycle is used as the update time when the OTN device applies for the session key again, so that the time when the optical transport network device applies for the session key can be reset according to the device unique identification, so that the time when different optical transport network devices apply for the session key is as evenly distributed as possible at different time points in a day, and the session key is applied for at off-peak times, which reduces the pressure on the quantum cryptography service platform and improves the efficiency and success rate of the session key application.

[0142] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment part.

[0143] An embodiment of the present invention further provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned key update method for an optical transport network device when executing the computer program.

[0144] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned key updating method for an optical transport network device are implemented.

[0145] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0146] Those skilled in the art will appreciate that the embodiments of the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of 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 embodiments of the present invention may take the form of a computer program product implemented on one or more machine-readable media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0147] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the 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 the 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 terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal 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.

[0148] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer readable memory produce a manufactured product including 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.

[0149] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement 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.

[0150] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0151] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0152] The key update method for an optical transport network device and the key update device for an optical transport network device provided by the present invention are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for general technicians in this field, according to the ideas of the present invention, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A key updating method for an optical transport network device, characterized in that: The method comprises: Obtaining a unique device identifier and a key application period of the optical transport network device; Determining a reference time when the optical transport network device first applies for a session key according to the device unique identifier and the key application period; The update time at which the optical transport network device applies for the session key again is determined according to the reference time and the key application period.

2. The method according to claim 1, characterized in that The determining, according to the device unique identifier and the key application period, a reference time at which the optical transport network device applies for a session key for the first time comprises: Performing a hash operation on the unique device identifier of the optical transport network device to obtain a hash value; According to the hash value and the key application period, a reference time when the optical transport network device applies for a session key for the first time is determined.

3. The method according to claim 2, characterized in that The step of determining the reference time when the optical transport network device first applies for a session key according to the hash value and the key application period includes: Obtaining the time slice and the initial time when the optical transport network device applies for a session key; Performing a product operation on the key application period and the time slice to obtain a target value; Performing a modulo operation on the target value through the hash value to obtain a target time interval; According to the initial time and the target time interval, a reference time at which the optical transport network device applies for a session key for the first time is determined.

4. The method according to claim 3, characterized in that Determining the reference time at which the optical transport network device first applies for a session key according to the initial time and the target time interval includes: The sum of the initial time and the target time interval is used as the reference time when the optical transport network device applies for the session key for the first time.

5. The method according to claim 1, characterized in that The step of determining, according to the reference time and the key application period, the update time at which the optical transport network device applies for the session key again comprises: The time after the reference time and every time the key application cycle passes is used as the update time for the optical transport network device to apply for the session key again.

6. The method according to claim 1, characterized in that The method further comprises: When the time for the optical transport network device to apply for the session key again is reached, sending a session key application request to the optical transport network controller; Receive a new session key sent by the optical transport network controller; the new session key forwards the session key application request to the key controller through the optical transport network controller, applies for the session key from the quantum cryptography service platform through the key controller, and is generated through the quantum cryptography service platform.

7. A key updating system for optical transport network equipment, characterized in that: The system includes: at least one optical transport network device, an optical transport network controller, a key controller, and a quantum cryptography service platform; The optical transport network device is used to obtain a unique device identifier and a key application period of the optical transport network device; determine a reference time when the optical transport network device first applies for a session key according to the unique device identifier and the key application period; determine an update time when the optical transport network device applies for a session key again according to the reference time and the key application period; send a session key application request to an optical transport network controller when the update time when the optical transport network device applies for a session key again is reached; and receive a new session key sent by the optical transport network controller; The optical transport network controller is used to receive a session key application request sent by the optical transport network device, and forward the session key application request to the key controller; The key controller is used to receive the session key application request sent by the optical transport network controller, and apply to the quantum cryptography service platform for a session key application; The quantum cryptography service platform is used to generate the new session key.

8. A key updating device for an optical transport network device, characterized in that: The device comprises: A device information acquisition module, used to obtain a unique device identifier and a key application period of the optical transport network device; A reference time determination module, used to determine the reference time when the optical transport network device first applies for a session key according to the device unique identifier and the key application period; The update time determination module is used to determine the update time when the optical transport network device applies for the session key again according to the reference time and the key application period.

9. An electronic device, characterized in that: include: A processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the steps of a key updating method for an optical transport network device as described in any one of claims 1 to 6 are implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of a key updating method for an optical transport network device as described in any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Method and apparatus for key maintenance

    CN109274494A

  • Key updating method and device, storage medium and electronic equipment

    CN117295065A

  • Method for updating a public key

    US20170373847A1

Cited By

  • Shared tray management method and system

    CN119831476A