Data message tracing method and device, electronic equipment and medium
By generating and adding metadata based on address changes in data packets, and adopting hierarchical addressing and forward differential encoding strategies, the problem of network transmission performance degradation in data traceability technology is solved and more efficient data transmission is achieved. .
Patent Information
- Application Number
- CN202410786789.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2024-10-01
AI Technical Summary
Existing data traceability technology has problems with performance impact and transmission efficiency loss during network transmission. Especially when there are many path nodes, bloated metadata leads to a decrease in network transmission performance.
By generating and adding metadata based on the address changes between the transmission node and the previous transmission node, using hierarchical addressing and forward differential encoding strategies, the virtual MAC address is compressed to ensure that data packets are not too large and improve network transmission. performance.
It effectively reduces the proportion of metadata in data packets, avoids the loss of transmission efficiency caused by excessively large traceability packets, and improves network transmission performance.
Smart Images

Figure CN118740333A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a data message tracing method, device, electronic equipment and medium. Background Art
[0002] In the current network environment, data security and privacy protection are increasingly valued. Data traceability technology aims to track and audit the source, transmission path and usage of data to ensure the integrity and credibility of the data.
[0003] In the field of network security, data tracing technology can be used to detect and prevent network attacks, identify the source of malicious traffic, and take corresponding defensive measures. In terms of privacy protection, data tracing technology can ensure the legal use of personal data and prevent data leakage and abuse.
[0004] Source routing technology implements datagram-level traceability by carrying routing information in datagrams. This method can accurately track the transmission path of each datagram and provide more fine-grained support for data traceability. However, there are some technical challenges in the implementation of source routing technology, such as encoding and decoding of routing information, message size restrictions, and the credibility of routing information.
[0005] In the implementation of source routing technology, when there are too many path nodes, the metadata of the relevant node information in the data message will become bloated, affecting the network transmission performance. In addition, since the data message transmission is limited by the size of the data message, it may cause a loss of transmission efficiency, that is, the proportion of the effective load in the data message is reduced. Summary of the invention
[0006] The present invention provides a data message tracing method, device, electronic device and medium to solve the problem in the prior art that tracing affects network transmission performance.
[0007] In order to solve the above problem, the present invention discloses a data message tracing method, comprising:
[0008] When receiving a data message to be transmitted, based on the address change information between the current transmission node and the previous transmission node of the data message, generate metadata corresponding to the current transmission node;
[0009] The metadata is added to the metadata group of the data message, and the data message is sent to the next hop node according to a hierarchical addressing method, wherein the metadata group includes metadata corresponding to each transmission node that has been passed on the transmission path of the data message.
[0010] Optionally, the generating metadata corresponding to the current transmission node based on the address change information between the current transmission node and the previous transmission node includes:
[0011] According to the comparison between the first virtual MAC address of the current transmission node and the second virtual MAC address of the previous transmission node of the data message, the changed byte position information is determined, and the encoding is performed according to the set forward differential encoding strategy to generate the metadata.
[0012] Optionally, the adding the metadata to the metadata group of the data message includes:
[0013] The header portion of the data message is provided with an extended metadata group identification item, and the extended metadata group identification item is used to store metadata corresponding to each transmission node on the transmission path of the data message.
[0014] In order to solve the above problem, the present invention also discloses a data message tracing method, comprising:
[0015] When receiving a data message, obtaining a metadata group from the data message, wherein the metadata group includes metadata corresponding to each transmission node that has passed on the transmission path of the data message;
[0016] Determining, according to the metadata corresponding to each transmission node in the metadata group, address change information between adjacent transmission nodes in the entire transmission path of the data message;
[0017] The data message is traced according to the entire transmission path of the data message and the change information.
[0018] Optionally, determining, according to the metadata corresponding to each transmission node in the metadata group, address change information between adjacent transmission nodes in the entire transmission path of the data message includes:
[0019] The metadata corresponding to each transmission node is decoded according to the set forward differential encoding strategy to determine the byte position information of the changed byte between the first virtual MAC address of each transmission node and the second virtual MAC of the previous transmission node of the data message.
[0020] Optionally, the acquiring the metadata group from the data message includes:
[0021] From the extended metadata group identification item in the packet header part of the data message, the metadata corresponding to each transmission node on the transmission path of the data message is extracted.
[0022] In order to solve the above problem, the present invention also discloses a data message tracing method and device, comprising:
[0023] A generating module, configured to generate metadata corresponding to the current transmission node based on address change information between the current transmission node and the previous transmission node of the data message when receiving the data message to be transmitted;
[0024] A hierarchical addressing module is used to add the metadata to the metadata group of the data message and send the data message to the next hop node according to the hierarchical addressing method, wherein the metadata group includes metadata corresponding to each transmission node that has been passed on the transmission path of the data message.
[0025] In order to solve the above problem, the present invention also discloses a data message tracing device, comprising:
[0026] An acquisition module, configured to acquire a metadata group from a data message when receiving the data message, wherein the metadata group includes metadata corresponding to each transmission node that the data message has passed on the transmission path;
[0027] A determination module, configured to determine address change information between adjacent transmission nodes in the entire transmission path of the data message according to metadata corresponding to each transmission node in the metadata group;
[0028] The tracing module is used to trace the data message according to the entire transmission path of the data message and the change information.
[0029] In order to solve the above problems, the present invention also discloses an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the data message tracing method when executing the computer program.
[0030] In order to solve the above problem, the present invention also discloses a computer-readable storage medium, which stores a computer program for implementing the data message tracing method when executed by a processor.
[0031] Compared with the prior art, the present invention has the following advantages:
[0032] First, when a data message to be transmitted is received, metadata corresponding to the current transmission node is generated based on address change information between the current transmission node and the previous transmission node of the data message; the metadata is added to the metadata group of the data message, and the data message is sent to the next-hop node according to a hierarchical addressing method, wherein the metadata group includes metadata corresponding to each transmission node that has been passed on the transmission path of the data message. Since the metadata corresponding to the current transmission node is generated based on address change information between the current transmission node and the previous transmission node of the data message, it is ensured that the message will not be too large, thereby improving network transmission performance.
[0033] Secondly, since the network nodes use a forward differentiation encoding strategy to compress the virtual MAC address, this compresses the proportion of metadata in the tracing message, thereby avoiding the problem of loss of transmission efficiency caused by the tracing message being too large.
[0034] Of course, any product implementing the present invention does not necessarily need to achieve all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 It is a flow chart of a data message tracing method according to an embodiment of the present invention;
[0036] Figure 2 Schematic diagram of the tree structure of the visual network according to an embodiment of the present invention;
[0037] Figure 3 It is a schematic diagram of a tree structure of a visual network represented by a virtual MAC address in an embodiment of the present invention;
[0038] Figure 4 It is a flow chart of a data message tracing method according to an embodiment of the present invention;
[0039] Figure 5 It is a schematic diagram of a specific application example of a data message tracing method according to an embodiment of the present invention;
[0040] Figure 6 It is a structural schematic diagram of a data message tracing device according to an embodiment of the present invention;
[0041] Figure 7 It is a structural schematic diagram of a data message tracing device described in an embodiment of the present invention. DETAILED DESCRIPTION
[0042] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0043] Reference Figure 1 , which shows a flow chart of a data message tracing method according to an embodiment of the present invention, the method is applied to an intermediate node, and specifically includes:
[0044] Step 101: when receiving a data message to be transmitted, metadata corresponding to the current transmission node is generated based on address change information between the current transmission node and the previous transmission node of the data message.
[0045] In actual applications, the previous transmission node sends a data message to be transmitted to the current transmission node through the visual network, wherein the data message includes a header part and a data payload part, wherein an extended metadata group identification item is set in the header part of the data message, and the extended metadata group identification item is used to store the metadata corresponding to each transmission node on the transmission path of the data message, and the metadata is generally expressed as 0x00, wherein 0x represents a hexadecimal virtual MAC address, and 00 represents the byte position information of the change of the transmission node.
[0046] The visual networking system uses a tree structure and connection-oriented communication mode, so the data forwarding path is relatively fixed, and the number of jumps of data packets in the visual networking system is effective and the virtual MAC addresses corresponding to two nodes in one hop are quite small. Therefore, the above characteristics can be used to adopt a forward differential encoding strategy to represent data packets of different network nodes. In this way, the proportion of the original data packet payload is not changed as much as possible, and the payload in the data packet does not require any parsing and format conversion during the transmission process, which reduces the delay of data exchange.
[0047] See also Figure 2 , shows a tree structure diagram of the visual network. Specifically, the tree structure of the visual network consists of 4 layers, namely: the first layer, the second layer, the third layer and the fourth layer, and each layer is constructed by a secondary network node. The 4-layer structure can be represented by a virtual MAC address, such as Figure 3 shown.
[0048] Based on the characteristics of visual networking, in practical applications, the metadata corresponding to the current transmission node is generated based on the address change information between the current transmission node and the previous transmission node, including:
[0049] According to the comparison between the first virtual MAC address of the current transmission node and the second virtual MAC address of the previous transmission node of the data message, the changed byte position information is determined, and the encoding is performed according to the set forward differential encoding strategy to generate the metadata.
[0050] Since the transmission node changes, the corresponding virtual MAC address will change, so the first virtual MAC address of the current transmission node is compared with the second virtual address of the previous transmission node of the data message to determine the changed byte position information.
[0051] The first virtual MAC address and the second virtual MAC address are both represented in binary, and generally 0 represents no change in the forward and backward jumps, and 1 represents a change in the forward and backward jump values. For example, if the first virtual MAC address is 00000000, and the second virtual MAC address is 00000001, then 1 represents a change in the forward and backward jump values, that is, the changed byte position information is determined, and then the first virtual MAC address is converted into a binary system, that is, the first virtual MAC address in binary is converted into a hexadecimal first virtual MAC address, and then the hexadecimal first virtual MAC address and the changed byte position information are spliced to generate the metadata. Since the network node adopts a forward differentiation encoding strategy, the original binary virtual MAC address is represented in hexadecimal, so that the bytes occupied in the data message are reduced, that is, the compression of the virtual MAC address is achieved, and the proportion of metadata in the data message is compressed, thereby avoiding the problem of transmission efficiency loss caused by excessively large data messages.
[0052] Step 102: Add the metadata to the metadata group of the data message, and send the data message to the next hop node according to the hierarchical addressing mode.
[0053] The metadata is added to the metadata group of the data message, and the data message is sent to the next-hop node through the visual network according to the hierarchical addressing method, wherein the metadata group includes the metadata corresponding to each transmission node that the data message has passed on the transmission path. Since the metadata group includes the metadata corresponding to each transmission node that the data message has passed on the transmission path, the data message can be traced.
[0054] Among them, the hierarchical addressing method of visual networking is to perform hierarchical addressing based on the virtual MAC address above the link layer to send data packets to network nodes at different levels.
[0055] Among them, the virtual MAC address in the visual network is different from the virtual MAC address in the Internet. In addition to the function of unique identification, the virtual MAC address in the visual network also has hierarchical information, that is, the function of indicating that the virtual MAC address is at a specific level in the visual network.
[0056] In this embodiment, first, when a data message to be transmitted is received, metadata corresponding to the current transmission node is generated based on address change information between the current transmission node and the previous transmission node of the data message; the metadata is added to the metadata group of the data message, and the data message is sent to the next-hop node according to a hierarchical addressing method, wherein the metadata group includes metadata corresponding to each transmission node that has been passed on the transmission path of the data message. Since the metadata corresponding to the current transmission node is generated based on address change information between the current transmission node and the previous transmission node of the data message, it is ensured that the message will not be too large, thereby improving the network transmission performance.
[0057] Secondly, since the network nodes use a forward differentiation encoding strategy to compress the virtual MAC address, this compresses the proportion of metadata in the tracing message, thereby avoiding the problem of loss of transmission efficiency caused by the tracing message being too large.
[0058] Reference Figure 4 , which shows a flow chart of a data message tracing method according to an embodiment of the present invention, the method is applied to the destination end of the data message, and specifically includes:
[0059] Step 401: When a data message is received, a metadata group is obtained from the data message.
[0060] When the destination end receives the data message, which can also be understood as when the receiving end receives the data message, a metadata group is obtained from the data message, wherein the metadata group includes metadata corresponding to each transmission node that has passed on the transmission path of the data message.
[0061] In a specific application, the metadata group can be obtained from the data message in the following manner: the metadata corresponding to each transmission node on the transmission path of the data message can be extracted from the extended metadata group identification item in the packet header part of the data message, that is, the metadata corresponding to each transmission node that the data message has passed on the transmission path can be extracted from the extended metadata group identification item.
[0062] Step 402: Determine address change information between adjacent transmission nodes in the entire transmission path of the data message according to the metadata corresponding to each transmission node in the metadata group.
[0063] Since the virtual MAC address of each transmission node will change during the jump process of each transmission node, the metadata corresponding to each transmission node is decoded according to the set forward differential encoding strategy to determine the byte position information that has changed compared with the first virtual MAC address of each transmission node and the second virtual MAC of the previous transmission node of the data message.
[0064] Step 403: Tracing the source of the data message according to the entire transmission path of the data message and the change information.
[0065] In this embodiment, the data message can be quickly traced based on the entire transmission path of the data message and the change information.
[0066] In order for those skilled in the art to better understand the technical solutions defined in the present invention, Figure 5 Taking the example of FIG. 1 as an example, a method for tracing the source of a data message according to the present invention is described in detail, which specifically includes the following steps:
[0067] Step 501: The first transmission node (initial node) generates a first data message, wherein the virtual MAC address in the first data message is 00000000 (first virtual MAC address), and the first metadata of the forward differential encoding is 00.
[0068] Step 502: The first transmission node forwards the first data packet to the next-hop transmission node (the second transmission node) according to the virtual MAC address. The second virtual MAC address corresponding to the second transmission node is 00000001. The binary second virtual MAC address is converted into hexadecimal, and the converted second virtual MAC address is: 01.
[0069] Since 0 represents no change in the forward and backward jump values, and 1 represents a change in the forward and backward jump values, it can be determined according to the first virtual MAC address and the second virtual MAC address that the changed byte position information is: 00, and the second virtual MAC address and the changed byte position information are encoded according to the forward differential encoding strategy to generate second metadata, that is, the binary second virtual MAC address and the changed byte position information are converted into hexadecimal to generate second metadata 01:00; the second metadata is added to the metadata group of the first data message to obtain the second data message.
[0070] Step 503: The second transmission node forwards the second data message to the next-hop network node (the third transmission node) according to its own virtual MAC address. The third virtual MAC address corresponding to the third transmission node is 00000010. The binary third virtual MAC address is converted into hexadecimal, and the converted third virtual MAC address is: 02.
[0071] Since 0 represents no change in the forward and backward jumps, and 1 represents a change in the forward and backward jump values, it can be determined based on the second virtual MAC address and the third virtual MAC address that the changed byte position information is: 00, and the third virtual MAC address and the changed byte position information are encoded according to the forward difference encoding strategy to generate the third metadata, that is, the binary third virtual MAC address and the changed byte position information are converted into hexadecimal, and the third metadata is generated as 02:00; the third metadata is added to the metadata group of the second data message to obtain the third data message.
[0072] Step 504: The third transmission node forwards the third data message to the next-hop network node (the fourth transmission node) according to its own virtual MAC address. The fourth virtual MAC address corresponding to the fourth transmission node is 00000010. The fourth virtual MAC address in binary is converted into hexadecimal, and the converted fourth virtual MAC address is: 02.
[0073] Since 0 represents no change in the forward and backward jumps, and 1 represents a change in the forward and backward jump values, the changed byte position information can be determined according to the fourth virtual MAC address and the third virtual MAC address: F3, the fourth virtual MAC address and the changed byte position information are encoded according to the forward difference encoding strategy to generate fourth metadata, that is, the fourth virtual MAC address in binary and the changed byte position information are converted into hexadecimal to generate the fourth metadata as 02:F3; the fourth metadata is added to the metadata group of the third data message to obtain the fourth data message. .
[0074] Step 505: The fourth transmission node forwards the fourth data message to the next-hop network node (fifth transmission node) according to its own virtual MAC address. The fifth virtual MAC address corresponding to the fifth transmission node is 00000001. The fifth virtual MAC address in binary is converted into hexadecimal, and the converted fifth virtual MAC address is: 01.
[0075] Since 0 represents no change in the forward and backward jumps, and 1 represents a change in the forward and backward jump values, it can be determined according to the fourth virtual MAC address and the fifth virtual MAC address that the changed byte position information is: BB, and the fifth virtual MAC address and the changed byte position information are encoded according to the forward differential encoding strategy to generate the fifth metadata, that is, the binary fifth virtual MAC address and the changed byte position information are converted into hexadecimal to generate the fifth metadata 01:BB; the fifth metadata is added to the metadata group of the fourth data message to obtain the fifth data message.
[0076] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present invention is not limited by the described order of actions, because according to the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the present invention. Based on the description of the above method embodiments, the present invention also provides corresponding device embodiments to implement the contents described in the above method embodiments.
[0077] Reference Figure 6 , which shows a schematic diagram of the structure of a data message tracing device according to an embodiment of the present invention, specifically comprising:
[0078] A generating module 601 is used to generate metadata corresponding to the current transmission node based on the address change information between the current transmission node and the previous transmission node of the data message when receiving the data message to be transmitted;
[0079] The hierarchical addressing module 602 is used to add the metadata to the metadata group of the data message and send the data message to the next hop node according to the hierarchical addressing method, wherein the metadata group includes metadata corresponding to each transmission node that has been passed on the transmission path of the data message.
[0080] Optionally, the generating module includes:
[0081] The comparison unit is used to determine the changed byte position information according to the first virtual MAC address of the current transmission node and the second virtual MAC address of the previous transmission node of the data message, encode according to the set forward differential encoding strategy, and generate the metadata.
[0082] Optionally, the hierarchical addressing module is used to add the metadata to the metadata group of the data message, including:
[0083] The header portion of the data message is provided with an extended metadata group identification item, and the extended metadata group identification item is used to store metadata corresponding to each transmission node on the transmission path of the data message.
[0084] In this embodiment, first, when a data message to be transmitted is received, metadata corresponding to the current transmission node is generated based on address change information between the current transmission node and the previous transmission node of the data message; the metadata is added to the metadata group of the data message, and the data message is sent to the next-hop node according to a hierarchical addressing method, wherein the metadata group includes metadata corresponding to each transmission node that has been passed on the transmission path of the data message. Since the metadata corresponding to the current transmission node is generated based on address change information between the current transmission node and the previous transmission node of the data message, it is ensured that the message will not be too large, thereby improving the network transmission performance.
[0085] Secondly, since the network nodes use a forward differentiation encoding strategy to compress the virtual MAC address, this compresses the proportion of metadata in the tracing message, thereby avoiding the problem of loss of transmission efficiency caused by the tracing message being too large.
[0086] Reference Figure 7 , which shows a schematic diagram of the structure of a data message tracing device according to an embodiment of the present invention, specifically comprising:
[0087] The acquisition module 701 is used to acquire a metadata group from the data message when receiving the data message, wherein the metadata group includes metadata corresponding to each transmission node that the data message has passed on the transmission path;
[0088] A determination module 702, configured to determine address change information between adjacent transmission nodes in the entire transmission path of the data message according to metadata corresponding to each transmission node in the metadata group;
[0089] The tracing module 703 is used to trace the data message according to the entire transmission path of the data message and the change information.
[0090] Optionally, the determination module is specifically used to decode the metadata corresponding to each transmission node according to the set forward differential encoding strategy, determine the first virtual MAC address of each transmission node compared with the second virtual MAC of the previous transmission node of the data message, and determine the changed byte position information.
[0091] Optionally, the acquisition module is used to acquire the metadata group from the data message, including:
[0092] From the extended metadata group identification item in the packet header part of the data message, the metadata corresponding to each transmission node on the transmission path of the data message is extracted.
[0093] In this embodiment, the data message can be quickly traced based on the entire transmission path of the data message and the change information.
[0094] As for the above-mentioned device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts may refer to the partial description of the method embodiment.
[0095] An embodiment of the present invention further provides an electronic device, including:
[0096] one or more processors; and
[0097] One or more machine-readable media having instructions stored thereon, when executed by the one or more processors, enable the electronic device to execute the data message tracing method.
[0098] An embodiment of the present invention further provides a computer-readable storage medium, which stores a computer program that enables a processor to execute the data message tracing method.
[0099] Alternatively, the computer-readable storage medium may be a non-transitory computer-readable storage medium, for example, the non-transitory computer-readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
[0100] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0101] It is easy for a person skilled in the art to think that any combination of the above embodiments is feasible, so any combination of the above embodiments is an implementation scheme of the present invention, but due to space limitations, this specification will not be described in detail here. Although the preferred embodiments of the present invention have been described, once a person skilled in the art knows the basic creative concept, he can make other changes and modifications to these embodiments. Therefore, the attached claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0102] The above is a detailed introduction to the data message tracing method, device, electronic device and medium provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A data message tracing method, characterized in that: include: When receiving a data message to be transmitted, based on the address change information between the current transmission node and the previous transmission node of the data message, generate metadata corresponding to the current transmission node; The metadata is added to the metadata group of the data message, and the data message is sent to the next hop node according to a hierarchical addressing method, wherein the metadata group includes metadata corresponding to each transmission node that has been passed on the transmission path of the data message.
2. The method according to claim 1, characterized in that The generating metadata corresponding to the current transmission node based on the address change information between the current transmission node and the previous transmission node includes: According to the comparison between the first virtual MAC address of the current transmission node and the second virtual MAC address of the previous transmission node of the data message, the changed byte position information is determined, and the encoding is performed according to the set forward differential encoding strategy to generate the metadata.
3. The method according to any one of claims 1 or 2, characterized in that: The adding the metadata to the metadata group of the data message comprises: The header portion of the data message is provided with an extended metadata group identification item, and the extended metadata group identification item is used to store metadata corresponding to each transmission node on the transmission path of the data message.
4. A data message tracing method, characterized in that: include: When receiving a data message, obtaining a metadata group from the data message, wherein the metadata group includes metadata corresponding to each transmission node that has passed on the transmission path of the data message; Determining, according to the metadata corresponding to each transmission node in the metadata group, address change information between adjacent transmission nodes in the entire transmission path of the data message; The data message is traced according to the entire transmission path of the data message and the change information.
5. The method according to claim 4, characterized in that The determining, according to the metadata corresponding to each transmission node in the metadata group, address change information between adjacent transmission nodes in the entire transmission path of the data message includes: The metadata corresponding to each transmission node is decoded according to the set forward differential encoding strategy to determine the byte position information of the changed byte between the first virtual MAC address of each transmission node and the second virtual MAC of the previous transmission node of the data message.
6. The method according to claim 4 or 5, characterized in that: The obtaining of the metadata group from the data message includes: From the extended metadata group identification item in the packet header part of the data message, the metadata corresponding to each transmission node on the transmission path of the data message is extracted.
7. A data message tracing device, characterized in that: include: A generating module, configured to generate metadata corresponding to the current transmission node based on address change information between the current transmission node and the previous transmission node of the data message when receiving the data message to be transmitted; A hierarchical addressing module is used to add the metadata to the metadata group of the data message and send the data message to the next hop node according to the hierarchical addressing method, wherein the metadata group includes metadata corresponding to each transmission node that has been passed on the transmission path of the data message.
8. A data message tracing device, characterized in that: include: An acquisition module, configured to acquire a metadata group from a data message when receiving the data message, wherein the metadata group includes metadata corresponding to each transmission node that the data message has passed on the transmission path; A determination module, configured to determine address change information between adjacent transmission nodes in the entire transmission path of the data message according to metadata corresponding to each transmission node in the metadata group; The tracing module is used to trace the data message according to the entire transmission path of the data message and the change information.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method for tracing the data message described in any one of claims 1 to 3 or claims 4 to 6 is implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program that, when executed by a processor, implements the data message tracing method described in any one of claims 1 to 3 or claims 4 to 6.
