Service flow message processing method, electronic equipment and storage medium
By staining and statistical analysis of service flow messages, the problem of inaccurate service path determination in the prior art is solved, and the accuracy of service transmission situation and consistency of service paths are improved.
Patent Information
- Application Number
- CN202411656229.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-19
- Publication Date
- 2025-02-18
AI Technical Summary
When determining the service path in the prior art, there is a difference between the service path caused by the detection message detection method and the actual service path, resulting in inaccurate service transmission.
When receiving the service flow packets of the service to be detected at the entrance virtual network node, the staining process is performed, and the dyeing time is recorded, the dyeing message is transmitted to the destination virtual network node. Combined with the statistical information analysis of the management platform, the service path and faulty road section are determined. .
It improves the accuracy of determining the service transmission situation, ensures the consistency between the service path and the actual path, and can effectively identify failure points and performance bottlenecks in the network.
Smart Images

Figure CN119484332A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a method for processing service flow messages, an electronic device, and a storage medium. Background Art
[0002] Determining the service path helps to quickly identify fault points or performance bottlenecks in the network and ensure smooth operation of the service. The current service path determination method mainly uses ping tools, traceroute, Uniform Resource Locator (URL) dialing, etc., combined with special probes to simulate service traffic to perform end-to-end service path detection. However, the service paths determined by these detection methods using probe messages are often different from the actual service paths, so the service transmission status determined on this basis is not accurate enough. Summary of the invention
[0003] In order to solve the above technical problems, the present application provides a method for processing business flow messages, an electronic device and a storage medium, which can improve the accuracy of determining business transmission conditions.
[0004] In the first aspect, the present application provides a method for processing business flow messages, which is applied to an entry virtual network node, including: when receiving a business flow message of a business to be detected, determining a dyeing period and a business identifier of the business to be detected; the business flow message includes a node identifier of a destination virtual network node corresponding to the business flow message; dyeing the business flow message according to the dyeing period, and recording the dyeing time at the same time to obtain a dyed message, and transmitting the dyed message to the destination virtual network node according to the node identifier; determining a reporting time according to the dyeing period, and reporting first statistical information to a management platform at the reporting time; the first statistical information includes the business identifier, the dyeing time, and the dyeing result corresponding to the business flow message, which is used to indicate the business transmission status of the business to be detected.
[0005] In the second aspect, the present application provides a method for processing business flow messages, which is applied to a destination virtual network node or an intermediate virtual network node, including: when receiving a dyed message, determining the dyeing period and the business identifier of the business to be detected corresponding to the dyed message; the preset field in the dyed message is dyed to 1 or 0; recording the reception time of the business flow message corresponding to the business to be detected, and counting the dyeing results corresponding to the business flow message; determining the reporting time according to the dyeing period, and reporting second statistical information to the management platform at the reporting time; the second statistical information includes the business identifier, the reception time, and the dyeing result, which is used to indicate the business transmission status of the business to be detected.
[0006] On the third aspect, the present application provides a method for processing business flow messages, which is applied to a management platform, including: receiving statistical information sent by multiple virtual network nodes; the statistical information includes a business identifier, a statistical time, and a coloring result corresponding to the business flow message; the statistical time includes the coloring time when the inlet virtual network node colors the business flow message of the business to be detected, the reception time when the intermediate virtual network node receives the colored business flow message, and the reception time when the destination virtual network node receives the colored business flow message; determining the business path of the business to be detected based on the business identifier and the statistical time; determining the faulty section in the business path based on the business path and the coloring result.
[0007] In the fourth aspect, the present application provides a processing device for business flow messages, which is applied to an entry virtual network node, including: a determination module, which is used to determine the dyeing cycle and the business identifier of the business to be detected when receiving a business flow message of the business to be detected; the business flow message includes the node identifier of the destination virtual network node corresponding to the business flow message; a processing module, which is used to dye the business flow message according to the dyeing cycle, and record the dyeing time at the same time, obtain the dyed message, and transmit the dyed message to the destination virtual network node according to the node identifier; a reporting module, which is used to determine the reporting time according to the dyeing cycle, and report the first statistical information to the management platform at the reporting time; the first statistical information includes the business identifier, the dyeing time, and the dyeing result corresponding to the business flow message, which is used to indicate the business transmission status of the business to be detected.
[0008] In the fifth aspect, the present application provides a processing device for business flow messages, which is applied to a destination virtual network node or an intermediate virtual network node, including: a determination module, which is used to determine the dyeing period and the business identifier of the business to be detected corresponding to the dyeing message when a dyeing message is received; the preset field in the dyeing message is dyed to 1 or 0; a statistical module, which is used to record the receiving time of the business flow message corresponding to the business to be detected, and to count the dyeing results corresponding to the business flow message; a reporting module, which is used to determine the reporting time according to the dyeing period, and report second statistical information to the management platform at the reporting time; the second statistical information includes the business identifier, the receiving time, and the dyeing result, which is used to indicate the business transmission status of the business to be detected.
[0009] In the sixth aspect, the present application provides a device for processing business flow messages, which is applied to a management platform, including: an information receiving module, which is used to receive statistical information sent by multiple virtual network nodes; the statistical information includes a business identifier, a statistical time, and a coloring result corresponding to the business flow message; the statistical time includes the coloring time when the inlet virtual network node colors the business flow message of the business to be detected, the receiving time when the intermediate virtual network node receives the colored business flow message, and the receiving time when the destination virtual network node receives the colored business flow message; a path determination module, which is used to determine the business path of the business to be detected according to the business identifier and the statistical time; a fault determination module, which is used to determine the fault section in the business path according to the business path and the coloring result.
[0010] In the seventh aspect, the present application provides an electronic device, comprising: a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, the method for processing service flow messages according to the first aspect, the second aspect, or the third aspect is implemented.
[0011] In an eighth aspect, the present application provides a computer-readable storage medium, comprising: a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, it implements the method for processing business flow messages as in the first aspect, or the second aspect, or the third aspect.
[0012] In a ninth aspect, the present application provides a computer program product, comprising: when the computer program product runs on a computer, the computer implements the method for processing service flow messages as in the first aspect, or the second aspect, or the third aspect.
[0013] Compared with the prior art, the technical solution provided by the present application has the following advantages: First, when the inlet virtual network node receives the service flow message of the service to be detected, it dyes the service flow message and transmits it, and reports the dyeing time and dyeing result to the management platform. Secondly, when the intermediate virtual network node or the destination virtual network node receives the dyed message, it records the receiving time and the statistical dyeing result, and reports the receiving time and the statistical dyeing result to the management platform. Finally, the management platform analyzes the service path of the service to be detected and the faulty section in the service path according to the service identification, statistical time, and dyeing results corresponding to the service flow messages sent by multiple virtual network nodes. In this way, the service path and the faulty section in the service path can be counted by dyeing the service flow message, which can ensure the consistency of the determined service path with the actual service path, and improve the accuracy of determining the service transmission situation. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0015] In order to more clearly illustrate the embodiments of the present application 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, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0016] Figure 1 One of the application scenario schematic diagrams of the method for processing service flow messages provided in an embodiment of the present application;
[0017] Figure 2 One of the flow diagrams of the method for processing a service flow message provided in an embodiment of the present application;
[0018] Figure 3 A second schematic diagram of an application scenario of the method for processing service flow messages provided in an embodiment of the present application;
[0019] Figure 4 A third schematic diagram of an application scenario of the method for processing service flow messages provided in an embodiment of the present application;
[0020] Figure 5 A second flowchart of a method for processing a service flow message provided in an embodiment of the present application;
[0021] Figure 6 One of the structural schematic diagrams of the device for processing service flow messages provided in an embodiment of the present application;
[0022] Figure 7 A second structural diagram of a device for processing service flow messages provided in an embodiment of the present application;
[0023] Figure 8 A third structural diagram of a device for processing service flow messages provided in an embodiment of the present application;
[0024] Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0025] In order to more clearly understand the above-mentioned purposes, features and advantages of the present application, the scheme of the present application will be further described below. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.
[0026] The method for processing business flow messages provided in the embodiments of the present application can be applied to end-to-end business scenarios in a cloud network architecture (such as a Spine-Leaf architecture). Figure 1 A schematic diagram of an application scenario of a method for processing a service flow message provided in an embodiment of the present application. Figure 1 As shown, the application scenario includes multiple Spine devices 100 (two are shown as an example in the figure), multiple Leaf devices 200 (four are shown as an example in the figure), and multiple servers 300 (four are shown as an example in the figure).
[0027] Among them, the Spine device 100 is located in the core layer of the network, and is usually not directly connected to the server 300, but is responsible for forwarding traffic between different Leaf devices 200. The Leaf device 200 is located in the access layer of the network and is responsible for connecting to the server 300. It is used to process traffic from the server 300 and forward the traffic to the Spine device 100, or receive data from the Spine device 100 and pass it to the server 300. The server 300 can communicate with other devices or servers through the connection with the Leaf device 200 to provide computing and storage resources. Multiple virtual network nodes (for example, the virtual network nodes can be virtual machines or containers) can be established in the server 300 to execute specific applications or services.
[0028] It should be noted that the method for processing business flow messages provided in the embodiment of the present application can be executed by the virtual network node in the server 300, or by the management platform corresponding to the server 300, or jointly by the virtual network node in the server 300 and the management platform corresponding to the server 300. The present application does not limit this.
[0029] The processing method of the service flow message provided in the embodiment of the present application can be executed by the processing device of the service flow message, and the processing device of the service flow message can be hardware or software. When the processing device of the service flow message is hardware, it can be various electronic devices with the processing function of running the service flow message, including but not limited to mobile phones, computers, computers, tablet computers, etc. When the processing device of the service flow message is software, it can be installed in the electronic devices listed above. It can be implemented as multiple software or software modules, or it can be implemented as a single software or software module. It is not specifically limited here.
[0030] In the following description, many specific details are set forth to facilitate a full understanding of the present application, but the present application may also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only part of the embodiments of the present application, rather than all of the embodiments.
[0031] Figure 2A flow chart of a method for processing a service flow message provided in an embodiment of the present application is shown in FIG. Figure 2 As shown, the method for processing service flow messages may include the following steps.
[0032] S11. The ingress virtual network node receives a service flow message of a service to be detected.
[0033] Among them, the entry virtual network node is the first virtual network node that receives the service flow message, the intermediate virtual network node is the virtual network node through which the service flow message is transmitted, and the destination virtual network node is the destination virtual network node where the service flow message finally reaches.
[0034] For example, in Figure 3 In the illustrated scenario, the first spine device 101 and the second spine device 102 are included; the first leaf device 201, the second leaf device 202, the third leaf device 203, and the fourth leaf device 204; the first virtual network node 301, the second virtual network node 302, the third virtual network node 303, the fourth virtual network node 304, the fifth virtual network node 305, the sixth virtual network node 306, the seventh virtual network node 307, and the eighth virtual network node 308 are included. The service flow message transmission path 401 of the service to be detected is: the service flow message enters the seventh virtual network node 307 from the network through the fourth leaf device 204, and then passes through the third leaf device 203, the sixth virtual network node 306, the third leaf device 203, the first spine device 101, and the second leaf device 202, and finally reaches the fourth virtual network node 304. For the service to be detected, the entry virtual network node is the seventh virtual network node 307 , the intermediate virtual network node is the sixth virtual network node 306 , and the destination virtual network node is the fourth virtual network node 304 .
[0035] Specifically, the entry virtual network node receives a business flow message of the business to be detected, which may be a business flow message of the business to be detected received by the entry virtual node from the network, or a business flow message of the business to be detected sent by other devices. This application does not limit the source of the business flow message.
[0036] S12. The ingress virtual network node determines a dyeing cycle and a service identifier of the service to be detected.
[0037] The service flow message includes a service identifier of the service to be detected corresponding to the service flow message, and a node identifier of a destination virtual network node corresponding to the service flow message, and the destination virtual network node is the virtual network node where the service flow message finally arrives. The dyeing period is a preset time period, for example, a default time period, or a time period set in real time by relevant personnel according to actual conditions.
[0038] Specifically, the ingress virtual network node may determine the service identifier of the service to be detected by acquiring the service identifier of the service to be detected from the service message.
[0039] In some embodiments, the ingress virtual network node sets the dyeing cycle according to the configuration instruction sent by the management platform, wherein the configuration instruction is used to synchronize the dyeing cycles between the network virtual nodes.
[0040] S13. The ingress virtual network node dyes the service flow message according to the dyeing cycle, records the dyeing time, obtains the dyed message, and transmits the dyed message to the destination virtual network node according to the node identifier.
[0041] Among them, at least one service message constitutes a service flow message of the service to be transmitted. During the transmission of the service flow message, these service messages will be transmitted one by one. Therefore, when the ingress virtual network node dyes the service flow message, it means dyeing the service message before transmitting each service message. Dyeing means setting the preset field of the service message to a special keyword.
[0042] In addition, the transmission of business flow messages between virtual network nodes is carried out through the Geneve tunnel. Therefore, the entry virtual network node dyes the business flow message according to the dyeing cycle, and records the dyeing time to obtain the dyed message, and transmits the dyed message to the destination virtual network node according to the node identifier. The method is: for each business message, the entry virtual network node first dyes the business message according to the dyeing cycle before putting the business message into the Geneve tunnel, and records the dyeing time of the business message, and then puts the dyed business message into the Geneve tunnel for transmission until all business messages in the business flow message are processed.
[0043] Specifically, the dyeing cycle is a periodic cyclic time structure. Figure 4 As shown, on the time axis, starting from the dyeing period, the dyeing period and the non-dyeing period appear alternately. In some embodiments, the time length corresponding to the dyeing period is the same as the time length corresponding to the non-dyeing period.
[0044] For example, when the time lengths of the dyeing cycle and the non-dying cycle are both 1s, the method of dyeing the business messages according to the dyeing cycle can be that at the 1st second, the preset field of the business message to be transmitted is set to a special keyword, at the 2nd second, the preset field of the business message to be transmitted is not changed, at the 3rd second, the preset field of the business message to be transmitted is set to a special keyword, at the 4th second, the preset field of the business message to be transmitted is not changed, ... until all business messages corresponding to the business flow messages are transmitted.
[0045] For another example, when the time length of the dyeing cycle and the non-dying cycle are both 1s, the method of dyeing the business messages according to the dyeing cycle can also be that at the 1st second, the preset field of the business message to be transmitted is set to the first keyword, at the 2nd second, the preset field of the business message to be transmitted is set to the second keyword, at the 3rd second, the preset field of the business message to be transmitted is set to the first keyword, at the 4th second, the preset field of the business message to be transmitted is set to the second keyword, ... until all business messages corresponding to the business flow messages are transmitted.
[0046] In some embodiments, the preset fields are the delay field and the packet loss field of the service message header. For example, when the current network is an Internet Protocol version 4 (IPV4) network, the preset fields may be bit6 and bit7 of the TOS field of the service message header, where bit6 is the delay coloring field and bit7 is the packet loss coloring field.
[0047] S14. The ingress virtual network node determines a reporting time according to the dyeing cycle, and reports the first statistical information to the management platform at the reporting time.
[0048] The first statistical information includes a service identifier, a dyeing time, and a dyeing result corresponding to the service flow message, which is used to indicate the service transmission status of the service to be detected. In some embodiments, the dyeing time includes the dyeing time of each service message in the service flow message; the dyeing result corresponding to the service flow message includes the number of service messages whose preset fields in the service flow message are dyed; the number of service messages whose preset fields in the service flow message are dyed includes the number of service messages whose preset fields are dyed as 0, and the number of service messages whose preset fields are dyed as 1.
[0049] Specifically, the ingress virtual network node determines the reporting time according to the dyeing cycle by first forming a dyeing cycle and a non-dyeing cycle adjacent to the dyeing cycle into a statistical cycle, and then determining the time from the statistical cycle to the next statistical cycle as the reporting time of the statistical cycle. Figure 4In the time axis corresponding to the dyeing cycle and the non-dyeing cycle shown, dyeing cycle 1 and non-dyeing cycle 1 can be combined into a first statistical cycle, dyeing cycle 2 and non-dyeing cycle 2 can be combined into a second statistical cycle, dyeing cycle 3 and non-dyeing cycle 3 can be combined into a third statistical cycle, etc. In this way, the reporting time of the first statistical information counted in the first statistical cycle can be any time point in the second statistical cycle; similarly, the reporting time of the first statistical information counted in the second statistical cycle can be any time point in the third statistical cycle; the reporting time of the last statistical cycle can be any time point in the duration of a statistical cycle starting from the end of the last statistical cycle.
[0050] In some embodiments, the reporting time of the first statistical information collected in the previous statistical period may be a middle time point in a subsequent statistical period adjacent thereto.
[0051] S15. When receiving the dyed message, the destination virtual network node or the intermediate virtual network node determines the dyeing period and the service identifier of the service to be detected corresponding to the dyed message.
[0052] The preset fields in the colored message are colored as 1 or 0.
[0053] Specifically, the destination virtual network node and the intermediate virtual network node determine the dyeing period and the service identifier of the service to be detected corresponding to the dyeing message in the same way as in step S12, which may be to obtain the service identifier of the service to be detected from the service message.
[0054] In some embodiments, the destination virtual network node and the intermediate virtual network node set the dyeing cycle according to the configuration instruction sent by the management platform, wherein the configuration instruction is used to synchronize the dyeing cycle between each network virtual node.
[0055] S16. The destination virtual network node or the intermediate virtual network node records the reception time of the service flow message corresponding to the service to be detected, and counts the coloring results corresponding to the service flow message.
[0056] Among them, the receiving time includes the receiving time of each business message in the business flow message. Specifically, when the destination virtual network node and the intermediate virtual network node receive the dyed message, they record the timestamp and determine the timestamp as the receiving time of the dyed message. The dyeing result corresponding to the business flow message includes the number of business messages whose preset fields in the business flow message are dyed; the number of business messages whose preset fields are dyed includes the number of business messages whose preset fields are dyed as 0, and the number of business messages whose preset fields are dyed as 1.
[0057] S17: The destination virtual network node or the intermediate virtual network node determines a reporting time according to the dyeing cycle, and reports the second statistical information to the management platform at the reporting time.
[0058] The second statistical information includes a service identifier, a receiving time, and a staining result, and is used to indicate a service transmission status of the service to be detected.
[0059] Specifically, the destination virtual network node and the intermediate virtual network node determine the reporting time according to the dyeing cycle, and report the second statistical information to the management platform at the reporting time. This is the same as the way in which the entry virtual network node determines the reporting time according to the dyeing cycle in step S14, and reports the first statistical information to the management platform at the reporting time, and will not be repeated here.
[0060] In some embodiments, the service flow message also includes a node identifier of a destination virtual network node corresponding to the service flow message, and the intermediate virtual network node also transmits the colored message to the destination virtual network node according to the node identifier.
[0061] S18. The management platform receives statistical information sent by multiple virtual network nodes.
[0062] Among them, the statistical information includes the service identifier, statistical time, and the coloring results corresponding to the service flow message; the multiple virtual network nodes include an entry virtual network node, an intermediate virtual network node, and a destination virtual network node; the statistical time includes the coloring time when the entry virtual network node colors the service flow message of the service to be detected, the reception time when the intermediate virtual network node receives the colored service flow message, and the reception time when the destination virtual network node receives the colored service flow message.
[0063] S19. The management platform determines the service path of the service to be detected according to the service identifier and the statistical time.
[0064] Specifically, the management platform determines the service path of the service to be detected based on the service identifier and statistical time by sorting the virtual network nodes with the same service identifier based on the order of statistical time, and determining the sorting result as the service path of the service to be detected.
[0065] Exemplarily, the statistical information received by the management platform is as shown in Table 1 below. When the service identifier of the service to be detected is A, the virtual network nodes with the service identifier A are sorted according to the statistical time, and the order is: the second virtual network node, the first virtual network node, the third virtual network node, and the fifth virtual network node. Then, the service path of the service A to be detected can be determined as: the second virtual network node, the first virtual network node, the third virtual network node, and the fifth virtual network node, wherein the second virtual network node is the entry virtual network node, the first virtual network node and the third virtual network node are intermediate virtual network nodes, and the fifth virtual network node is the destination virtual network node.
[0066] Table 1
[0067] Virtual Network Node Business Logo Statistical time First virtual network node A 0:01 Second virtual network node A 0:00 The third virtual network node A 0:02 Fourth virtual network node B 0:03 Fifth virtual network node A 0:03
[0068] S19. The management platform determines the faulty section in the service path according to the service path and the staining result.
[0069] Specifically, the management platform determines the faulty section in the service path according to the service path and the dyeing result, which can be that when the dyeing results corresponding to the service flow messages in any two adjacent virtual network nodes in the service path are inconsistent, the sections corresponding to the two adjacent virtual network nodes are determined as the faulty section. In some embodiments, the dyeing result corresponding to the service flow message includes the number of service messages whose preset fields in the service flow message are dyed.
[0070] Exemplarily, the statistical information received on the management platform is as shown in Table 2 below. The service identifier of the service to be detected is A; the service path of the service A to be detected is: the second virtual network node, the first virtual network node, the third virtual network node, and the fifth virtual network node. Among them, when the second virtual network node is the entry virtual network node, the first virtual network node and the third virtual network node are the intermediate virtual network nodes, and the fifth virtual network node is the destination virtual network node, it can be seen that the coloring result corresponding to the second virtual network node (the number of colored service messages is 20) is inconsistent with the coloring result corresponding to the first virtual network node adjacent to it (the number of colored service messages is 18), then the road section corresponding to the second virtual network node and the first virtual network node is determined as a faulty road section; similarly, the road section corresponding to the third virtual network node and the fifth virtual network node is also a faulty road section; the road section corresponding to the first virtual network node and the third virtual network node is a normal road section.
[0071] Table 2
[0072] Virtual Network Node Business Logo Statistical time Dyeing result / number of dyed service packets First virtual network node A 0:01 18 Second virtual network node A 0:00 20 The third virtual network node A 0:02 18 Fourth virtual network node B 0:03 25 Fifth virtual network node A 0:03 16
[0073] In some embodiments, the number of service packets whose preset fields are colored in the service flow packets includes the number of service packets whose preset fields are colored as 0 and the number of service packets whose preset fields are colored as 1; the preset fields are the delay field and the packet loss field in the service packet header. The management platform also determines the service transmission delay and packet loss rate of the service to be detected based on the service path, statistical time and the coloring result.
[0074] In the above scheme, first, when the inlet virtual network node receives the service flow message of the service to be detected, it dyes the service flow message and transmits it, and reports the dyeing time and dyeing results to the management platform. Secondly, when the intermediate virtual network node or the destination virtual network node receives the dyed message, it records the receiving time and the statistical dyeing results, and reports the receiving time and the statistical dyeing results to the management platform. Finally, the management platform analyzes the service path of the service to be detected and the faulty section in the service path according to the service identifier, statistical time, and dyeing results corresponding to the service flow messages sent by multiple virtual network nodes. In this way, the service path and the faulty section in the service path can be counted by dyeing the service flow message, which can ensure the consistency of the determined service path with the actual service path, and improve the accuracy of determining the service transmission situation.
[0075] In some embodiments, Figure 5 As shown, the service flow message includes at least one service message including a time sequence; the inlet virtual network node dyes the service flow message according to the dyeing cycle, records the dyeing time, obtains the dyed message, and transmits the dyed message to the destination virtual network node according to the node identifier, including the following steps:
[0076] S131. The ingress virtual network node determines a timing time.
[0077] Specifically, the entry virtual network node determines the timing time by starting the timer when determining that the business flow message needs to be dyed, and determining the time corresponding to the timer as the timing time; or by determining the current time as the timing time, which is not limited in this application.
[0078] S132. The ingress virtual network node determines whether the timing time is within the dyeing cycle, and executes step S133 when the timing time is within the dyeing cycle; and executes step S134 when the timing time is not within the dyeing cycle.
[0079] like Figure 4 As shown, on the time axis, starting from the dyeing cycle, the dyeing cycle and the non-dyeing cycle appear alternately, and the time length corresponding to the dyeing cycle is the same as the time length corresponding to the non-dyeing cycle. When the timing time is within the time period of the dyeing cycle, it is determined that the timing time is within the dyeing cycle, and when the timing time is within the time period of the non-dyeing cycle, it is determined that the timing time is not within the dyeing cycle.
[0080] In some embodiments, when the timing time is the timing time corresponding to the timer, the moment when the timer starts timing is used as the first moment in the duration corresponding to the first dyeing cycle. When the timing time is the current time, the moment when it is determined that the service flow message needs to be dyed is used as the first moment in the duration corresponding to the first dyeing cycle.
[0081] S133. The ingress virtual network node colors the preset field of the service message to be transmitted as 1.
[0082] Among them, the service messages in the service flow message become messages to be transmitted in sequence according to the time sequence until the transmission of the service flow message is completed.
[0083] S134. The ingress virtual network node colors the preset field of the service message to be transmitted as 0.
[0084] S135. The ingress virtual network node records the dyeing time of the service message to be transmitted, and transmits the service message to be transmitted to the destination virtual network node according to the node identifier.
[0085] Specifically, the ingress virtual network node records the dyeing time of the service message to be transmitted by recording a timestamp when dyeing the service message to be transmitted, and using the timestamp as the dyeing time corresponding to the service message to be transmitted.
[0086] In the above scheme, the service flow message can be dyed and then transmitted through the ingress virtual network node, so that the real path of the service and the fault conditions in the path can be counted based on the dyed message, thereby improving the accuracy of determining the service transmission status.
[0087] In some embodiments, the method for processing service flow messages further includes the ingress virtual network node periodically executing a Traceroute command after starting the dyeing mechanism to obtain the physical device ( Figure 3 The management platform receives the latency information and packet loss information of the physical devices and reports the latency information and packet loss information between the physical devices to the management platform. After receiving the latency information and packet loss information of the physical devices, the management platform combines the service path counted by the above-mentioned service flow message processing method to restore the complete service path of the service to be detected. The complete service path includes the above-mentioned service path and the physical devices between every two adjacent virtual network nodes in the service path.
[0088] In some embodiments, when the destination virtual network node receives reverse business traffic, it can perform statistical analysis on the destination virtual network node as the entry virtual network node of the reverse business traffic. The process is the same as the processing method of the above-mentioned business flow message and will not be repeated here.
[0089] The embodiment of the present application can divide the functional modules of the processing device of the service flow message according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing unit. The above integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical functional division. There may be other division methods in actual implementation.
[0090] like Figure 6 As shown, a structural diagram of a device for processing service flow messages provided in an embodiment of the present application is applied to an ingress virtual network node. The device for processing service flow messages includes a determination module 51, a processing module 52, and a reporting module 53.
[0091] The determination module 51 is used to determine the dyeing period and the business identifier of the business to be detected when receiving the business flow message of the business to be detected; the business flow message includes the node identifier of the destination virtual network node corresponding to the business flow message; the processing module 52 is used to dye the business flow message according to the dyeing period, and record the dyeing time at the same time to obtain the dyed message, and transmit the dyed message to the destination virtual network node according to the node identifier; the reporting module 53 is used to determine the reporting time according to the dyeing period, and report the first statistical information to the management platform at the reporting time; the first statistical information includes the business identifier, the dyeing time, and the dyeing result corresponding to the business flow message, which is used to indicate the business transmission status of the business to be detected.
[0092] In some embodiments, the business flow message includes at least one business message including a time sequence; the processing module 52 is specifically used to: determine the timing time; when the timing time is within the dyeing cycle, dye the preset field of the business message to be transmitted to 1, and record the dyeing time of the business message to be transmitted, and transmit the business message to be transmitted to the destination virtual network node according to the node identifier; wherein, the business messages in the business flow message become messages to be transmitted in sequence according to the time sequence until the business flow message is transmitted; when the timing time is not within the dyeing cycle, dye the preset field of the business message to be transmitted to 0, and record the dyeing time of the business message to be transmitted, and transmit the business message to be transmitted to the destination virtual network node according to the node identifier.
[0093] In some embodiments, the preset fields are the delay field and the packet loss field of the service message header.
[0094] In some embodiments, the dyeing time includes the dyeing time of each service message in the service flow message; the dyeing results corresponding to the service flow message include: the number of service messages with preset field dyeing of 0, and the number of service messages with preset field dyeing of 1.
[0095] The device for processing service flow messages provided in this embodiment can execute the method for processing service flow messages provided in the above method embodiment. Its implementation principle and technical effects are similar to those of the above method and will not be repeated here.
[0096] like Figure 7 As shown, a structural diagram of a device for processing business flow messages provided in an embodiment of the present application is applied to a destination virtual network node or an intermediate virtual network node. The device for processing business flow messages includes a determination module 61, a statistics module 62, and a reporting module 63.
[0097] The determination module 61 is used to determine the dyeing period and the business identifier of the business to be detected corresponding to the dyeing message when receiving the dyeing message; the preset field in the dyeing message is dyed to 1 or 0; the statistical module 62 is used to record the receiving time of the business flow message corresponding to the business to be detected, and to count the dyeing results corresponding to the business flow message; the reporting module 63 is used to determine the reporting time according to the dyeing period, and report the second statistical information to the management platform at the reporting time; the second statistical information includes the business identifier, the receiving time, and the dyeing result, which is used to indicate the business transmission status of the business to be detected.
[0098] In some embodiments, the business flow message includes at least one business message; the receiving time includes the receiving time of each business message in the business flow message; the coloring results corresponding to the business flow message include: the number of business messages with preset fields colored as 0, and the number of business messages with preset fields colored as 1.
[0099] The device for processing service flow messages provided in this embodiment can execute the method for processing service flow messages provided in the above method embodiment. Its implementation principle and technical effects are similar to those of the above method and will not be repeated here.
[0100] like Figure 8 As shown, it is a structural diagram of a device for processing business flow messages provided in an embodiment of the present application, which is applied to a destination virtual network node or an intermediate virtual network node. The device for processing business flow messages includes an information receiving module 71, a path determination module 72, and a fault determination module 73.
[0101] The information receiving module 71 is used to receive statistical information sent by multiple virtual network nodes; the statistical information includes the service identifier, statistical time, and coloring results corresponding to the service flow message; the statistical time includes the coloring time when the inlet virtual network node colors the service flow message of the service to be detected, the receiving time when the intermediate virtual network node receives the colored service flow message, and the receiving time when the destination virtual network node receives the colored service flow message; the path determination module 72 is used to determine the service path of the service to be detected according to the service identifier and the statistical time; the fault determination module 73 is used to determine the fault section in the service path according to the service path and the coloring result.
[0102] In some embodiments, the path determination module 72 is specifically used to sort the virtual network nodes with the same service identifier based on the order of statistical time, and determine the sorting result as the service path of the service to be detected.
[0103] In some embodiments, the fault determination module 73 is specifically used to: when the coloring results corresponding to the service flow messages in any two adjacent virtual network nodes in the service path are inconsistent, determine the sections corresponding to the two adjacent virtual network nodes as the faulty sections.
[0104] The device for processing service flow messages provided in this embodiment can execute the method for processing service flow messages provided in the above method embodiment. Its implementation principle and technical effects are similar to those of the above method and will not be repeated here.
[0105] Fig. 9 An electronic device according to an exemplary embodiment may include a processor 802, and the processor 802 is used to execute application code to implement the method for processing service flow messages in the present application.
[0106] The processor 802 may be a central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the present application.
[0107] like Fig. 9 As shown, the electronic device may further include a memory 803. The memory 803 is used to store application program codes for executing the solution of the present application, and the execution is controlled by the processor 802.
[0108] The memory 803 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 803 may exist independently and be connected to the processor 802 via the bus 804. The memory 803 may also be integrated with the processor 802.
[0109] like Fig. 9 As shown, the electronic device may further include a communication interface 801, wherein the communication interface 801, the processor 802, and the memory 803 may be coupled to each other, for example, via a bus 804. The communication interface 801 is used to exchange information with other devices, for example, to support information exchange between the electronic device and other devices.
[0110] It should be pointed out that Fig. 9 The device structure shown in the figure does not constitute a limitation on the electronic device, except Fig. 9 In addition to the components shown, the electronic device may include more or fewer components than shown, or combine certain components, or arrange the components differently. The electronic device provided in this embodiment may execute the method for processing the service flow message provided in the above method embodiment, and its implementation principle and technical effect are similar to the above method, which will not be described in detail here.
[0111] An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, each process of the method for processing business flow messages in the above method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0112] The computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0113] An embodiment of the present application provides a computer program product, which stores a computer program. When the computer program is executed by a processor, each process of the method for processing business flow messages in the above method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0114] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media that include computer-usable program code.
[0115] In the present application, the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0116] In this application, memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
[0117] In this application, computer-readable media includes permanent and non-permanent, removable and non-removable storage media. Storage media can be implemented by any method or technology to store information, and the information can be computer-readable instructions, data structures, modules of programs or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. According to the definition in this article, computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data and carrier waves.
[0118] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0119] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for processing service flow messages, applied to an ingress virtual network node, characterized in that: include: When receiving a service flow message of a service to be detected, determining a dyeing period and a service identifier of the service to be detected; the service flow message includes a node identifier of a destination virtual network node corresponding to the service flow message; Dyeing the service flow message according to the dyeing cycle, recording the dyeing time, obtaining a dyed message, and transmitting the dyed message to the destination virtual network node according to the node identifier; The reporting time is determined according to the dyeing cycle, and the first statistical information is reported to the management platform at the reporting time; the first statistical information includes the service identifier, the dyeing time, and the dyeing result corresponding to the service flow message, which is used to indicate the service transmission status of the service to be detected.
2. The processing method according to claim 1, characterized in that: The service flow message includes at least one service message including a time sequence; the step of coloring the service flow message according to the coloring cycle, recording the coloring time, obtaining the coloring message, and transmitting the coloring message to the destination virtual network node according to the node identifier includes: Determine the timing time; When the timing time is within the dyeing period, dye the preset field of the service message to be transmitted as 1, record the dyeing time of the service message to be transmitted, and transmit the service message to be transmitted to the destination virtual network node according to the node identifier; wherein the service messages in the service flow message become the messages to be transmitted in chronological order until the transmission of the service flow message is completed; When the timing time is not within the dyeing period, the preset field of the service message to be transmitted is dyed to 0, the dyeing time of the service message to be transmitted is recorded, and the service message to be transmitted is transmitted to the destination virtual network node according to the node identifier.
3. The processing method according to claim 2, characterized in that: The preset fields are the delay field and the packet loss field in the service message header.
4. The processing method according to claim 2, characterized in that: The dyeing time includes the dyeing time of each service message in the service flow message; The coloring results corresponding to the service flow messages include: the number of service messages whose preset fields are colored as 0, and the number of service messages whose preset fields are colored as 1.
5. A method for processing a service flow message, applied to a destination virtual network node or an intermediate virtual network node, characterized in that: include: When receiving a dyed message, determining a dyeing period and a service identifier of a service to be detected corresponding to the dyed message; a preset field in the dyed message is dyed to 1 or 0; Record the reception time of the service flow message corresponding to the service to be detected, and count the staining results corresponding to the service flow message; The reporting time is determined according to the dyeing cycle, and the second statistical information is reported to the management platform at the reporting time; the second statistical information includes the service identifier, the receiving time, and the dyeing result, and is used to indicate the service transmission status of the service to be detected.
6. The processing method according to claim 5, characterized in that: The service flow message includes at least one service message; the receiving time includes the receiving time of each service message in the service flow message; The coloring results corresponding to the service flow messages include: the number of service messages whose preset fields are colored as 0, and the number of service messages whose preset fields are colored as 1.
7. A method for processing service flow messages, applied to a management platform, characterized in that: include: Receiving statistical information sent by multiple virtual network nodes; the statistical information includes a service identifier, a statistical time, and a coloring result corresponding to a service flow message; The statistical time includes the dyeing time of the inlet virtual network node dyeing the service flow message of the service to be detected, the reception time of the intermediate virtual network node receiving the dyed service flow message, and the reception time of the destination virtual network node receiving the dyed service flow message; Determine the service path of the service to be detected according to the service identifier and the statistical time; A faulty section in the service path is determined according to the service path and the coloring result.
8. The processing method according to claim 7, characterized in that: The determining the service path of the service to be detected according to the service identifier and the statistical time includes: Based on the sequence of the statistical time, the virtual network nodes with the same service identifier are sorted, and the sorting result is determined as the service path of the service to be detected.
9. The processing method according to claim 8, characterized in that: The determining a faulty section in the service path according to the service path and the coloring result includes: When the coloring results corresponding to the service flow messages in any two adjacent virtual network nodes in the service path are inconsistent, the sections corresponding to the two adjacent virtual network nodes are determined as faulty sections.
10. An electronic device, characterized in that: include: A processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements a method for processing service flow messages as described in any one of claims 1 to 4, or claims 5 to 6, or claims 7 to 9.
11. A computer-readable storage medium, characterized in that: include: The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, it implements the method for processing the service flow message as described in any one of claims 1 to 4, or claims 5 to 6, or claims 7 to 9.
12. A computer program product, characterized in that When the computer program product runs on a computer, the computer implements the method for processing service flow messages as described in any one of claims 1 to 4, or claims 5 to 6, or claims 7 to 9.
Citation Information
Patent Citations
Method, device, and virtual network system for monitoring virtual network
CN107996023A
Data transmission quality detection method and system, network equipment and storage medium
CN112702218A
Network path generation method and device, electronic equipment and storage medium
CN116647497A
Method, device, and virtual network system for monitoring virtual network
WO2018094616A1