Data transmission method, device, electronic device and storage medium
By encapsulating and decrypting key information in the TLV field of SRv6 data packets and combining it with MD5 value verification, the problem of insufficient data transmission security and reliability in SRv6 technology is solved, and efficient and secure data transmission is achieved.
Patent Information
- Application Number
- CN202211049857.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-30
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2042-08-30
AI Technical Summary
The existing SRv6 technology has shortcomings in terms of data transmission security and reliability, and a more effective data security transmission method is needed.
By encapsulating key information in the TLV field of the SRv6 data packet and using the key information for encryption and decryption, combined with MD5 value for authentication, the security and reliability of data transmission are ensured.
It improves the security and reliability of data transmission, enables authentication and data retrieval through a single data transmission, and increases transmission efficiency.
Smart Images

Figure CN115412240B_ABST
Abstract
Description
Background Art
[0002] With the advancement of science and technology, the scale of network communication is also expanding. The source routing and stateless characteristics of SR (Segment Routing) technology make it widely used in the field of network communication. For example, the SR technology can be applied in IPv6 (Internet Protocol Version 6) networks, namely SRv6 (Segment Routing Over IPv6) technology.
[0003] For SRv6 technology, a method for secure data transmission is urgently needed to further ensure the security and reliability of data transmission.
[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0005] The present disclosure provides a data transmission method, device, electronic device and storage medium, which at least to a certain extent improve the security and reliability of data transmission.
[0006] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present disclosure.
[0007] According to one aspect of an embodiment of the present disclosure, a data transmission method is provided, including: encapsulating first key information generated by the requesting node in a TLV (Type-Length-Value) field of a first SRv6 data packet, the first SRv6 data packet being used to request target data from a destination node; sending the first SRv6 data packet to the destination node; receiving a second SRv6 data packet returned by the destination node, the second SRv6 data packet including target data encrypted by second key information, the TLV field of the second SRv6 data packet including second key information encrypted by the first key information; decrypting the TLV field of the second SRv6 data packet by using the first key information to obtain second key information, and decrypting the second SRv6 data packet by using the second key information to obtain target data.
[0008] In some embodiments of the present disclosure, before sending the first SRv6 data packet to the destination node, the method also includes: generating a first MD5 (Message Digest Algorithm 5) value based on the identity information of the requesting node, the first MD5 value being used by the destination node to authenticate the first SRv6 data packet; and encapsulating the first MD5 value in the TLV field of the first SRv6 data packet.
[0009] In some embodiments of the present disclosure, the TLV field of the second SRv6 data packet also includes a second MD5 value generated by the identity information of the destination node, and the method also includes: authenticating the second SRv6 data packet according to the second MD5 value; decrypting the TLV field of the second SRv6 data packet by the first key information to obtain the second key information, and decrypting the second SRv6 data packet by the second key information to obtain the target data, including: when the identity authentication of the second SRv6 data packet passes, decrypting the TLV field of the second SRv6 data packet by the first key information to obtain the second key information, and decrypting the second SRv6 data packet by the second key information to obtain the target data.
[0010] In some embodiments of the present disclosure, the method also includes: encapsulating first security tag information and first security level information in the TLV field of the first SRv6 data packet, wherein the first security tag information is used to indicate that the TLV field of the first SRv6 data packet is used for security verification services, and the first security level information is used to indicate the security level of the requesting node.
[0011] In some embodiments of the present disclosure, the security level of the destination node is higher than that of the requesting node, and the method further includes: obtaining third key information issued by the authentication center; encrypting the first key information and the first MD5 value in the first SRv6 data packet according to the third key information to obtain an encrypted first SRv6 data packet; and sending the first SRv6 data to the destination node, including: sending the encrypted first SRv6 data packet to the destination node.
[0012] In some embodiments of the present disclosure, the function field in the segment list field of the first SRv6 data packet includes function definition information, and the function definition information is used to indicate the destination node, and the first SRv6 data packet is authenticated according to the first MD5 value.
[0013] According to another aspect of the present disclosure, a data transmission method is provided, including: receiving a first SRv6 data packet sent by a requesting node, the TLV field of the first SRv6 data packet including first key information; querying and obtaining target data according to the first SRv6 data packet; encrypting the target data by using second key information generated by the destination node to obtain encrypted target data, encrypting the second key information by using the first key information to obtain encrypted second key information, and encapsulating the encrypted target data and the encrypted second key information in a second SRv6 data packet; and returning the second SRv6 data packet to the requesting node.
[0014] In some embodiments of the present disclosure, the TLV field of the first SRv6 data packet also includes a first MD5 value, and the method also includes: authenticating the first SRv6 data packet based on the first MD5 value; querying and obtaining target data based on the first SRv6 data packet, including: when the authentication of the first SRv6 data packet passes, querying and obtaining the target data based on the first SRv6 data packet.
[0015] In some embodiments of the present disclosure, the TLV field of the first SRv6 data packet also includes first security tag information and first security level information, wherein the first security tag information is used to indicate that the TLV field of the first SRv6 data packet is used for security verification services, and the first security level information is used to indicate the security level of the requesting node. The method also includes: when the security level of the destination node is higher than that of the requesting node and the first SRv6 data packet is an encrypted data packet, obtaining fourth key information issued by the authentication center; decrypting the first SRv6 data packet according to the fourth key information to obtain the first key information and the first MD5 value.
[0016] According to another aspect of the present disclosure, a data transmission device is provided, including: a first SRv6 data packet encapsulation module, used to encapsulate first key information generated by the requesting node in a TLV field of a first SRv6 data packet, the first SRv6 data packet being used to request target data from a destination node; a first SRv6 data packet sending module, used to send the first SRv6 data packet to the destination node; a second SRv6 data packet receiving module, used to receive a second SRv6 data packet returned by the destination node, the second SRv6 data packet including target data encrypted by second key information, the TLV field of the second SRv6 data packet including second key information encrypted by the first key information; a target data acquisition module, used to decrypt the TLV field of the second SRv6 data packet by the first key information to obtain second key information, and decrypt the second SRv6 data packet by the second key information to obtain target data.
[0017] In some embodiments of the present disclosure, the first SRv6 data packet encapsulation module is further used to generate a first MD5 value based on the identity information of the requesting node, and the first MD5 value is used by the destination node to authenticate the first SRv6 data packet; and encapsulate the first MD5 value in the TLV field of the first SRv6 data packet.
[0018] In some embodiments of the present disclosure, the TLV field of the second SRv6 data packet also includes a second MD5 value generated by the identity information of the destination node, and the device also includes: a second SRv6 data packet verification module, used to authenticate the second SRv6 data packet according to the second MD5 value; a target data acquisition module, used to decrypt the TLV field of the second SRv6 data packet by the first key information when the second SRv6 data packet identity authentication passes, to obtain the second key information, and to decrypt the second SRv6 data packet by the second key information to obtain the target data.
[0019] In some embodiments of the present disclosure, the first SRv6 data packet encapsulation module is also used to encapsulate first security label information and first security level information in the TLV field of the first SRv6 data packet, wherein the first security label information is used to indicate that the TLV field of the first SRv6 data packet is used for security verification services, and the first security level information is used to indicate the security level of the requesting node.
[0020] In some embodiments of the present disclosure, the security level of the destination node is higher than that of the requesting node, and the device also includes: a first SRv6 data packet encryption module, used to obtain the third key information issued by the authentication center; encrypting the first key information and the first MD5 value in the first SRv6 data packet according to the third key information to obtain an encrypted first SRv6 data packet; a first SRv6 data packet sending module, used to send the encrypted first SRv6 data packet to the destination node.
[0021] In some embodiments of the present disclosure, the function field in the segment list field of the first SRv6 data packet includes function definition information, and the function definition information is used to indicate the destination node, and the first SRv6 data packet is authenticated according to the first MD5 value.
[0022] According to another aspect of the present disclosure, a data transmission device is provided, including: a first SRv6 data packet receiving module, used to receive a first SRv6 data packet sent by a requesting node, the TLV field of the first SRv6 data packet including first key information; a target data acquisition module, used to query and obtain target data according to the first SRv6 data packet; a second SRv6 data packet encapsulation module, used to encrypt the target data by using second key information generated by the destination node to obtain encrypted target data, encrypt the second key information by using the first key information to obtain encrypted second key information, and encapsulate the encrypted target data and the encrypted second key information in a second SRv6 data packet; and a second SRv6 data packet sending module, used to return the second SRv6 data packet to the requesting node.
[0023] In some embodiments of the present disclosure, the TLV field of the first SRv6 data packet also includes a first MD5 value, and the device also includes: a first SRv6 data packet verification module, used to authenticate the first SRv6 data packet according to the first MD5 value; and a target data acquisition module, used to query and obtain target data according to the first SRv6 data packet when the first SRv6 data packet authentication passes.
[0024] In some embodiments of the present disclosure, the TLV field of the first SRv6 data packet also includes first security tag information and first security level information, wherein the first security tag information is used to indicate that the TLV field of the first SRv6 data packet is used for security verification services, and the first security level information is used to indicate the security level of the requesting node. The device also includes: a first SRv6 data packet decryption module, which is used to obtain the fourth key information issued by the authentication center when the security level of the destination node is higher than that of the requesting node and the first SRv6 data packet is an encrypted data packet; decrypt the first SRv6 data packet according to the fourth key information to obtain the first key information and the first MD5 value.
[0025] According to another aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to perform the above-mentioned data transmission method by executing the executable instructions.
[0026] According to another aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned data transmission method is implemented.
[0027] According to another aspect of the present disclosure, a computer program product or computer program is provided, the computer program product or computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the data transmission method provided in various optional ways in any embodiment of the present disclosure.
[0028] The technical solution provided by the embodiment of the present disclosure customizes the TLV field of the SRv6 data, so that the first key information is encapsulated in the TLV field of the first SRv6 data packet that requests the target data from the destination node, and the first key information is used to encrypt the second key information. In addition, after receiving the second SRv6 data packet returned by the destination node, the encrypted second key information can be decrypted by the first key information to obtain the second key information, and the encrypted second key information is located in the TLV field of the second SRv6 data packet. After that, the target data can be decrypted by the second key information. Therefore, the embodiment of the present disclosure can further ensure the security and reliability of data transmission.
[0029] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.
[0031] Figure 1 A schematic diagram showing an implementation environment in an embodiment of the present disclosure;
[0032] Figure 2 A schematic diagram showing another implementation environment in an embodiment of the present disclosure;
[0033] Figure 3 A flow chart of a data transmission method in an embodiment of the present disclosure is shown;
[0034] Figure 4 A schematic diagram showing a format of a TLV field in an embodiment of the present disclosure;
[0035] Figure 5 A schematic diagram showing a first SRv6 data packet header format in an embodiment of the present disclosure;
[0036] Figure 6Another data transmission method flow chart in the embodiment of the present disclosure is shown;
[0037] Figure 7 A schematic diagram showing a process of a data transmission method in an embodiment of the present disclosure;
[0038] Figure 8 A schematic diagram showing a process of another data transmission method according to an embodiment of the present disclosure;
[0039] Fig. 9 A schematic diagram showing a data transmission system in an embodiment of the present disclosure is shown;
[0040] Fig.10 A schematic diagram of a data transmission device in an embodiment of the present disclosure is shown;
[0041] Fig.11 A schematic diagram of another data transmission device in an embodiment of the present disclosure is shown;
[0042] Fig.12 A structural block diagram of an electronic device in an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0043] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that the disclosure will be more comprehensive and complete and to fully convey the concepts of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
[0044] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.
[0045] Figure 1 A schematic diagram of an implementation environment that can be applied to the embodiments of the present disclosure is shown.
[0046] like Figure 1 As shown, the implementation environment may include a requesting node 101 and a destination node 102. The requesting node 101 and the destination node 102 may communicate with each other via a network. Exemplarily, the network may be a wired network or a wireless network.
[0047] Among them, the requesting node 101 can send a first SRv6 data packet to the destination node 102 through the data transmission method provided in the embodiment of the present disclosure. The destination node 102 can receive the first SRv6 data packet and obtain the target data according to the first SRv6 data packet. Afterwards, the destination node 102 can encapsulate the target data in a second SRv6 data packet and return it to the requesting node 101. The requesting node 101 can obtain the target data in the second SRv6 data packet through the method provided in the embodiment of the present disclosure.
[0048] Or, if Figure 2 As shown, the implementation environment may include a requesting node 101 , a destination node 102 , and at least one intermediate node 103 .
[0049] The requesting node 101, the destination node 102 and the intermediate node 103 may communicate with each other through a network. Exemplarily, the network may be a wired network or a wireless network.
[0050] Among them, the requesting node 101 can send a first SRv6 data packet to the intermediate node 103 through the data transmission method provided in the embodiment of the present disclosure. The intermediate node 103 can forward the first SRv6 data packet to the destination node 102. The destination node 102 can receive the first SRv6 data packet and obtain the target data according to the first SRv6 data packet. Afterwards, the destination node 102 can encapsulate the target data in a second SRv6 data packet and return it to the intermediate node 103. The intermediate node 103 can forward the second SRv6 data packet to the requesting node 101. The requesting node 101 can obtain the target data in the second SRv6 data packet through the method provided in the embodiment of the present disclosure.
[0051] Exemplarily, the request node 101, the destination node 102 and the intermediate node 103 can all be terminal devices or servers. The terminal device can be various electronic devices, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, wearable devices, augmented reality devices, virtual reality devices, etc. The server can be a server that provides various services, such as a background management server that provides support for devices operated by users using terminal devices. The background management server can analyze and process the received request and other data, and feed back the processing results to the terminal device.
[0052] Optionally, the server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), as well as big data and artificial intelligence platforms.
[0053] Optionally, the wireless network or wired network described above uses standard communication technology and / or protocol. The network is usually the Internet, but it can also be any network, including but not limited to a local area network (LAN), a metropolitan area network (MAN), a wide area network (WAN), a mobile, wired or wireless network, a dedicated network or any combination of a virtual private network). In some embodiments, technologies and / or formats including Hyper Text Mark-up Language (HTML), Extensible Markup Language (XML), etc. are used to represent data exchanged through the network. In addition, conventional encryption technologies such as Secure Socket Layer (SSL), Transport Layer Security (TLS), Virtual Private Network (VPN), Internet Protocol Security (IPsec) can also be used to encrypt all or some links. In other embodiments, customized and / or dedicated data communication technologies can also be used to replace or supplement the above data communication technologies.
[0054] Those skilled in the art will know that Figure 1 , Figure 2 The request node 101, the destination node 102 and Figure 2 The number of intermediate nodes 103 in the figure is only for illustration, and according to actual needs, there may be any number of request nodes 101, destination nodes 102 and intermediate nodes 103. The embodiment of the present disclosure does not limit this.
[0055] The present exemplary implementation is described in detail below with reference to the accompanying drawings and embodiments.
[0056] First, a data transmission method is provided in an embodiment of the present disclosure, and the method can be executed by any electronic device with computing and processing capabilities.
[0057] Figure 3 A flow chart of a data transmission method in an embodiment of the present disclosure is shown as follows: Figure 3 As shown, the data transmission method provided in the embodiment of the present disclosure includes the following steps S302 to S308.
[0058] S302: The requesting node encapsulates first key information generated by the requesting node in a TLV field of a first SRv6 data packet, where the first SRv6 data packet is used to request target data from a destination node.
[0059] Exemplarily, the first SRv6 data packet may be in IPv6 format and include a data packet of the SRH. The requesting node and the destination node may be any two nodes in the communication network, which may be a terminal device or a server. The target data may be data in any format, and the embodiment of the present disclosure does not limit the format and content of the target data.
[0060] The disclosed embodiments do not limit the method for the requesting node to generate the first key information, and the method for generating the first key information can be limited by experience or implementation scenarios. In addition, the first key information can be any type of key information used to encrypt information. Exemplarily, the first key information can be a key for symmetric encryption or a key for asymmetric encryption.
[0061] In some embodiments, the data transmission method provided by the embodiments of the present disclosure may also include: generating a first MD5 value based on the identity information of the requesting node, the first MD5 value being used by the destination node to authenticate the first SRv6 data packet; and encapsulating the first MD5 value in the TLV field of the first SRv6 data packet.
[0062] Exemplarily, the first MD5 value may be a hash value, for example, the hash value may be 128 bits. The embodiment of the present disclosure does not limit the method for generating the first MD5 value.
[0063] Exemplarily, any node may have unique identity information for identifying its identity. When the requesting node needs to send a first SRv6 data packet to the destination node, the first MD5 value may be generated by the identity information of the requesting node.
[0064] In some embodiments, the data transmission method provided by the embodiments of the present disclosure may also include: encapsulating the first security tag information and the first security level information in the TLV field of the first SRv6 data packet, wherein the first security tag information is used to indicate that the TLV field of the first SRv6 data packet is used for security verification services, and the first security level information is used to indicate the security level of the requesting node.
[0065] In an exemplary embodiment, the first security level information may include multiple security levels, for example, four levels of L0, L1, L2, and L3. Among them, the security level of L0> the security level of L1> the security level of L2> the security level of L3. In addition, the embodiment of the present disclosure does not limit the encoding content of the first security tag information. The security level of the requesting node can be set manually, or can be determined based on the application scenario, which is not limited by the embodiment of the present disclosure.
[0066] In a possible implementation, the format of the TLV field of the first SRv6 data packet may be as follows: Figure 4 As shown. Figure 4 In the embodiment of the present invention, the TLV field includes a security tag field, a security level field, an identity information field and a key information field. The TLV field can be a variable length field. For example, the TLV field can be 128 bits. The security tag field can be bits 1 to 16, the security level field can be bits 17 to 32, the identity information field can be bits 33 to 80, and the key information field can be bits 81 to 128.
[0067] For Figure 4 The TLV field shown in FIG. 1 may be a first security label field, the content in the security level field may be the first security level information, the content in the identity information field may be the first MD5 value, and the content in the key information field may be the first key information.
[0068] In some embodiments, when the security level of the destination node is higher than that of the requesting node, the data transmission method provided by the embodiment of the present disclosure may further include: obtaining third key information issued by the authentication center; encrypting the first key information and the first MD5 value in the first SRv6 data packet according to the third key information to obtain an encrypted first SRv6 data packet. In this case, sending the first SRv6 data to the destination node may include: sending the encrypted first SRv6 data packet to the destination node.
[0069] In an exemplary embodiment, the requesting node may determine whether the security level of the destination node is higher than the security level of the requesting node. When the security level of the destination node is higher than that of the requesting node, the requesting node may send corresponding information to the authentication center, so that the authentication center matches a third key information for the requesting node, and sends a fourth key information matching the third key information to the destination node. After determining the first MD5 value and the first key information, the requesting node may encrypt them by the third key information, thereby obtaining the encrypted first SRv6 information. The destination node may decrypt the first SRv6 information by the fourth key information.
[0070] In an exemplary embodiment, a possible header format of a first SRv6 data packet may be as follows: Figure 5 As shown. Figure 5 In the embodiment, the header of the first SRv6 data packet includes an IPv6 Header and an SRH (Segment Routing Header). In addition, the first SRv6 data packet may also include a Data Payload field. The IPv6 Header may include a Version field, a Traffic Class field, a Flow Label field, a Payload Length field, a Next Header field, a Hop Limit field, a Source Address field, and a Destination Address field.
[0071] The SRH may include the Next Header field, Hdr Ext Len (Header Extension Length) field, Routing Type field, Segment Left (number of remaining nodes) field, Last Entry (index of the last element) field, Flags field, Segment List field, and Optional TLVs (optional type length value) field.
[0072] It should be noted that the Segment List field may include Segment List[0], Segment List[1], ..., Segment List[n], where each row of Segment List may correspond to a SID (Segment Identification). Each SID may be an IPv6 address, used to identify the node corresponding to the IPv6 address. In addition, the Optional TLVs field is the TLV field mentioned above, and the format of the TLV field may be, for example, as follows: Figure 4 In addition, the embodiments of the present disclosure do not limit the other fields in the IPv6 Header and SRH, and the other fields can be set and adjusted based on specific application scenarios.
[0073] In some embodiments, the function field in the segment list field of the first SRv6 data packet includes function definition information, where the function definition information is used to indicate a destination node, and to authenticate the first SRv6 data packet according to the first MD5 value.
[0074] In a possible implementation, the segment list field may include a Locator field, a Function field, and an Arguments field. The Locator field is the prefix of the IPv6 address of the corresponding node. The Function field includes function definition information. The Arguments field is optional, and may include, for example, security data processing parameters.
[0075] Exemplarily, the function definition information may be as shown in Table 1. Among them, the function definition information may include End.ST0, End.ST1, End.ST2 and End.ST3. For example, when the first SRv6 data packet is sent to node A. Node A can read the function definition information corresponding to node A. If it corresponds to End.ST0, node A only needs to forward the first SRv6 data packet. If it corresponds to End.ST1, node A needs to authenticate the first SRv6 data packet. If it corresponds to End.ST2, node A needs to parse the first SRv6 data packet. If it corresponds to End.ST3, node A determines the encryption algorithm and encrypts the corresponding information through the encryption algorithm. Exemplarily, the encryption algorithm can be determined by the security data processing parameters included in the above-mentioned variable field.
[0076] Table 1
[0077] Function definition information illustrate End.ST0 This node does not process data End.ST1 This node requires packet authentication End.ST2 This node needs to parse the data packet End.ST3 This node needs to determine the encryption algorithm …… ……
[0078] S304: The requesting node sends a first SRv6 data packet to the destination node.
[0079] The disclosed embodiment does not limit the process of the requesting node sending the first SRv6 data packet. For example, the requesting node may directly send the first SRv6 data packet to the destination node. Alternatively, the requesting node may send the first SRv6 data packet to the destination node through at least one intermediate node. At this time, the function definition information in the segment list field corresponding to at least one intermediate node may be non-processing data, i.e., End.ST0 shown in Table 1.
[0080] S306, the requesting node receives a second SRv6 data packet returned by the destination node, the second SRv6 data packet includes the target data encrypted by the second key information, and the TLV field of the second SRv6 data packet includes the second key information encrypted by the first key information.
[0081] The second key information is not limited in the embodiment of the present disclosure. In an exemplary embodiment, the second key information may be determined by the destination node based on the security data processing parameters included in the variable field in the corresponding segment list field.
[0082] Exemplarily, the format of the second SRv6 data packet may be the same as the format of the first SRv6 data packet.
[0083] S308: The requesting node decrypts the TLV field of the second SRv6 data packet using the first key information to obtain the second key information, and decrypts the second SRv6 data packet using the second key information to obtain the target data.
[0084] In some embodiments, the second SRv6 data packet TLV field also includes a second MD5 value generated by the identity information of the destination node. The data transmission method provided by the embodiment of the present disclosure may also include: authenticating the second SRv6 data packet according to the second MD5 value.
[0085] In this case, decrypting the TLV field of the second SRv6 data packet by using the first key information to obtain the second key information, and decrypting the second SRv6 data packet by using the second key information to obtain the target data may include: when the second SRv6 data packet authentication passes, decrypting the TLV field of the second SRv6 data packet by using the first key information to obtain the second key information, and decrypting the second SRv6 data packet by using the second key information to obtain the target data.
[0086] In some embodiments, the requesting node may determine the identity information of the destination node through the second SRv6 data packet, and the requesting node may calculate the corresponding MD5 value for the identity information of the destination node. Afterwards, the requesting node may compare the calculated MD5 value with the second MD5 value. If they are consistent, it means that the identity authentication of the second SRv6 data packet has passed. Otherwise, it has failed.
[0087] It should be noted that the process of limiting the second SRv6 data packet by using the second MD5 value may also be performed by an intermediate node between the requesting node and the destination node, and the embodiment of the present disclosure is not limited to this.
[0088] Figure 6 A flow chart of a data transmission method in an embodiment of the present disclosure is shown as follows: Figure 6 As shown, the data transmission method provided in the embodiment of the present disclosure includes the following steps S601 to S608.
[0089] S602: The destination node receives a first SRv6 data packet sent by the requesting node, where the TLV field of the first SRv6 data packet includes first key information.
[0090] In an exemplary embodiment, the format of the first SRv6 data packet may refer to the relevant description in the above S302, which will not be repeated here.
[0091] S604: The destination node queries and obtains target data according to the first SRv6 data packet.
[0092] Exemplarily, the first SRv6 data packet may include an ID (Identification) corresponding to the target data. In some embodiments, the destination node may directly query the target data in the destination node according to the ID corresponding to the target data.
[0093] Alternatively, the destination node may send the first SRv6 data packet to a corresponding database node based on the segment list field in the first SRv6 data packet, and the database node may obtain the target data by querying the ID corresponding to the target data. Afterwards, the database node may return the target data to the destination node.
[0094] In some embodiments, the TLV field of the first SRv6 data packet also includes a first MD5 value, and the data transmission method provided by the embodiment of the present disclosure may further include: authenticating the first SRv6 data packet according to the first MD5 value. In this case, querying and obtaining the target data according to the first SRv6 data packet may include: when the first SRv6 data packet authentication passes, querying and obtaining the target data according to the first SRv6 data packet.
[0095] In some embodiments, the destination node may parse the first SRv6 data packet and determine that the first SRv6 data packet needs to be authenticated based on the function definition information in the segment list field of the first SRv6 data packet.
[0096] Exemplarily, the method of authenticating the first SRv6 data packet according to the first MD5 value may be the same as the method of authenticating the second SRv6 data packet according to the second MD5 value of the requesting node. When the destination node passes the authentication of the first SRv6 data packet, the destination node can query the target data. Otherwise, the destination node does not perform subsequent processing on the first SRv6 data packet.
[0097] It should be noted that the process of limiting the first SRv6 data packet by using the first MD5 value may also be performed by an intermediate node between the requesting node and the destination node, and the embodiment of the present disclosure is not limited to this.
[0098] The disclosed embodiment can customize the TLV field so that the MD5 value for identity authentication is encapsulated into the corresponding SRv6 data packet. Therefore, the requesting node can transmit the first MD5 value for identity authentication, the first key message, and the ID of the target data together. The destination node can transmit the second MD5 value for identity authentication, the second key message encrypted according to the first key information, and the target data encrypted according to the second key information together. Therefore, the disclosed embodiment can complete identity authentication with only one data transmission, which improves the efficiency of data transmission while ensuring the security and reliability of data transmission.
[0099] In some embodiments, the TLV field of the first SRv6 data packet also includes first security tag information and first security level information, wherein the first security tag information is used to indicate that the TLV field of the first SRv6 data packet is used for security verification services, and the first security level information is used to indicate the security level of the requesting node. The method also includes: when the security level of the destination node is higher than that of the requesting node and the first SRv6 data packet is an encrypted data packet, obtaining fourth key information issued by the authentication center; decrypting the first SRv6 data packet according to the fourth key information to obtain the first key information and the first MD5 value.
[0100] In some embodiments, the authentication center may issue fourth key information for decrypting the encrypted first SRv6 data packet. When the destination node obtains the encrypted first SRv6 data packet, the first key information and the first MD5 value encrypted by the third key information in the first SRv6 data packet may be decrypted by the fourth key information.
[0101] S606, the destination node encrypts the target data by using the second key information generated by the destination node to obtain the encrypted target data, encrypts the second key information by using the first key information to obtain the encrypted second key information, and encapsulates the encrypted target data and the encrypted second key information into a second SRv6 data packet.
[0102] In some embodiments, the destination node may generate a second key information and encrypt the second key information by the first key information in the first SRv6 data packet. Exemplarily, the second key information may be determined based on the security data processing parameters included in the variable field in the segment list field of the first SRv6 data packet. The disclosed embodiment does not limit the type of the second key information. In addition, after the destination node obtains the target data, it may encrypt the target data by the second key information, and encapsulate the encrypted target data and the encrypted second key information in the second SRv6 data packet.
[0103] S608: The destination node returns the second SRv6 data packet to the requesting node.
[0104] Exemplarily, the destination node may return the second SRv6 data packet by requesting the node to send the path of the first SRv6 data packet.
[0105] The method provided by the embodiment of the present disclosure customizes the TLV field of the SRv6 data, so that the first key information is encapsulated in the TLV field of the first SRv6 data packet that requests the target data from the destination node, and the first key information is used to encrypt the second key information. In addition, after receiving the second SRv6 data packet returned by the destination node, the encrypted second key information can be decrypted by the first key information to obtain the second key information, and the encrypted second key information is located in the TLV field of the second SRv6 data packet. After that, the target data can be decrypted by the second key information. Therefore, the embodiment of the present disclosure can further ensure the security and reliability of data transmission.
[0106] In some embodiments, a process diagram of a data transmission method can be as follows: Figure 7 shown.
[0107] exist Figure 7 In the example, R1 is the request node, R2 is the intermediate node, R3 is the destination node, and R4 is the database node. The IPv6 address of R1 is A1:11, the IPv6 address of R2 is A2:22, the IPv6 address of R3 is A3:33, and the IPv6 address of R4 is A4:44.
[0108] Exemplarily, when R1 needs to obtain the target data in R4, R1 can encapsulate and obtain the first SRv6 data packet, which includes the ID of the target data. In addition, the segment list field in the first SRv6 data packet may include Segment List[0] with SID A4:44, Segment List[1] with SID A3:33, and Segment List[2] with SID A2:22. In addition, the TLV field of the first SRv6 data packet may be as shown in Table 2. Among them, the security label field, security level field, identity information field, and key information field in the TLV field. The content of the identity information field may be the first MD5 encrypted by the third key information, and the content of the key information field may be the first key information encrypted by the third key information.
[0109] Table 2
[0110]
[0111] Therefore, R1 can send the first SRv6 data packet to R2 with DA being A2:22 and SA being A1:11. After receiving the first SRv6 data packet, R2 can read the function field of the first SRv6 data packet to determine the function definition information corresponding to R2. For example, the function definition information corresponding to R2 can be End.ST0 in Table 1. Therefore, R2 can directly send the first SRv6 data packet to R3 with DA being A3:33 and SA being A1:11.
[0112] Exemplarily, after receiving the first SRv6 data packet, R3 can read the function field of the first SRv6 data packet to determine the function definition information corresponding to R3. Exemplarily, the function definition information corresponding to R3 can be End.ST1 in Table 1. Therefore, R3 can authenticate the first SRv6 data packet. After the authentication is passed, the first SRv6 data packet is sent to R4 with DA as A4:44 and SA as A1:11.
[0113] Exemplarily, after receiving the first SRv6 data packet, R4 can read the function field of the first SRv6 data packet to determine the function definition information corresponding to R4. For example, the function definition information corresponding to R4 can be End.ST2 in Table 1. Therefore, R4 can parse the first SRv6 data packet to obtain the ID of the target data, and query the target data in the database according to the ID of the target data. And return the target data to R3.
[0114] In some embodiments, the data transmission method for returning the target data can be as follows: Figure 8 As shown. Figure 8 In the example, R4 may return the target data to R3. R3 receives the target data and encapsulates the target data to obtain a second SRv6 data packet. In a possible implementation, the format of the second SRv6 data packet may be as shown in Table 3. Among them, the security label field, security level field, identity information field, and key information field in the TLV field. The content of the identity information field may be the second MD5, and the content of the key information field may be the second key information encrypted by the first key information.
[0115] Table 3
[0116]
[0117] Therefore, R3 can send the second SRv6 data packet to R2 with DA being A2:22 and SA being A3:33. After receiving the second SRv6 data packet, R2 can read the function field of the second SRv6 data packet to determine the function definition information corresponding to R2. For example, the function definition information corresponding to R2 can be End.ST1 in Table 1. Therefore, R2 can authenticate the second SRv6 data packet. And when the authentication is passed, R2 can send the second SRv6 data packet to R1 with DA being A1:11 and SA being A3:33.
[0118] Exemplarily, after receiving the second SRv6 data packet, R1 may read the function field of the second SRv6 data packet to determine the function definition information corresponding to R1. Exemplarily, the function definition information corresponding to R1 may be End.ST2 in Table 1. Therefore, R1 may decrypt the TLV field of the second SRv6 data packet by using the first key information to obtain the second key information, and decrypt the second SRv6 data packet by using the second key information to obtain the target data.
[0119] In some embodiments, a possible data transmission system may be as follows Fig. 9 shown.
[0120] exist Fig. 9 In the present invention, any node (or network device) may include a network communication interface, an SRv6 data packet encapsulation and parsing module, an MD5 value calculation module, a key information generation module, and a key information encryption and decryption module.
[0121] Among them, the SRv6 data packet encapsulation module can be used to encapsulate or parse the SRv6 data packet according to the TLV field format and corresponding function definition information provided by the embodiment of the present disclosure. The network communication interface is used to send and receive SRv6 data packets. The key information generation module can be used to generate key parameters such as symmetric keys or asymmetric keys, and use the key parameters as the first key information or the second key information. The key information encryption and decryption module can be used to encrypt the corresponding data according to the first key information, and can also decrypt the encrypted part of the received message according to the second key information. The key information encryption and decryption module is mainly based on computing resources. The MD5 value calculation module can be used to calculate the MD5 value of the corresponding node. Since the MD5 value is unique, it can be used for identity authentication.
[0122] Based on the same inventive concept, the present disclosure also provides a data transmission device in the following embodiments. Since the principle of solving the problem in the device embodiment is similar to that in the above method embodiment, the implementation of the device embodiment can refer to the implementation of the above method embodiment, and the repeated parts will not be repeated.
[0123] Fig.10 A schematic diagram of a data transmission device in an embodiment of the present disclosure is shown. Fig.10 As shown, the device comprises:
[0124] A first SRv6 data packet encapsulation module 1001, configured to encapsulate the first key information generated by the requesting node in a TLV field of a first SRv6 data packet, where the first SRv6 data packet is used to request target data from a destination node;
[0125] A first SRv6 data packet sending module 1002, configured to send the first SRv6 data packet to the destination node;
[0126] A second SRv6 data packet receiving module 1003 is configured to receive a second SRv6 data packet returned by the destination node, the second SRv6 data packet including target data encrypted by the second key information, and the TLV field of the second SRv6 data packet including the second key information encrypted by the first key information;
[0127] The target data acquisition module 1004 is used to decrypt the TLV field of the second SRv6 data packet using the first key information to obtain the second key information, and decrypt the second SRv6 data packet using the second key information to obtain the target data.
[0128] In some embodiments of the present disclosure, the first SRv6 data packet encapsulation module 1001 is further used to generate a first MD5 value based on the identity information of the requesting node, and the first MD5 value is used by the destination node to authenticate the first SRv6 data packet; and encapsulate the first MD5 value in the TLV field of the first SRv6 data packet.
[0129] In some embodiments of the present disclosure, the TLV field of the second SRv6 data packet also includes a second MD5 value generated by the identity information of the destination node, and the device also includes: a second SRv6 data packet verification module, used to authenticate the second SRv6 data packet according to the second MD5 value; a target data acquisition module 1004, used to decrypt the TLV field of the second SRv6 data packet by the first key information to obtain the second key information when the second SRv6 data packet identity authentication passes, and decrypt the second SRv6 data packet by the second key information to obtain the target data.
[0130] In some embodiments of the present disclosure, the first SRv6 data packet encapsulation module 1001 is also used to encapsulate first security label information and first security level information in the TLV field of the first SRv6 data packet, wherein the first security label information is used to indicate that the TLV field of the first SRv6 data packet is used for security verification services, and the first security level information is used to indicate the security level of the requesting node.
[0131] In some embodiments of the present disclosure, the security level of the destination node is higher than that of the requesting node, and the device further includes: a first SRv6 data packet encryption module, configured to obtain third key information issued by the authentication center; encrypt the first key information and the first MD5 value in the first SRv6 data packet according to the third key information to obtain an encrypted first SRv6 data packet;
[0132] The first SRv6 data packet sending module 1002 is used to send the encrypted first SRv6 data packet to the destination node.
[0133] In some embodiments of the present disclosure, the function field in the segment list field of the first SRv6 data packet includes function definition information, and the function definition information is used to indicate the destination node, and the first SRv6 data packet is authenticated according to the first MD5 value.
[0134] Fig.11 A schematic diagram of a data transmission device in an embodiment of the present disclosure is shown. Fig.11 As shown, the device comprises:
[0135] A first SRv6 data packet receiving module 1101 is configured to receive a first SRv6 data packet sent by a requesting node, wherein a TLV field of the first SRv6 data packet includes first key information;
[0136] A target data acquisition module 1102 is used to query and obtain target data according to the first SRv6 data packet;
[0137] The second SRv6 data packet encapsulation module 1103 is configured to encrypt the target data by using the second key information generated by the destination node to obtain the encrypted target data, encrypt the second key information by using the first key information to obtain the encrypted second key information, and encapsulate the encrypted target data and the encrypted second key information into a second SRv6 data packet;
[0138] The second SRv6 data packet sending module 1104 is configured to return the second SRv6 data packet to the requesting node.
[0139] In some embodiments of the present disclosure, the TLV field of the first SRv6 data packet also includes a first MD5 value, and the apparatus further includes: a first SRv6 data packet verification module, configured to authenticate the first SRv6 data packet according to the first MD5 value;
[0140] The target data acquisition module 1102 is used to query and obtain target data according to the first SRv6 data packet when the identity authentication of the first SRv6 data packet passes.
[0141] In some embodiments of the present disclosure, the TLV field of the first SRv6 data packet also includes first security tag information and first security level information, wherein the first security tag information is used to indicate that the TLV field of the first SRv6 data packet is used for security verification services, and the first security level information is used to indicate the security level of the requesting node. The device also includes: a first SRv6 data packet decryption module, which is used to obtain the fourth key information issued by the authentication center when the security level of the destination node is higher than that of the requesting node and the first SRv6 data packet is an encrypted data packet; decrypt the first SRv6 data packet according to the fourth key information to obtain the first key information and the first MD5 value.
[0142] Those skilled in the art will appreciate that various aspects of the present disclosure may be implemented as systems, methods or program products. Therefore, various aspects of the present disclosure may be specifically implemented in the following forms, namely: complete hardware implementation, complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to herein as "circuits", "modules" or "systems".
[0143] The device provided by the embodiment of the present disclosure customizes the TLV field of the SRv6 data, so that the first key information is encapsulated in the TLV field of the first SRv6 data packet that requests the target data from the destination node, and the first key information is used to encrypt the second key information. In addition, after receiving the second SRv6 data packet returned by the destination node, the encrypted second key information can be decrypted by the first key information to obtain the second key information, and the encrypted second key information is located in the TLV field of the second SRv6 data packet. After that, the target data can be decrypted by the second key information. Therefore, the embodiment of the present disclosure can further ensure the security and reliability of data transmission.
[0144] Refer to the following Fig.12 1200 according to this embodiment of the present disclosure is described. Fig.12 The electronic device 1200 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0145] like Fig.12 As shown, the electronic device 1200 is in the form of a general computing device. The components of the electronic device 1200 may include but are not limited to: at least one processing unit 1210, at least one storage unit 1220, and a bus 1230 connecting different system components (including the storage unit 1220 and the processing unit 1210).
[0146] The storage unit stores program code, which can be executed by the processing unit 1210, so that the processing unit 1210 executes the steps of various exemplary embodiments of the present disclosure described in the above “Specific Implementation Methods” section of this specification.
[0147] The storage unit 1220 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 12201 and / or a cache storage unit 12202 , and may further include a read-only storage unit (ROM) 12203 .
[0148] The storage unit 1220 may also include a program / utility 12204 having a set (at least one) of program modules 12205, such program modules 12205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0149] Bus 1230 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0150] The electronic device 1200 may also communicate with one or more external devices 1240 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 1200, and / or communicate with any device that enables the electronic device 1200 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 1250. Furthermore, the electronic device 1200 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 1260. As shown, the network adapter 1260 communicates with other modules of the electronic device 1200 via a bus 1230. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 1200, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0151] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation of the present disclosure.
[0152] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is also provided, which may be a readable signal medium or a readable storage medium. A program product capable of implementing the above-mentioned method of the present disclosure is stored thereon. In some possible implementations, various aspects of the present disclosure may also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps according to various exemplary implementations of the present disclosure described in the above “Specific Implementation Methods” section of this specification.
[0153] More specific examples of computer-readable storage media in the present disclosure may include, but are not limited to, an electrical connection having one or more conductors, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0154] In the present disclosure, a computer readable storage medium may include a data signal propagated in baseband or as part of a carrier wave, wherein a readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A readable signal medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0155] Alternatively, the program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.
[0156] In a specific implementation, the program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., using an Internet service provider to connect through the Internet).
[0157] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.
[0158] In addition, although the steps of the method in the present disclosure are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.
[0159] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the implementation of the present disclosure.
[0160] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The description and examples are to be regarded as exemplary only, and the true scope of the present disclosure is indicated by the appended claims.
Claims
1. A data transmission method, It is characterized in that Executed by the requesting node, including: Encapsulating the first key information generated by the requesting node in a type-length-value TLV field of a first SRv6 data packet, where the first SRv6 data packet is used to request target data from a destination node; Sending the first SRv6 data packet to the destination node; receiving a second SRv6 data packet returned by the destination node, wherein the second SRv6 data packet includes target data encrypted by the second key information, and the TLV field of the second SRv6 data packet includes the second key information encrypted by the first key information; The TLV field of the second SRv6 data packet is decrypted using the first key information to obtain second key information, and the second SRv6 data packet is decrypted using the second key information to obtain target data.
2. The data transmission method according to claim 1, It is characterized in that Before sending the first SRv6 data packet to the destination node, the method further includes: Generate a first MD5 value according to the identity information of the requesting node, where the first MD5 value is used by the destination node to authenticate the first SRv6 data packet; Encapsulate the first MD5 value in a TLV field of the first SRv6 data packet.
3. The data transmission method according to claim 2, It is characterized in that The second SRv6 data packet TLV field also includes a second MD5 value generated by the identity information of the destination node, and the method further includes: authenticating the second SRv6 data packet according to the second MD5 value; The decrypting the TLV field of the second SRv6 data packet by using the first key information to obtain the second key information, and decrypting the second SRv6 data packet by using the second key information to obtain the target data, includes: When the second SRv6 data packet authentication passes, the TLV field of the second SRv6 data packet is decrypted using the first key information to obtain the second key information, and the second SRv6 data packet is decrypted using the second key information to obtain the target data.
4. The data transmission method according to claim 2, It is characterized in that The method further comprises: The first security label information and the first security level information are encapsulated in the TLV field of the first SRv6 data packet, wherein the first security label information is used to indicate that the TLV field of the first SRv6 data packet is used for security verification service, and the first security level information is used to indicate the security level of the requesting node.
5. The data transmission method according to claim 4, It is characterized in that The security level of the destination node is higher than that of the requesting node, and the method further includes: Obtain the third key information issued by the certification center; Encrypting the first key information and the first MD5 value in the first SRv6 data packet according to the third key information to obtain an encrypted first SRv6 data packet; The sending the first SRv6 data to the destination node includes: Send the encrypted first SRv6 data packet to the destination node.
6. The data transmission method according to claim 5, It is characterized in that The function field in the segment list field of the first SRv6 data packet includes function definition information, and the function definition information is used to instruct the destination node to authenticate the first SRv6 data packet according to the first MD5 value.
7. A data transmission method, It is characterized in that Executed by the destination node, including: Receive a first SRv6 data packet sent by a requesting node, wherein a type-length-value TLV field of the first SRv6 data packet includes first key information; According to the first SRv6 data packet, query and obtain target data; Encrypt the target data by using the second key information generated by the destination node to obtain the encrypted target data, encrypt the second key information by using the first key information to obtain the encrypted second key information, and encapsulate the encrypted target data and the encrypted second key information in a second SRv6 data packet; The second SRv6 data packet is returned to the requesting node.
8. The data transmission method according to claim 7, It is characterized in that The TLV field of the first SRv6 data packet also includes a first MD5 value, and the method further includes: authenticating the first SRv6 data packet according to the first MD5 value; The querying and obtaining target data according to the first SRv6 data packet includes: When the first SRv6 data packet passes the identity authentication, the target data is queried and obtained according to the first SRv6 data packet.
9. The data transmission method according to claim 8, It is characterized in that The TLV field of the first SRv6 data packet also includes first security label information and first security level information, wherein the first security label information is used to indicate that the TLV field of the first SRv6 data packet is used for security verification service, and the first security level information is used to indicate the security level of the requesting node, and the method further includes: When the security level of the destination node is higher than that of the requesting node, and the first SRv6 data packet is an encrypted data packet, obtaining fourth key information issued by the authentication center; The first SRv6 data packet is decrypted according to the fourth key information to obtain the first key information and the first MD5 value.
10. A data transmission device, It is characterized in that Applied to the requesting node, including: A first SRv6 data packet encapsulation module, configured to encapsulate the first key information generated by the requesting node in a type-length-value TLV field of a first SRv6 data packet, wherein the first SRv6 data packet is used to request target data from a destination node; A first SRv6 data packet sending module, configured to send the first SRv6 data packet to the destination node; A second SRv6 data packet receiving module, configured to receive a second SRv6 data packet returned by the destination node, wherein the second SRv6 data packet includes target data encrypted by the second key information, and the TLV field of the second SRv6 data packet includes the second key information encrypted by the first key information; A target data acquisition module is used to decrypt the TLV field of the second SRv6 data packet using the first key information to obtain second key information, and decrypt the second SRv6 data packet using the second key information to obtain target data.
11. A data transmission device, It is characterized in that Applied to the destination node, including: A first SRv6 data packet receiving module, configured to receive a first SRv6 data packet sent by a requesting node, wherein a type-length-value TLV field of the first SRv6 data packet includes first key information; A target data acquisition module, configured to query and obtain target data according to the first SRv6 data packet; A second SRv6 data packet encapsulation module is used to encrypt the target data by using the second key information generated by the destination node to obtain the encrypted target data, encrypt the second key information by using the first key information to obtain the encrypted second key information, and encapsulate the encrypted target data and the encrypted second key information in a second SRv6 data packet; The second SRv6 data packet sending module is used to return the second SRv6 data packet to the requesting node.
12. An electronic device, It is characterized in that include: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to execute the data transmission method according to any one of claims 1 to 9 by executing the executable instructions.
13. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the data transmission method according to any one of claims 1 to 9 is implemented.
