A cloud network message tracking method and related equipment

By generating and using dyed connection records in the cloud network, the forward and reverse packets are automatically tracked, and the problems of inefficient and poor accuracy of message tracking in the existing technology are solved, and efficient and accurate packet loss location positioning is achieved.

CN119071191BActive Publication Date: 2025-03-18BEIJING VOLCANO ENGINE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411535596.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-31
Publication Date
2025-03-18
Estimated Expiration
2044-10-31

AI Technical Summary

Technical Problem

In the prior art, reverse message tracking requires manual configuration, resulting in low efficiency and poor accuracy of message tracking.

Method used

After receiving the forward message with dyeing information sent by the upstream device, a dyeing connection record is generated and sent to the downstream device through a fast path; after receiving the reverse message, it is sent into the slow path, and the reverse message is processed through the fast path to obtain the reverse message with dyeing information.

Benefits of technology

Automatic tracking of forward and reverse packets is realized without manual configuration, improving the efficiency and accuracy of packet tracking, and accurately locate packet loss locations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119071191B_ABST
    Figure CN119071191B_ABST
Patent Text Reader

Abstract

The disclosed embodiment provides a cloud network message tracing method and related equipment. After receiving a forward message with coloring information sent by an upstream device, a coloring connection record of the forward message is generated through a slow path, and the forward message is sent to a downstream device through a fast path. The coloring connection record contains the coloring information of the forward message, which is used for matching coloring of a reverse message. After receiving a reverse message sent by a downstream device, the reverse message is sent to a slow path, and a processing rule for the reverse message is generated according to the coloring connection record. Through the fast path, the reverse message is processed based on the processing rule to obtain a reverse message with coloring information, and the reverse message with coloring information is sent to the upstream device, thereby solving the problem that the reverse message cannot be colored.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The disclosed embodiments relate to the technical field of cloud computing, and in particular to a cloud network message tracing method and related equipment. Background Art

[0002] In a public cloud environment, each cloud tenant has an isolated virtual network. When processing computing tasks, if the tenant's computing resources (virtual machines / containers) want to access resources in other locations or provide services to the outside world, they need to communicate data packets with the outside world through the virtual network. When the data packets of tenant services are forwarded through network devices, if any network device in the data transmission link fails, data packets will be lost, causing damage to the tenant's services. Therefore, cloud service providers need to quickly locate the packet loss location so that they can take corresponding measures to restore network services in a timely manner.

[0003] Currently, when tenants have packet loss problems, it often manifests as no response to the connection or request. Packet loss may occur in the request direction, that is, the forward path, or in the response direction, that is, the reverse path. Therefore, to accurately locate the packet loss, it is necessary to track the message on both the forward and reverse paths.

[0004] However, in the conventional message tracking solution, the reverse tracking of messages needs to be manually configured to be implemented, which leads to problems such as low efficiency and poor accuracy of message tracking. Summary of the invention

[0005] The embodiments of the present disclosure provide a cloud network message tracing method and related equipment, which can realize automatic tracing of forward and reverse messages without manual configuration, thereby improving the efficiency and accuracy of message tracing.

[0006] In a first aspect, an embodiment of the present disclosure provides a cloud network message tracing method, including:

[0007] After receiving a forward message with coloring information sent by an upstream device, a coloring connection record of the forward message is generated through a slow path, and the forward message is sent to a downstream device through a fast path. The coloring connection record contains the coloring information of the forward message, which is used for matching coloring of the reverse message.

[0008] After receiving a reverse message sent by a downstream device, sending the reverse message to the slow path, and generating a processing rule for the reverse message according to the dye connection record;

[0009] Through the fast path, the reverse message is processed based on the processing rule to obtain a reverse message with the coloring information, and the reverse message with the coloring information is sent to an upstream device.

[0010] In a second aspect, an embodiment of the present disclosure provides a cloud network message tracking device, including:

[0011] A forward processing module, configured to generate a coloring connection record of the forward message through a slow path after receiving a forward message with coloring information sent by an upstream device, and send the forward message to a downstream device through a fast path, wherein the coloring connection record contains the coloring information of the forward message for matching coloring of a reverse message;

[0012] A first reverse processing module, configured to send the reverse message to the slow path after receiving the reverse message sent by the downstream device, and generate a processing rule for the reverse message according to the dye connection record;

[0013] The second reverse processing module is used to process the reverse message based on the processing rule through the fast path to obtain a reverse message with the coloring information, and send the reverse message with the coloring information to an upstream device.

[0014] In a third aspect, an embodiment of the present disclosure provides an electronic device, including: a processor and a memory;

[0015] The memory stores computer-executable instructions;

[0016] The processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the cloud network message tracing method described in the first aspect and various possible designs of the first aspect.

[0017] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, in which computer execution instructions are stored. When a processor executes the computer execution instructions, the cloud network message tracking method described in the first aspect and various possible designs of the first aspect is implemented.

[0018] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the cloud network message tracing method described in the first aspect and various possible designs of the first aspect.

[0019] The present embodiment provides a cloud network message tracing method and related equipment. After receiving a forward message with coloring information sent by an upstream device, a coloring connection record of the forward message is generated through a slow path, and the forward message is sent to a downstream device through a fast path. The coloring connection record contains the coloring information of the forward message, which is used for matching coloring of a reverse message. After receiving a reverse message sent by a downstream device, the reverse message is sent to the slow path, and a processing rule for the reverse message is generated according to the coloring connection record. Through the fast path, the reverse message is processed based on the processing rule to obtain a reverse message with the coloring information, and the reverse message with the coloring information is sent to the upstream device. After receiving the forward message, a dye connection record of the forward message is generated, and then after receiving the reverse message, the dye connection record of the forward message is used to dye the reverse message to obtain a reverse message with dye information, thereby solving the problem that the reverse message cannot be dyed, and realizing the simultaneous tracking and association of the forward and reverse messages under the same connection, thereby realizing the location of the abnormal network device when packet loss occurs, and improving the accuracy of locating the packet loss position. At the same time, on the one hand, since the general process of the stateful virtual network device is reused to match the dyeing of the outgoing message, the development cost and performance overhead are saved, and the dyeing rules of the reverse message are generated in real time, avoiding manual configuration and distribution processing, eliminating the complexity and performance overhead of configuration distribution, thereby improving the efficiency of message tracking. On the other hand, the outgoing message tracking is automatically triggered by the forward message tracking, avoiding the performance overhead of executing rule matching on multiple devices in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0021] Figure 1 An application scenario diagram of the cloud network message tracing method provided by the embodiment of the present disclosure;

[0022] Figure 2 Schematic diagram of the process of cloud network message tracing method provided by the embodiment of the present disclosure Figure 1 ;

[0023] Figure 3 A schematic diagram of a network structure provided by an embodiment of the present disclosure;

[0024] Figure 4 for Figure 2A flowchart of a specific implementation method of step S101 in the illustrated embodiment;

[0025] Figure 5 A schematic diagram of a process for generating a reverse message with coloring information provided by an embodiment of the present disclosure;

[0026] Figure 6 Schematic diagram of the process of cloud network message tracing method provided by the embodiment of the present disclosure Figure 2 ;

[0027] Figure 7 for Figure 6 A flowchart of a specific implementation method of step S203 in the illustrated embodiment;

[0028] Figure 8 A structural block diagram of a cloud network message tracking device provided in an embodiment of the present disclosure;

[0029] Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure;

[0030] Fig.10 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0031] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.

[0032] The application scenarios of the embodiments of the present disclosure are explained below:

[0033] Figure 1An application scenario diagram of the cloud network message tracing method provided in the embodiment of the present disclosure. The cloud network message tracing method provided in the embodiment of the present disclosure can be applied to the application scenario of message tracing. More specifically, the execution subject of this embodiment can be a network device running the above-mentioned message forwarding function, or other electronic devices that perform similar functions. Among them, in some embodiments, the network device can implement the cloud network message tracing method provided in the embodiment of the present application by running various computer executable instructions or computer programs. For example, computer executable instructions can be program-level commands, machine instructions or software instructions. The computer program can be a native program or software module in the operating system; it can be a local application, that is, a program that needs to be installed in the operating system to run. The above-mentioned computer executable instructions can be instructions in any form, and the above-mentioned computer program can be an application, module or plug-in in any form. The specific implementation form can be configured as needed. Furthermore, in some embodiments, the network device can be an independent physical device, a device cluster or a distributed system composed of multiple physical devices, or a virtual device that provides basic cloud computing services such as cloud services, cloud storage, cloud communications, cloud databases, cloud computing, cloud functions, network services, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms.

[0034] refer to Figure 1 As shown in the figure, the data packet of the tenant service (shown as an uncolored message) will be forwarded by multiple network devices (shown as network device A, network device B, etc.) during the transmission along the data transmission path. The network device can be a virtual network device or a physical network device. In this process, the network analysis center will issue a data tracking task to the network controller. After that, the network controller will issue a coloring rule to the starting network device (i.e., network device A) corresponding to the starting node of the data transmission path. After that, the starting network device will mark the data passing through it, that is, the uncolored message sent to the starting network device will be colored, and then a colored message will be generated and sent to the downstream network device, i.e., network device B. And so on, until the colored message is sent to the final target device, the forward transmission of the message is completed, and the message is also called a forward message. In this process, after receiving the above-mentioned colored message, each network device will upload the record information to the network analysis center. The network analysis center obtains the last position of the message by restoring the path passed by the message to locate the packet loss position, thereby realizing the tracking of the colored message and achieving the purpose of locating the fault of the subsequent abnormal network device.

[0035] In the prior art, reference Figure 1As shown in , by sending the coloring rules to the starting network device through the network controller, only the coloring of the forward message can be realized, thereby realizing the message tracking during the forward message transmission process. However, the cause of the packet loss problem can occur in the path of the message request (forward message sending) or in the path of the message response (reverse message sending). Therefore, to accurately locate the packet loss position, it is necessary to color and track the message on the path in both directions at the same time. In the scheme of the prior art, on the one hand, there is a situation where the reverse message coloring rules cannot be extracted and configured and issued, that is, when the message passes through the virtual network device in the path, the address port information of the initial message (such as passing through the load balancer, NAT gateway, etc.) or the virtual network identifier (such as passing through the virtual switch, virtual network gateway, etc. when sent to the peer private network) may be changed. At this time, it is necessary to wait for the forward message tracking result, and then derive the coloring rules of the reverse message from it for configuration and issuance, but it is impossible to directly achieve simultaneous tracking. On the other hand, since the device type of the starting point of the reverse path cannot be directly determined based on the destination address of the forward message, there is a situation where the starting network device of the reverse path cannot be accurately located. This results in the inability to color the reverse message, making it impossible to achieve positioning and tracking during the reverse transmission of the message, affecting the accuracy of locating the packet loss location.

[0036] The disclosed embodiment provides a cloud network message tracing method to solve the above-mentioned problem.

[0037] refer to Figure 2 , Figure 2 Schematic diagram of the process of cloud network message tracing method provided by the embodiment of the present disclosure Figure 1 The method of this embodiment can be applied in a network device. The cloud network message tracing method includes:

[0038] Step S101: After receiving a forward message with coloring information sent by an upstream device, a coloring connection record of the forward message is generated through a slow path, and the forward message is sent to a downstream device through a fast path. The coloring connection record contains the coloring information of the forward message, which is used for matching coloring of the reverse message.

[0039] refer to Figure 1 As shown in the schematic diagram of the application scenario, in this embodiment, the provided cloud network message tracing method is introduced with a network device located in the data transmission path as the execution subject. By way of example, the network device can be a physical network device or a virtual network device. The functional structure of the network device is first introduced below. Figure 3 A schematic diagram of a network structure provided by an embodiment of the present disclosure is shown in FIG. Figure 3As shown, a slow path (SP) forwarding unit and a fast path (FP) forwarding unit are deployed in the network structure. When forwarding a message, the received message is processed by two different processing methods, namely the fast path and the slow path. The fast path uses the forwarding flow table to quickly forward the message in a match-action manner, wherein the match refers to matching the network communication identification information of the received message, such as the IP address, network port, transmission protocol, virtual network identification, etc., that is, for example, five-tuple information, so as to realize the identification of a specific message; and the action refers to the operation performed on the message after matching the message, such as forwarding the message after modifying the address. The slow path maintains the connection record and generates a corresponding forwarding flow table according to the configuration and policy instructions of the fast path. Fast path and slow path are existing concepts in network protocols, and their implementation methods are not repeated here. The slow path and fast path in this embodiment are respectively used to implement a functional unit for forwarding messages based on a slow path and a functional unit for forwarding messages based on a fast path.

[0040] Furthermore, combined with Figure 1 As shown in the schematic diagram of the application scenario, in this embodiment, the upstream device is a network device located upstream of the target network device as the execution subject of this embodiment in the data transmission path, more specifically, a network device located at the previous hop of the target network device. During the forward transmission of the message, the upstream network device determines that the target network device is a startled network device through routing calculation, and then sends the message (i.e., the forward message) to the target network device, and the target network device continues to forward the forward message. Specifically, the target network device first receives the forward message with coloring information through the fast path, and then sends the forward message with coloring information to the slow path, and the slow path searches according to the network communication identification information of the forward message to confirm whether the corresponding message connection record already exists. If the message connection record already exists, the message connection record is a kind of information used to establish a forwarding flow table in the fast path, thereby realizing the fast forwarding of the message. The message that has been forwarded will establish and maintain a message connection record in the slow path. This embodiment aims at the situation where the message connection record is not established. Specifically, after the slow path searches according to the network communication identification information of the forward message, no matching message connection record is found. In this case, a coloring connection record of the forward message is generated through the slow path. Unlike the traditional message connection record, the coloring connection record additionally includes coloring information of the forward message to realize the subsequent coloring of the reverse message, that is, for matching coloring of the reverse message.

[0041] Furthermore, after generating a colored connection record for the forward message through the slow path, the slow path sends the forward message back to the fast path. The fast path creates a forwarding flow table through the above colored connection record, and then sends the forward message with the colored information to the downstream device. The downstream device is the network device located at the next hop of the target network device in the data transmission path. The target network device records the target IP address in the forward message received. After that, the target network device determines the next hop network address by querying the forwarding routing table, thereby determining the next hop network device, thereby realizing message forwarding.

[0042] In a possible implementation, the coloring information includes a Differentiated Services Code Point (DSCP) located in the header of the forward message, such as Figure 4 As shown, the specific implementation of step S101 includes:

[0043] Step S1011: Obtain network communication identification information of the forward message.

[0044] Step S1012: Generate a message connection record corresponding to the network communication identification information through the slow path. The message connection record is used to generate a forwarding flow table in the fast path. The forwarding flow table is used to indicate the forwarding rules of the fast path when forwarding messages.

[0045] Step S1013: Write the differentiated services code point of the forward message into the message connection record to generate a colored connection record of the forward message.

[0046] Exemplarily, the network communication identification information of the message, the network communication identification information refers to the source IP address, source port, destination IP address, destination port and transport layer protocol. The network communication identification information is carried in the message and is used to implement parsing and forwarding of the message. The specific method of obtaining the network communication identification information of the message is based on the existing technology of the network protocol and is not repeated here. After obtaining the network communication identification information of the forward message, the slow path will generate a corresponding message connection record based on the above network communication identification information. The message connection record is used to generate information of the forwarding flow table on the fast path. The forwarding flow table is used to indicate the forwarding rules of the fast path when forwarding the message, so that when a message with the same or similar network communication identification information is received, the corresponding connection record and forwarding flow table can be matched. Finally, the differential service code point of the forward message is written into the message connection record through the slow path, thereby generating a coloring connection record containing coloring information (differential service code point).

[0047] Among them, further, after generating the dye connection record through the slow path and sending the forward message to the fast path, it is necessary to generate a corresponding forwarding flow table based on the dye connection record, that is, after step S1013, it also includes:

[0048] Step S1014: Based on the dyed connection record, a target forwarding flow table for the network communication identification information is generated in the fast path.

[0049] Step S1015: Send the forward message to the corresponding target downstream device through the fast path based on the target forwarding flow table.

[0050] Exemplarily, after generating the dye connection record, the fast path generates "match-action" information corresponding to the network communication identification information based on the content indicated by the message connection record part in the dye connection record, where the content of the matching part can be part or all of the network communication identification information, and then directly executes the corresponding action after receiving similar or identical network communication identification information, thereby realizing the fast forwarding of the message. In this message forwarding link, the fast path calculates the address of the next hop based on the target forwarding flow table, and sends the forward message to the corresponding target downstream device, and this process is not repeated.

[0051] Step S102: after receiving the reverse message sent by the downstream device, the reverse message is sent to the slow path, and a processing rule for the reverse message is generated according to the dye connection record.

[0052] Step S103: The reverse message is processed based on the processing rule through the fast path to obtain a reverse message with coloring information, and the reverse message with coloring information is sent to the upstream device.

[0053] Exemplarily, after the forward message is forwarded, the forward message finally reaches the final receiving end, such as a server, and executes the action requested by the forward message. After that, the server sends the result of the action execution in the reverse path, and finally reaches the initiating device of the forward message, so that the initiating device obtains the response result corresponding to the forward message. The process of reverse transmission of the message is the process of sending the reverse message.

[0054] In this embodiment, after the target network device obtains the reverse message sent by its downstream device through the fast path, the reverse message is first sent to the slow path, and then the processing rule of the reverse message is generated according to the dyeing connection record stored in the slow path. Wherein, the processing rule includes at least one matching value, and the matching value corresponds to at least one action item, wherein the matching value is used to indicate the network communication identification information of the message, and the action item is used to indicate the operation performed on the message. In this embodiment, the action item in the processing rule is used to indicate the corresponding dyeing operation performed on the reverse message. Then, the reverse message is processed based on the processing rule to obtain a reverse message with dyeing information, thereby solving the problem in the prior art that the processing rule of the reverse message cannot be configured, resulting in the inability to dye it. Specifically, after receiving the reverse message sent by the downstream device, when it is detected that the reverse message is not dyed, a rule "for dyeing and forwarding the message" is generated using the dyeing connection record. Based on the rule, a special forwarding flow table is generated, so that before forwarding the reverse message through the fast path, the message is dyed, and a reverse message with dyeing information is generated.

[0055] Figure 5 A schematic diagram of a process for generating a reverse message with coloring information provided by an embodiment of the present disclosure, such as Figure 5 As shown, exemplarily, first, the target network device receives the uncolored reverse message 0_Msg_a sent by the downstream device through the fast path, and then the fast path sends the uncolored reverse message 0_Msg_a to the slow path, and the slow path compares the network communication identification information of the reverse message 0_Msg_a to confirm that the corresponding colored connection record Info_Msg_a with colored information of the forward message 1_Msg_a is stored in the slow path. Then, the colored connection record Info_Msg_a is used to generate the corresponding processing rule Case_a, wherein the processing rule Case_a corresponds to two execution actions, namely action_1 and action_2, wherein action_1 is used to generate the forwarding flow table flow_a corresponding to 0_Msg_a, and action_2 is used to insert the colored information (i.e., colored) into the reverse message 0_Msg_a. After that, the reverse message 0_Msg_a is processed by executing the above action_1 and action_2 through the fast path to generate a reverse message 1_Msg_a with coloring information, and the reverse message 1_Msg_a is forwarded based on the forwarding flow table flow_a generated in the above steps.

[0056] In this embodiment, after receiving a forward message with coloring information sent by an upstream device, a coloring connection record of the forward message is generated through a slow path, and the forward message is sent to a downstream device through a fast path, and the coloring connection record contains the coloring information of the forward message; after receiving a reverse message sent by a downstream device, the reverse message is sent to a slow path, and a processing rule for the reverse message is generated according to the coloring connection record; through a fast path, the reverse message is processed based on the processing rule to obtain a reverse message with coloring information, and the reverse message with coloring information is sent to the upstream device. After receiving a forward message, a coloring connection record of the forward message is generated, and then after receiving a reverse message, the reverse message is colored using the coloring connection record of the forward message to obtain a reverse message with coloring information, thereby solving the problem that the reverse message cannot be colored, realizing simultaneous tracking and association of forward and reverse messages under the same connection, and then realizing the location of abnormal network devices when packet loss occurs, and improving the accuracy of locating the packet loss position. At the same time, on the one hand, since the general process of stateful virtual network devices is reused to match the coloring of outgoing messages, development costs and performance overhead are saved. The coloring rules of reverse messages are generated in real time, avoiding manual configuration and distribution processing, eliminating the complexity and performance overhead of configuration distribution, thereby improving message tracking efficiency. On the other hand, outgoing message tracking is automatically triggered by forward message tracking, avoiding the performance overhead of executing rule matching on multiple devices in the existing technology.

[0057] refer to Figure 6 , Figure 6 Schematic diagram of the process of cloud network message tracing method provided by the embodiment of the present disclosure Figure 2 In this embodiment Figure 2 On the basis of the illustrated embodiment, steps S102-S103 are further refined, and the cloud network message tracing method includes:

[0058] Step S201: After receiving a forward message with coloring information sent by an upstream device, a coloring connection record of the forward message is generated through a slow path, and the forward message is sent to a downstream device through a fast path. The coloring connection record contains the coloring information of the forward message, which is used for matching coloring of the reverse message.

[0059] Step S202: after receiving the reverse message sent by the downstream device, send the reverse message to the slow path.

[0060] Step S203: Detect the coloring status of the reverse message through the slow path, and determine the corresponding target processing rule according to the coloring status.

[0061] Exemplarily, after the target network device receives the reverse message sent by the downstream device through the fast path, the undyed reverse message is sent to the slow path for processing. Specifically, the target network device generates a corresponding message connection record through the slow path to forward the reverse message on the fast path side. In this process, the slow path detects the dyeing state of the reverse message and determines the corresponding target processing rule according to the dyeing state. Among them, the dyeing state includes an undyed state and a dyed state. The undyed state is a state in which the message header field does not carry dyeing information, and the dyeing state is a state in which the message header field carries dyeing information. Specifically, when the reverse message is in an undyed state, it needs to be dyed so that it carries dyeing information, and when it is in a dyed state, it does not need to be dyed again, thereby reducing resource overhead.

[0062] For example, Figure 7 As shown, the specific implementation of step S203 includes:

[0063] Step S2031: Detect the header field of the reverse message to obtain the coloring status of the reverse message.

[0064] Step S2032: If the reverse message is in an uncolored state, the target processing rule is the first processing rule, which is used to generate a first forwarding flow table in the fast path, and the first forwarding flow table is used to insert coloring information into the reverse message and forward the reverse message.

[0065] Step S2033: If the reverse message is in a dyed state, the target processing rule is the second processing rule, the second processing rule is used to generate a second forwarding flow table in the fast path, and the second forwarding flow table is used to forward the reverse message.

[0066] Exemplarily, in a specific implementation, the slow path determines the coloring state of the reverse message by detecting the header field of the reverse message, that is, whether the differential service code point is written. If the reverse message is in an uncolored state, that is, the differential service code point is not written in the header field, the first processing rule is determined to be the target processing rule; conversely, if the reverse message is in a colored state, that is, the differential service code point is written in the header field, the second processing rule is determined to be the target processing rule. Among them, the first processing rule and the second processing rule are both pre-set rules and can be implemented by specific methods and functions. In one case, after the first processing rule is determined, a corresponding first forwarding flow table will be generated in the fast path, and the first forwarding flow table is used to insert coloring information in the reverse message and forward the reverse message; in another case, after the second processing rule is determined, a corresponding second forwarding flow table will be generated in the fast path, and the second forwarding flow table is used to forward the reverse message without inserting coloring information.

[0067] Step S204: Generate a corresponding target forwarding flow table in the fast path through the slow path based on the target processing rule, and the target forwarding flow table includes forwarding action items and coloring processing action items.

[0068] Further, in combination with the previous steps, after determining the target processing rule, a corresponding target forwarding flow table is generated in the fast path based on the target processing rule, that is, if the target processing rule is the first processing rule, a first forwarding flow table is generated in the fast path, and if the target processing rule is the second processing rule, a second forwarding flow table is generated in the fast path. Among them, exemplarily, when the target forwarding flow table is the first forwarding flow table, the target forwarding flow table contains a forwarding action item (action_1) and a coloring processing action item (action_2). When the target processing rule is the first processing rule, the corresponding value of the corresponding forwarding action item is the corresponding forwarding action content, such as a specific modification address, and a forwarding instruction for forwarding based on the modified address, and the corresponding value of the coloring processing action item is an instruction to insert coloring information. When the target forwarding flow table is the second forwarding flow table, the target forwarding flow table contains a forwarding action item (action_1).

[0069] Optionally, after step S204, the method further includes:

[0070] Step S204A: Delete the dyed connection record of the forward message stored in the slow path.

[0071] Exemplarily, after the target forwarding flow table is generated, the coloring process of the reverse message has been completed. After that, whenever the reverse message with the coloring information is forwarded, the path it passes through will be recorded, thereby achieving the purpose of tracking it. Therefore, the reverse message received later can no longer be colored, thereby saving the system's resource overhead. Therefore, after the target forwarding flow table is generated, the coloring connection record of the forward message stored in the slow path is deleted, so that when the next reverse message is received, since the slow path no longer stores the coloring connection record, the target network device will not color the reverse message based on the coloring connection record, thereby achieving the purpose of saving system resources and reducing resource overhead.

[0072] Step S205: through the fast path, based on the coloring processing action item, the coloring information is written into the reverse message to obtain a reverse message with the coloring information.

[0073] Step S206: Send the reverse message of the coloring information to the upstream device through the fast path based on the forwarding action item.

[0074] Exemplarily, after generating the target forwarding flow table, the fast path will perform the corresponding processing steps according to the action indicated by the above target forwarding flow table, that is, based on the coloring processing action item, the coloring information is written into the reverse message to obtain a reverse message with coloring information. After that, the fast path performs the message forwarding action based on the forwarding action item, and sends the reverse message with coloring information to the upstream device. Among them, the coloring information is the coloring information carried in the forward message corresponding to the reverse message, so that the request message and the response message can have the same coloring information, thereby realizing the complete tracking of the forward path and reverse path of the same request.

[0075] Optionally, after step S206, the method further includes:

[0076] Step S207: Generate a sending and receiving record for the forward message with coloring information and / or the reverse message with coloring information.

[0077] Step S208: Send the sending and receiving records to the data tracking server.

[0078] Exemplarily, after the target network device completes forwarding of the forward message with the coloring information and / or the reverse message with the coloring information, it generates a corresponding transceiver record based on the coloring information. The transceiver record may include the transceiver time and the corresponding device information, indicating that the target network device has received the message with the above coloring information. Afterwards, the target network device sends the transceiver record to the data tracking server, for example Figure 1 The network analysis center in the application scenario diagram shown in the figure, and the data tracking server further processes the sending and receiving records to locate the packet loss location.

[0079] Exemplarily, the transceiver record includes at least one of the following: the location of the target network device in the message forwarding path, the device identification of the target network device, the device identification of the next-hop network device, and the network communication identification information of the forward message and / or the reverse message. The specific content of the transceiver record can be set as needed and is not specifically limited here.

[0080] In this embodiment, the implementation method of step S201 is the same as that of the present disclosure. Figure 2 The implementation methods of step S101 in the illustrated embodiments are the same and will not be described in detail here.

[0081] Corresponding to the cloud network message tracing method of the above embodiment, Figure 8A block diagram of the structure of a cloud network message tracking device provided in an embodiment of the present disclosure. The method described in the above embodiment can be executed by the cloud network message tracking device, which can be implemented by software and / or hardware, and can be integrated in an electronic device with certain data processing functions. The electronic device may include but is not limited to mobile terminals with big data processing capabilities, as well as fixed terminals with big data processing capabilities such as desktop computers and supercomputers.

[0082] For the sake of convenience, only the parts related to the embodiments of the present disclosure are shown. Figure 8 , the cloud network message tracking device 3 includes:

[0083] The forward processing module 31 is used to generate a coloring connection record of the forward message through a slow path after receiving the forward message with coloring information sent by the upstream device, and send the forward message to the downstream device through a fast path, wherein the coloring connection record contains the coloring information of the forward message, which is used for matching coloring of the reverse message;

[0084] A first reverse processing module 32, configured to send the reverse message to a slow path after receiving the reverse message sent by the downstream device, and generate a processing rule for the reverse message according to the dye connection record;

[0085] The second reverse processing module 33 is used to process the reverse message based on the processing rule through the fast path to obtain the reverse message with the coloring information, and send the reverse message with the coloring information to the upstream device.

[0086] According to one or more embodiments of the present disclosure, a processing rule includes at least one matching value, and the matching value corresponds to at least one action item, wherein the matching value is used to indicate the network communication identification information of the message, and the action item is used to indicate the coloring operation performed on the reverse message.

[0087] According to one or more embodiments of the present disclosure, the coloring information includes a differential service code point located at the header of the forward message. When the forward processing module 31 generates a coloring connection record for the forward message through a slow path, it is specifically used to: obtain network communication identification information of the forward message; generate a message connection record corresponding to the network communication identification information through a slow path, the message connection record is used to generate a forwarding flow table on a fast path, and the forwarding flow table is used to indicate the forwarding rules of the fast path when forwarding the message; write the differential service code point of the forward message into the message connection record to generate a coloring connection record for the forward message.

[0088] According to one or more embodiments of the present disclosure, the forward processing module 31 is also used to: generate a target forwarding flow table for network communication identification information in a fast path based on the dyed connection record; when the forward processing module 31 sends the forward message to the downstream device through the fast path, it is specifically used to: send the forward message to the corresponding target downstream device through the fast path based on the target forwarding flow table.

[0089] According to one or more embodiments of the present disclosure, when the first reverse processing module 32 generates a processing rule for a reverse message according to a dye connection record, it is specifically used to: detect the dyeing status of the reverse message through a slow path; and determine the corresponding target processing rule according to the dyeing status.

[0090] According to one or more embodiments of the present disclosure, when the first reverse processing module 32 determines the corresponding target processing rule according to the coloring status, it is specifically used: if the reverse message is in an uncolored state, the target processing rule is the first processing rule, and the first processing rule is used to generate a first forwarding flow table in the fast path, and the first forwarding flow table is used to insert coloring information in the reverse message and forward the reverse message; if the reverse message is in a colored state, the target processing rule is the second processing rule, and the second processing rule is used to generate a second forwarding flow table in the fast path, and the second forwarding flow table is used to forward the reverse message.

[0091] According to one or more embodiments of the present disclosure, the second reverse processing module 33 is specifically used to: generate a corresponding target forwarding flow table in a fast path based on processing rules through a slow path, the target forwarding flow table including forwarding action items and coloring processing action items; write coloring information into a reverse message based on the coloring processing action items through a fast path to obtain a reverse message with coloring information; send the reverse message with coloring information to an upstream device through a fast path based on the forwarding action items.

[0092] According to one or more embodiments of the present disclosure, after generating the corresponding target forwarding flow table in the fast path, the second reverse processing module 33 is further configured to: delete the dyed connection record of the forward message stored in the slow path.

[0093] According to one or more embodiments of the present disclosure, the second reverse processing module 33 is also used to: generate a sending and receiving record for a forward message with coloring information and / or a reverse message with coloring information; send the sending and receiving record to a data tracking server; wherein the sending and receiving record includes at least one of the following: the position of the target network device in the message forwarding path, the device identification of the target network device, the device identification of the next-hop network device, and the network communication identification information of the forward message and / or the reverse message.

[0094] The forward processing module 31, the first reverse processing module 32 and the second reverse processing module 33 are connected in sequence. The cloud network message tracking device 3 provided in this embodiment can implement the technical solution of the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated in this embodiment.

[0095] Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure is shown in FIG. Fig. 9 As shown, the electronic device 4 includes:

[0096] A processor 41, and a memory 42 communicatively connected to the processor 41;

[0097] The memory 42 stores computer executable instructions;

[0098] The processor 41 executes the computer execution instructions stored in the memory 42 to implement the following Figure 2-Figure 7 The cloud network message tracing method in the illustrated embodiment.

[0099] Optionally, the processor 41 and the memory 42 are connected via a bus 43 .

[0100] For related instructions, please refer to Figure 2-Figure 7 The relevant descriptions and effects corresponding to the steps in the corresponding embodiments can be understood, and no further elaboration is made here.

[0101] The present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, which are used to implement the present invention when executed by a processor. Figure 2-Figure 7 A cloud network message tracing method provided by any one of the corresponding embodiments.

[0102] The present invention provides a computer program product, including a computer program. When the computer program is executed by a processor, the present invention is realized. Figure 2-Figure 7 A cloud network message tracing method provided by any one of the corresponding embodiments.

[0103] In order to implement the above embodiment, the embodiment of the present disclosure also provides an electronic device.

[0104] refer to Fig.10, which shows a schematic diagram of the structure of an electronic device 900 suitable for implementing the embodiment of the present disclosure, and the electronic device 900 may be a terminal device or a server. The terminal device may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (Portable Android Devices, PADs), portable multimedia players (PMPs), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig.10 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0105] like Fig.10 As shown, the electronic device 900 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage device 908 to a random access memory (RAM) 903. Various programs and data required for the operation of the electronic device 900 are also stored in the RAM 903. The processing device 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.

[0106] Typically, the following devices may be connected to the I / O interface 905: input devices 906 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 907 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 908 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 909. The communication device 909 may allow the electronic device 900 to communicate with other devices wirelessly or by wire to exchange data. Although Fig.10 The electronic device 900 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0107] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 909, or installed from a storage device 908, or installed from a ROM 902. When the computer program is executed by the processing device 901, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0108] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, 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), an 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 above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. Computer readable signal media may also be any computer readable medium other than computer readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0109] The computer-readable medium may be included in the electronic device, or may exist independently without being installed in the electronic device.

[0110] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method shown in the above embodiment.

[0111] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0112] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0113] The units or modules involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a unit or module does not, in some cases, constitute a limitation on the unit itself.

[0114] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0115] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, 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), an 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.

[0116] In a first aspect, according to one or more embodiments of the present disclosure, a cloud network message tracing method is provided, comprising:

[0117] After receiving a forward message with coloring information sent by an upstream device, a coloring connection record of the forward message is generated through a slow path, and the forward message is sent to a downstream device through a fast path, wherein the coloring connection record contains the coloring information of the forward message; after receiving a reverse message sent by a downstream device, the reverse message is sent to the slow path, and a processing rule for the reverse message is generated according to the coloring connection record; through the fast path, the reverse message is processed based on the processing rule to obtain a reverse message with the coloring information, and the reverse message with the coloring information is sent to the upstream device.

[0118] According to one or more embodiments of the present disclosure, the coloring information includes a differential services code point located at the header of the forward message, and the generating of the coloring connection record of the forward message through the slow path includes: obtaining network communication identification information of the forward message; generating a message connection record corresponding to the network communication identification information through the slow path, the message connection record is used to generate a forwarding flow table in the fast path, and the forwarding flow table is used to indicate the forwarding rules of the fast path when forwarding the message; writing the differential services code point of the forward message into the message connection record to generate the coloring connection record of the forward message.

[0119] According to one or more embodiments of the present disclosure, the method also includes: based on the colored connection record, generating a target forwarding flow table for the network communication identification information on the fast path; sending the forward message to the downstream device through the fast path includes: sending the forward message to the corresponding target downstream device through the fast path based on the target forwarding flow table.

[0120] According to one or more embodiments of the present disclosure, the processing rule for generating the reverse message based on the dyeing connection record includes: detecting the dyeing status of the reverse message through the slow path; and determining the corresponding target processing rule based on the dyeing status.

[0121] According to one or more embodiments of the present disclosure, the corresponding target processing rule is determined according to the dyeing state, including: if the reverse message is in an undyed state, the target processing rule is a first processing rule, and the first processing rule is used to generate a first forwarding flow table on a fast path, and the first forwarding flow table is used to insert the dyeing information into the reverse message and forward the reverse message; if the reverse message is in a dyed state, the target processing rule is a second processing rule, and the second processing rule is used to generate a second forwarding flow table on a fast path, and the second forwarding flow table is used to forward the reverse message.

[0122] According to one or more embodiments of the present disclosure, the reverse message is processed through the fast path based on the processing rule to obtain a reverse message with the coloring information, and the reverse message with the coloring information is sent to an upstream device, including: through the slow path, based on the processing rule, a corresponding target forwarding flow table is generated in the fast path, the target forwarding flow table includes a forwarding action item and a coloring processing action item; through the fast path, based on the coloring processing action item, the coloring information is written into the reverse message to obtain a reverse message with the coloring information; through the fast path, based on the forwarding action item, the reverse message with the coloring information is sent to the upstream device.

[0123] According to one or more embodiments of the present disclosure, after generating the corresponding target forwarding flow table in the fast path, the method further includes: deleting the dyed connection record of the forward message stored in the slow path.

[0124] According to one or more embodiments of the present disclosure, applied to a target network device, the method further includes: generating a sending and receiving record for a forward message with coloring information and / or a reverse message with coloring information; sending the sending and receiving record to a data tracking server; wherein the sending and receiving record includes at least one of the following: the position of the target network device in the message forwarding path, the device identification of the target network device, the device identification of the next-hop network device, and the network communication identification information of the forward message and / or the reverse message.

[0125] In a second aspect, according to one or more embodiments of the present disclosure, a cloud network message tracing device is provided, comprising:

[0126] A forward processing module, configured to generate a coloring connection record of the forward message through a slow path after receiving a forward message with coloring information sent by an upstream device, and send the forward message to a downstream device through a fast path, wherein the coloring connection record includes the coloring information of the forward message;

[0127] A first reverse processing module, configured to send the reverse message to the slow path after receiving the reverse message sent by the downstream device, and generate a processing rule for the reverse message according to the dye connection record;

[0128] The second reverse processing module is used to process the reverse message based on the processing rule through the fast path to obtain a reverse message with the coloring information, and send the reverse message with the coloring information to an upstream device.

[0129] According to one or more embodiments of the present disclosure, the coloring information includes a differential services code point located at the header of the forward message. When the forward processing module generates a coloring connection record of the forward message through a slow path, it is specifically used to: obtain network communication identification information of the forward message; generate a message connection record corresponding to the network communication identification information through the slow path, the message connection record is used to generate a forwarding flow table on the fast path, and the forwarding flow table is used to indicate the forwarding rules of the fast path when forwarding the message; write the differential services code point of the forward message into the message connection record to generate a coloring connection record of the forward message.

[0130] According to one or more embodiments of the present disclosure, the forward processing module is also used to: generate a target forwarding flow table for the network communication identification information on the fast path based on the dyed connection record; when the forward processing module sends the forward message to the downstream device through the fast path, it is specifically used to: send the forward message to the corresponding target downstream device through the fast path based on the target forwarding flow table.

[0131] According to one or more embodiments of the present disclosure, when the first reverse processing module generates a processing rule for the reverse message according to the dyeing connection record, it is specifically used to: detect the dyeing status of the reverse message through the slow path; and determine the corresponding target processing rule according to the dyeing status.

[0132] According to one or more embodiments of the present disclosure, when the first reverse processing module determines the corresponding target processing rule according to the dyeing state, it is specifically used to: if the reverse message is in an undyed state, the target processing rule is a first processing rule, and the first processing rule is used to generate a first forwarding flow table on a fast path, and the first forwarding flow table is used to insert the dyeing information into the reverse message and forward the reverse message; if the reverse message is in a dyed state, the target processing rule is a second processing rule, and the second processing rule is used to generate a second forwarding flow table on a fast path, and the second forwarding flow table is used to forward the reverse message.

[0133] According to one or more embodiments of the present disclosure, the second reverse processing module is specifically used to: generate a corresponding target forwarding flow table in the fast path based on the processing rules through the slow path, and the target forwarding flow table includes forwarding action items and coloring processing action items; write the coloring information into the reverse message based on the coloring processing action items through the fast path to obtain a reverse message with the coloring information; send the reverse message with the coloring information to the upstream device through the fast path based on the forwarding action items.

[0134] According to one or more embodiments of the present disclosure, after the second reverse processing module generates the corresponding target forwarding flow table in the fast path, it is further used to: delete the dyed connection record of the forward message stored in the slow path.

[0135] According to one or more embodiments of the present disclosure, the second reverse processing module is also used to: generate a sending and receiving record for a forward message with coloring information and / or a reverse message with coloring information; send the sending and receiving record to a data tracking server; wherein the sending and receiving record includes at least one of the following: the position of the target network device in the message forwarding path, the device identification of the target network device, the device identification of the next-hop network device, and the network communication identification information of the forward message and / or the reverse message.

[0136] In a third aspect, according to one or more embodiments of the present disclosure, there is provided an electronic device, comprising: at least one processor and a memory;

[0137] The memory stores computer-executable instructions;

[0138] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the cloud network message tracing method described in the first aspect and various possible designs of the first aspect.

[0139] In a fourth aspect, according to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer execution instructions. When a processor executes the computer execution instructions, the cloud network message tracking method described in the first aspect and various possible designs of the first aspect is implemented.

[0140] In a fifth aspect, according to one or more embodiments of the present disclosure, a computer program product is provided, including a computer program, which, when executed by a processor, implements the cloud network message tracing method described in the first aspect and various possible designs of the first aspect.

[0141] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.

[0142] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0143] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

Claims

1. A cloud network message tracing method, characterized in that: include: After receiving a forward message with coloring information sent by an upstream device, a coloring connection record of the forward message is generated through a slow path, and the forward message is sent to a downstream device through a fast path. The coloring connection record contains the coloring information of the forward message, which is used for matching coloring of the reverse message. After receiving a reverse message sent by a downstream device, sending the reverse message to the slow path, and generating a processing rule for the reverse message according to the dye connection record; Processing the reverse message based on the processing rule through the fast path to obtain a reverse message with the coloring information, and sending the reverse message with the coloring information to an upstream device; The process of processing the reverse message based on the processing rule through the fast path to obtain a reverse message with the coloring information, and sending the reverse message with the coloring information to an upstream device includes: Through the slow path, based on the processing rule, a corresponding target forwarding flow table is generated in the fast path, wherein the target forwarding flow table includes a forwarding action item and a coloring processing action item; By means of the fast path, based on the coloring processing action item, the coloring information is written into the reverse message, so as to obtain a reverse message with the coloring information; Through the fast path, based on the forwarding action item, a reverse message of the coloring information is sent to an upstream device.

2. The method according to claim 1, characterized in that: The processing rule includes at least one matching value, and the matching value corresponds to at least one action item, wherein the matching value is used to indicate the network communication identification information of the message, and the action item is used to indicate the coloring operation performed on the reverse message.

3. The method according to claim 1, characterized in that: The coloring information includes a differential services code point located at a header of the forward message, and the generating of the coloring connection record of the forward message through the slow path includes: Obtaining network communication identification information of the forward message; Generate a message connection record corresponding to the network communication identification information through the slow path, wherein the message connection record is used to generate a forwarding flow table on the fast path, and the forwarding flow table is used to indicate a forwarding rule of the fast path when forwarding a message; The differential services code point of the forward message is written into the message connection record to generate a colored connection record of the forward message.

4. The method according to claim 3, characterized in that: The method further comprises: Based on the dyed connection record, generating a target forwarding flow table for the network communication identification information in the fast path; The sending the forward message to the downstream device through the fast path includes: The forward message is sent to a corresponding target downstream device based on the target forwarding flow table through a fast path.

5. The method according to claim 1, characterized in that: The processing rule for generating the reverse message according to the dye connection record includes: Detecting the coloring state of the reverse message through the slow path; According to the dyeing state, a corresponding target processing rule is determined.

6. The method according to claim 5, characterized in that: Determining a corresponding target processing rule according to the dyeing state includes: If the reverse message is in an uncolored state, the target processing rule is a first processing rule, the first processing rule is used to generate a first forwarding flow table in a fast path, the first forwarding flow table is used to insert the coloring information into the reverse message, and forward the reverse message; If the reverse message is in a dyed state, the target processing rule is a second processing rule, the second processing rule is used to generate a second forwarding flow table in a fast path, and the second forwarding flow table is used to forward the reverse message.

7. The method according to claim 1, characterized in that: After generating the corresponding target forwarding flow table in the fast path, the method further includes: The dyed connection record of the forward message stored in the slow path is deleted.

8. The method according to claim 1, characterized in that: The method further comprises: Generate a sending and receiving record for a forward message with coloring information and / or a reverse message with coloring information; Sending the sending and receiving records to a data tracking server; The sending and receiving records include at least one of the following: The position of the network device in the message forwarding path, the device identification of the network device, the device identification of the next-hop network device, and the network communication identification information of the forward message and / or the reverse message.

9. A cloud network message tracking device, characterized in that: include: A forward processing module, configured to generate a coloring connection record of the forward message through a slow path after receiving a forward message with coloring information sent by an upstream device, and send the forward message to a downstream device through a fast path, wherein the coloring connection record contains the coloring information of the forward message for matching coloring of a reverse message; A first reverse processing module, configured to send the reverse message to the slow path after receiving the reverse message sent by the downstream device, and generate a processing rule for the reverse message according to the dye connection record; A second reverse processing module, configured to generate a corresponding target forwarding flow table in the fast path through the slow path based on the processing rule, wherein the target forwarding flow table includes a forwarding action item and a coloring processing action item; By means of the fast path, based on the coloring processing action item, the coloring information is written into the reverse message, so as to obtain a reverse message with the coloring information; Through the fast path, based on the forwarding action item, a reverse message of the coloring information is sent to an upstream device.

10. An electronic device, characterized in that: include: Processor and memory; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor executes the cloud network message tracing method as described in any one of claims 1 to 8.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions. When the processor executes the computer-executable instructions, the cloud network message tracing method according to any one of claims 1 to 8 is implemented.

12. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the cloud network message tracing method as described in any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Time delay measurement method and device

    CN113824607A

  • Network state measurement method, device and system

    CN114915564A