Data security protection method and apparatus, and electronic device and computer-readable medium
By segmenting and mapping service data to channels in the optical transmission network and performing parallel encryption and decryption processing, the problem of increasing resource demand caused by the increase in customer service types is solved, and data processing efficiency is improved.
Patent Information
- Application Number
- PCT/CN2024/089330
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-05-22
- Filing Date
- 2024-04-23
- Publication Date
- 2024-11-28
AI Technical Summary
In optical transmission networks, with the increase of customer service types and application scenarios, the demand for traditional encryption and decryption logic, algorithm resources and cache resources has increased significantly, resulting in a decline in data processing efficiency.
Use the minimum service parallelism to segment the service data, determine the required number of channels, map the divided data units into the corresponding channels of each service, and encrypt or decrypt each service using its corresponding key. Processing, implements parallel encryption and decryption processing within the channel.
This method realizes the reuse of processing resources, reduces the demand for encryption and decryption logic and algorithm hardware resources, improves data processing efficiency, and is suitable for services with any degree of parallelism.
Smart Images

Figure CN2024089330_28112024_PF_FP_ABST
Abstract
Description
Data security protection method and device, electronic device, and computer-readable medium
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to Chinese patent application CN 202310582871.8, entitled “Data security protection method and device, electronic device, and computer-readable medium,” filed on May 22, 2023, the entire contents of which are incorporated herein by reference. Technical Field
[0003] The embodiments of the present application relate to the field of communication technology, and in particular to a data security protection method and device, an electronic device, and a computer-readable medium. Background Art
[0004] The Advanced Encryption Standard (AES) algorithm is used in Optical Transport Networks (OTNs). It encrypts the optical channel payload unit (OPU) payload area at the optical channel data unit (ODU) layer to ensure the security of customer services during data transmission. Traditional circuits require designing processing logic with appropriate parallelism to meet the encryption and decryption requirements of different customer services. As the types of customer service access and application scenarios increase, the corresponding encryption and decryption logic, algorithm resources, and cache resources will increase significantly, resulting in a decrease in data processing efficiency.
[0005] Summary of the Invention
[0006] Embodiments of the present application provide a data security protection method and device, an electronic device, and a computer-readable medium.
[0007] An embodiment of the present application provides a data security protection method, including: dividing the business data of m businesses according to the minimum business parallelism supported to obtain divided data units, and determining the number of channels required to process the m businesses, where m is an integer greater than or equal to 1; mapping the divided data units of the m businesses to channels corresponding to each business in sequence; for each business, using the key corresponding to the business to encrypt or decrypt the divided data units mapped to the channel corresponding to the business.
[0008] An embodiment of the present application provides an electronic device, comprising: at least one processor; a memory, wherein at least one program is stored in the memory, and when the at least one program is executed by the at least one processor, the data security protection method according to the present application is executed.
[0009] An embodiment of the present application provides a computer-readable medium having a computer program stored thereon. When the computer program is executed by a processor, the data security protection method according to the present disclosure is executed.
[0010] An embodiment of the present application provides a data security protection device, including: a determination division module, used to divide the business data of m businesses according to the minimum business parallelism supported to obtain divided data units, and determine the number of channels required to process the m businesses, where m is an integer greater than or equal to 1; a mapping module, used to map the divided data units of the m businesses to the channels corresponding to each business in sequence; an encryption and decryption processing module, used to encrypt or decrypt the divided data units mapped to the channels corresponding to the business using the key corresponding to the business for each business. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] FIG1 is a flow chart of a data security protection method provided in an embodiment of the present application;
[0012] FIG2 is a schematic diagram of the frame structure of an ODU frame in an embodiment of the present application;
[0013] FIG3 is a block diagram of an electronic device according to an embodiment of the present application;
[0014] FIG4 is a block diagram of the composition of the data security protection device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0015] In order to enable those skilled in the art to better understand the technical solution of the present application, the data processing method and device, electronic device, and computer-readable medium provided in the present application are described in detail below with reference to the accompanying drawings.
[0016] Example embodiments will be described more fully hereinafter with reference to the accompanying drawings, but the example embodiments may be embodied in different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this application will be thorough and complete and will fully convey the scope of this application to those skilled in the art.
[0017] In the absence of conflict, the various embodiments of the present application and the various features therein may be combined with each other.
[0018] As used herein, the term "and / or" includes any and all combinations of at least one of the associated listed items.
[0019] The terms used herein are used only to describe specific embodiments and are not intended to limit this application. As used herein, the singular forms "a," "an," and "the" are also intended to include the plural forms, unless the context clearly indicates otherwise. It will also be understood that when the terms "comprising" and / or "made of" are used in this specification, the presence of the features, wholes, steps, operations, elements, and / or components is specified, but the presence or addition of at least one other feature, whole, step, operation, element, component, and / or group thereof is not excluded.
[0020] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art. It will also be understood that terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant art and this application, and will not be interpreted as having an idealized or overly formal meaning unless expressly defined as such herein.
[0021] Although the data security protection method of the embodiment of the present application is proposed based on the problems existing in the processing of ODU frames in the OTN using the AES algorithm, the data security protection method of the embodiment of the present application is also applicable to data processing of other frame structures.
[0022] FIG1 is a flow chart of a data security protection method provided in an embodiment of the present application.
[0023] Referring to Figure 1 , an embodiment of the present application provides a data security protection method that can be applied to devices using a fixed frame structure, such as optical transport network (OTN) devices, passive optical network (PON) devices, and virtual channel (VC) devices. The method includes the following steps 100 to 102.
[0024] In step 100, the business data of m businesses are segmented according to the minimum business parallelism supported to obtain segmented data units, and the number of channels required to process the m businesses is determined, where m is an integer greater than or equal to 1.
[0025] In some exemplary embodiments, the service data may be a data frame to be sent, or a received data frame, or data to be stored.
[0026] In some exemplary embodiments, when the business data is a data frame to be sent, the data in the payload area of the data frame is plain text; when the business data is a received data frame, the data in the payload area of the data frame is cipher text; when the business data is data to be stored, the data to be stored is plain text.
[0027] In some exemplary embodiments, the data frame may be a data frame in any format, for example, an ODU data frame as shown in Figure 2. As shown in Figure 2, the ODU data frame includes 4 rows, each row includes 3824 bytes, the first 16 bytes are overhead, and the remaining bytes are payload area.
[0028] In some exemplary embodiments, the business data of m businesses are segmented according to the minimum business parallelism supported to obtain segmented data units, and the number of channels required to process the m businesses (i.e., step 100) is determined, including: determining the segmentation unit according to the minimum business parallelism supported, segmenting the business data of the m businesses according to the segmentation unit to obtain segmented data units, wherein the length of the segmented data unit is less than or equal to the length of the segmentation unit; and determining the number of channels required to process the m businesses according to the segmentation unit and the total bandwidth parallelism of the m businesses.
[0029] In some exemplary embodiments, determining the split unit according to the minimum business parallelism supported includes: determining the split unit to be P×k, where P is the base length, D min is the minimum business parallelism supported, symbol Indicates rounding up.
[0030] In some exemplary embodiments, P is 128 bits.
[0031] In some exemplary embodiments, determining the number of channels required to process the m services according to the slicing unit and the total bandwidth parallelism of the m services includes: determining the number of channels required to process the m services as n, Among them, D total is the total bandwidth parallelism, and P×k is the partitioning unit.
[0032] In some exemplary embodiments, the number of bits included in the data frame is an integer multiple of the product of the length of the segmentation unit and n.
[0033] Step 101: Map the divided data units of m services to the channels corresponding to the respective services in sequence.
[0034] In some exemplary embodiments, different services are mapped to different channels.
[0035] In some exemplary embodiments, different split data units of the same service are sequentially mapped to at least one channel in the order of scheduling time, and the amount of data mapped to the channel each time is the amount of data of the split data units.
[0036] Step 102: For each service, the key corresponding to the service is used to encrypt or decrypt the segmented data units mapped to the channel corresponding to the service.
[0037] In some exemplary embodiments, encrypting or decrypting the segmented data units mapped to the channel corresponding to the business using the key corresponding to the business (i.e., step 102) includes: caching the segmented data units mapped to the channel corresponding to the business in a cache area corresponding to the channel; and encrypting or decrypting the data cached in the cache area using the key corresponding to the business.
[0038] In some exemplary embodiments, each channel corresponds to a cache area, so that each time the split data unit is mapped to the channel, the cache area can be reused.
[0039] In some exemplary embodiments, using the key corresponding to the business to encrypt or decrypt the split data units mapped to the channel corresponding to the business (i.e., step 102) includes: determining the first operator corresponding to the payload data in the split data units mapped to the channel corresponding to the business, and using the key corresponding to the business and the first operator to encrypt or decrypt the payload data.
[0040] In some exemplary embodiments, when determining the first operator corresponding to the payload data in the split data unit mapped to the channel corresponding to the business, before mapping the split data units of m businesses to the channels corresponding to each business in sequence (i.e., step 101), the operator corresponding to each beat of data in the business data of the business is determined, and then each time the split data unit of the business is mapped to the channel corresponding to the business, the first operator corresponding to the payload data in the split data unit mapped to the channel corresponding to the business is determined according to the operator corresponding to each beat of data in the business data of the business.
[0041] In some exemplary embodiments, when the j-th beat data in the business data of the ith business is overhead data, the operator corresponding to the j-th beat data in the business data of the ith business is determined according to the formula CB1[i][j]=CB1[i][j-1]; when the j-th beat data in the business data of the ith business is payload data, the operator corresponding to the j-th beat data in the business data of the ith business is determined according to the formula CB1[i][j]=CB1[i][j-1]+pl_cnt1[i], wherein CB1[i][j] is the operator corresponding to the j-th beat data in the business data of the ith business, CB1[i][j-1] is the operator corresponding to the j-1-th beat data in the business data of the ith business, and pl_cnt1[i] is the first step length value corresponding to the ith business.
[0042] In some exemplary embodiments, the length of one beat of data is a basic length P.
[0043] In some exemplary embodiments, when j=1, CB1[i][1] is the value corresponding to the i-th service in the configured initial vector.
[0044] In some exemplary embodiments, after obtaining the operator corresponding to each beat of data in the service data of a service, the first operator corresponding to the payload data can be determined based on the beat number of the payload data in the service data. For example, assuming that the payload data of service 1 in the split data unit mapped to channel 1 is located in the 10th beat of the service data of service 1, the operator corresponding to the 10th beat of data can be directly obtained from the operators corresponding to each beat of data in the service data of service 1.
[0045] In some exemplary embodiments, determining a first operator corresponding to payload data in a split data unit mapped to a channel corresponding to a service includes determining the first operator based on a second operator corresponding to a previous beat of the payload data and a first step length value.
[0046] In some exemplary embodiments, determining the first operator based on the second operator corresponding to the previous beat data of the payload data and the first step length value includes: determining the first operator according to the formula CB1[i][j]=CB1[i][j-1]+pl_cnt1[i], wherein CB1[i][j] is the operator corresponding to the j-th beat data in the business data of the i-th business (i.e., the first operator), CB1[i][j-1] is the operator corresponding to the j-1-th beat data in the business data of the i-th business (i.e., the second operator), and pl_cnt1[i] is the first step length value corresponding to the i-th business.
[0047] In some exemplary embodiments, determining the first operator corresponding to the payload data in the split data unit mapped to the channel corresponding to the service includes at least one of the following: when the number of channels corresponding to the service is 1, determining the first operator based on the second operator corresponding to the previous beat data of the payload data and the first step length value; when the number of channels corresponding to the service is greater than or equal to 2, and the split data unit currently mapped to the current channel corresponding to the service includes overhead data, determining the first operator corresponding to the payload data preceding the overhead data in the split data unit currently mapped to the current channel corresponding to the service based on the third operator corresponding to the previous beat data of the split data unit currently mapped to the current channel corresponding to the service and the second step length value. The method further comprises the following steps: determining a first operator corresponding to the payload data following the overhead data in the split data unit currently mapped to the current channel corresponding to the service, according to the third operator corresponding to the previous beat data of the split data unit currently mapped to the current channel corresponding to the service, the second step value and the step adjustment value; when the number of channels corresponding to the service is greater than or equal to 2 and the split data unit last mapped to other channels corresponding to the service includes overhead data, determining a first operator corresponding to the payload data in the split data unit currently mapped to the current channel corresponding to the service, according to the third operator corresponding to the previous beat data of the split data unit currently mapped to the current channel corresponding to the service, the second step value and the step adjustment value.
[0048] In some exemplary embodiments, the third operator corresponding to the previous beat of data of the split data unit currently mapped to the current channel corresponding to the service refers to: among all the split data units mapped to the current channel corresponding to the service, the third operator corresponding to the previous beat of data of the split data unit currently mapped to the current channel corresponding to the service. The previous beat of data of the split data unit currently mapped to the current channel corresponding to the service refers to: the last beat of data of the split data unit that was last mapped to the current channel corresponding to the service.
[0049] In some exemplary embodiments, when the split data unit mapped to the channel corresponding to the service includes overhead data, the overhead data may be located before or after the payload data. For example, the split data unit mapped to the channel corresponding to the service includes three beats of data, the first beat of data is payload data, the second beat of data is overhead data, and the third beat of data is payload data.
[0050] In some exemplary embodiments, determining the first operator corresponding to the payload data preceding the overhead data in the split data unit currently mapped to the current channel corresponding to the service based on the third operator corresponding to the previous beat data of the split data unit currently mapped to the current channel corresponding to the service includes: determining the first operator corresponding to the payload data preceding the overhead data according to the formula CB2[i][p]=CB2[i][p-1]+pl_cnt2[i], wherein CB2[i][p] is the operator corresponding to the p-th beat data in the split data unit mapped to the current channel corresponding to the i-th service (i.e., the first operator corresponding to the payload data preceding the overhead data), CB2[i][p-1] is the operator corresponding to the p-1-th beat data in the split data unit mapped to the current channel corresponding to the i-th service (i.e., the third operator), and pl_cnt2[i] is the second step value corresponding to the i-th service.
[0051] In some exemplary embodiments, assuming that the current channel is the a-th channel, the i-th service is mapped to a total of b channels, and the current mapping is the c-th time, then the p-th beat data in the split data unit in the current channel corresponding to the i-th service is any beat data from the k×b×(c-1)+(a-1)×k+1-th beat data to the k×b×(c-1)+(a-1)×k+k-th beat data in the service data of the i-th service. D min is the minimum business parallelism supported, P is the basic length, and the symbol Indicates rounding up.
[0052] In some exemplary embodiments, pl_cnt2[i]=pl_cnt1[i]+k×b.
[0053] In some exemplary embodiments, determining the first operator corresponding to the payload data following the overhead data in the split data unit currently mapped to the current channel corresponding to the service according to the third operator corresponding to the previous beat data of the split data unit currently mapped to the current channel corresponding to the service, the second step value, and the step adjustment value includes: determining the first operator corresponding to the payload data following the overhead data according to the formula CB3[i][p]=CB3[i][p-1]+pl_cnt2[i]+pl_cnt_adj[i], wherein In the figure, CB3[i][p] is the operator corresponding to the p-th beat of data in the split data unit mapped to the current channel corresponding to the i-th service (i.e., the first operator corresponding to the payload data located after the overhead data), CB3[i][p-1] is the operator corresponding to the p-1-th beat of data in the split data unit mapped to the current channel corresponding to the i-th service (i.e., the third operator), pl_cnt2[i] is the second step value corresponding to the i-th service, and pl_cnt_adj[i] is the step adjustment value corresponding to the i-th service.
[0054] In some exemplary embodiments, pl_cnt_adj[i] is the product of the ratio of the overhead data between two adjacent beats of payload data to the basic length P and -1.
[0055] In some exemplary embodiments, encrypting or decrypting payload data using a key corresponding to the service and a first operator includes: encrypting the first operator using a key corresponding to the service; and performing an XOR operation on the encrypted first operator and the payload data.
[0056] In some exemplary embodiments, when the payload data is plain text, the payload data after the XOR operation is cipher text; when the payload data is cipher text, the payload data after the XOR operation is plain text.
[0057] In some exemplary embodiments, after encrypting or decrypting the segmented data units mapped to the channel corresponding to the business using the key corresponding to the business for each business (i.e., step 102), the method further includes: sending the encrypted business data; or, restoring the business data of the business based on the decrypted business data; or, storing the encrypted or decrypted business data.
[0058] The data security protection method provided in the embodiments of the present application divides the business data of m businesses based on the minimum business parallelism supported, determines the required number of channels n, and then maps the divided data units of the m businesses to the channels corresponding to each business in sequence. Finally, the data units mapped to the n channels are encrypted or decrypted in parallel. This processing process is applicable to businesses with any degree of parallelism, and does not require separate processing for businesses with different degrees of parallelism. This achieves the reuse of processing resources, effectively reduces encryption logic or decryption logic, algorithm hardware resources, and cache resources, and improves data processing efficiency.
[0059] In order to more clearly present the data security protection method of the embodiment of the present application, examples are listed below for illustration. The listed examples are not used to limit the protection scope of the embodiment of the present application.
[0060] This example describes the data processing method when the supported bandwidth range is 100G to 400G and the supported parallelism range is 256 bits to 1024 bits.
[0061] In this example, the business data of m services with a total bandwidth of 400G need to be encrypted or decrypted. The specific processing process is as follows.
[0062] Step 1: Channel segmentation
[0063] In this example, the minimum supported business parallelism D min =256bit, total bandwidth parallelism D of m services total =1024bit, basic length P = 128bit. Number of channels Therefore, four channels are required, each channel processes business data with a bit width of 256 bits. Each channel contains two sets of operator generation logic with a parallelism of 128 bits and AES encryption algorithm resources or AES decryption algorithm resources.
[0064] A mixed scenario of two 100G services and one 200G service is divided into four channels (as shown in Table 1). Each 100G service's service data is mapped to one channel, and each 200G service's service data is mapped to two channels. In the 200G data unit [511:256], it represents channel 1, and the data unit [255:0] represents channel 2. Configure four channel information fields (mode[1..4]); x represents the service number, y represents the total number of channels, and z represents the channel sequence number. Configure the initialization vector (IV[1..4]) and the secret key (Key[1..4].
[0065] Table 1
[0066] Step 2: Implement encryption or decryption within the channel
[0067] The parallelism within each channel is 2 × 128 bits. The initial value pl_ini[1..4], step value pl_cnt[1..4], and step adjustment value pl_cnt_adj[1..4] for that channel are generated based on the values of y and z (Table 1). Operator CB[i] is generated based on the location of the payload and overhead data. AES encryption is performed on operator CB[i] according to the NIST.FIPS.197 standard. Depending on the initial key length, 10 to 14 rounds of encryption / decryption are performed. The encrypted result is XORed with the payload data within the channel, generating 2 × 128 bits of ciphertext or plaintext for each channel.
[0068] Step 3: Channel recovery
[0069] In the 2×100G and 200G mixed scenario (Table 1), channel 1 recovers the service with service number 1, channel 2 recovers the service with service number 2, and channels 3 and 4 are spliced in ascending order of z value, {channel 3[255:0], channel 4[255:0]} is spliced into 512 bits, and the service with service number 3 is recovered.
[0070] Step 4: Scene Switching
[0071] When the scenario switches to a mixed scenario with one 200G service and two 100G services, the parameter configuration is shown in Table 2. The original four channel resources are reused, and encryption or decryption is completed within each channel according to the current configuration. When the scenario switches to a 400G service, the parameter configuration is shown in Table 3. The original four channel resources can also be reused.
[0072] In summary, when the scene switches, by switching the channel configuration and dynamically allocating the channels occupied by each business, the operator generation logic and encryption algorithm logic resources or decryption algorithm logic resources in multiple channels can be reused.
[0073] Table 2
[0074] Table 3
[0075] Referring to Figure 3 , another embodiment of the present application provides an electronic device. This electronic device may be a device using a fixed frame structure. For example, it may be an OTN device, a PON device, a VC device, or the like. The electronic device includes: at least one processor 301; and a memory 302 storing at least one program. When the at least one program is executed by the at least one processor 301, the data security protection method according to various embodiments of the present application is implemented.
[0076] In some exemplary embodiments, the electronic device further includes: one or more I / O interfaces 303 connected between the processor 301 and the memory 302 , and configured to implement information interaction between the processor 301 and the memory 302 .
[0077] The processor 301 is a device with data processing capabilities, including but not limited to a central processing unit (CPU); the memory 302 is a device with data storage capabilities, including but not limited to random access memory (RAM, more specifically SDRAM, DDR, etc.), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), and flash memory (FLASH); the I / O interface (read-write interface) 303 is connected between the processor 301 and the memory 302, and can realize information exchange between the processor 301 and the memory 502, including but not limited to a data bus (Bus), etc.
[0078] In some embodiments, the processor 301 , the memory 302 , and the I / O interface 303 are connected to each other via a bus 304 , and further connected to other components of the computing device.
[0079] Another embodiment of the present application provides a computer-readable medium having a computer program stored thereon. When the computer program is executed by a processor, the data security protection method according to each embodiment of the present application is executed.
[0080] FIG4 is a block diagram of the composition of the data security protection device provided in an embodiment of the present application.
[0081] 4 , the present application provides a data security protection device, which may be a device using a fixed frame structure. For example, any one of an OTN device, a PON device, a VC device, etc. The data security protection device includes: a determination division module 401, which is used to divide the service data of m services according to the minimum service parallelism supported to obtain divided data units, and to determine the number of channels required to process m services, where m is an integer greater than or equal to 1; a mapping module 402, which is used to map the divided data units of the m services to the channels corresponding to each service in sequence; an encryption and decryption processing module 403, which is used to encrypt or decrypt the divided data units mapped to the channels corresponding to the service for each service using the key corresponding to the service.
[0082] In some exemplary embodiments, the partitioning module 401 is used to: determine a splitting unit based on the minimum business parallelism supported, split the business data of the m businesses according to the splitting unit to obtain split data units, wherein the length of the split data unit is less than or equal to the length of the splitting unit; determine the number of channels required to process the m businesses based on the splitting unit and the total bandwidth parallelism of the m businesses.
[0083] In some exemplary embodiments, the determining division module 401 is used to: determine the division unit as P×k, where P is the basic length, D min is the minimum business parallelism currently supported, symbol Indicates rounding up.
[0084] In some exemplary embodiments, the determination division module 401 is configured to: determine the number of channels required to process m services as n, Among them, D total is the total bandwidth parallelism, and P×k is the partitioning unit.
[0085] In some exemplary embodiments, the encryption and decryption processing module 403 is used to: determine the first operator corresponding to the payload data in the split data unit mapped to the channel corresponding to the business, and use the key corresponding to the business and the first operator to encrypt or decrypt the payload data.
[0086] In some exemplary embodiments, the encryption / decryption processing module 403 is configured to determine the first operator according to the second operator corresponding to the previous beat of the payload data and the first step length value.
[0087] In some exemplary embodiments, the encryption and decryption processing module 403 is used to determine the first operator according to the formula CB1[i][j]=CB1[i][j-1]+pl_cnt1[i], wherein CB1[i][j] is the operator corresponding to the j-th beat data in the business data of the i-th business (i.e., the first operator), CB1[i][j-1] is the operator corresponding to the j-1-th beat data in the business data of the i-th business (i.e., the second operator), and pl_cnt1[i] is the first step length value corresponding to the i-th business.
[0088] In some exemplary embodiments, the encryption and decryption processing module 403 is used to: when the number of channels corresponding to the service is 1, determine the first operator according to the second operator corresponding to the previous beat data of the payload data and the first step length value; when the number of channels corresponding to the service is greater than or equal to 2, and the split data unit currently mapped to the current channel corresponding to the service includes overhead data, determine the first operator corresponding to the payload data located before the overhead data in the split data unit currently mapped to the current channel corresponding to the service according to the third operator and the second step length value corresponding to the previous beat data of the split data unit currently mapped to the current channel corresponding to the service, and ... The first operator corresponding to the payload data after the overhead data in the split data unit currently mapped to the current channel corresponding to the service is determined based on the third operator, second step value and step adjustment value corresponding to the previous beat data of the split data unit in the current channel corresponding to the service; when the number of channels corresponding to the service is greater than or equal to 2 and the split data unit last mapped to other channels corresponding to the service includes overhead data, the first operator corresponding to the payload data in the split data unit currently mapped to the current channel corresponding to the service is determined based on the third operator, second step value and step adjustment value corresponding to the previous beat data of the split data unit currently mapped to the current channel corresponding to the service.
[0089] In some exemplary embodiments, the encryption and decryption processing module 403 is used to determine the first operator corresponding to the payload data located before the overhead data according to the formula CB2[i][p]=CB2[i][p-1]+pl_cnt2[i], wherein CB2[i][p] is the operator corresponding to the p-th beat data in the split data unit mapped to the current channel corresponding to the i-th business (i.e., the first operator corresponding to the payload data located before the overhead data), CB2[i][p-1] is the operator corresponding to the p-1-th beat data in the split data unit mapped to the current channel corresponding to the i-th business (i.e., the third operator), and pl_cnt2[i] is the second step value corresponding to the i-th business.
[0090] In some exemplary embodiments, the encryption and decryption processing module 403 is used to determine the first operator corresponding to the payload data located after the overhead data according to the formula CB3[i][p]=CB3[i][p-1]+pl_cnt2[i]+pl_cnt_adj[i], wherein CB3[i][p] is the operator corresponding to the p-th beat data in the split data unit mapped to the current channel corresponding to the i-th business (that is, the first operator corresponding to the payload data located after the overhead data), CB3[i][p-1] is the operator corresponding to the p-1-th beat data in the split data unit mapped to the current channel corresponding to the i-th business (that is, the third operator), pl_cnt2[i] is the second step value corresponding to the i-th business, and pl_cnt_adj[i] is the step adjustment value corresponding to the i-th business.
[0091] In some exemplary embodiments, the encryption / decryption processing module 403 is configured to: encrypt the first operator using a key corresponding to the service; and perform an XOR operation on the encrypted first operator and the payload data.
[0092] The specific implementation process of the above-mentioned data security protection device is the same as the specific implementation process of the data security protection method of the aforementioned embodiment, and will not be repeated here.
[0093] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or temporary medium). As is well known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable, and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, as is well known to those skilled in the art, communication media typically embodies computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0094] Example embodiments have been disclosed herein, and although specific terms are employed, they are used and should be interpreted only in a general illustrative sense and not for purposes of limitation. In some instances, it will be apparent to those skilled in the art that, unless otherwise expressly indicated, features, characteristics, and / or elements described in conjunction with a particular embodiment may be used alone or in combination with features, characteristics, and / or elements described in conjunction with other embodiments. Therefore, it will be understood by those skilled in the art that various changes in form and detail may be made without departing from the scope of the present application as set forth in the appended claims.
Claims
1. A data security protection method, comprising: The business data of the m businesses are segmented according to the minimum business parallelism supported to obtain segmented data units, and the number of channels required to process the m businesses is determined, where m is an integer greater than or equal to 1; Map the segmented data units of the m services to the channels corresponding to the services in sequence; For each service, the key corresponding to the service is used to perform encryption or decryption on the segmented data units mapped to the channel corresponding to the service.
2. The data security protection method according to claim 1, wherein: The business data of m businesses are segmented according to the minimum business parallelism supported to obtain segmented data units, and the number of channels required to process the m businesses is determined, including: Determine a segmentation unit according to the minimum service parallelism supported, and segment the service data of the m services according to the segmentation unit to obtain the segmented data unit, wherein the length of the segmented data unit is less than or equal to the length of the segmentation unit; The number of channels required to process the m services is determined according to the segmentation unit and the total bandwidth parallelism of the m services.
3. The data security protection method according to claim 2, wherein: The split units are determined based on the minimum business parallelism supported, including: Determine the segmentation unit as P×k, where P is the basic length, D min The minimum business parallelism supported.
4. The data security protection method according to claim 2, wherein: Determining the number of channels required for processing m services according to the segmentation unit and the total bandwidth parallelism of the m services includes: Determine the number of channels required to process m services as n, Among them, D total is the total bandwidth parallelism, P×k is the segmentation unit, P is the basic length, D min The minimum business parallelism supported.
5. The data security protection method according to claim 1, wherein: Using the key corresponding to the service to perform encryption or decryption on the segmented data units mapped to the channel corresponding to the service includes: Cache the segmented data units mapped to the channel corresponding to the service in a cache area corresponding to the channel; The key corresponding to the service is used to encrypt or decrypt the data cached in the cache area.
6. The data security protection method according to claim 1, wherein: Using the key corresponding to the service to perform encryption or decryption on the segmented data units mapped to the channel corresponding to the service includes: A first operator corresponding to the payload data in the segmented data unit mapped to the channel corresponding to the service is determined, and the payload data is encrypted or decrypted using a key corresponding to the service and the first operator.
7. The data security protection method according to claim 6, wherein: Determining a first operator corresponding to the payload data in the split data unit mapped to the channel corresponding to the service includes: The first operator is determined according to the second operator corresponding to the previous beat data of the payload data and the first step length value.
8. The data security protection method according to claim 7, wherein: Determining the first operator according to the second operator corresponding to the previous beat data of the payload data and the first step length value includes: The first operator is determined according to the formula CB1[i][j]=CB1[i][j-1]+pl_cnt1[i], Among them, CB1[i][j] is the operator corresponding to the j-th data in the business data of the i-th business, that is, the first operator, CB1[i][j-1] is the business data of the i-th business The operator corresponding to the j-1th beat of data, that is, the second operator, pl_cnt1[i] is the first step length value corresponding to the i-th business.
9. The data security protection method according to claim 6, wherein: Determining a first operator corresponding to the payload data in the split data unit mapped to the channel corresponding to the service includes at least one of the following: When the number of channels corresponding to the service is 1, determining the first operator according to the second operator corresponding to the previous beat data of the payload data and the first step length value; In the case where the number of channels corresponding to the service is greater than or equal to 2, and the split data unit currently mapped to the current channel corresponding to the service includes overhead data, a first operator corresponding to the payload data before the overhead data in the split data unit currently mapped to the current channel corresponding to the service is determined according to the third operator and the second step value corresponding to the previous beat data of the split data unit currently mapped to the current channel corresponding to the service, and a first operator corresponding to the payload data after the overhead data in the split data unit currently mapped to the current channel corresponding to the service is determined according to the third operator, the second step value and the step adjustment value corresponding to the previous beat data of the split data unit currently mapped to the current channel corresponding to the service; When the number of channels corresponding to the service is greater than or equal to 2, and the split data unit last mapped to other channels corresponding to the service includes overhead data, the first operator corresponding to the payload data in the split data unit currently mapped to the current channel corresponding to the service is determined according to the third operator corresponding to the previous beat data of the split data unit currently mapped to the current channel corresponding to the service, the second step value and the step adjustment value.
10. The data security protection method according to claim 9, wherein: Determining, according to the third operator corresponding to the previous beat data of the split data unit currently mapped to the current channel corresponding to the service and the second step value, the first operator corresponding to the payload data located before the overhead data in the split data unit currently mapped to the current channel corresponding to the service includes: According to the formula CB2[i][p]=CB2[i][p-1]+pl_cnt2[i], the overhead data is determined. The first operator corresponding to the previous payload data, Among them, CB2[i][p] is the operator corresponding to the p-th beat data in the split data unit mapped to the current channel corresponding to the i-th service, that is, the first operator corresponding to the payload data located before the overhead data, CB2[i][p-1] is the operator corresponding to the p-1-th beat data in the split data unit mapped to the current channel corresponding to the i-th service, that is, the third operator, and pl_cnt2[i] is the second step value corresponding to the i-th service.
11. The data security protection method according to claim 9, wherein: Determining, according to the third operator corresponding to the previous beat data of the split data unit currently mapped to the current channel corresponding to the service, the second step value and the step adjustment value, the first operator corresponding to the payload data located after the overhead data in the split data unit currently mapped to the current channel corresponding to the service includes: Determine the first operator corresponding to the payload data following the overhead data according to the formula CB3[i][p]=CB3[i][p-1]+pl_cnt2[i]+pl_cnt_adj[i], Among them, CB3[i][p] is the operator corresponding to the p-th beat data in the split data unit mapped to the current channel corresponding to the i-th service, that is, the first operator corresponding to the payload data located after the overhead data, CB3[i][p-1] is the operator corresponding to the p-1-th beat data in the split data unit mapped to the current channel corresponding to the i-th service, that is, the third operator, pl_cnt2[i] is the second step value corresponding to the i-th service, and pl_cnt_adj[i] is the step adjustment value corresponding to the i-th service.
12. The data security protection method according to claim 6, wherein: Using the key corresponding to the service and the first operator to perform encryption or decryption on the payload data includes: Encrypting the first operator using a key corresponding to the service; An XOR operation is performed on the encrypted first operator and the payload data.
13. An electronic device comprising: at least one processor; A memory having at least one program stored therein, when the at least one When the program is executed by the at least one processor, the data security protection method described in any one of claims 1 to 12 is executed.
14. A computer-readable medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the data security protection method according to any one of claims 1 to 12 is executed.
15. A data security protection device, comprising: Determine a partitioning module, which is used to partition the business data of m businesses according to the minimum business parallelism supported to obtain partitioned data units, and determine the number of channels required to process the m businesses, where m is an integer greater than or equal to 1; A mapping module, used to map the segmented data units of the m services to the channels corresponding to the respective services in sequence; The encryption and decryption processing module is used to encrypt or decrypt the divided data units mapped to the channel corresponding to each service using the key corresponding to the service.
Citation Information
Patent Citations
Resizing existing traffic flow in optical transport network
CN103891222A
Cell sequence preserving method and device
CN107241156A
Method, device and equipment for safely transporting multiple services in optical transport network
CN108667526A
Service processing method and processing device in optical transport network, and electronic equipment
CN112511917A
