Data transmission method and device, electronic equipment and storage medium

By acquiring and encrypting cells in the ATM network, using a separate key of the virtual connection to encrypt and transmit user data, the problem of insufficient data transmission security in the ATM network is solved, and the security of data transmission is significantly improved.

CN119071064AActive Publication Date: 2024-12-03CHINA CONSTRUCTION BANK +1
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202411181989.0
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

The existing ATM network lacks effective security measures during data transmission, resulting in a higher risk of data being vulnerable to attacks and leaks during data transmission.

Method used

By obtaining the original cell and determining whether it is a cell to be encrypted, the target virtual connection is determined from multiple virtual connections based on the routing information in the cell header, the target virtual connection key is obtained, and the user data is encrypted and transmitted. Ensure that each virtual connection uses a separate key to improve the security of data transmission.

Benefits of technology

It realizes that each virtual connection uses a separate key. Even if the encryption cell is cracked, it only affects the data on the virtual connection, which significantly improves the security of data transmission and prevents the impact of the key being cracked on other virtual connections.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119071064A_ABST
    Figure CN119071064A_ABST
Patent Text Reader

Abstract

The invention provides a data transmission method and device, electronic equipment and a storage medium, and relates to the technical field of data security, and the method comprises the steps: obtaining an original cell, and determining whether the original cell is a to-be-encrypted cell or not; in response to determining that the original cell is a cell to be encrypted, determining a target virtual connection used for transmitting the original cell from the plurality of virtual connections according to routing information in a cell header of the original cell; wherein the payload of the original cell carries user data; acquiring a key corresponding to the target virtual connection; wherein different virtual connections in the plurality of virtual connections have independent keys; according to a key corresponding to the target virtual connection, encrypting user data in the original cell to obtain an encrypted cell; and sending the encrypted cell to a receiving end. In the method, each virtual connection uses an independent secret key, even if one secret key is cracked, only an encrypted cell using the secret key is influenced, and cells on other virtual connections are not influenced, so that the security of data transmission can be remarkably improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data security technology, and in particular to a data transmission method, device, electronic device and storage medium. Background Art

[0002] Asynchronous Transfer Mode (ATM) network is a core technology for implementing broadband integrated services digital network services. ATM is a connection-oriented transmission mode. ATM network performs packet switching and multiplexing based on cells.

[0003] When a software system is connected to an external system or a user logs in to the software system through the network, the ATM network can be used to transmit data. Especially for software systems that are data-intensive, data security is very important. Therefore, how to improve the security of ATM network data transmission is an urgent problem to be solved. Summary of the invention

[0004] The present application aims to solve one of the technical problems in the related art at least to some extent.

[0005] To this end, the first objective of the present application is to propose a data transmission method to improve the security of data transmission.

[0006] The second objective of the present application is to provide a data transmission device.

[0007] The third objective of the present application is to provide an electronic device.

[0008] A fourth objective of the present application is to provide a computer-readable storage medium.

[0009] A fifth object of the present application is to provide a computer program product.

[0010] To achieve the above-mentioned purpose, the first embodiment of the present application proposes a data transmission method, including:

[0011] Obtaining an original cell, and determining whether the original cell is a cell to be encrypted;

[0012] In response to determining that the original cell is a cell to be encrypted, determining a target virtual connection for transmitting the original cell from a plurality of virtual connections according to routing information in a cell header of the original cell; wherein the payload of the original cell carries user data;

[0013] Acquire a key corresponding to the target virtual connection; wherein different virtual connections among the multiple virtual connections have separate keys;

[0014] Encrypting the user data in the original cell according to the key corresponding to the target virtual connection to obtain an encrypted cell;

[0015] The encrypted information element is sent to a receiving end.

[0016] To achieve the above-mentioned purpose, the second aspect of the present application provides a data transmission device, including:

[0017] A first determination module, used to obtain an original cell and determine whether the original cell is a cell to be encrypted;

[0018] A second determination module, configured to determine, in response to determining that the original cell is a cell to be encrypted, a target virtual connection for transmitting the original cell from a plurality of virtual connections according to routing information in a cell header of the original cell; wherein the payload of the original cell carries user data;

[0019] A first acquisition module is used to acquire a key corresponding to the target virtual connection; wherein different virtual connections among the multiple virtual connections have separate keys;

[0020] An encryption module, used for encrypting the user data in the original cell according to the key corresponding to the target virtual connection to obtain an encrypted cell;

[0021] The sending module is used to send the encrypted information element to the receiving end.

[0022] To achieve the above-mentioned purpose, the third aspect of the present application provides an electronic device, including: a processor, and a memory communicatively connected to the processor;

[0023] The memory stores computer-executable instructions;

[0024] The processor executes the computer-executable instructions stored in the memory to implement the method as described in the embodiment of the first aspect.

[0025] To achieve the above-mentioned purpose, the fourth aspect embodiment of the present application proposes a computer-readable storage medium, in which computer execution instructions are stored. When the computer execution instructions are executed by a processor, they are used to implement the method described in the first aspect embodiment.

[0026] To achieve the above-mentioned purpose, the fifth aspect of the present application proposes a computer program product, including a computer program, which implements the method described in the first aspect when executed by a processor.

[0027] The data transmission method, device, electronic device and storage medium provided by the present application, when determining that the original cell is the cell to be encrypted, according to the routing information in the original cell, determine the target virtual connection for transmitting the original cell from multiple virtual connections, because different virtual connections in the multiple virtual connections have separate keys, the key corresponding to the target virtual connection can be obtained, and the user data carried by the payload in the original cell can be encrypted using the key corresponding to the target virtual connection, and then the encrypted cell is sent to the receiving end to transmit the user data to the receiving end. Thus, different virtual connections have separate keys, and the key corresponding to each virtual connection can be used to encrypt the cell to be encrypted to be transmitted on the virtual connection, so that each virtual connection uses a separate key, and even if a key is cracked, it only affects the encrypted cell using the key, and does not affect the cells on other virtual connections, which can significantly improve the security of data transmission.

[0028] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0030] Figure 1 A flowchart of a data transmission method provided in an embodiment of the present application;

[0031] Figure 2 A flowchart of another data transmission method provided in an embodiment of the present application

[0032] Figure 3 A flowchart of another data transmission method provided in an embodiment of the present application;

[0033] Figure 4 A flowchart of a method for obtaining user data provided by an embodiment of the present application;

[0034] Figure 5 A schematic diagram of data flow in an ATM security subsystem provided in an embodiment of the present application;

[0035] Figure 6 A schematic diagram of the structure of a data transmission device provided in an embodiment of the present application;

[0036] Figure 7 It is a schematic structural diagram of an electronic device shown in an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION

[0037] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.

[0038] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.

[0039] The data acquisition, transmission, storage, use, and processing in the technical solution of this application are in compliance with the provisions of national laws and regulations.

[0040] It should be noted that in the embodiments of the present application, certain software, components, models and other existing solutions in the industry may be mentioned, and they should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.

[0041] The data transmission method and device according to the embodiments of the present application are described below with reference to the accompanying drawings.

[0042] A cell is the basic transmission unit in an ATM network. A cell includes a cell header and a payload. The cell header includes fields such as Virtual Path Identifier (VPI), Virtual Channel Identifier (VCI), payload type, and cell loss priority. The payload is used to carry data, such as user data, operation information, and control information. Among them, VPI is used to identify different virtual paths in an ATM network, and VCI is used to further distinguish different virtual channels within the same virtual path. A virtual channel is a logical connection.

[0043] A virtual channel is a logical connection in an ATM network, used to establish a path between multiple switching nodes, which can carry multiple virtual channels. A physical link can reuse multiple virtual channels, thereby improving the transmission efficiency of the network. A virtual channel is a more fine-grained logical connection built on a virtual channel, used to transmit specific cell flows in an ATM network.

[0044] Figure 1 A flowchart of a data transmission method provided in an embodiment of the present application.

[0045] Exemplarily, the data transmission method of the embodiment of the present application can be executed by a sending end with encryption function, or by an encryption device connected to the sending end, without limitation.

[0046] like Figure 1 As shown, the data transmission method includes the following steps:

[0047] Step 101, obtain an original cell and determine whether the original cell is a cell to be encrypted.

[0048] Exemplarily, the original cell may be a cell directly encapsulated by a transmitter with encryption function according to information to be transmitted, or a cell received by an encryption device from the transmitter.

[0049] Exemplarily, the cell header of the original cell may be parsed to obtain the values ​​of fields such as VPI, VCI, and payload type, and the type of the original cell may be determined according to the values ​​of the fields such as VPI, VCI, and payload type, and whether the original cell is a cell to be encrypted may be determined according to the type of the original cell. The cell to be encrypted may refer to a cell whose payload carries user data.

[0050] For example, the payload type can be used to indicate the type of data carried by the payload. If the value of the payload type field indicates that the data carried by the payload is user data, it can be determined that the type of the original cell is a data cell, and the original cell can be considered to be a cell to be encrypted. If the value of the payload type field indicates that the data carried by the payload is operation information, control information, etc., it can be determined that the type of the original cell is a signaling cell, and the original cell can be considered not to be an encrypted cell. If the value of the payload type field indicates operation administration and maintenance (OAM) information, it can be determined that the type of the original cell is an OAM cell, and the original cell can be considered not to be encrypted.

[0051] For example, the value of the VPI field and the value of the VCI field are specific values, indicating that the payload carries user data. If the value of the VPI field and the value of the VCI field in the original cell are the specific values, it can be determined that the original cell is a data cell, that is, a cell to be encrypted.

[0052] Step 102: In response to determining that the original cell is a cell to be encrypted, determine a target virtual connection for transmitting the original cell from a plurality of virtual connections according to routing information in a cell header of the original cell.

[0053] Exemplarily, the routing information in the cell header may include VPI and VCI, which together identify a virtual connection. There may be multiple virtual connections between two adjacent nodes. If the original cell is a cell to be encrypted, it means that the payload of the original cell carries user data. The target virtual connection for transmitting the original cell can be determined from multiple virtual connections based on the routing information in the cell header of the original cell. The target virtual connection can be understood as a virtual connection to be used to send the original cell to the next node.

[0054] Step 103: Obtain the key corresponding to the target virtual connection.

[0055] Exemplarily, different virtual connections among the multiple virtual connections have separate keys. Exemplarily, the key corresponding to each virtual connection may be fixed, or may be changed once every preset time period, which is not limited. Exemplarily, the preset time period may be set according to actual needs, or may be obtained according to the cell transmission rate, which is not limited.

[0056] Exemplarily, without considering the cell loss rate, the cell transmission rate can be obtained, and the synchronization period can be determined according to the cell transmission rate, and the synchronization period can be determined as a preset duration. Exemplarily, the synchronization period without considering the cell loss rate can be calculated by the following formula (1):

[0057]

[0058] Among them, T1 represents the synchronization period when the cell loss rate is not considered, and v0 represents the cell transmission rate. It can be seen that when the cell loss is not considered, the key change is synchronized with the cell transmission, that is, the key is changed once for each cell transmitted, and the key is quickly converted with different cells, that is, each destination address uses a unique key, which can further improve the security of data transmission.

[0059] Exemplarily, in the case of considering the cell loss rate, the cell transmission rate, the cell loss rate, and the quantitative relationship between the cell transmission rate and the cell loss rate are obtained, and the synchronization period is determined according to the cell transmission rate, the cell loss rate, and the quantitative relationship, and the synchronization period is determined as a preset duration. Exemplarily, the synchronization period when considering the cell loss rate can be calculated by the following formula (2):

[0060]

[0061] Wherein, T2 represents the synchronization period when the cell loss rate is considered, clr represents the cell loss rate, and p represents that the cell transmission rate v0 is p times the cell loss rate clr.

[0062] For example, the cell transmission rate is 10 times the cell loss rate, that is, p = 10. For a 155.52 Mbit / s connection, when the cell loss rate clr = 10 -6 The synchronization period is If the cell loss rate is not considered, the synchronization period is 0.27s×10 -6 ×10=2.7μs. Taking the synchronization period as the key change time interval, it can be seen that the key is changed every 0.27s when the cell loss rate is considered, and the key is changed every 2.7μs when the cell loss rate is not considered.

[0063] Exemplarily, a key library may be set up, in which a key corresponding to each virtual connection in a plurality of virtual connections is stored, and then the key library may be queried according to the target virtual connection to obtain the key corresponding to the target virtual connection from the key library. Exemplarily, the key corresponding to each virtual connection in the key library may be obtained according to the encryption algorithm corresponding to the virtual connection, and the encryption algorithms corresponding to different virtual connections may be the same or different, and the key corresponding to each virtual connection in the key library may be fixed or may be changed every preset time period.

[0064] Therefore, the key can be directly obtained from the key library according to the virtual connection corresponding to the information element to be encrypted, thereby improving the encryption efficiency.

[0065] Step 104: Encrypt the user data in the original cell according to the key corresponding to the target virtual connection to obtain an encrypted cell.

[0066] In this embodiment, the user data carried by the payload can be encrypted using the key corresponding to the target virtual connection, while the header of the cell is still transmitted in plain text. That is, the header of the encrypted cell is plain text, and the payload carries the encrypted user data.

[0067] Step 105: Send the encrypted information to the receiving end.

[0068] In this embodiment, the encrypted cell can be transmitted on the target virtual connection to be sent to the receiving end. Exemplarily, multiple encrypted cells can be merged into a high-speed cell stream and output via a physical port.

[0069] Taking the bank cash management system as an example, the bank cash management system is a data-intensive system, and data security is very important. When the bank cash management system is connected to an external system or a user logs in through the network, the ATM network can be used. The data transmission method of the embodiment of the present application can be used to encrypt and transmit data in the ATM network to improve the security of data transmission.

[0070] In the embodiment of the present application, when determining that the original cell is the cell to be encrypted, according to the routing information in the original cell, the target virtual connection for transmitting the original cell is determined from multiple virtual connections. Since different virtual connections in the multiple virtual connections have separate keys, the key corresponding to the target virtual connection can be obtained, and the user data carried by the payload in the original cell is encrypted using the key corresponding to the target virtual connection, and then the encrypted cell is sent to the receiving end to transmit the user data to the receiving end. Thus, different virtual connections have separate keys, and the key corresponding to each virtual connection can be used to encrypt the cell to be encrypted to be transmitted on the virtual connection, so that each virtual connection uses a separate key. Even if a key is cracked, it only affects the encrypted cell using the key, and does not affect the cells on other virtual connections, which can significantly improve the security of data transmission.

[0071] This embodiment provides another data transmission method. Figure 2 A flowchart of another data transmission method provided in an embodiment of the present application.

[0072] like Figure 2 As shown, the data transmission method may include the following steps:

[0073] Step 201, obtain an original cell and determine whether the original cell is a cell to be encrypted.

[0074] In the present application, step 201 can be implemented in any of the embodiments of the present application, so it will not be described in detail here.

[0075] Exemplarily, the data transmission method of this embodiment is executed by an encryption device, and a correspondence between a cell receiving port of the encryption device and a cell type can be established in advance, and cells of different cell types can be received through different cell receiving ports. Thus, the cell type corresponding to the port receiving the original cell can be determined by querying the correspondence based on the port receiving the original cell. Then, the cell type corresponding to the port receiving the original cell is the type of the original cell, and then, based on the type of the original cell, it is determined whether the original cell is a cell to be encrypted.

[0076] For example, if the type of the original cell is a data cell, it can be determined that the original cell is a cell to be encrypted; if the type of the original cell is a signaling cell or an OAM cell, etc., it can be determined that the original cell is not a cell to be encrypted.

[0077] Among them, signaling cells are cells used to transmit control information in ATM networks. Signaling cells are responsible for establishing, maintaining and releasing virtual connections, as well as performing other network control and management functions. The content of signaling cells usually includes control commands, status information, address information, etc., which are essential for the normal operation of the network. OAM cells are cells specifically used for network operation and maintenance. They transmit maintenance information in the network, such as link status, error detection, performance monitoring, etc. The existence of OAM cells helps network operators to promptly discover and solve problems in the network and improve network reliability and availability. OAM cells include synchronization cells, etc.

[0078] Therefore, the cell type corresponding to the port receiving the original cell can be determined according to the relationship between the cell receiving port and the cell type, thereby determining the type of the original cell. This method is not only simple and convenient, but also has a relatively high accuracy.

[0079] Step 202: In response to determining that the original cell is a cell to be encrypted, determine a target virtual connection for transmitting the original cell from a plurality of virtual connections according to routing information in a cell header of the original cell.

[0080] In the present application, step 202 can be implemented in any of the embodiments of the present application, so it will not be described in detail here.

[0081] Step 203: Obtain password parameters according to the routing information.

[0082] In this embodiment, if the original cell is a cell to be encrypted, the routing information in the original cell can also be used to specify the cryptographic parameters used in the original cell, where the cryptographic parameters can be used to indicate the encryption algorithm used to encrypt the original cell. The cryptographic parameters can be obtained based on the routing information, and the encryption algorithm to be used to encrypt the original cell can be determined based on the cryptographic parameters.

[0083] Step 204: Determine a target cryptographic path corresponding to the cryptographic parameter from multiple cryptographic paths according to the cryptographic parameter.

[0084] In this embodiment, multiple encryption algorithms can be supported. In order to avoid the abuse of encryption algorithms, multiple encryption algorithms can be divided by cryptographic paths. Exemplarily, multiple cryptographic paths can be provided, and different cryptographic paths correspond to different encryption algorithms, that is, one encryption algorithm can correspond to one cryptographic path, and any cryptographic path can include a hardware device that uses the encryption algorithm corresponding to the cryptographic path to complete encryption. For example, a cryptographic path can include a state vector memory, a communication encryption key memory, a cell processor, a key generator, and an encryptor, etc., which are hardware devices used for encryption using the encryption algorithm corresponding to the cryptographic path.

[0085] Since the cryptographic parameters are used to indicate the encryption algorithm used to encrypt the original information element, and each cryptographic path has a corresponding encryption algorithm, the cryptographic path corresponding to the encryption algorithm indicated by the cryptographic parameters can be determined from multiple cryptographic paths, and the cryptographic path can be determined as the target cryptographic path.

[0086] Step 205: route the original cell to the target cryptographic path, and use the key generator in the target cryptographic path to obtain the key corresponding to the target virtual connection.

[0087] In this embodiment, the original cell can be routed to the target cryptographic path, and the key corresponding to the target virtual connection can be obtained using the key generator in the target cryptographic path according to the encryption algorithm corresponding to the target cryptographic path. The key generator can refer to a hardware device for generating or matching keys.

[0088] For example, routing information includes VPI and VCI, VPI and VCI jointly identify a virtual connection, VPI and VCI can jointly specify cryptographic parameters, so that there can be a one-to-one relationship between the virtual connection and the cryptographic parameters, then based on the cryptographic path corresponding to the encryption algorithm specified by the cryptographic parameters in the original cell, the key corresponding to the target virtual connection can be obtained. In addition, the cryptographic parameters corresponding to different virtual connections can be the same or different, that is, the encryption algorithms corresponding to different virtual connections can be the same or different.

[0089] Step 206: Encrypt the user data in the original cell according to the key corresponding to the target virtual connection to obtain an encrypted cell.

[0090] In the present application, step 206 can be implemented in any of the embodiments of the present application, so it will not be described in detail here.

[0091] Step 207: Send the encrypted information to the receiving end.

[0092] In the present application, step 206 can be implemented in any of the embodiments of the present application, so it will not be described in detail here.

[0093] Exemplarily, the encrypted cells sent out by multiple cryptographic paths can be merged into a high-speed cell stream, sent out through a physical port, and then sent to a receiving end.

[0094] In order to ensure the quality of service, for example, the cells sent out by the cryptographic path can be queued in a first-in-first-out queue, and then assembled into SONET (or SDH) frames in the order of entering the first-in-first-out queue and sent to the I / O port. This solution is relatively simple and easy to implement.

[0095] Exemplarily, a buffer device may be provided at the end of each cryptographic path. If there are multiple encrypted cells, the multiple encrypted cells may be cached in the buffer devices corresponding to the corresponding target cryptographic paths respectively. The encrypted cells may be buffered according to the delay time of the target cryptographic path. Then, in the order from early to late when the multiple original cells are routed to the corresponding target cryptographic paths, the encrypted cells corresponding to the original cells may be obtained from the buffer devices corresponding to each original cell in turn to form a cell stream, and the cell stream may be sent to the receiving end.

[0096] In this embodiment, the original cell can be routed to the corresponding target cryptographic path, and then the original cell can be encrypted through the target cryptographic path to obtain an encrypted cell, and multiple encrypted cells are cached in the buffer devices corresponding to the corresponding target cryptographic paths, which refers to caching the encrypted cells in the buffer device at the tail device of the target cryptographic path to which the original cell is routed. In addition, the buffer device corresponding to each original cell can refer to the buffer device set at the tail of the target cryptographic path to which the original cell is routed.

[0097] It can be seen that a buffer device is set at the end of each cryptographic path, and different degrees of buffering processing can be performed according to the different delay times of the encryption algorithms corresponding to each cryptographic path, so that the output cell stream maintains the same cell order as the input, which can greatly reduce the delay jitter.

[0098] In an embodiment of the present application, the supported multiple encryption algorithms can be segmented using cryptographic paths so that different cryptographic paths correspond to different encryption algorithms, thereby realizing hardware segmentation of the multiple encryption algorithms. For the original datagram that needs to be encrypted, the target cryptographic path can be determined based on the cryptographic parameters specified by the routing information in the original datagram, and the original datagram can be routed to the corresponding cryptographic path to obtain the key corresponding to the target virtual connection. The original datagram can be encrypted using the key corresponding to the target virtual connection, which can not only improve the security of data transmission, but also prevent the abuse of the encryption algorithm and reduce the probability of errors in the encryption process.

[0099] This embodiment provides another data transmission method. Figure 3 A flowchart of another data transmission method provided in an embodiment of the present application.

[0100] like Figure 3 As shown, the data transmission method may include the following steps:

[0101] Step 301, obtain the original cell and determine whether the original cell is a cell to be encrypted.

[0102] In the present application, step 301 can be implemented in any of the embodiments of the present application, so it will not be described in detail here.

[0103] Step 302: In response to determining that the original cell is a cell to be encrypted, determine a target virtual connection for transmitting the original cell from a plurality of virtual connections according to routing information in a cell header of the original cell.

[0104] In the present application, step 302 can be implemented in any of the embodiments of the present application, so it will not be described in detail here.

[0105] Step 303: Obtain the corresponding relationship between the virtual connection and the cryptographic path.

[0106] Exemplarily, a correspondence between a virtual connection and a cryptographic path may be established in advance, for example, a VPI and a VCI may jointly identify a virtual connection, and a correspondence between the VPI and the VCI and the cryptographic path may be established. Different virtual connections may correspond to different cryptographic paths, or may correspond to the same cryptographic path, which is not limited.

[0107] In addition, different cryptographic paths correspond to different encryption algorithms, and any cryptographic path may include a hardware device used to perform encryption using the encryption algorithm corresponding to the cryptographic path.

[0108] Step 304: Determine the target cryptographic path corresponding to the target virtual connection according to the corresponding relationship between the virtual connection and the cryptographic path and the target virtual connection.

[0109] Exemplarily, the target cryptographic path corresponding to the target virtual connection can be determined by querying the correspondence between the virtual connection and the cryptographic path according to the target virtual connection, or the target virtual connection can be matched with the virtual connection in the correspondence, and the cryptographic path corresponding to the virtual connection that matches the target virtual connection can be used as the target cryptographic path.

[0110] Step 305: route the original cell to the target cryptographic path, and use the key generator in the target cryptographic path to obtain the key corresponding to the target virtual connection.

[0111] In the present application, step 305 can be implemented in any of the embodiments of the present application, so it will not be described in detail here.

[0112] Step 306: Encrypt the user data in the original cell according to the key corresponding to the target virtual connection to obtain an encrypted cell.

[0113] In the present application, step 306 can be implemented in any of the embodiments of the present application, so it will not be described in detail here.

[0114] Step 307: Send the encrypted information to the receiving end.

[0115] In the present application, step 307 can be implemented in any of the embodiments of the present application, so it will not be described in detail here.

[0116] In an embodiment of the present application, the cryptographic path can be used to segment the supported multiple encryption algorithms so that different cryptographic paths correspond to different encryption algorithms, thereby realizing hardware segmentation of the multiple encryption algorithms. For the original datagram that needs to be encrypted, the target cryptographic path corresponding to the target virtual connection can be determined based on the first correspondence between the virtual connection and the cryptographic path. The method is relatively simple. The original datagram is routed to the corresponding cryptographic path, and the key corresponding to the target virtual connection can be obtained. Then, the original datagram is encrypted using the key corresponding to the target virtual connection. This not only improves the security of data transmission, but also prevents the abuse of the encryption algorithm and reduces the probability of errors in the encryption process.

[0117] In the above embodiment, if the type of the original cell is a cell to be encrypted, the original cell can be encrypted and the encrypted cell can be sent to the receiving end. In one embodiment of the present application, if the type of the original cell is a non-real-time cell, the original cell can be stored in a first-in-first-out queue, and the original cell can be transferred from a real-time channel to a non-real-time channel for transmission through the first-in-first-out queue. The method for determining the type of the original cell here can be determined according to the corresponding relationship between the cell receiving port and the cell type as described in the above embodiment, or other methods described in the above embodiment can be used, which are not limited to this.

[0118] In this embodiment, the non-real-time cell may refer to a cell that does not carry user data, such as a signaling cell, an OAM cell, etc., or a non-real-time cell may refer to a cell that does not carry real-time service data but is used for network control, management or maintenance. Non-real-time cells usually do not have high requirements for real-time transmission and can be transmitted when the network load is low or within a specific time window in the network.

[0119] A real-time channel may refer to a virtual channel with a rate greater than a preset rate, and a non-real-time channel may refer to a virtual channel with a rate less than a preset rate. A real-time channel may be a virtual channel used to transmit data with extremely high time requirements, which can ensure that data can be transmitted with shorter delays, higher reliability and accuracy. A non-real-time channel is a virtual channel that does not have such strict requirements on data transmission time, which allows data to be transmitted in a relatively long time. In a non-real-time channel, the priority of data transmission is usually lower and may be affected by factors such as network congestion and equipment failure.

[0120] Exemplarily, if the FIFO queue meets the transmission requirement of the real-time channel at full rate, the clock frequency of the FIFO queue must be large enough. In addition, since the rate of the non-real-time channel is usually much lower than that of the real-time channel, that is, the absolute value of the difference between the rate of the non-real-time channel and the rate of the real-time channel is greater than the set threshold, the depth of the FIFO queue must also be large enough.

[0121] It can be seen from this that if the original cell is a non-real-time cell, the original cell can be stored in a first-in-first-out queue. Through the first-in-first-out queue, the original cell can be transferred from the real-time channel to the non-real-time channel for transmission to ensure that the transmission of the cell carrying user data in the real-time channel is not affected and the transmission requirements of the real-time channel are met.

[0122] In one embodiment of the present application, if the original cell is a synchronization cell, the synchronization cell can be inserted. Exemplarily, the current state vector can be read from the state vector memory, and the current state vector can be updated to obtain an updated state vector, the updated state vector can be written into the original cell, and a cyclic check code can be added to the original cell to obtain a new synchronization cell.

[0123] The cyclic check code can be used by the receiving end to perform integrity check on the new synchronization cell. If the new synchronization cell passes the check, synchronization processing is performed according to the new synchronization cell.

[0124] Exemplarily, updating the current state vector may include adding 1 to the hop count, setting the corresponding I / R bit, setting the sequence number and the segment number to 0, and setting the value of the linear feedback shift register to the current value.

[0125] Exemplarily, adding a cyclic check code to the original cell may be adding a cyclic check code at the end of the original cell so that the receiving end can perform integrity check on it.

[0126] In addition to writing the updated state vector into the synchronization cell, the updated state vector may also be written back into the state vector memory for use in the next synchronization cell.

[0127] In an embodiment of the present application, if the original cell is a synchronous cell, the updated state vector can be written into the original cell, and a cyclic check can be added to the original cell. Thus, while implementing synchronization processing based on the synchronous cell, the receiving end can perform integrity check on the synchronous cell through a cyclic check code, thereby improving the reliability of data transmission.

[0128] The user data in the above embodiment can be obtained from an encrypted data table, that is, a ciphertext table. For example, the data transmission method in the above embodiment is executed by a sending end with encryption function, and the sending end can be a server, and the server obtains the user data from the ciphertext table. Alternatively, the data transmission method in the above embodiment is executed by an encryption device, and the sending end is a server. The server obtains the user data from the ciphertext table and sends it to the encryption device through a cell for encryption. Based on this, this embodiment provides another method for obtaining user data. Figure 4 A flowchart of a method for obtaining user data provided in an embodiment of the present application.

[0129] like Figure 4 As shown, the user data acquisition method may include the following steps:

[0130] Step 401, in response to obtaining a data acquisition request from a target user, determining a ciphertext table to be queried according to the data acquisition request, and searching for a decryption parameter of the target user according to a user key of the target user.

[0131] The data acquisition request may include the user key of the target user, the data information to be acquired, etc. Exemplarily, the data information to be acquired may refer to which data to acquire, for example, if the user wants to check the current balance, then the data information to be acquired is the current balance.

[0132] In this embodiment, a ciphertext table containing the data information to be obtained may be determined according to the data information to be obtained in the data obtaining request.

[0133] Exemplarily, each target user has a corresponding user key and decryption parameter, and the decryption parameter of the target user can be found according to the user key.

[0134] Step 402: Encrypt the decryption parameter using the user key to obtain a first key encryption key.

[0135] In this embodiment, the decryption parameter may be encrypted using a user key to obtain a first key encryption key.

[0136] Step 403, in response to the first key encryption key being the same as the second key encryption key corresponding to the ciphertext table, an XOR operation is performed on the first key encryption key and the row number, column number and ciphertext table number corresponding to each ciphertext in the ciphertext table to obtain the first key, the second key and the third key for each ciphertext.

[0137] In this embodiment, each ciphertext table or plaintext table is preset with a second key encryption key. If the first key encryption key is the same as the second key encryption key, it can be considered that the target user can access the ciphertext table, determine the row number, column number and ciphertext table number corresponding to each ciphertext in the ciphertext table, and perform an XOR operation on the first key encryption key with the row number, column number and ciphertext table number of each ciphertext to obtain the first key, the second key and the third key.

[0138] The row number and column number corresponding to each ciphertext item refer to the row number and column number of each ciphertext item in the ciphertext table.

[0139] Optionally, an XOR operation may be performed on the first key encryption key and the position information of each ciphertext in the ciphertext table to obtain a first key, a second key and a third key for each ciphertext, wherein the position information of each ciphertext in the ciphertext table may include the row number of the row where each ciphertext is located in the ciphertext table, the column number of the column where each ciphertext is located, and the sum of the row sequence number and the column sequence number; or the position information of each ciphertext in the ciphertext table may include the row number of the row where each ciphertext is located in the ciphertext table, the column number of the column where each ciphertext is located, and the difference between the row sequence number and the column sequence number, etc.

[0140] Step 404, based on the 3DES encryption algorithm, decrypt each ciphertext in the ciphertext table according to the first key, the second key and the third key to obtain a plaintext table corresponding to the ciphertext table.

[0141] Exemplarily, the ciphertext can be decrypted for the first time using the third key, the first decryption result can be encrypted using the second key to obtain an encrypted result, the encrypted result can be decrypted using the first key to obtain the corresponding ciphertext, and thus each ciphertext in the ciphertext table can be decrypted to obtain the corresponding plaintext table.

[0142] Step 405: Obtain user data from the plaintext table according to the data acquisition request.

[0143] In the embodiment of the present application, user data can be obtained from the plaintext table according to the data information to be obtained in the data acquisition request, and then the user data is transmitted through the cell.

[0144] Exemplarily, the above-mentioned ciphertext table can be obtained by encrypting a plaintext table based on a 3DES encryption algorithm, wherein the plaintext table corresponds to multiple users, each user has a user key, and the plaintext table can be encrypted by the following method: the row number, column number and plaintext table number corresponding to each plaintext in the plaintext table can be determined, and the second key encryption key corresponding to the plaintext table can be XORed with the row number, column number and plaintext table number corresponding to each plaintext to obtain the first key, second key and third key corresponding to each plaintext, and then based on the 3DES encryption algorithm, each plaintext in the plaintext table is encrypted according to the first key, the second key and the third key to obtain the ciphertext table.

[0145] Exemplarily, the plaintext is encrypted for the first time using the first key, the result obtained by the first encryption is decrypted using the second key, and the decrypted result is encrypted for the second time using the third key to obtain the ciphertext.

[0146] In addition, the user's user key, decryption parameters and second key encryption key can be associated in the following way:

[0147] E(ku i ,p i )=E(kui ,D(ku i ,K k ))=K k

[0148] Among them, E represents the DES encryption algorithm, D represents the DES decryption algorithm, and ku i represents the user key of the i-th user, p i represents the decryption parameter of the i-th user, K k Represents the second key encryption key.

[0149] For example, the decryption parameters of each user can be associated as follows:

[0150] T i ={p i |p i =D(ku i ,K k )},ku i ∈KU, i=1,2,…,n

[0151] Where n is the number of users, KU represents the set of user keys in the plaintext table to be encrypted, and T i Represents the decryption parameter generation function for each user.

[0152] Therefore, the dynamic key generation encryption strategy based on the 3DES encryption algorithm can effectively avoid the large amount of encryption keys generated by the huge amount of data, optimize key management, and provide a feasible encryption strategy for database security.

[0153] In an embodiment of the present application, when the first key encryption key obtained based on the user key and decryption parameters of the target user is the same as the second key encryption key corresponding to the ciphertext table, three keys are obtained based on the first key encryption key and the row number, column number and ciphertext table number of each ciphertext, and the ciphertext is decrypted using the three keys, thereby improving the security of data acquisition.

[0154] Taking the bank cash management system as an example, the above method can be used to encrypt the database of the bank cash management system. When the bank cash management system is connected to an external system, or when a user logs in to the bank cash management system to obtain data, the above decryption method can be used to decrypt the encrypted data table to obtain user data, and the above encryption method can be used to encrypt the information cell carrying the user data, and then the encrypted information cell is transmitted in the ATM network to send the user data to the receiving end.

[0155] In order to facilitate understanding of the data transmission method of the present application, further explanation is provided in conjunction with the following embodiments.

[0156] Taking the data transmission method executed by the encryption device as an example, the encryption device can include a real-time part and a non-real-time part, wherein the real-time part includes a physical I / O module, a cell identification and association module, a cell routing module, an encryption module, a cell merging module, etc., and the non-real-time part includes a key management module and a non-real-time control module. It can also be divided from the relationship with the ATM, and the encryption device can include an ATM dedicated subsystem and a security encryption subsystem.

[0157] 1) ATM dedicated subsystem

[0158] like Figure 5 As shown, in this subsystem, the flow of data first starts from the I / O port, passes through the identification and association module, and then is routed through the cell routing module. After the data is sent to the encryption module for encryption or decryption, the data returns to the cell merging module and finally flows out through the I / O port.

[0159] (1) I / O ports

[0160] On the sending side, the I / O port receives the original data from the host and outputs the encrypted data to the ATM network. On the receiving side, its role is to receive the data from the network and send the decrypted data to the host.

[0161] (2) Identification and association modules

[0162] ATM networks are connection-oriented. The VPI / VCI field in the ATM cell is used to indicate the connection information in the network and to specify the cryptographic parameters used in the cell. In the encryption device, when receiving data from the I / O port, the ATM cell is first identified and associated.

[0163] (3) Non-real-time control module

[0164] This module is used to provide some control functions that are needed by the encryption device itself and do not require real-time processing, such as connection management and maintenance and management of the encryption device itself. After the cells are marked, non-real-time cells such as signaling cells are transferred to the non-real-time control module. This means that the cells will be transferred from the high-speed real-time channel to the low-speed non-real-time channel. This process can be achieved through a first-in-first-out queue. If the first-in-first-out queue meets the transmission requirements of the real-time channel at full rate, the clock frequency of the first-in-first-out queue must be large enough. In addition, since the rate of the non-real-time channel is much lower than that of the real-time channel, the depth of the first-in-first-out queue must also be large enough.

[0165] (4) Cell Routing

[0166] When the encryption device supports multiple encryption algorithms, the encryption algorithms can be segmented to prevent intentional or unintentional abuse, such as making one encryption algorithm correspond to only one cryptographic path. Similarly, a cryptographic path can use its own unique hardware device, such as state vector memory, communication encryption key memory, cell processor, key generator, and encryptor. Therefore, the cell can be routed to the correct path through the cell router. For example, non-real-time cells are routed to the non-real-time control module, while all real-time cells are routed to their respective cryptographic paths.

[0167] For example, between the cell router and the cryptographic path, either a point-to-point structure or a bus structure can be used. For example, the PCI bus can support 64-bit data transmission at a working frequency of 66M, thereby enabling the data transmission rate of the entire system to reach 4.2Gbps.

[0168] From a security perspective, the point-to-point structure is more conducive to achieving segmentation between multiple cryptographic paths, thereby ensuring that data encryption and decryption operations are always performed under the correct cryptographic parameters.

[0169] (5) Cell Merging

[0170] like Figure 5 As shown, the end of the encryption module is connected to a cell merging module for merging the data streams sent out from multiple cryptographic paths into a high-speed cell stream, which is then sent out through a physical port.

[0171] 2) Security encryption subsystem

[0172] The security encryption subsystem is a key component of the encryption device. It implements the encryption of the information cells and effectively prevents the illegal interpretation of the intercepted data information, thereby ensuring the secure transmission of data in the ATM network.

[0173] (1) Encryption module

[0174] The encryption module may include a key generator, an encryptor, a state vector memory, a communication encryption key memory, and a cell processor, etc.

[0175] There are two types of cells that flow through the cell processor: data cells and security-related OAM cells (such as synchronization cells). For each cell, the cell processor needs to process it in real time. However, the processing performed by the cell processor varies depending on the cell type. For data cells, the cell processor can forward them to the key generator and encryptor to implement appropriate encryption and decryption processing; for synchronization cells, the cell processor directly processes the synchronization cells.

[0176] The processing of the synchronization cell is described in the above embodiment, so it will not be described again here.

[0177] (2) Key Management

[0178] Key management itself belongs to the non-real-time control part. Due to the sensitivity of key information itself, illegal disclosure of communication encryption key storage should be prevented. To this end, a protected path can be established between the key management module and the encryption module. A dual-port memory can be used to connect the key management module through a read or write port and the encryption module through a read-only port, so as to establish a point-to-point connection between the two modules. In addition, both the encryption module and the key management module receive the address information of the communication encryption key storage from the non-real-time control module.

[0179] In order to implement the above embodiments, the present application also proposes a data transmission device. Figure 6 A schematic diagram of the structure of a data transmission device provided in an embodiment of the present application.

[0180] like Figure 6 As shown, the data transmission device 600 includes:

[0181] A first determination module 610 is used to obtain an original cell and determine whether the original cell is a cell to be encrypted;

[0182] The second determination module 620 is configured to determine, in response to determining that the original cell is a cell to be encrypted, a target virtual connection for transmitting the original cell from a plurality of virtual connections according to routing information in a cell header of the original cell; wherein the payload of the original cell carries user data;

[0183] A first acquisition module 630 is used to acquire a key corresponding to the target virtual connection; wherein different virtual connections among the multiple virtual connections have separate keys;

[0184] The encryption module 640 is used to encrypt the user data in the original cell according to the key corresponding to the target virtual connection to obtain an encrypted cell;

[0185] The sending module 650 is used to send the encrypted information element to the receiving end.

[0186] Optionally, the routing information is further used to specify a cryptographic parameter used by the original cell, where the cryptographic parameter is used to indicate an encryption algorithm used to encrypt the original cell. The first acquisition module 630 is configured to:

[0187] Acquire the password parameter according to the routing information;

[0188] According to the cryptographic parameters, determining a target cryptographic path corresponding to the cryptographic parameters from a plurality of cryptographic paths; wherein different cryptographic paths correspond to different encryption algorithms, and any cryptographic path includes a hardware device used to complete encryption using the encryption algorithm corresponding to any cryptographic path;

[0189] The original cell is routed to the target cryptographic path, and a key generator in the target cryptographic path is used to obtain a key corresponding to the target virtual connection.

[0190] Optionally, the first acquisition module 630 is configured to:

[0191] Obtaining a correspondence between a virtual connection and a cryptographic path; wherein different cryptographic paths correspond to different encryption algorithms, and any cryptographic path includes a hardware device that uses the encryption algorithm corresponding to any cryptographic path to complete encryption;

[0192] Determine the target cryptographic path corresponding to the target virtual connection according to the corresponding relationship between the virtual connection and the cryptographic path and the target virtual connection;

[0193] The original cell is routed to the target cryptographic path, and a key generator in the target cryptographic path is used to obtain a key corresponding to the target virtual connection.

[0194] Optionally, a buffer device is provided at the end of each cryptographic path, and the encrypted information element is multiple, and the sending module 650 is used to:

[0195] Cache the plurality of encrypted information elements respectively into buffer devices corresponding to corresponding target cryptographic paths;

[0196] buffering the encrypted information element according to the delay time of the target cryptographic path;

[0197] According to the order of the time when the plurality of original cells are routed to the corresponding target cryptographic paths from earliest to latest, the encrypted cells corresponding to the original cells are obtained from the buffer device corresponding to each of the original cells in turn to form a cell stream;

[0198] The cell stream is sent to the receiving end.

[0199] Optionally, the first acquisition module 630 is configured to:

[0200] According to the target virtual connection, obtaining a key corresponding to the target virtual connection from a key library;

[0201] The key library stores keys of various virtual connections, and the key corresponding to each virtual connection is determined according to the encryption algorithm corresponding to each virtual connection.

[0202] Optionally, the first determining module 610 is configured to:

[0203] Obtaining the correspondence between the cell receiving port and the cell type;

[0204] Determine the type of the original cell according to the correspondence between the cell receiving port and the cell type and the port receiving the original cell;

[0205] According to the type of the original cell, it is determined whether the original cell is a cell to be encrypted.

[0206] Optionally, the device may further include:

[0207] a cache module, configured to store the original cell in a first-in-first-out queue in response to the type of the original cell being a non-real-time cell, so as to transfer the original cell from a real-time channel to a non-real-time channel for transmission through the first-in-first-out queue;

[0208] The non-real-time cell refers to a cell that does not carry user data, the real-time channel refers to a virtual channel with a rate greater than a preset rate, and the non-real-time channel refers to a virtual channel with a rate less than the preset rate.

[0209] Optionally, the device may further include:

[0210] A second acquisition module, configured to read a current state vector from a state vector memory in response to the original cell being a synchronization cell;

[0211] An updating module, used for updating the current state vector to obtain an updated state vector;

[0212] A writing module, used for writing the updated state vector into the original cell and adding a cyclic check code into the original cell to obtain a new synchronization cell;

[0213] The cyclic check code is used by the receiving end to perform integrity check on the new synchronization cell, respond to the new synchronization cell passing the check, and perform synchronization processing according to the new synchronization cell.

[0214] Optionally, the key corresponding to each virtual connection is changed once every preset time period, and the preset time period is determined by the following method:

[0215] Acquire a cell transmission rate, a cell loss rate, and a quantitative relationship between the cell transmission rate and the cell loss rate;

[0216] Determining a synchronization period according to the cell transmission rate, the cell loss rate and the quantity relationship;

[0217] The preset duration is determined according to the synchronization period.

[0218] Optionally, the user data is obtained in the following manner:

[0219] In response to obtaining a data acquisition request from the target user, determining a ciphertext table to be queried according to the data acquisition request, and searching for a decryption parameter of the target user according to a user key of the target user;

[0220] Encrypting the decryption parameter using the user key to obtain a first key encryption key;

[0221] In response to the first key encryption key being the same as the second key encryption key corresponding to the ciphertext table, performing an exclusive OR operation on the first key encryption key and the row number, column number and number of the ciphertext table corresponding to each ciphertext item in the ciphertext table, respectively, to obtain a first key, a second key and a third key for each ciphertext item;

[0222] Based on the 3DES encryption algorithm, decrypt each ciphertext in the ciphertext table according to the first key, the second key and the third key to obtain a plaintext table corresponding to the ciphertext table;

[0223] According to the data acquisition request, the user data is acquired from the plaintext table.

[0224] It should be noted that the above explanation of the data transmission method embodiment is also applicable to the data transmission device of this embodiment, and will not be repeated here.

[0225] In the embodiment of the present application, when determining that the original cell is the cell to be encrypted, according to the routing information in the original cell, the target virtual connection for transmitting the original cell is determined from multiple virtual connections. Since different virtual connections in the multiple virtual connections have separate keys, the key corresponding to the target virtual connection can be obtained, and the user data carried by the payload in the original cell is encrypted using the key corresponding to the target virtual connection, and then the encrypted cell is sent to the receiving end to transmit the user data to the receiving end. Thus, different virtual connections have separate keys, and the key corresponding to each virtual connection can be used to encrypt the cell to be encrypted to be transmitted on the virtual connection, so that each virtual connection uses a separate key. Even if a key is cracked, it only affects the encrypted cell using the key, and does not affect the cells on other virtual connections, which can significantly improve the security of data transmission.

[0226] In order to implement the above embodiments, the present application also proposes an electronic device, comprising: a processor, and a memory communicatively connected to the processor; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory to implement the method provided by the above embodiments.

[0227] In order to implement the above embodiments, the present application also proposes an electronic device, comprising: a processor, and a memory communicatively connected to the processor; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory to implement the method provided by the above embodiments.

[0228] As an example, Figure 7 is a schematic diagram of the structure of an electronic device shown in an exemplary embodiment of the present disclosure, such as Figure 7 As shown, the electronic device 700 may further include:

[0229] The memory 710 and the processor 720, a bus 730 connecting different components (including the memory 710 and the processor 720), the memory 710 stores a computer program, and when the processor 720 executes the program, the information collection method described in the embodiment of the present disclosure is implemented.

[0230] Bus 730 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnect (PCI) bus.

[0231] The electronic device 700 typically includes a variety of electronic device readable media. These media can be any available media that can be accessed by the electronic device 700, including volatile and non-volatile media, removable and non-removable media.

[0232] The memory 710 may also include computer system readable media in the form of volatile memory, such as random access memory (RAM) 740 and / or cache memory 750. The electronic device 700 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 760 may be used to read and write non-removable, non-volatile magnetic media ( Figure 7 not shown, usually called a "hard drive"). Although Figure 7Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 730 via one or more data medium interfaces. The memory 710 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present disclosure.

[0233] A program / utility 780 having a set (at least one) of program modules 770 may be stored, for example, in the memory 710, such program modules 770 including but not limited to an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 770 generally perform the functions and / or methods of the embodiments described in the present disclosure.

[0234] The electronic device 700 may also communicate with one or more external devices 790 (e.g., keyboard, pointing device, display 791, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 700, and / or communicate with any device that enables the electronic device 700 to communicate with one or more other computing devices (e.g., network card, modem, etc.). Such communication may be performed through an input / output (I / O) interface 792. Furthermore, the electronic device 700 may also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN) and / or public network, such as the Internet) through a network adapter 793. As shown, the network adapter 793 communicates with other modules of the electronic device 700 through a bus 730. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 700, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0235] The processor 720 executes various functional applications and data processing by running the programs stored in the memory 710 .

[0236] In order to implement the above embodiments, the present application also proposes a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the methods provided by the above embodiments.

[0237] In order to implement the above embodiments, the present application also proposes a computer program product, including a computer program, which implements the methods provided by the above embodiments when executed by a processor.

[0238] The collection, storage, use, processing, transmission, provision and disclosure of user personal information involved in this application are in compliance with relevant laws and regulations and do not violate public order and good morals.

[0239] It should be noted that personal information from users should be collected for legitimate and reasonable purposes and should not be shared or sold outside of these legitimate uses. In addition, such collection / sharing should be carried out after receiving the user's informed consent, including but not limited to notifying the user to read the user agreement / user notice and sign the agreement / authorization including authorization of relevant user information before the user uses the function. In addition, any necessary steps should be taken to protect and safeguard access to such personal information data and ensure that others who have access to personal information data comply with its privacy policy and procedures.

[0240] The present application is expected to provide an implementation scheme for users to selectively block the use or access of personal information data. That is, the present disclosure is expected to provide hardware and / or software to prevent or block access to such personal information data. Once the personal information data is no longer needed, the risk can be minimized by limiting data collection and deleting the data. In addition, when applicable, such personal information is de-identified to protect the privacy of the user.

[0241] In the description of the aforementioned embodiments, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0242] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0243] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.

[0244] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute the instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.

[0245] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0246] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0247] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0248] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. A data transmission method, characterized in that: The method comprises the following steps: Obtaining an original cell, and determining whether the original cell is a cell to be encrypted; In response to determining that the original cell is a cell to be encrypted, determining a target virtual connection for transmitting the original cell from a plurality of virtual connections according to routing information in a cell header of the original cell; wherein the payload of the original cell carries user data; Acquire a key corresponding to the target virtual connection; wherein different virtual connections among the multiple virtual connections have separate keys; Encrypting the user data in the original cell according to the key corresponding to the target virtual connection to obtain an encrypted cell; The encrypted information element is sent to a receiving end.

2. The method according to claim 1, characterized in that The routing information is further used to specify a cryptographic parameter used by the original cell, and the cryptographic parameter is used to indicate an encryption algorithm used to encrypt the original cell. The step of obtaining a key corresponding to the target virtual connection includes: Acquire the password parameter according to the routing information; According to the cryptographic parameters, determining a target cryptographic path corresponding to the cryptographic parameters from a plurality of cryptographic paths; wherein different cryptographic paths correspond to different encryption algorithms, and any cryptographic path includes a hardware device used to complete encryption using the encryption algorithm corresponding to any cryptographic path; The original cell is routed to the target cryptographic path, and a key generator in the target cryptographic path is used to obtain a key corresponding to the target virtual connection.

3. The method according to claim 1, characterized in that The obtaining of the key corresponding to the target virtual connection includes: Obtaining a correspondence between a virtual connection and a cryptographic path; wherein different cryptographic paths correspond to different encryption algorithms, and any cryptographic path includes a hardware device that uses the encryption algorithm corresponding to any cryptographic path to complete encryption; Determine the target cryptographic path corresponding to the target virtual connection according to the corresponding relationship between the virtual connection and the cryptographic path and the target virtual connection; The original cell is routed to the target cryptographic path, and a key generator in the target cryptographic path is used to obtain a key corresponding to the target virtual connection.

4. The method according to claim 2 or 3, characterized in that A buffer device is provided at the end of each cryptographic path, the encrypted information cells are multiple, and the step of sending the encrypted information cells to the receiving end includes: Cache the plurality of encrypted information elements respectively into buffer devices corresponding to corresponding target cryptographic paths; buffering the encrypted information element according to the delay time of the target cryptographic path; According to the order of the time when the plurality of original cells are routed to the corresponding target cryptographic paths from earliest to latest, the encrypted cells corresponding to the original cells are obtained from the buffer device corresponding to each of the original cells in turn to form a cell stream; The cell stream is sent to the receiving end.

5. The method according to claim 1, characterized in that The obtaining of the key corresponding to the target virtual connection includes: According to the target virtual connection, obtaining a key corresponding to the target virtual connection from a key library; The key library stores keys corresponding to each virtual connection, and the key corresponding to each virtual connection is determined according to an encryption algorithm corresponding to each virtual connection.

6. The method according to claim 1, characterized in that The determining whether the original cell is a cell to be encrypted comprises: Obtaining the correspondence between the cell receiving port and the cell type; Determine the type of the original cell according to the correspondence between the cell receiving port and the cell type and the port receiving the original cell; According to the type of the original cell, it is determined whether the original cell is a cell to be encrypted.

7. The method according to claim 6, characterized in that Also includes: In response to the type of the original cell being a non-real-time cell, storing the original cell in a first-in-first-out queue, so as to transfer the original cell from a real-time channel to a non-real-time channel for transmission through the first-in-first-out queue; The non-real-time cell refers to a cell that does not carry user data, the real-time channel refers to a virtual channel with a rate greater than a preset rate, and the non-real-time channel refers to a virtual channel with a rate less than the preset rate.

8. The method according to claim 1, characterized in that Also includes: In response to the original cell being a synchronization cell, reading a current state vector from a state vector memory, and updating the current state vector to obtain an updated state vector; Writing the updated state vector into the original cell and adding a cyclic check code into the original cell to obtain a new synchronization cell; The cyclic check code is used by the receiving end to perform integrity check on the new synchronization cell, respond to the new synchronization cell passing the check, and perform synchronization processing according to the new synchronization cell.

9. The method according to claim 1, characterized in that The key corresponding to each virtual connection is changed once every preset time period, and the preset time period is determined by the following method: Acquire a cell transmission rate, a cell loss rate, and a quantitative relationship between the cell transmission rate and the cell loss rate; Determining a synchronization period according to the cell transmission rate, the cell loss rate and the quantity relationship; The preset duration is determined according to the synchronization period.

10. The method according to claim 1, characterized in that The user data is obtained in the following ways: In response to obtaining a data acquisition request from the target user, determining a ciphertext table to be queried according to the data acquisition request, and searching for a decryption parameter of the target user according to a user key of the target user; Encrypting the decryption parameter using the user key to obtain a first key encryption key; In response to the first key encryption key being the same as the second key encryption key corresponding to the ciphertext table, performing an exclusive OR operation on the first key encryption key and the row number, column number and number of the ciphertext table corresponding to each ciphertext item in the ciphertext table, respectively, to obtain a first key, a second key and a third key for each ciphertext item; Based on the 3DES encryption algorithm, decrypt each ciphertext in the ciphertext table according to the first key, the second key and the third key to obtain a plaintext table corresponding to the ciphertext table; According to the data acquisition request, the user data is acquired from the plaintext table.

11. A data transmission device, characterized in that: include: A first determination module, used to obtain an original cell and determine whether the original cell is a cell to be encrypted; A second determination module, configured to determine, in response to determining that the original cell is a cell to be encrypted, a target virtual connection for transmitting the original cell from a plurality of virtual connections according to routing information in a cell header of the original cell; wherein the payload of the original cell carries user data; A first acquisition module is used to acquire a key corresponding to the target virtual connection; wherein different virtual connections among the multiple virtual connections have separate keys; An encryption module, used for encrypting the user data in the original cell according to the key corresponding to the target virtual connection to obtain an encrypted cell; The sending module is used to send the encrypted information element to the receiving end.

12. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 10.

13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 10 when executed by a processor.

14. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 10 when being executed by a processor.

Citation Information

Patent Citations

  • Communication equipment for virtual private network and data packet transmission method for communication equipment

    CN102801695A

  • Selecting transmission VAP for mbssid set

    CN115884317A

  • Disk encryption protection method and device, electronic device, computer readable storage medium and computer program

    JP2021185472A

  • Sealed network initialization

    US20170364687A1

  • Adaptor for receiving and processing asynchronous transfer mode cells within a computer network

    US5870628A