Node security authentication method and device, electronic equipment and readable storage medium

Through the multi-level security authentication mechanism, security authentication is carried out according to the security level requirements of the requesting node, which solves the problem of spy nodes impersonating attacks and improves the security and cache consistency of the system.

CN119046958APending Publication Date: 2024-11-29SHANDONG YUNHAI GUOCHUANG CLOUD COMPUTING EQUIP IND INNOVATION CENT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411025950.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-29
Publication Date
2024-11-29

Smart Images

  • Figure CN119046958A_ABST
    Figure CN119046958A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a node security authentication method and device, electronic equipment and a readable storage medium. The method comprises the following steps: determining a target security authentication strategy corresponding to a security level demand according to the security level demand corresponding to a request node; performing security authentication on the request node and the consistency request in the processing node according to a target security authentication strategy corresponding to the security level demand; after both the request node and the consistency request complete security authentication, processing the data of the memory according to the consistency request; wherein the memory and the request node perform data interaction. According to the embodiment of the invention, a multi-level security authentication mechanism is introduced, a proper security level can be selected according to actual requirements, memory attacks caused by reading the memory by the newly inserted spy node in a physical mode are prevented, memory data are protected from being stolen and tampered by malicious nodes, and the security and cache consistency of the system are further improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of computer technology, and in particular to a node security authentication method, a node security authentication device, an electronic device, and a computer-readable storage medium. Background Art

[0002] The CHI (Coherent Hub Interface) protocol is a cache consistency protocol, a transaction-based cache consistency protocol, and is currently a relatively rich and comprehensive consistency protocol with wide application. With the increase in computing load and the increase in computing cores, the system uses a mesh network + cluster to expand, supporting up to 4096 cores. At the same time, in order to cope with the problem of reduced yield due to the increase in chip area, chiplet (chip granularity) technology is introduced to achieve interconnection between different cores through the die-to-die interface. In addition, with the increase in DSA (Domain-Specific Architecture) computing requirements, heterogeneous computing and on-chip and inter-chip interconnection networks are also constantly improving their support for heterogeneous nodes, which requires the unification of interfaces, such as supporting standard CHI protocols and chiplet interfaces.

[0003] However, in unified memory and chiplet-based multi-level cache systems, there is a key security issue: spy nodes may be able to physically read memory and perform memory attacks. Although existing protection measures such as Intel TME (Intel Total Memory Encryption) and AMD SME (AMD Secure Memory Encryption) provide certain protection through full memory encryption, these measures are mainly focused on the MMU (Memory Management Unit) and MPU (Memory Protection Unit) protection inside the processor, while other nodes outside the processor are not protected by this type of protection. Therefore, it is still possible for spy nodes to impersonate other nodes and issue read and write requests to the nodes, thereby reading or tampering with memory data. Summary of the invention

[0004] The embodiment of the present invention provides a node security authentication method, device, electronic device and computer-readable storage medium to solve the problem in the prior art that spy nodes can impersonate other nodes, causing memory data to be attacked.

[0005] An embodiment of the present invention discloses a node security authentication method, the method comprising:

[0006] Determine the target security authentication policy corresponding to the security level requirement according to the security level requirement corresponding to the requesting node; the requesting node is used to send a consistency request;

[0007] Performing security authentication on the requesting node and the consistency request in a processing node according to a target security authentication policy corresponding to the security level requirement; the processing node is used to process the consistency request;

[0008] After the requesting node and the consistency request have both completed the security authentication, the data in the memory is processed according to the consistency request; wherein the memory and the requesting node perform data exchange.

[0009] Optionally, performing security authentication on the requesting node and the consistency request in the processing node according to the target security authentication policy corresponding to the security level requirement includes:

[0010] When the security level requirement corresponding to the requesting node is the first level, receiving a first link request sent by the requesting node; the first link request includes a unique identifier and a digital signature corresponding to the requesting node, and the first link request is used to establish a communication link between the requesting node and the processing node;

[0011] Determine a first node public key by using a unique identifier corresponding to the requesting node, and decrypt the digital signature by using the first node public key to obtain a decrypted identifier;

[0012] When the decryption identifier successfully matches the unique identifier corresponding to the requesting node, it is determined that the requesting node completes the security authentication, and a node identifier is sent to the requesting node;

[0013] Using the node identifier as the identifier corresponding to the requesting node;

[0014] The consistency request is received, and it is determined that the consistency request completes the security authentication.

[0015] Optionally, performing security authentication on the requesting node and the consistency request in the processing node according to the target security authentication policy corresponding to the security level requirement includes:

[0016] When the security level requirement corresponding to the requesting node is the second level, after the decryption identifier successfully matches the unique identifier corresponding to the requesting node, sending a random number to the requesting node;

[0017] receiving a second link request sent by the requesting node; the link request includes a unique identifier corresponding to the requesting node and a digital signature, the digital signature being generated by signing the random number and the unique identifier corresponding to the requesting node;

[0018] Determine the second node public key by the unique identifier corresponding to the requesting node, and decrypt the digital signature by the second node public key to obtain a decryption identifier and a decryption random number;

[0019] When the decrypted identifier successfully matches the unique identifier corresponding to the requesting node, and the decrypted random number successfully matches the random number, it is determined that the requesting node completes the security authentication, and a node identifier is sent to the requesting node;

[0020] Using the node identifier as the identifier corresponding to the requesting node;

[0021] The consistency request is received, and it is determined that the consistency request completes the security authentication.

[0022] Optionally, performing security authentication on the requesting node and the consistency request in the processing node according to the target security authentication policy corresponding to the security level requirement includes:

[0023] When the security level requirement corresponding to the requesting node is the third level, after the decryption identifier successfully matches the unique identifier corresponding to the requesting node, and the decrypted random number successfully matches the random number, it is determined that the requesting node completes the security authentication;

[0024] Determine the key encapsulation public key and the symmetric key of the requesting node, encrypt the symmetric key by the key encapsulation public key of the requesting node to obtain an encrypted symmetric key, and send a node identifier and the encrypted symmetric key to the requesting node;

[0025] Receiving an encrypted request transaction, determining that the consistency request completes the security authentication; the encrypted request transaction is obtained after the requesting node encrypts the request transaction based on the encrypted symmetric key, and the request transaction includes the consistency request.

[0026] Optionally, performing security authentication on the requesting node and the consistency request in the processing node according to the target security authentication policy corresponding to the security level requirement includes:

[0027] When the security level requirement corresponding to the requesting node is the fourth level, when the decryption identifier successfully matches the unique identifier corresponding to the requesting node, and the decrypted random number successfully matches the random number, it is determined that the requesting node completes the security authentication, or, after determining that the requesting node completes the security authentication and after sending the node identifier and the encrypted symmetric key to the requesting node, a random restriction request mechanism is generated;

[0028] Encrypting the random restriction request mechanism by encapsulating the public key of the requesting node with a key to obtain an encrypted restriction request mechanism, and sending the encrypted restriction request mechanism to the requesting node;

[0029] Receiving the encryption restriction request mechanism transaction corresponding to the encryption restriction request mechanism, it is determined that the consistency request completes the security authentication; the encryption restriction request mechanism transaction corresponding to the encryption restriction request mechanism is obtained after the requesting node encrypts the request transaction corresponding to the encryption restriction request mechanism based on the encryption symmetric key, and the request transaction corresponding to the encryption restriction request mechanism includes the consistency request.

[0030] Optionally, the requesting node includes a management node, the management node is used to issue a request transaction, the management node includes a configuration register for allocating address space, and the request transaction includes the consistency request.

[0031] Optionally, after the requesting node and the consistency request complete the security authentication, after processing the data in the memory according to the consistency request, the method further includes:

[0032] The security level requirement corresponding to the requesting node is adjusted through the management node.

[0033] The embodiment of the present invention also discloses a node security authentication device, the device comprising:

[0034] A determination module, used to determine a target security authentication policy corresponding to a security level requirement according to a security level requirement corresponding to a requesting node; the requesting node is used to send a consistency request;

[0035] A security authentication module, configured to perform security authentication on the requesting node and the consistency request in a processing node according to a target security authentication policy corresponding to the security level requirement; the processing node is configured to process the consistency request;

[0036] A processing module is used to process the data in the memory according to the consistency request after the requesting node and the consistency request have completed the security authentication; wherein the memory interacts with the requesting node for data.

[0037] The embodiment of the present invention further discloses an electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;

[0038] The memory is used to store computer programs;

[0039] The processor is used to implement the method described in the embodiment of the present invention when executing the program stored in the memory.

[0040] The embodiment of the present invention further discloses a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the embodiment of the present invention.

[0041] The embodiment of the present invention further discloses a computer-readable storage medium having instructions stored thereon, which, when executed by one or more processors, enables the processors to execute the method described in the embodiment of the present invention.

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

[0043] In an embodiment of the present invention, a target security authentication strategy corresponding to the security level requirement is determined according to the security level requirement corresponding to the requesting node; the requesting node is used to send a consistency request; the requesting node and the consistency request are security authenticated in a processing node according to the target security authentication strategy corresponding to the security level requirement; the processing node is used to process the consistency request; after the requesting node and the consistency request have completed the security authentication, the data in the memory is processed according to the consistency request; wherein the memory interacts with the requesting node for data. The embodiment of the present invention introduces a multi-level security authentication mechanism, and a suitable security level can be selected according to actual needs to achieve security protection for different requesting nodes and requests issued by requesting nodes, prevent memory attacks by newly inserted spy nodes that physically read the memory, and protect memory data from data theft and tampering by malicious nodes, thereby improving the security and cache consistency of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 is a schematic diagram of an application environment provided in an embodiment of the present invention;

[0045] Figure 2 is a flowchart of a node security authentication method provided in an embodiment of the present invention;

[0046] Figure 3 It is a schematic diagram of a digital signature authentication provided in an embodiment of the present invention;

[0047] Figure 4 It is a schematic diagram of an attack on digital signature authentication provided in an embodiment of the present invention;

[0048] Figure 5 is a schematic diagram of an enhanced digital signature authentication provided in an embodiment of the present invention;

[0049] Figure 6 It is a schematic diagram of an attack on enhanced digital signature authentication provided in an embodiment of the present invention;

[0050] Figure 7 It is a schematic diagram of the principle of key encapsulation;

[0051] Figure 8 is a schematic diagram of a signature and key encapsulation provided in an embodiment of the present invention;

[0052] Fig. 9 is a schematic diagram of an attack on signature and key encapsulation provided in an embodiment of the present invention;

[0053] Fig.10 is a schematic diagram of a credit random number signature scheme provided in an embodiment of the present invention;

[0054] Fig.11 is a schematic diagram of protection configuration and level configuration of an HN node provided in an embodiment of the present invention;

[0055] Fig.12 is a schematic diagram based on a two-level dispatch unit provided in an embodiment of the present invention;

[0056] Fig.13 It is a structural block diagram of a node security authentication device provided in an embodiment of the present invention;

[0057] Fig.14 is a schematic diagram of the hardware structure of an electronic device for implementing various embodiments of the present invention;

[0058] Fig.15 is a schematic diagram of a computer-readable medium provided in an embodiment of the present invention. DETAILED DESCRIPTION

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

[0060] The embodiment of the present invention will target physical memory read and write attacks based on cache consistency read and write requests, add a node trusted authentication function to the chiplet-based multi-level cache architecture, implement node security authentication, and require the node to pass the authentication of the HN node before issuing a read and write request. It can also encrypt and sign the consistency read and write requests issued by the RN node based on a random credit mechanism to prevent spy nodes from forging read and write requests to tamper with or steal memory data. The embodiment of the present invention mainly provides a set of node security authentication methods and devices for RN nodes newly added to a multi-level cache system or a consistency protocol system.

[0061] RN nodes are nodes used to send consistency requests and are often linked to computing nodes such as CPUs and GPUs. HN nodes are nodes used to process consistency requests and are often linked to L2 cache or L3 cache in multi-core processors.

[0062] Reference Figure 1 , shows a schematic diagram of an application environment provided in an embodiment of the present invention, which mainly realizes a node security authentication method provided in an embodiment of the present invention by transmitting data between a requesting node (RN node) and a processing node (HN node).

[0063] Reference Figure 2 , shows a flowchart of a node security authentication method provided in an embodiment of the present invention, which may specifically include the following steps:

[0064] Step 201: Determine a target security authentication policy corresponding to a security level requirement according to a security level requirement corresponding to a requesting node; the requesting node is used to send a consistency request;

[0065] In the embodiment of the present invention, the corresponding target security authentication strategy is first determined according to the security level requirements of the requesting node (RN node). Each security level corresponds to a different authentication method, such as digital signature authentication, enhanced digital signature authentication, signature and key encapsulation, and credit-based random number signature scheme. The system can select appropriate authentication strategies according to different security requirements, thereby adapting to the security requirements of different software, operating systems, programs or tasks, and provides authentication schemes with multiple security levels, so that the system can flexibly adjust security protection measures according to actual conditions.

[0066] Step 202: Perform security authentication on the requesting node and the consistency request in a processing node according to a target security authentication policy corresponding to the security level requirement; the processing node is used to process the consistency request;

[0067] In the embodiment of the present invention, the processing node (HN node) performs security authentication on the requesting node and the consistency request according to the determined target security authentication strategy, such as verifying the digital signature, exchanging symmetric keys, sending and verifying the random number (credit), etc. Through a strict security authentication process, it is ensured that only authenticated nodes can issue valid consistency requests, thereby preventing attacks from unauthorized nodes, and the authentication process ensures the legitimacy of the nodes and requests, enhancing the overall reliability of the system.

[0068] In the embodiment of the present invention, the target security authentication strategies involved are as follows:

[0069] S0: Digital signature authentication, only when the RN node sends a link request to the HN node, the HN node will verify its digital signature to achieve node security authentication. In this strategy, there is no need to verify the consistency request sent by the RN node, and the subsequent data transmission is directly carried out in plain text.

[0070] S1: Enhanced digital signature authentication, the HN node actively sends authentication information and verifies the digital signature returned by the RN node. In this strategy, there is no need to perform consistency requests issued by the RN node, and subsequent data transmission is directly carried out in plain text.

[0071] S2: Signature and key encapsulation. The HN node actively sends authentication information and verifies the digital signature returned by the RN node. After the HN node completes the authentication of the RN node, in this strategy, the symmetric key is provided to the RN node for subsequent data transmission to achieve secure authentication of the consistency request.

[0072] S3: Credit random number signature scheme: The HN node issues a random number as a credit. Each time the RN node sends a request, it must sign this credit and the hash value or other verification value of the request content.

[0073] Step 203: After the requesting node and the consistency request complete the security authentication, the data in the memory is processed according to the consistency request; wherein the memory interacts with the requesting node for data.

[0074] In the embodiment of the present invention, once the requesting node and the consistency request have passed the security authentication, the system will process the data in the memory according to the consistency request, such as reading, writing or modifying the memory data, to ensure the consistency and correctness of the data. The authenticated request ensures the correctness of the memory operation and maintains the data consistency in the multi-level cache system. The memory operation is performed only after both the request and the node have passed the authentication, which reduces the consumption of system resources by invalid or malicious requests and improves the system efficiency.

[0075] The embodiment of the present invention introduces a multi-level security authentication mechanism, and can select a suitable security level according to actual needs, to achieve security protection for different request nodes and requests issued by request nodes, to prevent memory attacks carried out by newly inserted spy nodes by physically reading the memory, to protect memory data from data theft and tampering by malicious nodes, thereby improving the security and cache consistency of the system.

[0076] In one embodiment of the present invention, in order to enhance the security and flexibility of the system, a variety of characteristics are applied to different security authentication schemes (S0 to S3), and the relevant characteristics are referred to in the following Table 1:

[0077] Table 1

[0078]

[0079]

[0080] These features are flexibly applied in different security authentication schemes to meet the security requirements in different scenarios. For example, in the S3 scheme, the T1-3 features may be used to require the RN node to sign the credit and request content verification value, and the T2-3 features may be used to encrypt the returned credit and partially encrypt the sent request transaction, thereby achieving a high level of security authentication.

[0081] In an embodiment of the present invention, the performing security authentication on the requesting node and the consistency request in the processing node according to the target security authentication policy corresponding to the security level requirement includes:

[0082] When the security level requirement corresponding to the requesting node is the first level, receiving a first link request sent by the requesting node; the first link request includes a unique identifier and a digital signature corresponding to the requesting node, and the first link request is used to establish a communication link between the requesting node and the processing node;

[0083] Determine a first node public key by using a unique identifier corresponding to the requesting node, and decrypt the digital signature by using the first node public key to obtain a decrypted identifier;

[0084] When the decryption identifier successfully matches the unique identifier corresponding to the requesting node, it is determined that the requesting node completes the security authentication, and a node identifier is sent to the requesting node;

[0085] Using the node identifier as the identifier corresponding to the requesting node;

[0086] The consistency request is received, and it is determined that the consistency request completes the security authentication.

[0087] In the embodiment of the present invention, when the security level requirement corresponding to the requesting node is the first level, S0: digital signature authentication will be performed.

[0088] Reference Figure 3 , shows a schematic diagram of a digital signature authentication provided in an embodiment of the present invention, wherein a requesting node (RN node) sends a first link request including a unique identifier (node ​​UID) and a digital signature to a processing node (HN node), the purpose of which is to establish a communication link between the RN node and the HN node. The HN node uses the received unique identifier to query the corresponding first node public key, which is pre-configured when the RN node is registered in the system and is used to verify the identity of the RN node. The HN node uses the queried node public key to decrypt the digital signature to obtain a decrypted identifier (decrypted UID). This decrypted identifier should match the unique identifier sent by the RN node. If the decrypted identifier successfully matches the unique identifier, the HN node confirms that the RN node has passed the security authentication. The HN node then sends a node identifier (node ​​ID) to the RN node to confirm the establishment of a communication link between the RN node and the HN node. Once the RN node passes the security authentication, the HN node receives consistency requests from the RN node, confirms that these requests have also completed the security authentication, and then transmits data in plain text.

[0089] The embodiment of the present invention uses a basic digital signature authentication mechanism to ensure that only the RN node with the correct private key can successfully establish a communication link with the HN node, which can prevent unauthorized nodes from impersonating legitimate nodes for communication, thereby protecting the system from attacks by malicious nodes. In addition, the authentication process is relatively simple and is suitable for scenarios where security requirements are not particularly high, and communication links between nodes can be quickly established.

[0090] However, the security of this strategy of digital signature identification is relatively low. The embodiment of the present invention also lists the attack method against this strategy. Figure 4 , showing a schematic diagram of an attack on digital signature authentication provided in an embodiment of the present invention. As long as the spy node obtains a link request sent by the RN node once, the digital signature and its ciphertext can be obtained. The ciphertext can be directly used to disguise the RN node, send a link request to the HN node and pass the above-mentioned digital signature authentication to impersonate a legitimate node to communicate with the HN node, thereby stealing and tampering with the memory data.

[0091] In an embodiment of the present invention, the performing security authentication on the requesting node and the consistency request in the processing node according to the target security authentication policy corresponding to the security level requirement includes:

[0092] When the security level requirement corresponding to the requesting node is the second level, after the decryption identifier successfully matches the unique identifier corresponding to the requesting node, sending a random number to the requesting node;

[0093] receiving a second link request sent by the requesting node; the link request includes a unique identifier corresponding to the requesting node and a digital signature, the digital signature being generated by signing the random number and the unique identifier corresponding to the requesting node;

[0094] Determine the second node public key by the unique identifier corresponding to the requesting node, and decrypt the digital signature by the second node public key to obtain a decryption identifier and a decryption random number;

[0095] When the decrypted identifier successfully matches the unique identifier corresponding to the requesting node, and the decrypted random number successfully matches the random number, it is determined that the requesting node completes the security authentication, and a node identifier is sent to the requesting node;

[0096] Using the node identifier as the identifier corresponding to the requesting node;

[0097] The consistency request is received, and it is determined that the consistency request completes the security authentication.

[0098] In order to prevent such fixed ciphertext attacks, an enhanced digital signature scheme S1 may be used. In an embodiment of the present invention, when the security level requirement corresponding to the requesting node is the second level, S1: enhanced digital signature authentication will be executed.

[0099] On the basis of S0, when the security level requirement corresponding to the requesting node (RN node) is the second level, the HN node will send a random number to the RN node after confirming that the decrypted identifier (decrypted UID) matches the unique identifier (node ​​UID) successfully. The purpose of this random number is to increase the randomness and security of the authentication process.

[0100] Reference Figure 5, shows a schematic diagram of an enhanced digital signature authentication provided in an embodiment of the present invention. After receiving the random number, the RN node generates a new digital signature. This signature is generated by signing the random number and the unique identifier of the RN node. The RN node then sends the second link request containing the new digital signature to the HN node. The HN node uses the unique identifier of the RN node to query the corresponding second node public key, and uses the second node public key to decrypt the new digital signature to obtain the decrypted identifier (decrypted UID) and the decrypted random number (decrypted random number). The HN node verifies whether the decrypted identifier matches the unique identifier of the RN node, and also verifies whether the decrypted random number matches the random number sent previously. If the decrypted identifier matches the unique identifier successfully, and the decrypted random number matches the sent random number successfully, the HN node confirms that the RN node has passed the enhanced security authentication. The HN node then sends a node identifier (node ​​ID) to the RN node to confirm the establishment of the link. Once the RN node passes the enhanced security authentication, the HN node receives consistency requests from the RN node and confirms that these requests have also completed security authentication.

[0101] The embodiment of the present invention enhances the security of the authentication process by introducing random numbers and a dual verification mechanism, and prevents fixed ciphertext attacks, that is, an attacker cannot impersonate a legitimate node with only a captured digital signature, and even if the attacker captures previous authentication information, he cannot replay the information to attack. Through dual verification (identifier and random number), the HN node can be more confident of the identity of the RN node, improving the credibility of the authentication process and the overall security of the system. It is suitable for scenarios with higher security requirements and can provide additional security for these scenarios.

[0102] However, the enhanced digital signature scheme is a link-time authentication scheme after all, and the embodiment of the present invention also lists the attack method against this strategy, refer to Figure 6 , shows a schematic diagram of an attack on enhanced digital signature authentication provided in an embodiment of the present invention. As long as the spy node can copy and forward the link request information in time, it can then take over the normal node to perform memory attacks. Unless HN imposes extremely strict time limits on the response of RN, such time limits will increase the failure rate of normal node link requests on the one hand, and on the other hand, it can also be cracked by lowering the input clock frequency of HN.

[0103] In this regard, a further security solution is to not only perform authentication when linking, but also require the information to be encrypted each time the RN node issues a request. At this time, the encryption solution is more common in the communication field, which is the S2 solution that uses a symmetric key to encrypt the transmitted data. The embodiment of the present invention aims at the characteristics of the credit allocation commonly used in the current consistency protocol, and proposes the S3 solution, RN signature credit and its content verification value, to reduce the consumption of encryption and decryption.

[0104] In an embodiment of the present invention, the performing security authentication on the requesting node and the consistency request in the processing node according to the target security authentication policy corresponding to the security level requirement includes:

[0105] When the security level requirement corresponding to the requesting node is the third level, after the decryption identifier successfully matches the unique identifier corresponding to the requesting node, and the decrypted random number successfully matches the random number, it is determined that the requesting node completes the security authentication;

[0106] Determine the key encapsulation public key and the symmetric key of the requesting node, encrypt the symmetric key by the key encapsulation public key of the requesting node to obtain an encrypted symmetric key, and send a node identifier and the encrypted symmetric key to the requesting node;

[0107] Receiving an encrypted request transaction, determining that the consistency request completes the security authentication; the encrypted request transaction is obtained after the requesting node encrypts the request transaction based on the encrypted symmetric key, and the request transaction includes the consistency request.

[0108] In the embodiment of the present invention, when the security level requirement corresponding to the requesting node (RN node) is the third level, S2: signing and key encapsulation will be performed.

[0109] Reference Figure 7 , shows a schematic diagram of the principle of key encapsulation. The left node generates a random symmetric encryption key, encrypts it with the public key of the right node, and passes it to the right node. After the right node decrypts it with its own private key, the two nodes have the same symmetric key at the same time, and this symmetric key can be used for encrypted communication in subsequent communications. Applying the principle of key encapsulation to the communication between HN and RN nodes in the cache consistency system can ensure that the communication between HN and RN nodes cannot be cracked and used at will by spy nodes.

[0110] Reference Figure 8, shows a schematic diagram of a signature and key encapsulation provided in an embodiment of the present invention. The HN node first confirms that the decrypted identifier matches the unique identifier successfully, and the decrypted random number matches the sent random number successfully, thereby determining that the RN node has completed the preliminary security authentication. The HN node then determines the key encapsulation public key of the RN node and generates a symmetric key. The HN node uses the key encapsulation public key of the RN node to encrypt the symmetric key to obtain the encrypted symmetric key (encrypted symmetric key). The HN node sends the node identifier and the encrypted symmetric key to the RN node. The RN node uses its own key encapsulation private key to decrypt the received encrypted symmetric key to obtain the symmetric key. After that, the RN node uses the symmetric key to encrypt the sent request transaction (including the consistency request) and sends the encrypted request transaction to the HN node. After receiving the encrypted request transaction, the HN node uses the previously generated symmetric key to decrypt the request transaction to confirm the legitimacy of the request transaction. If the decryption is successful, the HN node determines that the consistency request has completed the security authentication and returns the encrypted / unencrypted transmission response transaction to the RN node.

[0111] The embodiment of the present invention ensures the security of the request transaction during transmission through key encapsulation and symmetric key encryption, prevents data from being intercepted and tampered with during transmission, and the encryption and decryption process of the symmetric key is only performed between the authenticated RN node and the HN node, preventing man-in-the-middle attacks and ensuring the privacy and integrity of communications. Through the use of key encapsulation and symmetric keys, the HN node can be more confident of the identity of the RN node and the legitimacy of the request transaction, thereby improving the reliability of the authentication process and the overall security of the system. It is suitable for scenarios with higher requirements for data transmission security and can provide additional security guarantees for these scenarios.

[0112] By applying the signature and key encapsulation strategy, the information transmitted between RN and HN can be completely secure, and anonymous impersonation of spy RN nodes can be prevented, as well as attacks on memory and cache content caused by impersonated RN nodes. However, although this solution can prevent attacks on arbitrary memory addresses and data theft by spy nodes, it cannot avoid other side channel attacks. Fig. 9 , shows a schematic diagram of an attack on signature and key encapsulation provided in an embodiment of the present invention. The spy node can intercept a request transaction of encrypted transmission and send this transaction to the HN node multiple times. By observing the electronic changes of the content and cache line, the location of the memory modification of this request transaction can be known, so that other side channel attack methods can be further applied. Of course, this type of attack method is completely out of the scope of cache consistency, node authentication, request authentication and transaction security communication used in the embodiment of the present invention.

[0113] In an embodiment of the present invention, the performing security authentication on the requesting node and the consistency request in the processing node according to the target security authentication policy corresponding to the security level requirement includes:

[0114] When the security level requirement corresponding to the requesting node is the fourth level, when the decryption identifier successfully matches the unique identifier corresponding to the requesting node, and the decrypted random number successfully matches the random number, it is determined that the requesting node completes the security authentication, or, after determining that the requesting node completes the security authentication and after sending the node identifier and the encrypted symmetric key to the requesting node, a random restriction request mechanism is generated;

[0115] Encrypting the random restriction request mechanism by encapsulating the public key of the requesting node with a key to obtain an encrypted restriction request mechanism, and sending the encrypted restriction request mechanism to the requesting node;

[0116] Receiving the encryption restriction request mechanism transaction corresponding to the encryption restriction request mechanism, it is determined that the consistency request completes the security authentication; the encryption restriction request mechanism transaction corresponding to the encryption restriction request mechanism is obtained after the requesting node encrypts the request transaction corresponding to the encryption restriction request mechanism based on the encryption symmetric key, and the request transaction corresponding to the encryption restriction request mechanism includes the consistency request.

[0117] In order to overcome the above-mentioned shortcomings of S2: signature and key encapsulation, based on the characteristics of the credit mechanism commonly used in current consistency protocols, a credit-based authentication and physical saturation attack prevention scheme is proposed in an embodiment of the present invention. When the security level requirement corresponding to the requesting node is the fourth level, S3: credit random number signature scheme will be executed.

[0118] On the basis of S0, when the security level requirement corresponding to the requesting node (RN node) is the second level, the HN node will send a random number to the RN node after confirming that the decrypted identifier (decrypted UID) matches the unique identifier (node ​​UID) successfully. The purpose of this random number is to increase the randomness and security of the authentication process.

[0119] Reference Fig.10, shows a schematic diagram of a credit random number signature scheme provided in an embodiment of the present invention. RN and HN can first pass S2 or S1 level authentication to complete preliminary link confirmation or symmetric key exchange. After confirming that the RN node has completed security authentication, the HN node generates a random restriction request mechanism (credit), which may be a random number or other form of restriction mechanism to ensure the uniqueness and security of each request transaction. The HN node uses the key encapsulation public key of the RN node to encrypt the random restriction request mechanism to obtain the encrypted restriction request mechanism (encrypted credit), and sends the encrypted mechanism to the RN node. The RN node uses its own key encapsulation private key to decrypt the received encrypted restriction request mechanism to obtain the random restriction request mechanism. Afterwards, the RN node uses this mechanism to encrypt the request transaction (including consistency request), at least encrypts the credit and message check value, and sends the encrypted request transaction (partially encrypted transmission request transaction) to the HN node. After receiving the partially encrypted request transaction, the HN node uses the previously generated random restriction request mechanism to decrypt the request transaction, compares the credit with the node id, and confirms the legitimacy of the request transaction. If they are inconsistent, the node is determined to be an illegal node, and the hardware or software is guided into the processing procedure of the illegal node. Confirm the legitimacy of the requested transaction.

[0120] Compared with the conventional 1-bit credit mechanism, the HN node can generate an 8-bit random number as a credit and send it to the RN node. Only the credit and part of the message are encrypted here, which can reduce the resource consumption of the encryption process while ensuring that the information is not leaked.

[0121] Because each credit can only support one transaction and becomes invalid after use, spy nodes cannot learn about the currently valid credits, and it is also difficult to learn about the symmetric key between RN and HN or the digital signature private key of RN. Therefore, it is impossible to attack the cache and memory by intercepting and repeatedly sending transaction requests. At the same time, because the checksum values ​​of credit and message are encrypted together, spy nodes cannot attack by intercepting encrypted credits and tampering with request transactions. In addition, the HN node will not perform any operations on the cache or memory before confirming that the request transaction is legitimate, which also avoids some side channel attacks on the cache or memory by illegal requests.

[0122] Therefore, S3 has complete communication security. At the same time, because the encryption process and the data to be encrypted are less than the full symmetric encryption of S2, it also has the advantage of less resource consumption.

[0123] In view of the actual situation in existing software applications, not all software, operating systems, programs or tasks require the same security protection method. Therefore, in the embodiment of the present invention, the operating system or software can control and configure the node security and memory address segment security.

[0124] In one embodiment of the present invention, the requesting node comprises a management node, the management node is used to issue a request transaction, the management node comprises a configuration register for allocating an address space, and the request transaction comprises the coherence request.

[0125] In the embodiment of the present invention, when a processor node with S3-level security is designed in the hardware architecture, the node can be identified as a management node by the software. This node can send configuration information to each node through the configuration request transaction in the preset consistency protocol to achieve two main functions: 1. Raise or lower the security level of a node, 2. Raise or lower the security level of some memory addresses.

[0126] Among them, for S3-level nodes, only one processor node with a fixed configuration of S3 level has the authority to lower its security level. For low-level nodes, any high-level node can raise or lower its security level.

[0127] In the embodiment of the present invention, the RN node with S3P level is called a processor node that can inevitably issue configuration transactions. It has a configuration register with an allocated address space. When a certain software needs to protect its memory address, a protection request can be written to this configuration register. The RN node builds a corresponding physical address protection table based on the virtual address mapping table of the MMU unit or TLB (Translation Lookaside Buffer, a kind of cache), and sends this physical address set to the corresponding HN node controller through a configuration request transaction. After receiving this set of physical addresses that need to be protected, the HN node controller saves it in the node address table and forwards it to other RN nodes as appropriate. When receiving read and write requests from other nodes, it will configure the corresponding security level in the memory address table and request other nodes to provide requests that meet this address security level.

[0128] For other common RN nodes, whether there is a configuration register depends on the chip manufacturer of the node hardware, such as GPU, NPU, etc. If there is a configuration register, this node can also be configured by software to actively send a request to the HN to increase or decrease the security level. It can also be configured by software to send a memory physical address protection request.

[0129] Reference Fig.11, shows a schematic diagram of a HN node protection configuration and level configuration provided in an embodiment of the present invention, with an S3P-level RN node configuration request transaction, requiring protection of the 0X0000 address, and sending this address to the corresponding HN node controller through a configuration request transaction. After receiving the address to be protected, the HN node controller checks the level requirements that need to be responded to in the address table, and forwards it to other RN nodes as appropriate. When receiving a read or write request from other nodes, it will request other nodes to provide a request that meets the security level of this address according to the corresponding security level configuration in the memory address table.

[0130] In the embodiment of the present invention, the consistency protocol with node security authentication and communication encryption functions is specifically divided into three parts: link layer, protocol layer and configuration request transaction, which are specifically described as follows:

[0131] In the link layer of the consistency protocol, there are four link layer signals: link request, link response, request transaction, and credit. The detailed description is shown in Table 2 below:

[0132] Table 2

[0133]

[0134]

[0135] In the protocol layer of the consistency protocol, a normal link request (plain text, request level) is a request transaction issued by the RN node, carrying request level information.

[0136] The link request (node ​​UID, digital signature, request level) in the embodiment of the present invention is a request transaction issued by the RN node, carrying node UID information, node digital signature (the content may be UID, or other information required by the link partner), and request level.

[0137] The authentication response (random number, authentication level) is a response transaction issued by the requested node, with an authentication level scheme and content data that requires the requesting node to digitally sign.

[0138] Request confirmation response (node ​​ID, node level) is a response transaction issued by the requested node after passing the security authentication of the requesting node. It can allocate node ID and confirm the security level scheme of the link between nodes.

[0139] Key exchange (node ​​ID, encrypted symmetric key) is a key exchange transaction and a response transaction. The requested node sends the symmetric key ciphertext generated by the key exchange calculation.

[0140] Ordinary request transactions (encryption scheme, node ID, encrypted transaction content, plaintext transaction content) are ordinary data read and write or monitoring and response transactions. They contain common information in the consistency protocol, such as node ID, data, consistency operation content, as well as the encryption scheme used by the link request, node ID number, encrypted ciphertext content for some transactions, and unencrypted plaintext content for some transactions.

[0141] In the configuration request transaction of the consistency protocol, the specific description is as follows:

[0142] Node security level configuration request: (target node, target node security level);

[0143] Physical address configuration request: (request level, physical address set).

[0144] In an embodiment of the present invention, after the requesting node and the consistency request complete the security authentication, after the data in the memory is processed according to the consistency request, the method further includes:

[0145] The security level requirement corresponding to the requesting node is adjusted through the management node.

[0146] In an embodiment of the present invention, the management node can send configuration information to each node through a configuration request transaction in a preset consistency protocol to achieve two main functions: 1. Raising or lowering the security level of a node, 2. Raising or lowering the security level of some memory addresses.

[0147] In another embodiment of the present invention, the security level of the node can be automatically increased or decreased according to preset rules. For example, when a high-level security threat is detected, the system automatically increases the security level of the node to the highest level, or, in the case of high performance requirements or tight resources, decreases the security level. And when the level is adjusted, the security level is adjusted gradually to avoid sudden performance fluctuations or security vulnerabilities. This mechanism of dynamically adjusting the security level enables the system to flexibly adjust the security policy according to different business requirements and operating environments, enhances the adaptability and flexibility of the system, and can also optimize the performance of the system.

[0148] In another embodiment of the present invention, a pipeline architecture based on a two-stage dispatch unit is proposed for the consistency protocol processing. Fig.12, shows a schematic diagram based on a two-level dispatch unit provided in an embodiment of the present invention. According to different request types, four transaction receiving caches are divided into request, monitoring, response, and data channel. At the same time, in order to process the link layer link request, a link layer link cache is used to process the link link status. When the corresponding transaction is received, the first-level dispatch unit prioritizes it according to the transaction type, and queries the protocol processing management unit based on the physical address involved in the transaction to see if there is an ongoing transaction at the corresponding physical address, and whether there is a blocking situation. If not, and the corresponding transaction processing unit is idle, it is distributed to different processing units. The processing unit parses the transaction and writes the transaction processing result into the protocol processing management unit. Then, the generated output transaction is sent to the second-level dispatch unit, which distributes it to different transaction transmission queues according to the transaction type. Among them, the link link and security control unit are functional modules involved in the four security levels described in the present invention.

[0149] In an embodiment of the present invention, a target security authentication strategy corresponding to the security level requirement is determined according to the security level requirement corresponding to the requesting node; the requesting node is used to send a consistency request; the requesting node and the consistency request are security authenticated in a processing node according to the target security authentication strategy corresponding to the security level requirement; the processing node is used to process the consistency request; after the requesting node and the consistency request have completed the security authentication, the data in the memory is processed according to the consistency request; wherein the memory interacts with the requesting node for data. The embodiment of the present invention introduces a multi-level security authentication mechanism, and a suitable security level can be selected according to actual needs to achieve security protection for different requesting nodes and requests issued by requesting nodes, prevent memory attacks by newly inserted spy nodes that physically read the memory, and protect memory data from data theft and tampering by malicious nodes, thereby improving the security and cache consistency of the system.

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

[0151] Reference Fig.13 , shows a structural block diagram of a node security authentication device provided in an embodiment of the present invention, which may specifically include the following modules:

[0152] The determination module 1301 is used to determine the target security authentication policy corresponding to the security level requirement according to the security level requirement corresponding to the requesting node; the requesting node is used to send a consistency request;

[0153] A security authentication module 1302, configured to perform security authentication on the requesting node and the consistency request in a processing node according to a target security authentication policy corresponding to the security level requirement; the processing node is configured to process the consistency request;

[0154] The processing module 1303 is used to process the data in the memory according to the consistency request after the requesting node and the consistency request have completed the security authentication; wherein the memory exchanges data with the requesting node.

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

[0156] In addition, an embodiment of the present invention further provides an electronic device, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; the memory is used to store computer programs; the processor is used to implement the various processes of the above-mentioned node security authentication method embodiment when executing the program stored in the memory, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0157] The embodiment of the present invention further provides a computer-readable storage medium, on which instructions are stored, and when executed by one or more processors, the processors execute the various processes of the above-mentioned node security authentication method embodiment, and can achieve the same technical effect, to avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0158] An embodiment of the present invention also provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the node security authentication method embodiment as described above, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0159] Fig.14 A schematic diagram of the hardware structure of an electronic device for implementing various embodiments of the present invention.

[0160] The electronic device 1400 includes but is not limited to: a radio frequency unit 1401, a network module 1402, an audio output unit 1403, an input unit 1404, a sensor 1405, a display unit 1406, a user input unit 1407, an interface unit 1408, a memory 1409, a processor 1410, and a power supply 1411. Those skilled in the art will appreciate that Fig.14 The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and the electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. In the embodiments of the present invention, the electronic device includes but is not limited to a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted terminal, a wearable device, and a pedometer.

[0161] It should be understood that in the embodiment of the present invention, the radio frequency unit 1401 can be used for receiving and sending signals during information transmission or communication. Specifically, after receiving downlink data from the base station, it is sent to the processor 1410 for processing; in addition, the uplink data is sent to the base station. Generally, the radio frequency unit 1401 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, etc. In addition, the radio frequency unit 1401 can also communicate with the network and other devices through a wireless communication system.

[0162] The electronic device provides users with wireless broadband Internet access through the network module 1402, such as helping users to send and receive emails, browse web pages, and access streaming media.

[0163] The audio output unit 1403 can convert the audio data received by the RF unit 1401 or the network module 1402 or stored in the memory 1409 into an audio signal and output it as sound. Moreover, the audio output unit 1403 can also provide audio output related to a specific function performed by the electronic device 1400 (for example, a call signal reception sound, a message reception sound, etc.). The audio output unit 1403 includes a speaker, a buzzer, a receiver, etc.

[0164] The input unit 1404 is used to receive audio or video signals. The input unit 1404 may include a graphics processor (GPU) 14041 and a microphone 14042, and the graphics processor 14041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The processed image frame can be displayed on the display unit 1406. The image frame processed by the graphics processor 14041 can be stored in the memory 1409 (or other storage medium) or sent via the radio frequency unit 1401 or the network module 1402. The microphone 14042 can receive sound and can process such sound into audio data. The processed audio data can be converted into a format output that can be sent to a mobile communication base station via the radio frequency unit 1401 in the case of a telephone call mode.

[0165] The electronic device 1400 also includes at least one sensor 1405, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 14061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 14061 and / or the backlight when the electronic device 1400 is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary, which can be used to identify the posture of the electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; the sensor 1405 can also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be repeated here.

[0166] The display unit 1406 is used to display information input by the user or information provided to the user. The display unit 1406 may include a display panel 14061, which may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.

[0167] The user input unit 1407 can be used to receive input digital or character information, and to generate key signal input related to user settings and function control of the electronic device. Specifically, the user input unit 1407 includes a touch panel 14071 and other input devices 14072. The touch panel 14071, also known as a touch screen, can collect the user's touch operation on or near it (such as the user's operation on the touch panel 14071 or near the touch panel 14071 using any suitable object or accessory such as a finger, stylus, etc.). The touch panel 14071 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the processor 1410, receives the command sent by the processor 1410 and executes it. In addition, the touch panel 14071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 14071, the user input unit 1407 may also include other input devices 14072. Specifically, other input devices 14072 may include but are not limited to physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.

[0168] Furthermore, the touch panel 14071 may be overlaid on the display panel 14061. When the touch panel 14071 detects a touch operation on or near it, it is transmitted to the processor 1410 to determine the type of touch event. Then, the processor 1410 provides corresponding visual output on the display panel 14061 according to the type of touch event. Fig.14 In the figure, the touch panel 14071 and the display panel 14061 are two independent components to realize the input and output functions of the electronic device. However, in some embodiments, the touch panel 14071 and the display panel 14061 can be integrated to realize the input and output functions of the electronic device, which is not limited here.

[0169] The interface unit 1408 is an interface for connecting an external device to the electronic device 1400. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, an audio input / output (I / O) port, a video I / O port, a headphone port, etc. The interface unit 1408 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic device 1400 or may be used to transmit data between the electronic device 1400 and an external device.

[0170] The memory 1409 can be used to store software programs and various data. The memory 1409 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 1409 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0171] The processor 1410 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. By running or executing software programs and / or modules stored in the memory 1409 and calling data stored in the memory 1409, it performs various functions of the electronic device and processes data, thereby monitoring the electronic device as a whole. The processor 1410 may include one or more processing units; preferably, the processor 1410 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 1410.

[0172] The electronic device 1400 may also include a power supply 1411 (such as a battery) for supplying power to each component. Preferably, the power supply 1411 may be logically connected to the processor 1410 through a power management system, thereby implementing functions such as charging, discharging, and power consumption management through the power management system.

[0173] In addition, the electronic device 1400 includes some functional modules not shown, which will not be described in detail here.

[0174] like Fig.15 As shown, in another embodiment provided by the present invention, a computer-readable storage medium 1501 is also provided, in which instructions are stored. When the computer-readable storage medium 1501 is run on a computer, the computer executes the node security authentication method described in the above embodiment.

[0175] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0176] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0177] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.

[0178] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the embodiments of the present invention can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0179] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0180] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0181] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0182] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0183] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, ROM, RAM, magnetic disks, or optical disks.

[0184] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A node security authentication method, characterized in that: The method comprises: Determine the target security authentication policy corresponding to the security level requirement according to the security level requirement corresponding to the requesting node; the requesting node is used to send a consistency request; Performing security authentication on the requesting node and the consistency request in a processing node according to a target security authentication policy corresponding to the security level requirement; the processing node is used to process the consistency request; After the requesting node and the consistency request have both completed the security authentication, the data in the memory is processed according to the consistency request; wherein the memory and the requesting node perform data exchange.

2. The method according to claim 1, characterized in that The performing security authentication on the requesting node and the consistency request in the processing node according to the target security authentication strategy corresponding to the security level requirement includes: When the security level requirement corresponding to the requesting node is the first level, receiving a first link request sent by the requesting node; the first link request includes a unique identifier and a digital signature corresponding to the requesting node, and the first link request is used to establish a communication link between the requesting node and the processing node; Determine a first node public key by using a unique identifier corresponding to the requesting node, and decrypt the digital signature by using the first node public key to obtain a decrypted identifier; When the decryption identifier successfully matches the unique identifier corresponding to the requesting node, it is determined that the requesting node completes the security authentication, and a node identifier is sent to the requesting node; Using the node identifier as the identifier corresponding to the requesting node; The consistency request is received, and it is determined that the consistency request completes the security authentication.

3. The method according to claim 2, characterized in that The performing security authentication on the requesting node and the consistency request in the processing node according to the target security authentication strategy corresponding to the security level requirement includes: When the security level requirement corresponding to the requesting node is the second level, after the decryption identifier successfully matches the unique identifier corresponding to the requesting node, sending a random number to the requesting node; receiving a second link request sent by the requesting node; the link request includes a unique identifier corresponding to the requesting node and a digital signature, the digital signature being generated by signing the random number and the unique identifier corresponding to the requesting node; Determine the second node public key by the unique identifier corresponding to the requesting node, and decrypt the digital signature by the second node public key to obtain a decryption identifier and a decryption random number; When the decrypted identifier successfully matches the unique identifier corresponding to the requesting node, and the decrypted random number successfully matches the random number, it is determined that the requesting node completes the security authentication, and a node identifier is sent to the requesting node; Using the node identifier as the identifier corresponding to the requesting node; The consistency request is received, and it is determined that the consistency request completes the security authentication.

4. The method according to claim 3, characterized in that The performing security authentication on the requesting node and the consistency request in the processing node according to the target security authentication strategy corresponding to the security level requirement includes: When the security level requirement corresponding to the requesting node is the third level, after the decryption identifier successfully matches the unique identifier corresponding to the requesting node, and the decrypted random number successfully matches the random number, it is determined that the requesting node completes the security authentication; Determine the key encapsulation public key and the symmetric key of the requesting node, encrypt the symmetric key by the key encapsulation public key of the requesting node to obtain an encrypted symmetric key, and send a node identifier and the encrypted symmetric key to the requesting node; Receiving an encrypted request transaction, determining that the consistency request completes the security authentication; the encrypted request transaction is obtained after the requesting node encrypts the request transaction based on the encrypted symmetric key, and the request transaction includes the consistency request.

5. The method according to claim 4, characterized in that The performing security authentication on the requesting node and the consistency request in the processing node according to the target security authentication strategy corresponding to the security level requirement includes: When the security level requirement corresponding to the requesting node is the fourth level, when the decryption identifier successfully matches the unique identifier corresponding to the requesting node, and the decrypted random number successfully matches the random number, it is determined that the requesting node completes the security authentication, or, after determining that the requesting node completes the security authentication and after sending the node identifier and the encrypted symmetric key to the requesting node, a random restriction request mechanism is generated; Encrypting the random restriction request mechanism by encapsulating the public key of the requesting node with a key to obtain an encrypted restriction request mechanism, and sending the encrypted restriction request mechanism to the requesting node; Receiving the encryption restriction request mechanism transaction corresponding to the encryption restriction request mechanism, it is determined that the consistency request completes the security authentication; the encryption restriction request mechanism transaction corresponding to the encryption restriction request mechanism is obtained after the requesting node encrypts the request transaction corresponding to the encryption restriction request mechanism based on the encryption symmetric key, and the request transaction corresponding to the encryption restriction request mechanism includes the consistency request.

6. The method according to claim 1, characterized in that The requesting node comprises a management node, the management node is used to issue a request transaction, the management node comprises a configuration register for allocating an address space, and the request transaction comprises the coherence request.

7. The method according to claim 6, characterized in that After the requesting node and the consistency request complete the security authentication, and after the data in the memory is processed according to the consistency request, the method further includes: The security level requirement corresponding to the requesting node is adjusted through the management node.

8. A node security authentication device, characterized in that: The device comprises: A determination module, used to determine a target security authentication policy corresponding to a security level requirement according to a security level requirement corresponding to a requesting node; the requesting node is used to send a consistency request; A security authentication module, configured to perform security authentication on the requesting node and the consistency request in a processing node according to a target security authentication policy corresponding to the security level requirement; the processing node is configured to process the consistency request; A processing module is used to process the data in the memory according to the consistency request after the requesting node and the consistency request have completed the security authentication; wherein the memory interacts with the requesting node for data.

9. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; The memory is used to store computer programs; The processor is used to implement the method according to any one of claims 1 to 7 when executing the program stored in the memory.

10. A computer-readable storage medium having instructions stored thereon, which, when executed by one or more processors, cause the processors to perform the method according to any one of claims 1 to 7.