Communication chip and operation method therefor, communication device, and non-transitory computer storage medium

By integrating hardware modules of multiple communication security protocols in the communication chip for data processing, the problem of poor performance in the existing technology is solved, efficient data plane functions and control plane optimization are achieved, and latency is reduced.

WO2024198902A1PCT designated stage expired Publication Date: 2024-10-03SANECHIPS TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/080943
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-31
Filing Date
2024-03-11
Publication Date
2024-10-03

AI Technical Summary

Technical Problem

Existing communication chips have poor performance when supporting multiple communication security protocols at the same time, especially high latency during data stream processing. This is mainly due to the burden on the CPU computing power of implementing each protocol function in software.

Method used

Design a communication chip that configures multiple communication security protocols (such as MACsec, IPsec, TLS) in one hardware module by integrating the security module, and uses sub-modules such as the parsing module, enqueuing module, and algorithm core module to determine the type and size of the message. The flow table information selects the target protocol for encryption/decryption processing to achieve the integration of data plane functions and the optimization of control plane data flow.

Benefits of technology

By integrating multiple communication security protocols through hardware modules, the data plane delay is reduced, the performance of the communication chip is improved, the data plane functions of multiple communication security protocols are realized, and the data flow transmission method of the control plane is optimized.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024080943_03102024_PF_FP_ABST
    Figure CN2024080943_03102024_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed is a communication chip. The communication chip comprises: a fusion security module configured to perform, according to a plurality of communication security protocols, encryption / decryption processing on data to be processed, wherein the fusion security module comprises: an analysis module configured to receive said data and according to a packet type of said data, determine, from the plurality of communication security protocols, a target communication security protocol corresponding to the packet type; an enqueue module configured to determine, according to flow table information of said data, whether to perform encryption / decryption processing on said data; and an algorithm kernel module configured to perform, when the enqueue module determines to perform encryption / decryption processing on said data, encryption / decryption processing on said data according to the target communication security protocol to obtain encrypted / decrypted data.
Need to check novelty before this filing date? Find Prior Art

Description

Communication chip and operation method thereof, communication device and non-transitory computer storage medium

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This patent application claims priority to Chinese patent application 202310379851.0 filed with the State Intellectual Property Office of China on March 31, 2023, and the disclosure of this Chinese patent application is incorporated herein by reference in its entirety. Technical Field

[0003] The present disclosure relates to the field of chip technology, and in particular to a communication chip, an operating method of a communication chip, a communication device, and a non-transitory computer storage medium. Background Art

[0004] The communication security protocols widely used in communication chips today include Media Access Control Security (MACsec), Internet Protocol Security (IPsec), and Transport Layer Security (TLS).

[0005] Summary of the Invention

[0006] The main purpose of the present disclosure is to provide a communication chip, a method for operating a communication chip, a communication device, and a non-transitory computer storage medium, aiming to optimize the performance of the chip while implementing the data plane functions of multiple communication security protocols.

[0007] To achieve the above-mentioned objectives, the present disclosure provides a communication chip, which includes: a fusion security module, which is configured to encrypt / decrypt data to be processed according to multiple communication security protocols, and the fusion security module includes: a parsing module, which is configured to receive data to be processed and determine a target communication security protocol corresponding to the message type from multiple communication security protocols according to the message type of the data to be processed; an enqueuing module, which is configured to determine whether to encrypt / decrypt the data to be processed according to the flow table information of the data to be processed; and an algorithm core module, which is configured to encrypt / decrypt the data to be processed according to the target communication security protocol when the enqueuing module determines that the data to be processed is to be encrypted / decrypted.

[0008] According to an embodiment of the present disclosure, the communication security protocols include: media access control security protocol, Internet protocol layer security protocol and transport layer security protocol; the parsing module is further configured to: when the message type of the data to be processed is a transmission control message, determine the transport layer security protocol as the target communication security protocol corresponding to the transmission control message; when the message type is an Internet protocol message, determine the Internet protocol layer security protocol as the target communication security protocol corresponding to the transmission control message; and, when the message type is a data link message, determine the media access control security protocol as the target communication security protocol corresponding to the transmission control message.

[0009] According to an embodiment of the present disclosure, the fusion security module also includes: a dequeue module, which is configured to splice and forward the encrypted / decrypted data obtained by the algorithm core module through encryption / decryption processing on the data to be processed; a flow table cache module, which is configured to store the flow table information and encryption / decryption information of the data to be processed; wherein the parsing module is also configured to: search for the flow table information from the flow table cache module, and send the flow table information to the enqueue module; the enqueue module is also configured to: when it is determined that the data to be processed is to be encrypted / decrypted according to the flow table information, search for the encryption / decryption information from the flow table cache module, and send the found encryption / decryption information to the algorithm core module; the algorithm core module is also configured to: perform encryption / decryption processing on the data to be processed according to the target communication security protocol and the encryption / decryption information.

[0010] According to an embodiment of the present disclosure, the flow table cache module is further configured to: send the flow table information to the parsing module; the parsing module includes: a lookup table, which is configured to cache the flow table information sent by the flow table cache module so that the parsing module can search for the flow table information in the lookup table.

[0011] According to an embodiment of the present disclosure, the fusion security module also includes: a first cache module, which is configured to cache the unprocessed data and flow table information sent by the parsing module; a second cache module, which is configured to cache the unprocessed data and encryption / decryption information sent by the enqueue module; a third cache module, which is configured to cache the encrypted / decrypted data sent by the algorithm core module; and a fourth cache module, which is configured to cache the spliced ​​encrypted / decrypted data sent by the dequeue module.

[0012] According to an embodiment of the present disclosure, the fusion security module further includes: a replay protection module, which is configured to perform duplicate checking on the data packets spliced ​​by the dequeue module, and confirm forwarding the data packets when it is determined that the data packets pass the duplicate checking.

[0013] According to an embodiment of the present disclosure, the fusion security module also includes: a status control register module, which is configured to collect the respective operating status information of the parsing module, the enqueue module, the algorithm core module and / or the dequeue module, upload the operating status information, and receive status control information, and send the status control information to the parsing module.

[0014] In addition, to achieve the above-mentioned purpose, the present disclosure also provides an operating method of a communication chip, which is applied to the communication chip, and the communication chip includes: a fusion security module, which is configured to perform encryption / decryption processing on the data to be processed according to multiple communication security protocols. The operating method of the communication chip includes: receiving the data to be processed, and determining the target communication security protocol corresponding to the message type from multiple communication security protocols according to the message type of the data to be processed; determining whether to perform encryption / decryption processing on the data to be processed according to the flow table information of the data to be processed; and when it is determined that the data to be processed is to be encrypted / decrypted, encrypting / decrypting the data to be processed according to the target communication security protocol to obtain encrypted / decrypted data.

[0015] In addition, to achieve the above-mentioned purpose, the present disclosure also provides a communication device, which includes: the communication chip as described above, a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the computer program is executed by the processor, the operation method of the communication chip as described above is implemented.

[0016] In addition, to achieve the above-mentioned purpose, the present disclosure also provides a non-transitory computer storage medium, on which a computer program is stored. When the computer program is executed by a processor, the operation method of the communication chip as described above is implemented.

[0017] In addition, to achieve the above-mentioned purpose, the present disclosure also provides a computer program product, which includes a computer program. When the computer program is executed by a processor, it implements the steps of the operation method of the communication chip as described above. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] FIG1 is a schematic diagram of a device structure of a hardware operating environment of a communication device according to an embodiment of the present disclosure;

[0019] FIG2 is a schematic diagram of a five-layer model of TCP / IP according to an embodiment of the present disclosure;

[0020] FIG3 a is a schematic diagram of data frame formats before and after MACsec protection according to an embodiment of the present disclosure;

[0021] FIG3 b is a schematic diagram of the data packet format before and after IPsec protection according to an embodiment of the present disclosure;

[0022] FIG3 c is a schematic diagram of the data packet format before and after TLS protection according to an embodiment of the present disclosure;

[0023] FIG4 is a schematic diagram of a chip architecture of a communication chip according to an embodiment of the present disclosure;

[0024] FIG5 is a flow chart of an operating method of a communication chip according to an embodiment of the present disclosure;

[0025] FIG6 is a schematic diagram illustrating a chip architecture for implementing an operating method of a communication chip according to an embodiment of the present disclosure;

[0026] FIG7 is a flow chart of a downlink data application of an operating method of a communication chip according to an embodiment of the present disclosure;

[0027] FIG8 is a schematic diagram illustrating a chip architecture for implementing an operating method of a communication chip according to an embodiment of the present disclosure;

[0028] FIG9 is a flowchart of an uplink data application of an operating method of a communication chip according to an embodiment of the present disclosure.

[0029] The realization of the objectives, functional features and advantages of the present disclosure will be further explained with reference to the accompanying drawings in conjunction with the embodiments. DETAILED DESCRIPTION

[0030] It should be understood that the specific embodiments described herein are only used to illustrate the present disclosure and are not intended to limit the present disclosure.

[0031] 1 , which is a schematic diagram of a device structure of a hardware operating environment of a communication device according to an embodiment of the present disclosure.

[0032] It should be noted that the communication device according to the embodiments of the present disclosure may be a chip product that can simultaneously support the offloading of three communication security protocols: Media Access Control Security Protocol, Internet Protocol Layer Security Protocol, and Transport Layer Security Protocol. Alternatively, the communication device according to the embodiments of the present disclosure may also be a communication terminal facility integrated with the above-mentioned chip products. It should be understood that based on the different design requirements of actual applications, in different feasible implementation plans, the communication device according to the embodiments of the present disclosure may be of different types, and the present disclosure is not limited to the specific type of communication device.

[0033] As shown in Figure 1, the communication device may include: a processor 1001 (e.g., a CPU), a communication bus 1002, a user interface 1003, a network interface 1004, a memory 1005, and a communication chip (not shown) including a fusion security module (the fusion security module is used to process data according to multiple communication security protocols). The communication bus 1002 is used to implement connection and communication between these components. The user interface 1003 may include a display and an input unit (e.g., a keyboard). The user interface 1003 may optionally also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (e.g., a Wi-Fi interface). The memory 1005 may be a high-speed random access memory (RAM) or a non-volatile memory, such as a disk storage. The memory 1005 may optionally also be a storage device independent of the aforementioned processor 1001.

[0034] Those skilled in the art will understand that the structure shown in FIG1 does not constitute a limitation on the communication device, and the communication device of the present disclosure may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0035] As shown in FIG1 , the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a computer program.

[0036] In the terminal shown in Figure 1, the network interface 1004 is primarily used to connect to and communicate data with a backend server. The user interface 1003 is primarily used to connect to and communicate data with a client. The processor 1001 can be configured to invoke a computer program stored in the memory 1005 and execute the following steps: receiving data to be processed and, based on the message type of the data to be processed, determining a target communication security protocol corresponding to the message type from a plurality of communication security protocols; determining, based on the flow table information of the data to be processed, whether to perform encryption / decryption processing on the data to be processed; and, if it is determined that encryption / decryption processing is to be performed on the data to be processed, performing encryption / decryption processing on the data to be processed according to the target communication security protocol to obtain encrypted / decrypted data.

[0037] Based on the hardware operating environment according to the above embodiments of the present disclosure, an overall concept of a communication chip according to the embodiments of the present disclosure is proposed.

[0038] It should be noted that the communication security protocols widely used in communication scenarios include Media Access Control Security Protocol, Internet Protocol Security Protocol and Transport Layer Security Protocol.

[0039] In the TCP / IP five-layer network model shown in Figure 2, MACsec resides in the Data Link Layer (DLC), providing integrity and encryption protection for Ethernet frames (as shown in Figure 3a); IPsec resides in the Network Layer (IP), providing Encapsulating Security Payload (ESP) and Authentication Header (AH) protocol protection for IP packets (as shown in Figure 3b); and TLS resides in the Transport Layer (TCP), providing encryption protection for application layer payloads (as shown in Figure 3c). In other words, MACsec, IPsec, and TLS each perform their respective functions, protecting communication data on different protocol stacks.

[0040] However, in some communication scenarios, it is necessary to have the functions of the above three different communication security protocols at the same time. At this time, if the functions of each protocol are implemented only through software, it will bring a considerable burden on the CPU's computing power, thus resulting in poor performance of the communication chip in processing data streams.

[0041] In response to the above problems, the present disclosure provides a communication chip. By designing a fusion security module in the communication chip for performing encryption / decryption processing on the data to be processed according to multiple communication security protocols, the submodules of the fusion security module can select any target protocol for data processing in a fractional multiplexing manner for the received data. That is, the fusion security module of the communication chip according to the embodiment of the present disclosure includes: a parsing module, which is used to receive the data to be processed and determine the target communication security protocol corresponding to the message type from multiple communication security protocols according to the message type of the data to be processed; an enqueue module, which is used to determine whether to perform encryption / decryption processing on the data to be processed according to the flow table information of the data to be processed found by the parsing module; an algorithm core module, which is used to perform encryption / decryption processing on the data to be processed according to the target communication security protocol when the enqueue module determines that the data to be processed is to be encrypted / decrypted, so as to obtain encrypted / decrypted data.

[0042] Thus, compared to traditional methods of processing data using pure software or by invoking separate hardware and software for different communication security protocols through virtual machines, the present disclosure configures multiple different communication security protocols within a single hardware module, the fused security module. Then, based on the combination of this fused security module and software, it selects the corresponding target communication security protocol for processing the received data to be processed. In other words, by integrating multiple communication security protocols into a single hardware module and reusing them, the present disclosure enables the communication chip to implement the data plane functions of multiple communication security protocols while also effectively improving the chip's performance.

[0043] In addition, the present disclosure also optimizes the data flow transmission method of the control plane by integrating multiple communication security protocols through a hardware module, thereby effectively reducing the delay of the communication chip on the data plane.

[0044] Based on the hardware operating environment and the overall concept of the communication chip according to the embodiments of the present disclosure, various embodiments of the communication chip of the present disclosure are further proposed.

[0045] Referring to FIG4 , FIG4 is a schematic diagram of the chip architecture of a communication chip according to an embodiment of the present disclosure. It should be noted that the structure shown in FIG4 does not limit the communication chip according to the embodiment of the present disclosure. In some cases, the communication chip according to the embodiment of the present disclosure may include more or fewer components than shown, or may combine certain components, or arrange the components differently.

[0046] According to an embodiment of the present disclosure, the communication chip includes: a fusion security module 10, which is used to perform encryption / decryption processing on data to be processed according to multiple communication security protocols.

[0047] The fusion security module 10 includes: a parsing module 101 , an enqueuing module 102 and an algorithm core module 103 .

[0048] The parsing module 101 is used to receive data to be processed, and determine a target communication security protocol corresponding to the message type from a plurality of communication security protocols according to the message type of the data to be processed.

[0049] The queuing module 102 is used to determine whether to perform encryption / decryption processing on the data to be processed according to the flow table information of the data to be processed found by the parsing module 101.

[0050] The algorithm core module 103 is used to encrypt / decrypt the data to be processed according to the target communication security protocol when the enqueue module 102 determines to perform encryption / decryption processing on the data to be processed, so as to obtain encrypted / decrypted data.

[0051] The communication chip according to the embodiment of the present disclosure can be integrated and installed on any communication device. Alternatively, the communication chip according to the embodiment of the present disclosure can also be integrated and installed on a dedicated chip terminal, and then introduced into the communication device by connecting the chip terminal to any communication device. In this scenario, as shown in Figure 4, the integrated security module 10 of the communication chip according to the embodiment of the present disclosure is respectively connected to the CPU 30 and each data message interface 20 of the communication device.

[0052] It should be noted that the data packet interfaces 20 connected to the converged security module 10 shown in FIG4 include, but are not limited to, a socket module, a layer 3 routing module (IP Router), a layer 2 forwarding module (L2SW), a TOE module, and an Ethernet module (ETH). It should be understood that, based on the different design requirements of actual applications, in different feasible implementations, the data packet interfaces 20 configured on the communication device and connected to the converged security module 10 may also include other types of interfaces not listed here. The communication chip according to the embodiments of the present disclosure is not limited to the specific type of the data packet interface 20.

[0053] The integrated security module 10 of the communication chip according to the embodiment of the present disclosure further includes a dequeue module 104 .

[0054] The dequeue module 104 is used to splice and forward the encrypted / decrypted data obtained by the algorithm core module 103 through encryption / decryption processing on the data to be processed.

[0055] As shown in FIG4 , among the modules included in the integrated security module 10 of the communication chip according to the embodiment of the present disclosure, the parsing module 101 is connected to the data message interface 20 (such as Socket, IP Router, L2SW) of the communication device to receive the data to be processed sent by the data message interface 20, and the parsing module 101 is also used to parse the data to be processed to determine the message type of the data to be processed, and then determine at least one target communication security protocol corresponding to the message type from a plurality of communication security protocols based on the message type. The enqueue module 102 is connected to the parsing module 101 to obtain the data to be processed from the parsing module 101, and determine whether to perform encryption / decryption processing on the data to be processed based on the flow table information of the data to be processed found by the parsing module 101. The algorithm core module 103 is connected to the enqueuing module 102 and is used to receive the data to be processed passed back by the enqueuing module 102. When the enqueuing module 102 determines that the data to be processed needs to be encrypted / decrypted, the algorithm core module 103 encrypts / decrypts the data to be processed according to the target communication security protocol determined by the parsing module 101 to obtain encrypted / decrypted data.

[0056] According to an embodiment of the present disclosure, the above-mentioned communication security protocols include: Media Access Control Security Protocol, Internet Protocol Layer Security Protocol and Transport Layer Security Protocol.

[0057] The parsing module 101 is also used to determine the transport layer security protocol as the target communication security protocol corresponding to the transmission control message when the message type of the data to be processed is a transmission control message; to determine the Internet Protocol layer security protocol as the target communication security protocol corresponding to the transmission control message when the message type is an Internet Protocol message; and to determine the media access control security protocol as the target communication security protocol corresponding to the transmission control message when the message type is a data link message.

[0058] The integrated security module 10 of the communication chip according to the embodiment of the present disclosure can be combined with software to be configured with at least the following communication security protocols: media access control security protocol, Internet protocol layer security protocol, and transport layer security protocol.

[0059] Based on this, the parsing module 101 in the fusion security module 10 of the communication chip according to the embodiment of the present disclosure can determine whether the message type of the data to be processed is a transmission control message, an Internet protocol message, or a data link message by parsing the header information of the data to be processed after receiving the data to be processed from any data message interface 20 of the communication device. Thus, when the parsing module 101 determines that the message type of the data to be processed is a transmission control message, the transport layer security protocol configured by the fusion security module 10 may be determined as the target communication security protocol TLS corresponding to the transmission control message and currently needed to be used to process the data to be processed; or, when the parsing module 101 determines that the message type of the data to be processed is an Internet Protocol message, the Internet Protocol layer security protocol configured by the fusion security module 10 may be determined as the target communication security protocol corresponding to the Internet Protocol message and currently needed to be used to perform IPsec processing on the data to be processed; and, when the parsing module 101 determines that the message type of the data to be processed is a data link message, the media access control security protocol MACsec configured by the fusion security module 10 may be determined as the target communication security protocol corresponding to the data link message and currently needed to be used to process the data to be processed.

[0060] It should be noted that, according to an embodiment of the present disclosure, after the parsing module 101 determines the target communication security protocol corresponding to the message type of the data to be processed from the multiple communication security protocols mentioned above by parsing the data to be processed, the parsing module 101 may also encapsulate an identifier for identifying the target communication security protocol in the header information of the data to be processed, thereby sending the identifier together with the data to be processed to the enqueuing module 102, and the enqueuing module 102 will further pass the identifier to the algorithm core module 103. In this way, the algorithm core module 103 can determine which communication security protocol is currently being used to process the data to be processed, which is also sent by the enqueuing module 102, through the identifier.

[0061] The converged security module 10 according to an embodiment of the present disclosure may further include a status control register (CSR) module 105 .

[0062] The status control register module 105 is used to collect the respective running status information of the analysis module 101, the enqueue module 102, the algorithm core module 103 and / or the dequeue module 104, and upload the running status information, and is used to receive status control information and send the status control information to the analysis module 101.

[0063] As shown in FIG4 , the integrated security module 10 of the communication chip according to an embodiment of the present disclosure may include a state control register module 105, and the state control register module 105 is respectively connected to the CPU 30, the parsing module 101, the enqueuing module 102, the algorithm core module 103, and the dequeuing module 104. In this way, the state control register module 105 can be used to collect the operating state information of each of the parsing module 101, the enqueuing module 102, the algorithm core module 103, and / or the dequeuing module 104, and further upload the operating state information to the CPU 30 of the communication device. In addition, the state control register module 105 can receive the state control information sent by the CPU 30 and further send the state control information to the parsing module 101, so that the parsing module 101 can start the aforementioned operations such as receiving the data to be processed and parsing it based on the state control information.

[0064] According to the embodiments of the present disclosure, multiple different communication security protocols are configured within a single hardware module, the converged security module 10. Then, based on a combination of the converged security module 10 and software, the corresponding target communication security protocol is selected for processing the received data to be processed. In other words, by integrating multiple communication security protocols into a single hardware module and reusing them, the present disclosure enables a communication chip to implement the data plane functions of multiple communication security protocols while effectively improving chip performance.

[0065] In addition, the present disclosure also optimizes the data flow transmission method of the control plane by integrating multiple communication security protocols through a hardware module, thereby effectively reducing the delay of the communication chip on the data plane.

[0066] The converged security module 10 according to an embodiment of the present disclosure may further include: a flow table cache module 111 , which is used to store flow table information and encryption / decryption information of data to be processed.

[0067] As shown in Figure 4, the integrated security module 10 of the communication chip according to the embodiment of the present disclosure may also include a dequeue module 104, which is respectively connected to the algorithm core module 103 and the other data message interface 20 (such as L2SW, TOE and ETH) of the communication device, so as to be used to splice the encrypted / decrypted data and forward it to the other data message interface 20 of the communication device.

[0068] In addition, the integrated security module 10 of the communication chip according to the embodiment of the present disclosure may further include a flow table cache module 111, which may be connected to the aforementioned parsing module 101, enqueue module 102, and dequeue module 104. The flow table cache module 111 is primarily used to cache flow table information and encryption / decryption information related to data to be processed that may be received by the integrated security module 10.

[0069] According to embodiments of the present disclosure, the encryption / decryption information cached in the flow table cache module 111 may include: a secret key, an encapsulation header, the padding length of the decrypted data, and the authentication / encryption / decryption algorithm mode. It should be understood that, based on the different design requirements of actual applications, in different feasible implementations, the encryption / decryption information related to the encryption / decryption of the data to be processed that can be stored in the flow table cache module 111 may also include other information different from that listed here. The communication chip according to embodiments of the present disclosure is not limited to the specific type of encryption / decryption information.

[0070] According to an embodiment of the present disclosure, the parsing module 101 is further configured to search for flow table information from the flow table cache module 111 and send the flow table information to the enqueuing module 102 .

[0071] The enqueue module 102 is further configured to search for encryption / decryption information from the flow table cache module 111 when determining to perform encryption / decryption processing on the data to be processed according to the flow table information, and send the found encryption / decryption information to the algorithm core module 103 .

[0072] The algorithm core module 103 is further configured to perform encryption / decryption processing on the data to be processed according to the target communication security protocol and encryption / decryption information.

[0073] In the integrated security module 10 of the communication chip according to an embodiment of the present disclosure, after receiving the data to be processed, the parsing module 101 can also search the flow table information of the data to be processed from the flow table cache module 111 based on the header information of the data to be processed obtained through parsing, and further send the flow table information to the enqueuing module 102. If the enqueuing module 102 determines based on the header information of the data to be processed that encryption / decryption is currently required for the data to be processed, it also searches the flow table cache module 111 for encryption / decryption information for encrypting / decrypting the data to be processed based on the header information, and further sends the found encryption / decryption information to the algorithm core module 103. The algorithm core module 103 can use the encryption / decryption information sent by the enqueuing module 102 to encrypt / decrypt the data to be processed according to the target communication security protocol determined by the parsing module 101 under the target communication security protocol.

[0074] According to an embodiment of the present disclosure, the flow table cache module 111 is further configured to transmit the flow table information to the parsing module 101 .

[0075] In the integrated security module 10 of the communication chip according to an embodiment of the present disclosure, the flow table cache module 111 can also pre-send the stored flow table information to the parsing module 101 before the parsing module 101 receives the data to be processed. Thus, when the parsing module 101 subsequently receives the data to be processed, it can directly search the flow table information for the data to be processed locally.

[0076] According to an embodiment of the present disclosure, the above-mentioned parsing module 101 may include a lookup table 1011 .

[0077] The lookup table 1011 is used to cache the flow table information sent by the flow table cache module 111 , so that the parsing module 101 can search for the flow table information in the lookup table 1011 .

[0078] As shown in Figure 4, in the integrated security module 10 of the communication chip according to an embodiment of the present disclosure, the parsing module 101 may include a lookup table 1011. This lookup table 1011 is used to store the flow table information sent to the parsing module 101 by the flow table cache module 111 before the parsing module 101 receives the data to be processed. Based on this, after receiving the data to be processed, the parsing module 101 can directly search the local lookup table 1011 for the flow table information of the data to be processed based on the header information of the data to be processed obtained through parsing.

[0079] The integrated security module 10 of the communication chip according to the embodiment of the present disclosure may further include a first cache module 106 , a second cache module 107 , a third cache module 108 and a fourth cache module 109 .

[0080] The first cache module 106 is used to cache the to-be-processed data and flow table information sent by the parsing module 101 .

[0081] The second buffer module 107 is used to buffer the to-be-processed data and encryption / decryption information sent by the enqueue module 102 .

[0082] The third cache module 108 is used to cache the encryption / decryption data sent by the algorithm core module 103 .

[0083] The fourth buffer module 109 is used to buffer the spliced ​​encrypted / decrypted data sent by the dequeue module 104 .

[0084] As shown in Figure 4, the integrated security module 10 of the communication chip according to the embodiment of the present disclosure may also include multiple cache modules, such as a first cache module 106 connected between the parsing module 101 and the enqueue module 102, a second cache module 107 connected between the enqueue module 102 and the algorithm core module 103, a third cache module 108 connected between the algorithm core module 103 and the dequeue module 104, and a fourth cache module 109 connected between the dequeue module 104 and the data packet interface 20 (L2SW, TOE and ETH) of the communication device. The first cache module 106 is used to temporarily cache the data to be processed and the flow table information of the data to be processed sent by the parsing module 101. The second cache module 107 is used to temporarily cache the data to be processed and the encryption / decryption information of the data to be processed sent by the enqueue module 102. The third cache module 108 is used to temporarily cache the encrypted / decrypted data obtained after encryption / decryption processing on the data to be processed sent by the algorithm core module 103. The fourth cache module 109 is used to temporarily cache the spliced ​​encrypted / decrypted data sent by the dequeue module 104.

[0085] According to the embodiment of the present disclosure, the communication chip can effectively cache the pressure of data processing of the enqueue module 102, the algorithm core module 103, the dequeue module 104 and / or the data message interface 20 located after the cache module by adding a cache module between the parsing module 101 and the enqueue module 102, between the enqueue module 102 and the algorithm core module 103, between the algorithm core module 103 and the dequeue module 104 and / or between the dequeue module 104 and the data message interface 20, thereby further improving the overall performance of the communication chip in data processing.

[0086] According to an embodiment of the present disclosure, the integrated security module 10 of the communication security chip of the present disclosure may further include a replay protection module 110 .

[0087] The replay protection module 110 is used to perform a duplicate check on the data packets spliced ​​by the dequeue module 104 and confirm to forward the data packets when it is determined that the data packets pass the duplicate check.

[0088] As shown in Figure 4, the replay protection module 110 can be integrated into the dequeue module 104. In this way, in the data uplink direction, the replay protection module 110 can perform a duplicate check on the data packets spliced ​​by the dequeue module 104 to screen out data packets that are repeatedly sent due to malicious attacks. The replay protection module 110 can also determine that the data packet is not repeated through the duplicate check, so that through the current duplicate check operation, it can be confirmed that the dequeue module 104 can currently forward the spliced ​​data packet to the data packet interface 20 (Socket, IP Router, L2SW) of the communication device.

[0089] Furthermore, based on the above-mentioned embodiments of the communication chip according to the embodiments of the present disclosure, an embodiment of an operating method of the communication chip of the present disclosure is proposed.

[0090] It should be noted that the operating method of the communication chip according to the embodiment of the present disclosure is applied to the above-mentioned communication chip, which includes: a fusion security module, which is used to encrypt / decrypt the data to be processed according to multiple communication security protocols. It should be understood that based on the different design requirements of actual applications, in different feasible embodiments, the operating method of the communication chip according to the embodiment of the present disclosure can also be applied to other terminal devices. For the purpose of facilitating understanding and explaining the technical solution, the following text will use the communication chip as the executing entity of the solution to explain the operating method of the communication chip according to the embodiment of the present disclosure.

[0091] Referring to Figure 5 , which is a flow chart of a method for operating a communication chip according to an embodiment of the present disclosure, it should be noted that although a logical sequence is shown in the flow chart, in some cases, the method for operating a communication chip according to an embodiment of the present disclosure may also perform the steps shown or described in a different order than that shown or described herein.

[0092] As shown in FIG5 , the operating method of the communication chip according to an embodiment of the present disclosure may include steps S10 to S30 .

[0093] In step S10, data to be processed is received, and according to the message type of the data to be processed, a target communication security protocol corresponding to the message type is determined from a plurality of communication security protocols.

[0094] According to an embodiment of the present disclosure, the communication chip receives the data to be processed sent by the data message interface on the communication device to which the communication chip belongs through the parsing module in the fusion security module, and then parses the data to be processed through the parsing module to determine the message type of the data to be processed, and then, based on the message type, determines at least one target communication security protocol corresponding to the message type from the multiple communication security protocols configured in the fusion security module to be used for processing the data to be processed.

[0095] It should be noted that the communication security protocols configured by the converged security module according to the embodiment of the present disclosure include: media access control security protocol, Internet protocol layer security protocol and transport layer security protocol.

[0096] Based on this, the communication chip can parse the header information of the data to be processed after receiving the data to be processed from any data message interface of the communication device through the parsing module in the integrated security module, and determine whether the message type of the data to be processed is a transmission control message, Internet protocol message or data link message. That is to say, when the parsing module determines through parsing that the message type of the data to be processed is a transmission control message, the transport layer security protocol configured by the fusion security module is determined to be the target communication security protocol TLS corresponding to the transmission control message and currently needed to be used to process the data to be processed; or, when the parsing module determines through parsing that the message type of the data to be processed is an Internet Protocol message, the Internet Protocol layer security protocol configured by the fusion security module is determined to be the target communication security protocol corresponding to the Internet Protocol message and currently needed to be used to perform IPsec processing on the data to be processed; and, when the parsing module determines through parsing that the message type of the data to be processed is a data link message, the media access control security protocol MACsec configured by the fusion security module is determined to be the target communication security protocol corresponding to the data link message and currently needed to be used to process the data to be processed.

[0097] In step S20, it is determined whether to perform encryption / decryption processing on the data to be processed according to the flow table information of the data to be processed.

[0098] According to an embodiment of the present disclosure, after the communication chip determines the target communication security protocol corresponding to the message type of the data to be processed through the parsing module in the fusion security module, it further determines whether encryption / decryption processing is currently required for the data to be processed based on the flow table information of the data to be processed through the enqueuing module in the fusion security module.

[0099] It should be noted that, according to an embodiment of the present disclosure, the flow table information of the above-mentioned data to be processed can be obtained locally by querying a lookup table by the parsing module based on the header information of the data to be processed, or the flow table information can also be directly obtained by the parsing module based on the header information from the flow table cache module of the fusion security module.

[0100] In step S30, when it is determined that encryption / decryption processing is to be performed on the data to be processed, encryption / decryption processing is performed on the data to be processed according to the target communication security protocol to obtain encrypted / decrypted data.

[0101] According to an embodiment of the present disclosure, when the communication chip further determines, through the enqueue module within the fused security module, that encryption / decryption processing is currently required for the data to be processed, the algorithm core module within the fused security module encrypts / decrypts the data to be processed according to the target communication security protocol determined by the parsing module to obtain encrypted / decrypted data. Subsequently, the dequeue module within the fused security module concatenates the encrypted / decrypted data obtained by the algorithm core module and forwards it to the data packet interface of the communication device to which the communication chip belongs.

[0102] It should be noted that according to an embodiment of the present disclosure, after the communication chip parses the data to be processed through the parsing module and determines the target communication security protocol corresponding to the message type of the data to be processed from the multiple communication security protocols mentioned above, the parsing module also encapsulates the identifier used to identify the target communication security protocol in the header information of the data to be processed, thereby sending the identifier together with the data to be processed to the enqueuing module, and the enqueuing module further passes the identifier to the algorithm core module. In this way, the algorithm core module can determine which communication security protocol is currently being used to process the data to be processed, which is also sent by the enqueuing module.

[0103] For example, in the direction of data downlink encryption, the communication chip adopts the architecture shown in Figure 6 and the application process shown in Figure 7 to perform data downlink encryption. For example, if the data to be processed sent by the communication device to the communication chip through the data message interface needs to be encrypted with TLS, then the data to be processed can be specifically sent to the fusion security module through the socket layer. In this way, after the data to be processed enters the parsing module (PARSER), the parsing module (PARSER) checks the flow table of the TCP layer in the flow table cache module (SA / SAD / SPD / SP BUFFER), and after parsing, adds the flow table information (including flow table id and related information) to the message header of the data to be processed as its header information, and then stores it in the first cache module (BUFFER) between the parsing module (PARSER) and the queue module (IN_QUEUE).

[0104] Afterwards, in the queue entry module (IN_QUEUE), the queue entry module (IN_QUEUE) decides whether to encrypt the data to be processed or directly transmit it transparently based on the header information of the received data to be processed. If it is determined to be transmitted transparently, it directly enters the second cache module between the queue entry module and the algorithm core module (including the symmetric algorithm and the verification algorithm). If it is determined to encrypt the data to be processed, the queue entry module further searches the flow table cache module for encryption / decryption information such as the key, encapsulation header, padding length, and algorithm mode based on the flow table id in the flow table information, and further encapsulates the encryption / decryption information into the additional authentication data (AAD) part (i.e., only the authentication part in Figure 3c) and the PAYLOAD part in the data to be processed according to Figure 3c, and stores the encapsulated data to be processed in the second cache module in sequence.

[0105] Furthermore, in the algorithm core module, after receiving the encapsulated data to be processed sent by the enqueue module, the algorithm core module can select the corresponding algorithm core according to the encryption / decryption information carried by the AAD part and the PAYLOAD part according to the corresponding algorithm mode, and input the encryption parameters, AAD part, and PAYLOAD part into the algorithm core in sequence, and output the transparent message header, encrypted payload, and authentication code, and further store them in the third cache module between the algorithm core module and the dequeue module in sequence.

[0106] Finally, in the dequeue module, the dequeue module sequentially splices the message header, encrypted payload, and authentication code into the "TLSv1.3Ciphertext" format in Figure 3c, and stores them in the fourth cache module between the dequeue module and the data message interface TOE, and then sends the TLS 1.3 message in the fourth cache module to the data message interface TOE of the communication device.

[0107] According to the embodiment of the present disclosure, if the data to be processed sent by the communication device to the communication chip through the data packet interface needs to be encrypted by IPsec, then the data to be processed is sent to the parsing module in the fusion security module through the data packet interface IP Router, and the parsing module decides whether to transparently transmit or encrypt the data to be processed by looking up the SPD table in the flow table cache module at this time. If encryption is required, the SAD table in the flow table cache module is continued to be searched, and after obtaining the flow table ID, an operation similar to the above-mentioned TLS encryption process is used to encrypt the data to be processed and then send it to the data packet interface L2SW for forwarding.

[0108] Similarly, if the data to be processed sent by the communication device to the communication chip through the data packet interface needs to be encrypted by MACsec, the data to be processed is sent to the parsing module in the integrated security module through the data packet interface L2SW, and the parsing module decides whether to transparently transmit or encrypt the data to be processed by searching the SA table at this time. If encryption is required, the SAD table in the flow table cache module is continued to be searched, and after obtaining the flow table ID, an operation similar to the above-mentioned TLS encryption process is used to encrypt the data to be processed and send it to the data packet interface ETH.

[0109] According to the embodiment of the present disclosure, in the direction of uplink data decryption, the communication chip adopts the architecture shown in Figure 8 and the application process shown in Figure 9 to perform uplink data decryption. For example, if the data to be processed upstream of the network card needs to be decrypted by TLS at this time, the data to be processed can be specifically transmitted to the fusion security module through the socket layer TOE. After the data to be processed is transmitted to the parsing module of the fusion security module, the parsing module checks the flow table of the TCP layer in the flow table cache module, and after completing the parsing, the flow table information (including the flow table id and related information) is added to the message header of the data to be processed as its header information, and then stored in the first cache module.

[0110] Afterwards, in the enqueue module, the enqueue module decides whether to decrypt the data to be processed or directly transmit it transparently based on the header information of the received data to be processed. If it is determined to be transmitted transparently, it will directly enter the second cache module. If it is determined to decrypt the data to be processed, the enqueue module will further search the flow table cache module for encryption / decryption information such as the key and algorithm mode based on the flow table ID in the flow table information, and further encapsulate the encryption / decryption information into the AAD part and the PAYLOAD part of the data to be processed according to Figure 3c, and store the encapsulated data to be processed in the second cache module in sequence. Since TCP messages are naturally transmitted in order, they do not need to pass through the replay protection module;

[0111] Furthermore, in the algorithm core module, after receiving the encapsulated data to be processed sent by the enqueue module, the algorithm core module can select the corresponding algorithm core according to the encryption / decryption information carried by the AAD part and the PAYLOAD part according to the corresponding algorithm mode, and input the decryption parameters, AAD part, and PAYLOAD part into the algorithm core in sequence, and output the transparent message header, decrypted payload, and authentication code, and at the same time store each output in the third cache module in sequence.

[0112] Finally, in the dequeue module, the dequeue module splices the message header and the decrypted payload into the format of the HTTP message in Figure 3c, and compares whether the authentication code is consistent. If the comparison is successful, the spliced ​​HTTP message is stored in the fourth cache module (if the comparison fails, the packet is discarded), and then the HTTP message in the fourth cache module is sent to the socket layer.

[0113] According to the embodiments of the present disclosure, if the data to be processed upstream from the network card is to be decrypted by IPsec, the data is sent to the parsing module in the integrated security module via the data packet interface L2SW module. The parsing module then determines whether the message should be transparently transmitted or decrypted by searching the SPD table in the flow table cache module. If decryption is required, the SAD table in the flow table cache module is further searched. After obtaining the flow table ID, the data is processed using operations similar to the above-mentioned TLS decryption process. Finally, the decrypted message is sent to the data packet interface IP Router for forwarding.

[0114] Similarly, if the data being processed upstream from the network card is for MACsec decryption, it is sent via the data packet interface ETH module to the parsing module in the converged security module. The parsing module searches the SA table in the flow table cache module to determine whether the message should be transparently transmitted or decrypted. For decryption, after obtaining the flow table ID, the parsing module processes the data using operations similar to the TLS decryption process described above, and finally sends the decrypted message to the data packet interface L2SW.

[0115] According to the operating method of the communication chip of the embodiment of the present disclosure, the communication chip receives the data to be processed sent by the data message interface of the communication device to which the communication chip belongs through the parsing module in the fusion security module, and then parses the data to be processed through the parsing module to determine the message type of the data to be processed, and based on the message type, determines at least one target communication security protocol corresponding to the message type from the multiple communication security protocols configured by the fusion security module to be used for processing the data to be processed. Afterwards, further through the queue module in the fusion security module, it is determined whether it is currently necessary to perform encryption / decryption processing on the data to be processed based on the flow table information of the data to be processed. If it is further determined by the queue module in the fusion security module that encryption / decryption processing is currently required for the data to be processed, the algorithm core module in the fusion security module is then used to perform encryption / decryption processing on the data to be processed based on the target communication security protocol determined by the parsing module to obtain encrypted / decrypted data. Afterwards, the dequeue module in the fusion security module splices the encrypted / decrypted data obtained by the algorithm core module through encryption / decryption processing, and forwards it to the data message interface of the communication device to which the communication chip belongs.

[0116] Thus, compared to the traditional method of processing data by pure software or by separately calling the hardware and software of different communication security protocols through a virtual machine, the operation method of the communication chip according to the embodiment of the present disclosure configures a plurality of different communication security protocols in a hardware module, and then selects the corresponding target communication security protocol for encryption and decryption and / or transparent transmission of the received data to be processed based on the combination of the hardware module and software. Thus, the present disclosure optimizes the data flow transmission method of the control plane by integrating the security module, effectively reducing the delay of the communication chip on the data plane, thereby enabling the communication chip to realize the data plane functions of multiple communication security protocols while also improving the performance of the chip.

[0117] The present disclosure also provides a non-transitory computer storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the method for operating the communication chip as described above are implemented.

[0118] The specific embodiments of the non-transitory computer storage medium according to the embodiments of the present disclosure are substantially the same as the embodiments of the operating method of the communication chip described above, and are not described in detail herein.

[0119] The present disclosure also provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps of the operation method of the communication chip are implemented.

[0120] The specific embodiments of the computer program product according to the embodiments of the present disclosure are substantially the same as the embodiments of the operating method of the communication chip described above, and are not described in detail herein.

[0121] The above are only preferred embodiments of the present disclosure and are not intended to limit the patent scope of the present disclosure. Any equivalent structure or equivalent process transformation made using the contents of the present disclosure and the drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present disclosure.

Claims

1. A communication chip, comprising: A fusion security module configured to perform encryption / decryption processing on the data to be processed according to a variety of communication security protocols, Wherein, the fusion security module includes: a parsing module configured to receive the data to be processed, and determine a target communication security protocol corresponding to the message type from the multiple communication security protocols according to the message type of the data to be processed; an enqueue module, configured to determine whether to perform encryption / decryption processing on the data to be processed according to the flow table information of the data to be processed; and An algorithm core module is configured to perform encryption / decryption processing on the data to be processed according to the target communication security protocol when the enqueue module determines to perform encryption / decryption processing on the data to be processed.

2. The communication chip as claimed in claim 1, wherein: The communication security protocols include: media access control security protocol, Internet protocol layer security protocol and transport layer security protocol, and The parsing module is further configured to: In the case where the message type is a transmission control message, determining the transport layer security protocol as a target communication security protocol corresponding to the transmission control message; In the case where the message type is an Internet Protocol message, determining the Internet Protocol layer security protocol as a target communication security protocol corresponding to the transmission control message; and In the case where the message type is a data link message, the media access control security protocol is determined as a target communication security protocol corresponding to the transmission control message.

3. The communication chip as claimed in claim 1, wherein: The fusion security module also includes: A dequeue module configured to concatenate and forward the algorithm core module to the waiting The encrypted / decrypted data obtained by encrypting / decrypting the processed data; a flow table cache module, configured to store the flow table information and encryption / decryption information, Wherein, the parsing module is further configured to: search for the flow table information from the flow table cache module, and send the flow table information to the enqueue module; The queuing module is further configured to: when it is determined according to the flow table information that the to-be-processed data is to be encrypted / decrypted, search for the encryption / decryption information from the flow table cache module, and send the found encryption / decryption information to the algorithm core module; The algorithm core module is also configured to: perform encryption / decryption processing on the data to be processed according to the target communication security protocol and the encryption / decryption information.

4. The communication chip as claimed in claim 3, wherein: The flow table cache module is further configured to: send the flow table information to the parsing module; The parsing module comprises: A lookup table is configured to cache the flow table information sent by the flow table cache module, so that the parsing module can search for the flow table information in the lookup table.

5. The communication chip as claimed in claim 1, wherein: The fusion security module also includes: A first cache module, configured to cache the to-be-processed data and the flow table information sent by the parsing module; A second cache module, configured to cache the to-be-processed data and the encryption / decryption information sent by the enqueue module; A third cache module, configured to cache the encryption / decryption data sent by the algorithm core module; and A fourth cache module is configured to cache the spliced ​​encrypted / decrypted data sent by the dequeue module.

6. The communication chip as claimed in claim 1, wherein: The fusion security module also includes: A replay protection module is configured to replay the data packets obtained by the dequeue module. Perform duplicate checking, and confirm to forward the data packet when it is determined that the data packet passes the duplicate checking.

7. The communication chip according to any one of claims 1 to 6, wherein: The fusion security module further includes: A status control register module is configured to collect the respective running status information of the parsing module, the enqueue module, the algorithm core module and / or the dequeue module, upload the running status information, receive status control information, and send the status control information to the parsing module.

8. A method for operating a communication chip, which is applied to a communication chip, wherein the communication chip comprises: A fusion security module, wherein the fusion security module is configured to perform encryption / decryption processing on the data to be processed according to a plurality of communication security protocols, and the operation method of the communication chip includes: receiving data to be processed, and determining a target communication security protocol corresponding to the message type from the plurality of communication security protocols according to the message type of the data to be processed; Determining whether to perform encryption / decryption processing on the data to be processed according to the flow table information of the data to be processed; and When it is determined to perform encryption / decryption processing on the data to be processed, encryption / decryption processing is performed on the data to be processed according to the target communication security protocol to obtain encrypted / decrypted data.

9. A communication device, comprising: The communication chip, memory, processor and a computer program stored in the memory and executable on the processor as claimed in any one of claims 1 to 7, wherein the computer program, when executed by the processor, implements the operation method of the communication chip as claimed in claim 8. 10 . A non-transitory computer storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the operation method of the communication chip according to claim 8 .

Citation Information

Patent Citations

  • Method, switch, and sites for data transmission

    CN112449751A

  • Packet transmission method, device, and system

    CN113812126A

  • Message processing method and device based on MACSec network

    CN114244626A

  • Method for processing data packet and network card

    WO2019129167A1