Security authentication method, network node and authentication system based on SRv6
By using key pairs for encryption and decryption in SRv6 communication, the identity of the source node is directly verified during the communication process, which solves the communication security problems caused by key issuance and secure channel establishment in the existing technology, and improves communication security. Safety and efficiency.
Patent Information
- Application Number
- CN202111580735.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-22
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-12-22
AI Technical Summary
Existing SRv6 communication verification methods rely on pre-shared keys, which increases the workload of key distribution or requires the establishment of additional secure channels, increases message overhead, and affects communication security.
Through the interaction between the source node and the authentication node, a key pair (private key and public key) is generated and used, the public key is used to encrypt the random number, and the private key is decrypted to generate HMAC for verification, avoiding pre-shared keys and additional The need for safe passage.
It realizes the verification process without pre-shared keys and additional secure channels, improves communication security and data transmission efficiency, and simplifies key management.
Smart Images

Figure CN114205083B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of network security technology, and in particular to a security authentication method, network node and authentication system based on SRv6 (Segment Router IPv6, segment routing based on IPv6). Background Art
[0002] SRv6 is a protocol based on IPv6 data packets. It is necessary to insert an extended header SRH (Segment Router Header) into the IPv6 message and push an explicit IPv6 address stack into the SRH. Hop-by-hop forwarding is completed at the intermediate node by updating the destination address and offset address stack.
[0003] The addressing method of SRv6 technology is to forward messages based on explicit addresses. Currently, the source address is verified using the HMAC (Hash-based Message Authentication Code) TLV field in the TLV (Tag Length Value) variable field in the SRH extension header. The HMAC value of the verification node and the source node are compared to verify whether the source of the message is allowed to use the current segment in the DA (Destination Address) of the message, and ensure that the relevant information is not modified during transmission. The HMAC field is generated by using the key ID identifier and the pre-shared key as one of the elements of the input of the hash algorithm to obtain a fixed length (32 8-bit length groups) of summary information as HMAC. Summary of the invention
[0004] One objective of the present disclosure is to improve the security of communication authentication based on SRv6.
[0005] According to one aspect of some embodiments of the present disclosure, a security authentication method based on SRv6 is proposed, including: a source node generates a key pair and a key identifier, the key pair including a private key and a public key; the public key and the key identifier are sent to an authentication node through an SRH, so that the authentication node encrypts a first random number through the public key to generate an encrypted random number; the encrypted random number fed back by the authentication node is received, and the encrypted random number is decrypted using the private key to obtain a second random number; a first HMAC is generated according to the second random number and the key identifier, and the first HMAC is sent to the authentication node, so that the authentication node matches the second HMAC generated based on the first random number and the key identifier with the first HMAC; and data transmission is performed according to the authentication success information fed back by the authentication node.
[0006] In some embodiments, sending the public key and the key identifier to the authentication node via the SRH includes: carrying the public key via an extended first field of the SRH of the first authentication information; and sending the first authentication information to the authentication node.
[0007] In some embodiments, receiving the encrypted random number fed back by the authentication node includes: receiving the second authentication information fed back by the authentication node; reading the encrypted random number from the first field of the second authentication information, wherein the authentication node carries the encrypted random number through the extended first field of the SRH, and feeds back to the source node through the second authentication information.
[0008] In some embodiments, the SRv6-based security authentication method further includes: if the decryption of the encrypted random number is unsuccessful, stopping the current security authentication process.
[0009] In some embodiments, the SRv6-based security authentication method further includes: if the decryption of the encrypted random number is unsuccessful, writing authentication failure record information in the extended second field of the SRH.
[0010] In some embodiments, performing data transmission includes: encrypting a payload using a private key, carrying the payload by an authentication data field, and transmitting the payload via an SRv6 message.
[0011] According to one aspect of some embodiments of the present disclosure, a security authentication method based on SRv6 is proposed, including: an authentication node obtains a public key and a key identifier from a source node; generates a first random number, and encrypts the first random number by a public key to generate an encrypted random number; sends the encrypted random number to the source node through an SRH, so that the source node decrypts the encrypted random number using a private key corresponding to the public key to obtain a second random number; generates a second HMAC according to the first random number and the key identifier; obtains a first HMAC fed back by the source node, wherein the source node generates a first HMAC according to the second random number and the key identifier and sends it to the authentication node; matches the first HMAC with the second HMAC; and in the case of a successful match, feeds back authentication success information to the source node.
[0012] In some embodiments, the authentication node obtaining the public key and key identifier from the source node includes: the authentication node obtaining first authentication information from the source node; and obtaining the public key from the extended first field of the SRH of the first authentication information.
[0013] In some embodiments, sending the encrypted random number to the source node via the SRH includes: carrying the encrypted random number via an extended first field of the SRH, and feeding back the encrypted random number to the source node via second authentication information.
[0014] In some embodiments, the SRv6-based security authentication method further includes: in the event of a failure to match the first HMAC with the second HMAC, stopping the current security authentication process.
[0015] According to one aspect of some embodiments of the present disclosure, a data sending node is proposed, comprising: a key generation unit, configured to generate a key pair and a key identifier, the key pair including a private key and a public key; a key sending unit, configured to send the public key and the key identifier to an authentication node through an SRH, so that the authentication node encrypts a first random number through the public key to generate an encrypted random number; a random number receiving unit, configured to receive the encrypted random number fed back by the authentication node, and decrypt the encrypted random number using the private key to obtain a second random number; an authentication code sending unit, configured to generate a first hash operation message authentication code HMAC related to the key according to the second random number and the key identifier, and send the first HMAC to the authentication node, so that the authentication node matches the second HMAC generated based on the first random number and the key identifier with the first HMAC; a data transmission unit, configured to perform data transmission according to the authentication success information fed back by the authentication node.
[0016] According to one aspect of some embodiments of the present disclosure, an authentication node is proposed, comprising: a key receiving unit, configured to obtain a public key and a key identifier from a source node; a random number generating unit, configured to generate a first random number, and encrypt the first random number by a public key to generate an encrypted random number; a random number sending unit, configured to send the encrypted random number to the source node through an SRH, so that the source node decrypts the encrypted random number using a private key corresponding to the public key to obtain a second random number; an authentication code generating unit, configured to generate a second HMAC based on the first random number and the key identifier; an authentication code receiving unit, configured to obtain a first HMAC fed back by the source node, wherein the source node generates the first HMAC based on the second random number and the key identifier and sends it to the authentication node; a matching unit, configured to match the first HMAC with the second HMAC; and in the case of a successful match, feedback of authentication success information to the source node.
[0017] According to one aspect of some embodiments of the present disclosure, a SRv6-based network node is proposed, comprising: a memory; and a processor coupled to the memory, wherein the processor is configured to execute any one of the above security authentication methods based on instructions stored in the memory.
[0018] According to one aspect of some embodiments of the present disclosure, a non-transitory computer-readable storage medium is provided, on which computer program instructions are stored, and when the instructions are executed by a processor, the steps of any one of the security authentication methods described above are implemented.
[0019] According to one aspect of some embodiments of the present disclosure, an SRv6-based authentication system is proposed, including: a data sending node, configured to execute any one of the security authentication methods mentioned above performed by the source node; and an authentication node, configured to execute any one of the security authentication methods mentioned above performed by the authentication node. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The drawings described herein are used to provide a further understanding of the present disclosure and constitute a part of the present disclosure. The illustrative embodiments of the present disclosure and their descriptions are used to explain the present disclosure and do not constitute an improper limitation on the present disclosure. In the drawings:
[0021] Figure 1 The present invention is a flowchart of some embodiments of the SRv6-based security authentication method disclosed herein.
[0022] Figure 2 Schematic diagram of some embodiments of the SRv6 message structure of the present disclosure.
[0023] Figure 3 Schematic diagram of some embodiments of the data sending node of the present disclosure.
[0024] Figure 4 Schematic diagram of some embodiments of the authentication node of the present disclosure.
[0025] Figure 5 Schematic diagrams of some embodiments of SRv6-based network nodes disclosed in the present invention.
[0026] Figure 6 Schematic diagrams of other embodiments of SRv6-based network nodes disclosed in the present invention.
[0027] Figure 7 Schematic diagram of some embodiments of the SRv6-based authentication system disclosed in the present invention. DETAILED DESCRIPTION
[0028] The technical solution of the present disclosure is further described in detail below through the accompanying drawings and embodiments.
[0029] The method in the related technology requires a pre-shared key. If this operation is distributed out-of-band, the workload will be increased; if the in-band distribution method is adopted, a secure channel needs to be established. However, since the key is used to solve the problem of establishing a secure channel, the additional establishment of a secure channel will increase the message overhead.
[0030] The flowcharts of some embodiments of the SRv6-based security authentication method disclosed in the present invention are as follows: Figure 1 This operation is sent by the authentication node and carried out in cooperation with the source node of the data. Figure 1In the figure, the steps on the left side of the dotted line are executed by the source node, and the steps on the right side are executed by the authentication node.
[0031] In step 111, the source node generates a key pair and a key identifier, wherein the key pair includes a private key and a public key. In some embodiments, the key identifier may be a session identifier of a current session to be established.
[0032] In step 112, the source node sends the public key and the key identifier to the authentication node via the SRH. In some embodiments, the SRH may be further extended to add a first field and place the public key in the first field. In some embodiments, the key identifier may also be located in the authentication header field, or a field unique to the current session in the message may be used as the key identifier.
[0033] In step 121, the authentication node obtains the public key and key identifier from the source node. In some embodiments, the authentication node may be the nearest trusted node (switch or router, etc.) connected to the source node, or may be one or more transmission nodes on the session path.
[0034] In step 122, the authentication node generates a first random number, and encrypts the first random number using the public key obtained in step 121 to generate an encrypted random number.
[0035] In step 123, the authentication node sends the generated encrypted random number to the source node via the SRH. In some embodiments, the authentication node can also put the encrypted random number into the first field of the SRH extension for easy reading by the source node. Further, the authentication node executes step 124 and sends an SRv6 message with the encrypted random number to the source node. In some embodiments, the authentication node can carry the encrypted random number through the second authentication information and send it to the source node.
[0036] In step 124, the authentication node generates a second HMAC based on the first random number and the key identifier. In some embodiments, the first random number and the key identifier may be input into a hash algorithm, and the generated summary information may be used as the second HMAC.
[0037] In step 113, the source node receives the encrypted random number fed back by the authentication node. In some embodiments, the source node receives a message from the authentication node and reads the content of the first field to obtain the encrypted random number.
[0038] In step 114, the source node uses its own stored private key to decrypt the encrypted random number and obtain a second random number.
[0039] In some embodiments, if the source node stores a private key and decryption is successful, the source node is verified; otherwise, the source node cannot decrypt to obtain a second random number, or the second random number obtained by the source node is different from the first random number generated by the authentication node, and the correct HMAC cannot be generated.
[0040] In some embodiments, if the source node fails to decrypt, a record of the authentication failure can be added to the SRH extension header, and the record can be carried continuously in the subsequent authentication process so as to retain the record for subsequent failure analysis. In some embodiments, a second field can be added to the SRH extension header to store the failure record. In some embodiments, the authentication failure record can be the address of the authentication node that generates the encrypted random number, the address of the current node, or the session identifier. In some embodiments, if the decryption is successful, the second random number can also be placed in the second field for subsequent tracing.
[0041] In step 115, the source node generates a first HMAC according to the second random number and the key identifier. In some embodiments, the second random number and the key identifier may be input into a hash algorithm, and the generated summary information may be used as the first HMAC.
[0042] In step 116, the source node sends the first HMAC to the authentication node. In some embodiments, the first HMAC may be carried by using the TLV field of the SRH in the related art.
[0043] In step 125, the authentication node obtains the first HMAC fed back by the source node.
[0044] In step 126, the authentication node matches the obtained first HMAC with the second HMAC generated by itself. Since the second random number is generated by decrypting the encryption result of the first random number, the key identifier is also the same, so in a safe situation, the first HMAC and the second HMAC should be the same.
[0045] In step 127, when the authentication node successfully matches the first HMAC with the second HMAC, the authentication node feeds back authentication success information to the source node.
[0046] In some embodiments, if the first HMAC fails to match the second HMAC, the message containing the first HMAC is discarded and the current verification process ends. In some embodiments, the failure information can be recorded for subsequent tracing.
[0047] In step 117, the source node performs data transmission according to the authentication success information fed back by the authentication node. In some embodiments, the payload data may be encrypted and transmitted based on the previous public key and private key. Figure 2 As shown, the encrypted payload may be located in the payload field of the message.
[0048] Based on the method in the above embodiment, verification can be achieved by utilizing the interaction process between the source node and the authentication node. Verification without a pre-shared key can be achieved by utilizing the random number embedded in the authentication header. The secure transmission of the random number is guaranteed by public key encryption, thereby eliminating the need for prior key distribution or establishment of an additional secure channel, thereby improving the security of communication.
[0049] In some embodiments, Figure 2 As shown, the authentication header field and the authentication tail field can be added to the SRH of SRv6, and the authentication header field is used as the first field mentioned above to encapsulate the public key and the encrypted random number; the authentication tail field is used as the second field mentioned above to store the failure information used to record the traceability effect. Figure 2 As shown, the authentication header and authentication tail fields can be generated based on the TLV field space, thereby effectively utilizing the SRH space.
[0050] Based on the method in the above embodiment, the SHR can be further modified to facilitate data transmission and reading, facilitate rapid implementation, and improve compatibility with related networks and data forwarding efficiency.
[0051] Schematic diagrams of some embodiments of the data sending node 310 of the present disclosure are as follows Figure 3 shown.
[0052] The key generation unit 311 can generate a key pair and a key identifier, wherein the key pair includes a private key and a public key. In some embodiments, the key identifier can be a session identifier of a current session to be established.
[0053] The key sending unit 312 can send the public key and the key identifier to the authentication node through the SRH. In some embodiments, the SRH can be further extended to add a first field and place the public key in the first field. In some embodiments, the key identifier can also be located in the authentication header field, or a field unique to the current session in the message can be used as the key identifier.
[0054] The random number receiving unit 313 can receive the encrypted random number fed back by the authentication node, and then use the key generating unit 311 to generate the stored private key, decrypt the obtained encrypted random number, and obtain the second random number. In some embodiments, the random number receiving unit 313 receives a message from the authentication node, and reads the content of the first field to obtain the encrypted random number.
[0055] The authentication code sending unit 314 can generate a first HMAC based on the second random number and the key identifier, and send the first HMAC to the authentication node. In some embodiments, the second random number and the key identifier can be input into a hash algorithm, and the generated summary information is used as the first HMAC for the authentication node to match the first HMAC with the second HMAC generated by the authentication node based on the key identifier and the first random number.
[0056] The data transmission unit 315 can perform data transmission according to the authentication success information fed back by the authentication node. In some embodiments, when the authentication node passes the match between the first HMAC and the second HMAC, the authentication success information will be fed back. In some embodiments, the payload data can be encrypted and transmitted based on the public key and private key of the previous sequence.
[0057] Such a source node can generate paired keys and use the retained private key to decrypt the encrypted random number provided by the authentication node, and then use the encrypted random number to generate HMAC, thereby cooperating with the authentication node to complete its own verification, without the need for prior key distribution or establishment of additional secure channels, thereby improving the security of communication.
[0058] Schematic diagrams of some embodiments of the authentication node 420 of the present disclosure are as follows Figure 4 shown.
[0059] The key receiving unit 421 can obtain the public key and key identification from the source node.
[0060] The random number generating unit 422 can generate a first random number, and encrypt the first random number using the public key obtained by the key receiving unit 421 to generate an encrypted random number.
[0061] The random number sending unit 423 can send the generated encrypted random number to the source node via the SRH. In some embodiments, the random number sending unit 423 can put the encrypted random number into the first field of the SRH extension to facilitate the source node to read.
[0062] The authentication code generation unit 424 can generate the second HMAC according to the first random number and the key identifier. In some embodiments, the first random number and the key identifier can be input into a hash algorithm, and the generated summary information is used as the second HMAC.
[0063] The authentication code receiving unit 425 can obtain the first HMAC fed back by the source node.
[0064] The matching unit 426 can match the acquired first HMAC with the second HMAC generated by itself, and when the first HMAC is successfully matched with the second HMAC, it feeds back authentication success information to the source node.
[0065] Such an authentication node can implement verification based on the interaction process with the source node, without the need for prior key distribution or establishment of additional secure channels, thus improving the security of communications.
[0066] The structural diagram of an embodiment of the network node based on SRv6 of the present disclosure is as follows Figure 5 As shown. The network node based on SRv6 can be a data sending node or an authentication node, including a memory 501 and a processor 502. Among them: the memory 501 can be a disk, a flash memory or any other non-volatile storage medium. The memory is used to store the instructions in the corresponding embodiment of the above-mentioned SRv6-based security authentication method. The processor 502 is coupled to the memory 501 and can be implemented as one or more integrated circuits, such as a microprocessor or a microcontroller. The processor 502 is used to execute instructions stored in the memory, which can improve the security of communication.
[0067] In one embodiment, it is also possible to Figure 6 As shown, the SRv6-based network node 600 includes a memory 601 and a processor 602. The processor 602 is coupled to the memory 601 via a BUS 603. The SRv6-based network node 600 can also be connected to an external storage device 605 via a storage interface 604 to call external data, and can also be connected to a network or another computer system (not shown) via a network interface 606. No further detailed description will be given here.
[0068] In this embodiment, the data instructions are stored in the memory and then processed by the processor, thereby improving the security of communication.
[0069] In another embodiment, a computer-readable storage medium stores computer program instructions thereon, which, when executed by a processor, implement the steps of the method in the corresponding embodiment of the SRv6-based security authentication method. Those skilled in the art should understand that the embodiments of the present disclosure may be provided as methods, devices, or computer program products. Therefore, the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present disclosure may take the form of a computer program product implemented on one or more computer-usable non-transitory storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0070] Schematic diagrams of some embodiments of the SRv6-based authentication system disclosed in the present invention are as follows Figure 7 shown.
[0071] The data sending node 71 may be any one of the data sending nodes mentioned above.
[0072] The authentication node 72 may be any of the authentication nodes mentioned above.
[0073] Such an SRv6-based authentication system can use the interaction process between the source node and the authentication node to achieve verification, without the need for prior key distribution or establishment of additional secure channels, thereby improving the security of communications.
[0074] The present disclosure is described with reference to flowcharts and / or block diagrams of methods, devices (systems) and computer program products according to embodiments of the present disclosure. It should be understood that each process and / or block in the flowchart and / or block diagram and the combination of processes and / or blocks in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0075] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0076] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0077] So far, the present disclosure has been described in detail. In order to avoid obscuring the concept of the present disclosure, some details known in the art are not described. Based on the above description, those skilled in the art can fully understand how to implement the technical solution disclosed here.
[0078] The method and apparatus of the present disclosure may be implemented in many ways. For example, the method and apparatus of the present disclosure may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above order of steps for the method is for illustration only, and the steps of the method of the present disclosure are not limited to the order specifically described above, unless otherwise specifically stated. In addition, in some embodiments, the present disclosure may also be implemented as a program recorded in a recording medium, which includes machine-readable instructions for implementing the method according to the present disclosure. Therefore, the present disclosure also covers a recording medium storing a program for executing the method according to the present disclosure.
[0079] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present disclosure rather than to limit it. Although the present disclosure has been described in detail with reference to the preferred embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present disclosure can still be modified or some technical features can be replaced by equivalents without departing from the spirit of the technical solution of the present disclosure, which should be included in the scope of the technical solution for protection of the present disclosure.
Claims
1. A security authentication method based on SRv6, comprising: The source node generates a key pair and a key identifier, wherein the key pair includes a private key and a public key; Sending the public key and the key identifier to the authentication node through a segment routing header (SRH), so that the authentication node encrypts the first random number through the public key to generate an encrypted random number; Receive the encrypted random number fed back by the authentication node, and use the private key to decrypt the encrypted random number to obtain a second random number; generating a hash operation message authentication code HMAC associated with a first key according to the second random number and the key identifier, and sending the first HMAC to the authentication node so that the authentication node matches the second HMAC generated based on the first random number and the key identifier with the first HMAC; Data transmission is performed according to the authentication success information fed back by the authentication node.
2. The method according to claim 1, wherein: The sending the public key and the key identifier to the authentication node through the SRH includes: The public key is carried by using the extended first field of the SRH of the first authentication information; The first authentication information is sent to the authentication node.
3. The method according to claim 2, wherein: The receiving of the encrypted random number fed back by the authentication node comprises: Receiving second authentication information fed back by the authentication node; The encrypted random number is read from the first field of the second authentication information, wherein the authentication node carries the encrypted random number through the extended first field of the SRH, and feeds back the encrypted random number to the source node through the second authentication information.
4. The method according to claim 1, further comprising: If the decryption of the encrypted random number is unsuccessful, the current security authentication process is stopped.
5. The method according to claim 2, further comprising: If the decryption of the encrypted random number fails, authentication failure record information is written into the extended second field of the SRH.
6. The method according to claim 1, wherein: The performing of data transmission comprises: The payload is encrypted by the private key, and the payload is carried by the authentication data field and transmitted through the SRv6 message.
7. A security authentication method based on SRv6, comprising: The authentication node obtains the public key and key identifier from the source node; Generate a first random number, and encrypt the first random number using a public key to generate an encrypted random number; Sending the encrypted random number to the source node through a segment routing header SRH, so that the source node decrypts the encrypted random number using a private key corresponding to the public key to obtain a second random number; Generate a hash operation message authentication code HMAC related to a second key according to the first random number and the key identifier; Obtaining a first HMAC fed back by the source node, wherein the source node generates the first HMAC according to the second random number and the key identifier and sends the first HMAC to the authentication node; Matching the first HMAC with the second HMAC; In case of successful matching, authentication success information is fed back to the source node.
8. The method according to claim 7, wherein: The authentication node obtains the public key and key identifier from the source node including: The authentication node obtains first authentication information from the source node; The public key is obtained from an extended first field of the SRH of the first authentication information.
9. The method according to claim 8, wherein: The sending the encrypted random number to the source node through the SRH comprises: The encrypted random number is carried through the extended first field of the SRH and fed back to the source node through the second authentication information.
10. The method according to claim 7, further comprising: In case the matching of the first HMAC with the second HMAC fails, the current security authentication process is stopped.
11. A data sending node, comprising: A key generation unit, configured to generate a key pair and a key identifier, wherein the key pair includes a private key and a public key; a key sending unit, configured to send the public key and the key identifier to the authentication node through the SRH, so that the authentication node encrypts the first random number through the public key to generate an encrypted random number; a random number receiving unit, configured to receive the encrypted random number fed back by the authentication node, and decrypt the encrypted random number using the private key to obtain a second random number; an authentication code sending unit, configured to generate a first hash operation message authentication code HMAC associated with a key according to the second random number and the key identifier, and send the first HMAC to the authentication node, so that the authentication node matches the second HMAC generated based on the first random number and the key identifier with the first HMAC; The data transmission unit is configured to perform data transmission according to the authentication success information fed back by the authentication node.
12. An authentication node, comprising: A key receiving unit, configured to obtain a public key and a key identifier from a source node; A random number generating unit is configured to generate a first random number, and encrypt the first random number using a public key to generate an encrypted random number; a random number sending unit, configured to send the encrypted random number to a source node through the SRH, so that the source node decrypts the encrypted random number using a private key corresponding to the public key to obtain a second random number; An authentication code generating unit, configured to generate a second hash operation message authentication code HMAC according to the first random number and the key identifier; An authentication code receiving unit is configured to obtain a first HMAC fed back by the source node, wherein the source node generates the first HMAC according to the second random number and the key identifier and sends the first HMAC to the authentication node; The matching unit is configured to match the first HMAC with the second HMAC; if the match is successful, feedback authentication success information to the source node.
13. A network node based on SRv6, comprising: Memory; as well as A processor coupled to the memory, the processor being configured to execute the method according to any one of claims 1 to 10 based on instructions stored in the memory.
14. A non-transitory computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, implement the steps of the method according to any one of claims 1 to 10.
15. An SRv6-based authentication system, comprising: A data sending node, configured to execute the method according to any one of claims 1 to 6; and The authentication node is configured to execute the method according to any one of claims 7 to 10.
Citation Information
Patent Citations
Safe and low-overhead SRv6 implementation method
CN111010274A
Method for verifying application information and message processing method and device
CN113810173A
Method for data transmission, battery management system, and storage medium
US20200084624A1
Key negotiation method and device
WO2018076365A1
Network verification method, apparatus, and system
WO2020177768A1
