A method for implementing encryption and decryption of optical transmission signals
By generating transmission requirements and dynamic response times, and combining them with a random number matrix for data segmentation and encryption, the adaptability and security issues of traditional optical transmission signal encryption and decryption methods under different network topologies are solved, achieving efficient and flexible optical transmission signal encryption and decryption.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- GUONENG GUANGTOU BEIHAI POWER GENERATION CO LTD
- Filing Date
- 2025-01-26
- Publication Date
- 2026-05-19
AI Technical Summary
Traditional optical signal encryption and decryption methods lack flexibility and adaptability when facing different network topologies. They cannot be flexibly adjusted according to the receiver's dynamic response time and network topology characteristics, resulting in low data transmission efficiency and insufficient security.
The receiver generates transmission requirements and dynamic response time. The sender then segments and encrypts the data based on this information. The data is distributed and encrypted using a random number matrix in point-to-point or non-point-to-point structures to ensure efficient and secure data transmission under different network topologies.
It achieves efficient and secure transmission under different network topologies, improves the adaptability, security and transmission efficiency of optical transmission signal encryption and decryption, avoids data congestion and delay, and enhances the flexibility and practicality of the system.
Smart Images

Figure CN119966712B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of signal encryption technology, specifically a method for encrypting and decrypting optical transmission signals. Background Technology
[0002] In today's era of rapid digital information development, optical transmission technology occupies a crucial position in the field of communications. With the explosive growth of data volume and the ever-increasing demands for information security, the encryption and decryption of optical transmission signals has become a key link in ensuring information security.
[0003] Traditional optical signal encryption and decryption methods often lack flexibility and adaptability, specifically in the following ways:
[0004] When faced with different network topologies, most technologies adopt a uniform fixed encryption strategy and data processing method, failing to fully consider the differences between point-to-point and non-point-to-point structures. For example, in point-to-point structures, existing technologies usually do not have the ability to flexibly adjust data segmentation and encryption methods according to the receiver's dynamic response time. This may lead to low data transmission efficiency or failure to meet the receiver's real-time requirements in some time-sensitive application scenarios.
[0005] In non-point-to-point structures such as star or mesh networks, the problem is even more pronounced. Due to the presence of multiple nodes and transmission paths in the network, traditional methods struggle to develop effective data transmission and encryption schemes for complex network topologies. They cannot accurately allocate data and dynamically adjust encryption strategies based on the characteristics of different paths and the status of nodes, which can easily lead to data congestion, increased transmission delays, and enhanced security risks, seriously affecting the overall performance of optical transmission networks and the security of information.
[0006] Chinese patent number CN202411053901.7 discloses a hardware secure communication device and method based on a dual-loop active electro-optical feedback encryption module. However, this invention increases hardware costs and makes the system hardware architecture more complex. It requires higher technical requirements and cost investment in the process of equipment manufacturing, installation and maintenance. Moreover, the system performance largely depends on the performance and stability of each component, thus limiting its application scenarios.
[0007] In summary, there is an urgent need for a new technical solution to encrypt and decrypt optical transmission signals, which can adapt to different network topologies and provide flexible and efficient encryption and decryption of optical transmission signals. Summary of the Invention
[0008] The purpose of this application is to provide a method for encrypting and decrypting optical transmission signals to solve the technical problems mentioned in the background art.
[0009] To achieve the above objectives, this application discloses the following technical solution: a method for encrypting and decrypting optical transmission signals, wherein the following steps S1 to S4 are performed when the network topology formed by the receiver and the sender is a point-to-point structure:
[0010] S1: The receiver generates a transmission request and dynamic response duration and sends it to the sender;
[0011] The dynamic response duration is a random number generated based on the response duration range required by the receiver. This response duration range represents the receiver's temporal response requirements to the optical transmission signal, and the transmission requirements represent the receiver's content-related response requirements to the optical transmission signal.
[0012] S2: The sender matches the transmission data based on the transmission requirements and segments the transmission data based on the dynamic response time to obtain each data group to be transmitted and the data volume of each data group to be transmitted.
[0013] S3: The sender matches the corresponding encryption method based on the data volume and encrypts it, generates an optical transmission signal and transmits it to the receiver;
[0014] S4: The receiver receives the optical transmission signal and parses its data volume. Based on the data volume, it matches the corresponding encryption method and decrypts it to obtain the data group to be transmitted and reassembles it to obtain the transmitted data.
[0015] Preferably, the dynamic response time is as follows:
[0016] The dynamic response duration is defined as a value generated based on a preset random algorithm between the shortest and longest response durations within the response duration range preset by the receiver.
[0017] Preferably, the segmentation of the transmitted data based on the dynamic response time specifically involves:
[0018] Based on the dynamic response time and the preset data transferable amount D per unit time p_T The relationship is divided as follows: when the dynamic response time is T, the total amount of data transmitted is D. total Then the number of data groups after splitting Furthermore, the amount of data in each data group is either evenly distributed or non-evenly distributed based on the data type.
[0019] Preferably, the data volume is matched with a corresponding encryption method and encrypted, specifically as follows:
[0020] When the amount of data is less than a preset first threshold, a lightweight symmetric encryption algorithm is used.
[0021] When the amount of data is greater than or equal to the first threshold and less than the second threshold, a medium-strength asymmetric encryption algorithm is used.
[0022] When the amount of data is greater than or equal to the second threshold, a hybrid encryption method is adopted. First, the key of the symmetric encryption algorithm is transmitted using an asymmetric encryption algorithm, and then the data is encrypted using the symmetric encryption algorithm.
[0023] Preferably, the encryption method is matched and decrypted based on the data volume, specifically as follows:
[0024] The amount of data in the optical transmission signal is analyzed, and the corresponding decryption algorithm is determined based on the encryption method selection rules.
[0025] Data encrypted using a symmetric encryption algorithm is decrypted using a pre-shared symmetric key;
[0026] For data encrypted using an asymmetric encryption algorithm, decryption is performed using the corresponding private key;
[0027] For mixed encrypted data, first use the private key to decrypt the symmetric key, and then use the symmetric key to decrypt the data content.
[0028] Preferably, when the network topology formed by the receiver and the sender is a non-point-to-point structure, steps S1 and S2 are updated as follows:
[0029] S11: The receiver generates the transmission requirement and the combined dynamic response duration and sends them to the sender; wherein, the combined dynamic response duration is based on a random number matrix generated from the response duration range required by the receiver;
[0030] S21: The sender matches the transmission data based on the transmission requirements and segments the transmission data based on the combined dynamic response duration to obtain each data group to be transmitted and the data volume of each data group to be transmitted.
[0031] S3: The sender matches the corresponding encryption method based on the data volume and encrypts it, generates an optical transmission signal and transmits it to the receiver;
[0032] S4: The receiver receives the optical transmission signal and parses its data volume. Based on the data volume, it matches the corresponding encryption method and decrypts it to obtain the data group to be transmitted and reassembles it to obtain the transmitted data.
[0033] Preferably, the combined dynamic response time is specifically a two-dimensional or multi-dimensional matrix, and the generation process of the dimensions of the matrix is based at least on the number of key nodes or the number of transmission paths in the network topology.
[0034] The element values in the matrix are randomly generated based on the individual response duration range of each key node to obtain a random number matrix. This random number matrix represents the distribution of the entire network transmission time demand and is used for data segmentation by the sender on different paths and nodes.
[0035] Preferably, the segmentation of the transmitted data based on the combined dynamic response duration specifically involves:
[0036] The overall response time PT of each path in the matrix of combined dynamic response times is obtained through analysis;
[0037] Based on the PT of each path and the preset transmission bandwidth BP of that path, the data volume DP that can be allocated to each path is calculated as BP * PT * D. p_T ;
[0038] The transmitted data is segmented along different paths based on the calculated data volume.
[0039] Preferably, the segmentation of the transmitted data further includes:
[0040] When splitting the data, a checksum is added to each data group. This checksum is used by the receiver to verify the integrity of the data after receiving it.
[0041] Add sequence information to data groups based on the logical structure or time order of the data. This sequence information is used to combine data in the correct order.
[0042] Preferably, obtaining and reassembling the data group to be transmitted specifically involves:
[0043] After decrypting the optical transmission signal, the receiver obtains the data to be transmitted, sorts the data to be transmitted based on the sequence number information, and then verifies the integrity of each piece of data to be transmitted based on the checksum information.
[0044] If a checksum mismatch occurs in a data group, a retransmission request is sent to the sender, requesting the sender to retransmit the data to be transmitted.
[0045] Beneficial Effects: The optical transmission signal encryption and decryption method of this application achieves efficient and secure transmission in both point-to-point and non-point-to-point structures by utilizing an optical transmission signal encryption and decryption method based on network topology. In a point-to-point structure, the transmission requirements and dynamic response time generated by the receiver allow the sender to accurately match the transmitted data, rationally segment the data based on the dynamic response time, and then adapt the appropriate encryption method based on the data volume, ensuring efficient encryption and transmission and accurate decryption and reassembly while meeting the receiver's time and content requirements. In a non-point-to-point structure, by combining the generation and application of dynamic response time, the sender can effectively segment and encrypt the transmitted data according to complex network conditions, and the receiver can also successfully decrypt and reassemble the data, greatly improving the adaptability, security, and transmission efficiency of optical transmission signal encryption and decryption under different network topologies. Attached Figure Description
[0046] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0047] Figure 1 A flowchart illustrating a method for encrypting and decrypting optical transmission signals provided in an embodiment of this application;
[0048] Figure 2 The flowchart of update steps S1 and S2 provided in the embodiments of this application when the network topology formed by the receiver and the sender is a non-point-to-point structure. Detailed Implementation
[0049] The technical solutions in the embodiments of this application will be clearly and completely described below. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.
[0050] In this document, the term "comprising" is intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0051] This embodiment discloses a method for encrypting and decrypting optical transmission signals, such as... Figure 1 As shown, when the network topology formed by the receiver and the sender is a point-to-point structure, the following steps S1 to S4 are executed:
[0052] S1: The receiver generates a transmission request and dynamic response duration and sends it to the sender;
[0053] Among them, the dynamic response duration is a random number generated based on the response duration range required by the receiver. This response duration range is the receiver's response requirement to the optical transmission signal in terms of time, and the transmission requirement is the receiver's response requirement to the optical transmission signal in terms of content.
[0054] S2: The sender matches the data to be transmitted based on the transmission requirements and divides the data to be transmitted based on the dynamic response time to obtain each data group to be transmitted and the amount of data in each data group to be transmitted.
[0055] S3: The sender matches the corresponding encryption method based on the data volume and encrypts it, generates an optical transmission signal and transmits it to the receiver;
[0056] S4: The receiver receives the optical transmission signal and parses its data volume. Based on the data volume, it matches the corresponding encryption method and decrypts it to obtain the data group to be transmitted and reassembles it to obtain the transmitted data.
[0057] Based on the above, this embodiment utilizes an optical transmission signal encryption / decryption method based on network topology to achieve efficient and secure transmission in both point-to-point and non-point-to-point structures. In a point-to-point structure, the transmission requirements and dynamic response time generated by the receiver allow the sender to accurately match the transmitted data, rationally segment the data according to the dynamic response time, and then adapt the appropriate encryption method based on the data volume, ensuring efficient encryption and accurate decryption and reassembly while meeting the receiver's time and content requirements. In a non-point-to-point structure, by combining the generation and application of dynamic response time, the sender can effectively segment and encrypt the transmitted data according to complex network conditions, and the receiver can successfully decrypt and reassemble it, greatly improving the adaptability, security, and transmission efficiency of optical transmission signal encryption / decryption under different network topologies.
[0058] Specifically, the dynamic response time is as follows:
[0059] The dynamic response time is defined as a value generated based on a preset random algorithm between the shortest and longest response times within a pre-defined range set by the receiver. In a specific application, this embodiment generates a value using existing random algorithms such as uniform distribution or Gaussian distribution. For example, when using a uniform distribution, the dynamic response time T = T0. min +(T max -T min)*random(), where random() is a function that generates uniformly random numbers between 0 and 1.
[0060] Through the above, flexible control of transmission time is achieved in the optical transmission signal processing process. Compared with the fixed time setting or lack of time consideration in traditional technology, this method of determining the dynamic response time can better adapt to different transmission demand scenarios. It enables the sender to allocate data more accurately according to time factors when segmenting data, thereby optimizing the data transmission process, improving transmission efficiency, enhancing the practicality and flexibility of the entire optical transmission signal encryption and decryption system, and effectively avoiding transmission problems caused by time factors.
[0061] Specifically, the transmitted data is segmented based on the dynamic response time, as follows:
[0062] Based on the dynamic response time and the preset data transfer volume D per unit time p_T The relationship is divided as follows: when the dynamic response time is T, the total amount of data transmitted is D. total Then the number of data groups after splitting Furthermore, the data volume of each data group is either evenly distributed or non-uniformly distributed based on the data type. In a specific application, the data volume of each data group in this embodiment is evenly distributed within a certain range according to the actual situation of the data type, or non-uniformly distributed according to factors such as the importance of the data, to ensure that data transmission can be completed within a given dynamic response time while guaranteeing the integrity and accuracy of the data.
[0063] Through the above, this embodiment achieves reasonable grouping and efficient processing of transmitted data. Unlike traditional technologies that do not consider dynamic time factors or use simple segmentation methods, this method ensures full utilization of transmission resources within a given dynamic response time. It distributes data evenly or non-uniformly according to its characteristics, improving the reliability and integrity of data transmission, reducing errors and delays during data transmission, and enabling data to be processed and transmitted more orderly and efficiently during optical transmission, thereby improving the overall system performance.
[0064] Specifically, the data volume is matched with the corresponding encryption method and then encrypted, as follows:
[0065] When the amount of data is less than a preset first threshold, the existing lightweight symmetric encryption algorithm is used.
[0066] When the amount of data is greater than or equal to the first threshold and less than the second threshold, the existing medium-strength asymmetric encryption algorithm is used.
[0067] When the amount of data is greater than or equal to the second threshold, the existing hybrid encryption method is adopted. First, the key of the symmetric encryption algorithm is transmitted using the asymmetric encryption algorithm, and then the data is encrypted using the symmetric encryption algorithm.
[0068] It should be noted that the first threshold and the second threshold in this embodiment are empirical values extracted by those skilled in the art based on common knowledge.
[0069] Based on the above, this embodiment achieves targeted encryption protection for transmitted data. Its layered encryption method can select the most suitable encryption algorithm according to different data volumes while ensuring data security, thereby improving encryption efficiency and reducing the consumption of computing resources. Lightweight symmetric encryption is used for small data volumes, while hybrid encryption is used for large data volumes, effectively balancing encryption strength and processing speed, and enhancing the effectiveness and adaptability of optical transmission signal encryption.
[0070] Specifically, based on the amount of data, the corresponding encryption method is matched and decrypted, as follows:
[0071] The amount of data in the optical transmission signal is analyzed, and the corresponding decryption algorithm is determined based on the encryption method selection rules.
[0072] Data encrypted using a symmetric encryption algorithm is decrypted using a pre-shared symmetric key;
[0073] For data encrypted using an asymmetric encryption algorithm, decryption is performed using the corresponding private key;
[0074] For mixed encrypted data, first use the private key to decrypt the symmetric key, and then use the symmetric key to decrypt the data content.
[0075] Based on the above, this embodiment utilizes the process of determining the corresponding decryption algorithm based on the amount of data in the optical transmission signal to achieve accurate and efficient decryption of encrypted data, ensuring the smooth progress of the optical transmission signal decryption process.
[0076] Specifically, such as Figure 2 As shown, when the network topology formed by the receiver and the sender is a non-point-to-point structure, the update steps S1 and S2 are as follows:
[0077] S11: The receiver generates a transmission request and a combined dynamic response duration and sends it to the sender; wherein, the combined dynamic response duration is based on a random number matrix generated from the range of response durations required by the receiver;
[0078] S21: The sender matches the data to be transmitted based on the transmission requirements and divides the data to be transmitted based on the combined dynamic response time to obtain each data group to be transmitted and the amount of data in each data group to be transmitted.
[0079] S3: The sender matches the corresponding encryption method based on the data volume and encrypts it, generates an optical transmission signal and transmits it to the receiver;
[0080] S4: The receiver receives the optical transmission signal and parses its data volume. Based on the data volume, it matches the corresponding encryption method and decrypts it to obtain the data group to be transmitted and reassembles it to obtain the transmitted data.
[0081] Based on the above, this embodiment utilizes a method for generating a random number matrix of combined dynamic response durations in a non-point-to-point structure to achieve a comprehensive characterization and effective response to the transmission time requirements of complex network topologies. The random number matrix can accurately reflect the time requirements of different paths and nodes, providing a key basis for the sender to formulate data segmentation and transmission strategies. This enables data to be rationally allocated and transmitted according to the actual network conditions, greatly improving the adaptability and transmission efficiency of optical transmission signal encryption and decryption in non-point-to-point structures, and solving the transmission problems of traditional technologies in such structures.
[0082] Specifically, the combined dynamic response time is a two-dimensional or multi-dimensional matrix, and the generation process of the dimensions of the matrix is based at least on the number of key nodes or transmission paths in the network topology.
[0083] The element values in the matrix are randomly generated based on the individual response time range of each critical node, resulting in a random number matrix. This random number matrix represents the distribution of transmission time requirements across the entire network and is used for data segmentation by the sender on different paths and nodes. In a specific application, the dimension of this embodiment depends on factors such as the number of critical nodes or transmission paths in the network topology. For example, in a non-point-to-point network with multiple critical intermediate nodes, each row of the combined dynamic response time matrix represents a possible transmission path from the sender to the receiver, and each column corresponds to the expected response time of a critical node on that path. The element values in the matrix are generated based on the individual response time range of each critical node (similar to T in a point-to-point structure). max and T min Generate randomly.
[0084] Based on the above, this embodiment achieves deep adaptation to the characteristics of non-point-to-point network transmission. It fully considers the complexity and diversity of networks, describes the network time distribution by accurately constructing a matrix, provides detailed transmission guidance for the sender, effectively avoids the blindness of data transmission, and improves the transmission quality and security of optical transmission signals in complex network environments.
[0085] Specifically, the transmitted data is segmented based on the combined dynamic response time, as follows:
[0086] Analysis yields the overall response time PT of each path in the matrix of combined dynamic response times;
[0087] Based on the PT of each path and the preset transmission bandwidth BP of that path, the data volume DP that can be allocated to each path is calculated as BP * PT * D. p_T ;
[0088] The transmitted data is segmented based on the calculated data volume along different paths.
[0089] Based on the above, this embodiment utilizes the overall response time of each path in the dynamic response time matrix, combined with the data allocation method calculated by path transmission bandwidth, to achieve scientific segmentation and rational transmission of data in non-point-to-point structures. Compared to the irrational data allocation in non-point-to-point networks using traditional techniques, this method comprehensively considers time and bandwidth factors, ensuring that data can be efficiently transmitted on different paths according to their actual carrying capacity. This avoids congestion or resource waste on certain paths, optimizes the data transmission process of the entire network, and improves the transmission efficiency and reliability of optical signals.
[0090] Specifically, segmenting the transmitted data also includes:
[0091] When splitting data, a checksum (such as a CRC checksum) is added to each data group. This checksum is used by the receiver to verify the integrity of the data after receiving it.
[0092] Add sequence information to data groups based on the logical structure or time order of the data. This sequence information is used to combine data in the correct order.
[0093] Based on the above, the checksum information in this embodiment can help the receiver quickly detect whether the data has been damaged during transmission, while the sequence number information ensures that the data can be reassembled in the correct logical order, reducing the risk of data errors and loss, improving the accuracy and reliability of optical transmission signal processing, and enhancing the stability of the entire system.
[0094] Specifically, the data group to be transmitted is obtained and reassembled, as follows:
[0095] After decrypting the optical transmission signal, the receiver obtains the data to be transmitted, sorts the data to be transmitted based on the sequence number information, and then verifies the integrity of each data to be transmitted based on the checksum information.
[0096] If a checksum mismatch occurs in a data group, a retransmission request is sent to the sender, requesting the sender to retransmit the data to be transmitted.
[0097] Through the above, this embodiment achieves reliable reception and complete reconstruction of transmitted data, thereby promptly identifying and resolving problems in data transmission, ensuring that the receiver ultimately obtains accurate and complete transmitted data, improving the success rate and reliability of optical transmission signal transmission, and maintaining the stability and effectiveness of the entire communication process.
[0098] In summary, the optical transmission signal encryption and decryption method of this embodiment achieves efficient and secure transmission in both point-to-point and non-point-to-point structures by utilizing an optical transmission signal encryption and decryption method based on network topology. In the point-to-point structure, the transmission requirements and dynamic response time generated by the receiver allow the sender to accurately match the transmitted data, reasonably segment the data based on the dynamic response time, and then adapt the appropriate encryption method based on the data volume, ensuring efficient encryption and transmission and accurate decryption and reassembly while meeting the receiver's time and content requirements. In the non-point-to-point structure, by combining the generation and application of dynamic response time, the sender can effectively segment and encrypt the transmitted data according to complex network conditions, and the receiver can also successfully decrypt and reassemble it, greatly improving the adaptability, security, and transmission efficiency of optical transmission signal encryption and decryption under different network topologies.
[0099] In the embodiments provided in this application, it should be understood that the embodiments described herein can be implemented in hardware, software, firmware, middleware, code, or any suitable combination thereof. For hardware implementation, the processor may be implemented in one or more of the following: application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), processors, controllers, microcontrollers, microprocessors, other electronic units designed to implement the functions described herein, or combinations thereof. For software implementation, some or all of the processes of the embodiments may be performed by a computer program instructing the associated hardware. During implementation, the program may be stored in a computer-readable storage medium or transmitted as one or more instructions or code on a computer-readable storage medium. Computer-readable storage media include computer storage media and communication media, wherein communication media include any medium that facilitates the transmission of a computer program from one place to another. Storage media may be any available medium accessible to a computer. Computer-readable storage media may include, but are not limited to, RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code having the form of instructions or data structures and accessible to a computer.
[0100] Finally, it should be noted that the above description is only a preferred embodiment of this application and is not intended to limit this application. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing embodiments or make equivalent substitutions for some of the technical features. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A method for encrypting and decrypting optical transmission signals, characterized in that, When the network topology formed by the receiver and the sender is a point-to-point structure, the following steps S1 to S4 are executed: S1: The receiver generates a transmission request and dynamic response duration and sends it to the sender; The dynamic response duration is a random number generated based on the response duration range required by the receiver. This response duration range represents the receiver's temporal response requirements to the optical transmission signal, and the transmission requirements represent the receiver's content-related response requirements to the optical transmission signal. S2: The sender matches the transmission data based on the transmission requirements and segments the transmission data based on the dynamic response time to obtain each data group to be transmitted and the data volume of each data group to be transmitted. S3: The sender matches the corresponding encryption method based on the data volume and encrypts it, generates an optical transmission signal and transmits it to the receiver; S4: The receiver receives the optical transmission signal and parses its data volume. Based on the data volume, it matches the corresponding encryption method and decrypts it to obtain the data group to be transmitted and reassembles it to obtain the transmitted data.
2. The method for encrypting and decrypting optical transmission signals according to claim 1, characterized in that, The dynamic response time is specifically as follows: The dynamic response duration is defined as a value generated based on a preset random algorithm between the shortest and longest response durations within the response duration range preset by the receiver.
3. The method for encrypting and decrypting optical transmission signals according to claim 2, characterized in that, The segmentation of the transmitted data based on the dynamic response time is specifically as follows: Based on the dynamic response time and the preset data transferable amount D per unit time p_T The relationship is divided as follows: when the dynamic response time is T, the total amount of data transmitted is D. total Then the number of data groups after splitting Furthermore, the amount of data in each data group is either evenly distributed or non-evenly distributed based on the data type.
4. The method for encrypting and decrypting optical transmission signals according to claim 1, characterized in that, The data volume is matched with a corresponding encryption method and encrypted, specifically as follows: When the amount of data is less than a preset first threshold, a lightweight symmetric encryption algorithm is used. When the amount of data is greater than or equal to the first threshold and less than the second threshold, a medium-strength asymmetric encryption algorithm is used. When the amount of data is greater than or equal to the second threshold, a hybrid encryption method is adopted. First, the key of the symmetric encryption algorithm is transmitted using an asymmetric encryption algorithm, and then the data is encrypted using the symmetric encryption algorithm.
5. The method for encrypting and decrypting optical transmission signals according to claim 4, characterized in that, Based on the data volume, the corresponding encryption method is matched and decrypted, specifically as follows: The amount of data in the optical transmission signal is analyzed, and the corresponding decryption algorithm is determined based on the encryption method selection rules. Data encrypted using a symmetric encryption algorithm is decrypted using a pre-shared symmetric key; For data encrypted using an asymmetric encryption algorithm, decryption is performed using the corresponding private key; For mixed encrypted data, first use the private key to decrypt the symmetric key, and then use the symmetric key to decrypt the data content.
6. The method for encrypting and decrypting optical transmission signals according to claim 3, characterized in that, When the network topology formed by the receiver and the sender is a non-point-to-point structure, update steps S1 and S2 as follows: S11: The receiver generates the transmission requirement and the combined dynamic response duration and sends them to the sender; wherein, the combined dynamic response duration is based on a random number matrix generated from the response duration range required by the receiver; S21: The sender matches the transmission data based on the transmission requirements and segments the transmission data based on the combined dynamic response duration to obtain each data group to be transmitted and the data volume of each data group to be transmitted. S3: The sender matches the corresponding encryption method based on the data volume and encrypts it, generates an optical transmission signal and transmits it to the receiver; S4: The receiver receives the optical transmission signal and parses its data volume. Based on the data volume, it matches the corresponding encryption method and decrypts it to obtain the data group to be transmitted and reassembles it to obtain the transmitted data.
7. The method for encrypting and decrypting optical transmission signals according to claim 6, characterized in that, The combined dynamic response duration is specifically a two-dimensional or multi-dimensional matrix, and the generation process of the dimensions of the matrix is based at least on the number of key nodes or the number of transmission paths in the network topology. The element values in the matrix are randomly generated based on the individual response duration range of each key node to obtain a random number matrix. This random number matrix represents the distribution of the entire network transmission time demand and is used for data segmentation by the sender on different paths and nodes.
8. The method for encrypting and decrypting optical transmission signals according to claim 7, characterized in that, The segmentation of the transmitted data based on the combined dynamic response duration is specifically as follows: The overall response time PT of each path in the matrix of combined dynamic response times is obtained through analysis; Based on the PT of each path and the preset transmission bandwidth BP of that path, the data volume DP that can be allocated to each path is calculated as BP * PT * D. p_T ; The transmitted data is segmented along different paths based on the calculated data volume.
9. The method for encrypting and decrypting optical transmission signals according to claim 1, characterized in that, The segmentation of the transmitted data further includes: When splitting the data, a checksum is added to each data group. This checksum is used by the receiver to verify the integrity of the data after receiving it. Add sequence information to data groups based on the logical structure or time order of the data. This sequence information is used to combine data in the correct order.
10. The method for encrypting and decrypting optical transmission signals according to claim 9, characterized in that, The specific steps of obtaining and reassembling the data group to be transmitted are as follows: After decrypting the optical transmission signal, the receiver obtains the data to be transmitted, sorts the data to be transmitted based on the sequence number information, and then verifies the integrity of each piece of data to be transmitted based on the checksum information. If a checksum mismatch occurs in a data group, a retransmission request is sent to the sender, requesting the sender to retransmit the data to be transmitted.