Streaming media transmission anomaly detection method and device, computer equipment and storage medium

By generating root cause codes and routing during streaming media transmission, quickly locate streaming media transmission abnormal nodes, solving the problem of low troubleshooting efficiency in the CDN hierarchical network architecture, and a method of quickly locate and solve streaming media transmission abnormalities is realized.

CN119094329APending Publication Date: 2024-12-06BEIJING KINGSOFT CLOUD NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411280806.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-12
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

The CDN layered network architecture is difficult to quickly locate the causes and locations of streaming media abnormalities, resulting in inefficient troubleshooting.

Method used

By determining the streaming media to be transmitted in the target node and generating a root cause code during the transmission process, generating a root cause route based on the root cause code, the abnormal node is quickly determined.

Benefits of technology

Improves troubleshooting efficiency and can quickly locate abnormal streaming nodes without checking the operation logs of CDN nodes at each level step by step.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119094329A_ABST
    Figure CN119094329A_ABST
Patent Text Reader

Abstract

The invention relates to a streaming media transmission anomaly detection method and device, computer equipment and a storage medium. The method comprises the following steps: generating a corresponding root cause code for an abnormal type of an abnormal node with abnormal transmission, generating a root cause route based on routing information of routing to an edge node from the root cause code, determining the abnormal type of the abnormal node based on the root cause code, and rapidly determining the abnormal node based on a starting end of the root cause route. The operation logs of the CDN nodes of each level do not need to be checked step by step, so that the troubleshooting efficiency is improved, and the problem of how to quickly locate the abnormal nodes of stream transmission is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of streaming media transmission anomaly detection, and in particular to a streaming media transmission anomaly detection method, device, computer equipment and storage medium. Background Art

[0002] The difference between streaming media transmission and static transmission is that streaming media transmission needs to solve the problems of real-time playback and merging back to the source, and does not require file caching. During the streaming process, the transmission may be disconnected due to network packet loss, machine problems, stream format abnormalities, hijacking, etc., and the CDN layered network architecture makes it difficult to quickly locate the cause and location of transmission anomalies. It is necessary to check the operation logs of CDN nodes at different levels step by step, and the troubleshooting efficiency is low. Therefore, a method is needed to quickly locate the streaming transmission anomaly problem of request response. Summary of the invention

[0003] The present application provides a method, apparatus, computer device and storage medium for detecting abnormalities in streaming media transmission, so as to solve the problem of how to quickly locate abnormal nodes in streaming transmission.

[0004] In a first aspect, the present application provides a method for detecting anomalies in streaming media transmission, the method comprising:

[0005] Determining the streaming media to be transmitted in the target node, wherein the target node is a distributed node for providing the streaming media to be transmitted;

[0006] Transmitting the streaming media to be transmitted from the target node to the edge node, and in the process of transmitting the streaming media to be transmitted from the target node to the edge node, generating a corresponding root cause code for the abnormal type of the abnormal node with abnormal transmission;

[0007] Generate a root cause route according to the routing information of the root cause code route to the edge node;

[0008] An abnormal node causing abnormal transmission of the streaming media to be transmitted is determined according to the root cause code and the root cause route.

[0009] In a second aspect, the present application provides a streaming media transmission anomaly detection device, the device comprising:

[0010] A streaming media determination module, used to determine the streaming media to be transmitted in a target node, wherein the target node is a distributed node used to provide the streaming media to be transmitted;

[0011] A generating module, configured to transmit the streaming media to be transmitted from the target node to the edge node, and in the process of transmitting the streaming media to be transmitted from the target node to the edge node, generate a corresponding root cause code for the abnormal type of the abnormal node with abnormal transmission;

[0012] A routing module, used for generating a root cause route according to the routing information of the root cause code route to the edge node;

[0013] The abnormal node determination module is used to determine the abnormal node for the abnormal transmission of the streaming media to be transmitted according to the root cause code and the root cause route.

[0014] In a third aspect, the present application provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned streaming media transmission anomaly detection method when executing the computer program.

[0015] In a fourth aspect, the present application further provides a computer storage medium storing computer executable instructions, wherein the computer executable instructions are used to execute the above-mentioned streaming media transmission anomaly detection method.

[0016] The above technical solution provided by the embodiment of the present application has the following advantages over the prior art: the method provided by the embodiment of the present application determines the streaming media to be transmitted in the target node, wherein the target node is a distributed node for providing the streaming media to be transmitted; transmits the streaming media to be transmitted from the target node to the edge node, and in the process of transmitting the streaming media to be transmitted from the target node to the edge node, generates a corresponding root cause code for the abnormal type of the abnormal node with transmission abnormality; generates a root cause route based on the routing information of the root cause code to the edge node; and determines the abnormal node with transmission abnormality for the streaming media to be transmitted based on the root cause code and the root cause route.

[0017] Based on the above method, a corresponding root cause code is generated for the abnormal type of the abnormal node with transmission abnormality, and a root cause route is generated based on the routing information of the root cause code to the edge node. The abnormal type of the abnormal node can be determined based on the root cause code. However, the abnormal node can be quickly determined based on the starting end of the root cause route without checking the operation logs of CDN nodes at each level step by step, thereby improving the troubleshooting efficiency and solving the problem of how to quickly locate the abnormal node of stream transmission. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0019] In order to more clearly illustrate the embodiments of the present invention 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.

[0020] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.

[0021] Figure 1 An application environment diagram of a streaming media transmission anomaly detection method provided in an embodiment of the present application;

[0022] Figure 2 A flow chart of a method for detecting abnormalities in streaming media transmission provided in an embodiment of the present application;

[0023] Figure 3 A flow chart of a streaming media transmission method provided in an embodiment of the present application;

[0024] Figure 4 A flow chart of a streaming media transmission method provided in an embodiment of the present application;

[0025] Figure 5 A flow chart of a streaming media transmission method provided in an embodiment of the present application;

[0026] Figure 6 A structural block diagram of a streaming media transmission anomaly detection device provided in an embodiment of the present application;

[0027] Figure 7 A schematic diagram of the internal structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

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

[0029] The disclosure below provides many different embodiments or examples to implement different structures of the present invention. In order to simplify the disclosure of the present invention, the parts and settings of specific examples are described below. Of course, they are only examples, and the purpose is not to limit the present invention. In addition, the present invention can repeat reference numbers and / or letters in different examples. This repetition is for the purpose of simplification and clarity, and does not itself indicate the relationship between the various embodiments and / or settings discussed.

[0030] Figure 1FIG. 1 is an application environment diagram of a method for detecting abnormalities in streaming media transmission in an embodiment. Figure 1 , the streaming media transmission anomaly detection method is applied to the streaming media transmission anomaly detection system. The streaming media transmission anomaly detection system includes a client and a content distribution network (CDN network). The client and the content distribution network are connected through a network. The client can be a desktop terminal or a mobile terminal, and the mobile terminal can be at least one of a mobile phone, a tablet computer, a laptop computer, etc. The content distribution network can be implemented with an independent server or a server cluster composed of multiple servers. The content distribution network includes edge nodes and CDN nodes, Figure 1 121 indicates an edge node, 122 indicates an upper node, and 123 indicates a customer origin station. An edge node may be a CDN node or a home node (ECN, Edge Content Network). A home node is a router or set-top box that uses idle bandwidth to provide download services in ordinary user households. A CDN node refers to a network node that has fewer intermediate links to the end user access, has better response capabilities and connection speeds for the end access user, and can be used as a cache server to provide data services.

[0031] In one embodiment, Figure 2 FIG. 1 is a flow chart of a method for detecting abnormalities in streaming media transmission in an embodiment, referring to FIG. Figure 2 , provides a method for detecting abnormalities in streaming media transmission. This embodiment mainly applies this method to the above Figure 1 Taking the content distribution network in the example of FIG. 1 as an example, the streaming media transmission anomaly detection method specifically includes the following steps:

[0032] Step S210: determining the streaming media to be transmitted in the target node, wherein the target node is a distributed node for providing the streaming media to be transmitted.

[0033] Specifically, the target node is a distributed node for providing the streaming media to be transmitted. The distributed node can specifically be an edge node or a CDN node. The streaming media to be transmitted can be the streaming media to be pushed requested by the push client, or the streaming media to be pulled requested by the pull client. That is, the streaming media to be transmitted is determined based on different requests issued by different clients. No matter what kind of client determines the streaming media to be transmitted based on what kind of request, it will eventually be transmitted to the edge node, because the streaming media to be pushed requested by the push client is also used to be pushed to the pull client, and the streaming media to be pulled requested by the pull client is also used to be pushed to the pull client. Therefore, the streaming media to be transmitted will eventually be transmitted to the edge node and provided to the pull client through the edge node.

[0034] Step S220: transmitting the streaming media to be transmitted from the target node to the edge node, and generating a corresponding root cause code for the abnormal type of the abnormal node with transmission abnormality during the process of transmitting the streaming media to be transmitted from the target node to the edge node.

[0035] Specifically, the streaming media to be transmitted is transmitted from the target node to the edge node. During the transmission process, the distributed node with transmission abnormality is determined as an abnormal node, and a corresponding root cause code is generated for the abnormal type of the abnormal node, that is, different abnormal types correspond to different root cause codes. Prior to this, a mapping relationship is established between different node abnormal types and different root cause codes, so that the corresponding root cause code can be automatically output according to the abnormal type of the abnormal node.

[0036] Step S230: Generate a root cause route according to the routing information of the root cause code route to the edge node.

[0037] Specifically, the distributed node that generates the root cause code will continue to transmit the root cause code to the edge node to form the routing information, that is, the root cause route. The root cause route contains the node information of all distributed nodes that the root cause code has passed through when it was transmitted to the edge node, and all node information is linked in sequence according to the transmission order to form chain information, that is, the root cause route is chain information. The abnormal node where the abnormality occurs can be determined through the starting end of the root cause route.

[0038] Step S240: determining an abnormal node causing transmission abnormality of the streaming media to be transmitted according to the root cause code and the root cause route.

[0039] Specifically, the abnormal type of the abnormal node can be determined based on the root cause code, and the abnormal node can be quickly determined based on the starting end of the root cause route, without the need to check the operation logs of CDN nodes at each level step by step, thereby improving troubleshooting efficiency and solving the problem of how to quickly locate abnormal nodes in stream transmission.

[0040] In one embodiment, determining the streaming media to be transmitted in the target node includes:

[0041] When the target node receives a stream pull request, the streaming media in the target node that hits the stream pull request is determined as the streaming media to be transmitted;

[0042] When the target node is an edge node and the target node receives a streaming request, the streaming media to be pushed received by the target node according to the streaming request is determined as the streaming media to be transmitted.

[0043] Specifically, if the target node receives a stream pull request, it determines whether the target node can hit the stream pull request, that is, it detects whether the target node can provide the streaming media requested by the stream pull request. If the target node can provide the streaming media requested by the stream pull request, it is determined that the target node hits the stream pull request, and the hit streaming media is determined as the streaming media to be transmitted, which is used to transmit the streaming media to be transmitted from the target node to the edge node. At this time, the target node acts as a provider node for the streaming media to be transmitted.

[0044] If the target node receives a streaming request, it means that the target node needs to push the streaming media to be pushed carried by the streaming request to the designated streaming node. Therefore, the streaming media to be pushed is determined as the streaming media to be transmitted. At this time, the target node serves as the streaming node for the streaming media to be transmitted, and is used to push the streaming media to be transmitted to other upper-level nodes.

[0045] In one embodiment, when the target node receives a stream pull request, determining the streaming media in the target node that hits the stream pull request as the streaming media to be transmitted includes:

[0046] When the target node receives a stream pull request, the stream pull request is assigned to a target request process in the target node, wherein the target request process is any request process in the target node;

[0047] When the target request process does not hit the stream pull request, hashing the stream pull request to the target back-to-source process in the target node, wherein the target back-to-source process is any back-to-source process in the target node;

[0048] When the target back-to-source process hits the stream pull request, the streaming media of which the target back-to-source process hits the stream pull request is determined as the streaming media to be transmitted.

[0049] Specifically, when the target node receives a stream pull request, it first assigns the stream pull request to any request process in any service machine in the target node, that is, the target node includes multiple service machines, and each service machine includes multiple request processes and back-to-source processes. When the target node schedules the stream pull request to any service machine, it can determine the first service machine that ultimately processes the stream pull request based on the load status and available resource status of each service machine in the target node. When the first service machine schedules the stream pull request to any request process, it determines the target request process that ultimately processes the stream pull request based on the load status of each request process in the first service machine.

[0050] If the target request process does not hit the pull request, it means that the target request process cannot provide the streaming media requested by the pull request, then the pull request is sent to the target source return process in the second service machine in the target node through consistent hashing. The determination process of the second service machine is the same as the determination process of the first service machine mentioned above. The second service machine and the first service machine can be the same or different service machines in the target node. The target source return process in the second service machine is used to determine whether the pull request can be hit, that is, to determine whether the target source return process can provide the streaming media requested by the pull request.

[0051] If the target back-to-source process hits the stream pull request, it means that the target back-to-source process can provide the streaming media requested by the stream pull request. Then the streaming media that hits the stream pull request in the target back-to-source process is determined as the streaming media to be transmitted, so that the streaming media to be transmitted can be directly transmitted from the target back-to-source process in the target node to the edge node, and then provided to the streaming client that initiated the stream pull request through the edge node.

[0052] That is, when the target node hits the pull stream request, the streaming media to be transmitted can be directly obtained from the target node without having to go back to the source to pull the streaming media requested by the pull stream request, thereby reducing the number of return to the source, reducing the service pressure of the source station, and speeding up the response speed of the pull stream request.

[0053] Reference Figure 3 Line 1 in the figure is the streaming process, which is to access the customer source station from the edge node A to obtain the streaming media to be transmitted, and then transmit the streaming media to be transmitted from the customer source station to the edge node. Figure 3 Line 2 in the figure is the streaming process, which is to transmit the streaming media to be transmitted from the edge node to the customer source station.

[0054] Reference Figure 4 Line 3 and Line 4 in the figure are for pulling and pushing the same streaming media. If the back-to-source process 2 in the service machine 2 hits the pull request, line 3 does not need to request the upper-level node to obtain it, and can directly return to the edge node, while line 4 needs to continue to push the streaming media to the upper-level node.

[0055] In one embodiment, when the target request process does not hit the stream pull request, after hashing the stream pull request to the target back-to-source process in the target node, the method further includes:

[0056] When the target back-to-source process misses the stream pull request, the stream pull request is uploaded to the target upper-level node corresponding to the target node, and the target upper-level node is used to perform the corresponding request processing task according to the step of allocating the stream pull request to the target request process in the target node when the target node receives the stream pull request.

[0057] Specifically, if the target back-to-source process in the target node does not hit the stream pull request, it means that the target node cannot respond to the stream pull request, and it is necessary to request the upper-level node to obtain the streaming media requested by the stream pull request. Therefore, the stream pull request is uploaded to the target upper-level node corresponding to the target node. The target upper-level node is any upper-level node in the node level adjacent to the node level where the target node is located, that is, the target node corresponds to multiple upper-level nodes, and the target upper-level node that finally processes the stream pull request is determined according to the load status and available resource status of each upper-level node among the multiple upper-level nodes. The processing flow in the target upper-level node is the same as the above-mentioned processing flow in the target node, that is, the stream pull request is first dispatched to any request process in any service machine in the target upper-level node for hit judgment. If it does not hit, the stream pull request is hashed to any back-to-source process in any service machine in the target upper-level node for hit judgment. If it still does not hit, it will continue to pull the stream to the upper-level node until it reaches the customer source station for stream pulling, thereby ensuring the response success rate of the stream pull request.

[0058] Reference Figure 4 Line 3 and Line 4 in the figure are for pulling and pushing the same streaming media. If the back-to-source process 2 in the service machine 2 of the edge node B hits the pull request, there is no need to request the upper node to obtain it, and it can directly return to the edge node, while Line 4 needs to continue to push the streaming media to the upper node.

[0059] Reference Figure 5 Line 5 and line 4 in the figure are for pulling and pushing the same streaming media. If the back-to-source process 2 in the service machine 2 of the upper node B of line 5 hits the pull request, there is no need to request the customer source station to obtain it, and it can directly return to the edge node.

[0060] In one embodiment, the streaming media to be transmitted is transmitted from the target node to the edge node, and in the process of transmitting the streaming media to be transmitted from the target node to the edge node, a corresponding root cause code is generated for the abnormal type of the abnormal node with abnormal transmission, including:

[0061] When the target node is an edge node and the target node receives a streaming request, the streaming media to be transmitted is transmitted from the target node to the client source station;

[0062] In the process of transmitting the streaming media to be transmitted from the target node to the client source station, when the target intermediate node in the transmission path from the target node to the client source station receives the pull stream request corresponding to the push stream request and hits the pull stream request, the streaming media to be transmitted is transmitted from the target intermediate node to the edge node;

[0063] In the process of transmitting the streaming media to be transmitted from the target node to the edge node, a corresponding root cause code is generated according to the abnormal type of the abnormal node with abnormal transmission.

[0064] Specifically, when the edge node receives a streaming request, the edge node needs to push the streaming media to be transmitted to the customer source station so that the streaming client can pull the pushed streaming media from the customer source station through the CDN network. In the process of pushing the streaming media to be transmitted to the customer source station, the edge node will generate a corresponding root cause code for the abnormal type of the abnormal node with the transmission abnormality, and route the root cause code to the customer source station and then to the edge node's routing information to generate a root cause route.

[0065] In the process of the edge node transmitting the streaming media to be transmitted to the customer source station, any intermediate node in the transmission path from the edge node to the customer source station receives the pull stream request and hits the pull stream request, indicating that the intermediate node has received the streaming media to be transmitted pushed by the edge node. The intermediate node can respond to the pull stream request without accessing the customer source station to respond to the pull stream request. Therefore, the streaming media to be transmitted is transmitted from the target intermediate node to the edge node to be provided to the pull stream client corresponding to the pull stream request. At this time, there are two transmission paths for the streaming media to be transmitted, one is to continue to transmit to the customer source station, and the other is to transmit from the target intermediate node to the edge node. The edge node that receives the push stream request and the edge node that receives the streaming media to be transmitted from the target intermediate node are the same or different edge nodes.

[0066] If the target intermediate node receives a stream pull request but does not hit the stream pull request, it means that the target intermediate node has not yet received the streaming media to be transmitted pushed by the edge node, or an abnormal node with transmission abnormality appears on the transmission path between the edge node and the target intermediate node. In this case, the target intermediate node cannot hit the stream pull request, but will receive the root cause code related to the abnormal node and the routing information of the root cause code, and add the node information of the target intermediate node to the routing information, and continue to pass the root cause code and routing information to the upper node, and also pass the root cause code and routing information to the edge node to respond to the stream pull request. The transmission path in the root cause route received by the edge node is from the starting node (the abnormal node or the upper node of the abnormal node) to the target intermediate node and from the target intermediate node to the edge node. The abnormal node can still be determined by the starting node in the root cause route.

[0067] That is, no matter whether the streaming media to be transmitted is in the push stage or the pull stage, the corresponding root cause code will be generated for the abnormal type of the abnormal node with transmission abnormality during the transmission of the streaming media to be transmitted, and will eventually be output through the edge node, so as to quickly determine the abnormal node and the abnormal type of the abnormal node according to the starting node in the root cause route output by the edge node.

[0068] In one embodiment, in the process of transmitting the streaming media to be transmitted from the target node to the edge node, generating a corresponding root cause code for the abnormal type of the abnormal node with abnormal transmission, including:

[0069] In the process of transmitting the streaming media to be transmitted from the target node to the edge node, each distributed node on the transmission link from the target node to the edge node monitors the communication status of the adjacent node and the working status of the request process in each distributed node;

[0070] When a first node monitors that a communication state of an adjacent second node is abnormal, the first node generates a root cause code for the abnormal second node, wherein the first node is any distributed node in the transmission link, and the second node is an adjacent node for transmitting the streaming media to be transmitted to the first node;

[0071] When the second node monitors that the working status of at least one request process inside is abnormal, the second node generates a root cause code for the abnormal request process and transmits it to the first node through the return-to-source process in the second node.

[0072] Specifically, during the transmission process of the streaming media to be transmitted, each distributed node monitors the communication status of the adjacent nodes and the working status of each request process within itself. If the first node on the transmission link from the target node to the edge node monitors that the communication status of the adjacent second node is abnormal, since the second node is an adjacent node used to transmit the streaming media to be transmitted to the first node, that is, the first node is located after the second node in the transmission link, it is determined that the second node cannot normally transmit the streaming media to be transmitted to the first node. Then, the first node generates a root cause code for the abnormal type of the second node. At this time, the abnormal type is a communication abnormality. The root cause code carries the node identifier of the second node, and the root cause code and the node information of the first node are added to the routing information. The node information specifically includes the node identifier, the request process identifier passed by the route, the source return process identifier passed by the route, etc., and then the node information of the nodes passed by the root cause code route will be added to the routing information in sequence, thereby forming a root cause route.

[0073] If it is monitored in the second node that the working status of at least one request process is abnormal, and the communication status of the second node is normal, it means that the abnormal type of the second node is the request process abnormality. Therefore, the second node generates a corresponding root cause code for its own abnormal type, and transmits the root cause code to the first node through the internal back-to-source process. The root cause code carries the node identifier of the second node. After receiving the root cause code, the first node adds its own node information to the routing information corresponding to the root cause code and continues to transmit it to the node after the first node on the transmission link until it is transmitted to the edge node to form a root cause route.

[0074] In one embodiment, determining the streaming media to be transmitted in the target node includes:

[0075] Adding encapsulation data in a preset format to the target streaming media in the target node to obtain the streaming media to be transmitted;

[0076] Generating a root cause route according to the routing information of the root cause code route to the edge node, including:

[0077] Encapsulating the root cause code and the node information of the root cause generation node into a streaming media data packet according to the encapsulation data in the preset format, wherein the root cause generation node is a distributed node that generates the root cause code;

[0078] According to the routing path from the abnormal node to the edge node, the node information of each distributed node is sequentially added in a chain to the streaming media data packet to generate a root cause route.

[0079] Specifically, the encapsulated data in a preset format is consistent with the data format of the streaming media, and the encapsulated data includes an encapsulation protocol in the streaming media data format, which is used to encapsulate the routing information of the root cause code into a streaming media data packet in the streaming media data format, and transmit the streaming media data packet in the manner of transmitting the streaming media, and in the process of routing the streaming media data packet to the edge node, the node information of each distributed node passed by the route is added in sequence according to the routing path, so as to generate the root cause route. By encapsulating the routing information to limit the transmission method of the routing information to be consistent with the transmission method of the streaming media, compared with information transmission, streaming media transmission occupies less bandwidth and storage space, which can improve the transmission efficiency of the root cause route.

[0080] Figure 2 FIG. 1 is a flow chart of a method for detecting abnormalities in streaming media transmission in one embodiment. Figure 2 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0081] In one embodiment, Figure 6 As shown, a streaming media transmission anomaly detection device is provided, comprising:

[0082] The streaming media determination module 310 is used to determine the streaming media to be transmitted in the target node, wherein the target node is a distributed node for providing the streaming media to be transmitted;

[0083] A generating module 320, configured to transmit the streaming media to be transmitted from the target node to the edge node, and in the process of transmitting the streaming media to be transmitted from the target node to the edge node, generate a corresponding root cause code for the abnormal type of the abnormal node with abnormal transmission;

[0084] A routing module 330, configured to generate a root cause route according to the routing information of the root cause code route to the edge node;

[0085] The abnormal node determination module 340 is used to determine the abnormal node causing the abnormal transmission of the streaming media to be transmitted according to the root cause code and the root cause route.

[0086] In one embodiment, the streaming media determination module 310 is further configured to:

[0087] When the target node receives a stream pull request, the streaming media in the target node that hits the stream pull request is determined as the streaming media to be transmitted;

[0088] When the target node is an edge node and the target node receives a streaming request, the streaming media to be pushed received by the target node according to the streaming request is determined as the streaming media to be transmitted.

[0089] In one embodiment, the streaming media determination module 310 is further configured to:

[0090] When the target node receives a stream pull request, the stream pull request is assigned to a target request process in the target node, wherein the target request process is any request process in the target node;

[0091] When the target request process does not hit the stream pull request, hashing the stream pull request to the target back-to-source process in the target node, wherein the target back-to-source process is any back-to-source process in the target node;

[0092] When the target back-to-source process hits the stream pull request, the streaming media of which the target back-to-source process hits the stream pull request is determined as the streaming media to be transmitted.

[0093] In one embodiment, the determining module is further configured to:

[0094] When the target back-to-source process misses the stream pull request, the stream pull request is uploaded to the target upper-level node corresponding to the target node, and the target upper-level node is used to perform the corresponding request processing task according to the step of allocating the stream pull request to the target request process in the target node when the target node receives the stream pull request.

[0095] In one embodiment, the generating module 320 is further configured to:

[0096] When the target node is an edge node and the target node receives a streaming request, the streaming media to be transmitted is transmitted from the target node to the client source station;

[0097] In the process of transmitting the streaming media to be transmitted from the target node to the client source station, when the target intermediate node in the transmission path from the target node to the client source station receives the pull stream request corresponding to the push stream request and hits the pull stream request, the streaming media to be transmitted is transmitted from the target intermediate node to the edge node;

[0098] In the process of transmitting the streaming media to be transmitted from the target node to the edge node, a corresponding root cause code is generated according to the abnormal type of the abnormal node with abnormal transmission.

[0099] In one embodiment, the generating module 320 is further configured to:

[0100] In the process of transmitting the streaming media to be transmitted from the target node to the edge node, each distributed node on the transmission link from the target node to the edge node monitors the communication status of the adjacent node and the working status of the request process in each distributed node;

[0101] When a first node monitors that a communication state of an adjacent second node is abnormal, the first node generates a root cause code for the abnormal second node, wherein the first node is any distributed node in the transmission link, and the second node is an adjacent node for transmitting the streaming media to be transmitted to the first node;

[0102] When the second node monitors that the working status of at least one request process inside is abnormal, the second node generates a root cause code for the abnormal request process and transmits it to the first node through the return-to-source process in the second node.

[0103] In one embodiment, the streaming media determination module 310 is further configured to:

[0104] Adding encapsulation data in a preset format to the target streaming media in the target node to obtain the streaming media to be transmitted;

[0105] The routing module 330 is also used for:

[0106] Encapsulating the root cause code and the node information of the root cause generation node into a streaming media data packet according to the encapsulation data in the preset format, wherein the root cause generation node is a distributed node that generates the root cause code;

[0107] According to the routing path from the abnormal node to the edge node, the node information of each distributed node is sequentially added in a chain to the streaming media data packet to generate a root cause route.

[0108] like Figure 7 As shown, an embodiment of the present application provides a computer device, including a processor 711, a communication interface 712, a memory 713 and a communication bus 714, wherein the processor 711, the communication interface 712, and the memory 713 communicate with each other through the communication bus 714;

[0109] Memory 713, used for storing computer programs;

[0110] The processor 711 is configured to implement the streaming media transmission anomaly detection method provided by any one of the aforementioned method embodiments when executing the program stored in the memory 713 .

[0111] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0112] In one embodiment, the streaming media transmission anomaly detection device provided by the present application can be implemented in the form of a computer program. Figure 7 The computer device is shown in FIG. 1 . The memory of the computer device can store various program modules constituting the streaming media transmission anomaly detection device, for example, Figure 6 The streaming media determination module 310, the generation module 320, the routing module 330 and the abnormal node determination module 340 are shown. The computer program composed of various program modules enables the processor to execute the streaming media transmission abnormality detection method of each embodiment of the present application described in this specification.

[0113] Figure 7The computer device shown can be Figure 6 The streaming media determination module 310 in the streaming media transmission anomaly detection device shown in the figure determines the streaming media to be transmitted in the target node, wherein the target node is a distributed node for providing the streaming media to be transmitted. The computer device can execute the transmission of the streaming media to be transmitted from the target node to the edge node through the generation module 320, and in the process of transmitting the streaming media to be transmitted from the target node to the edge node, generate a corresponding root cause code for the abnormal type of the abnormal node with transmission abnormality. The computer device can execute the generation of the root cause route according to the routing information of the root cause code to the edge node through the routing module 330. The computer device can execute the determination of the abnormal node for the transmission abnormality of the streaming media to be transmitted according to the root cause code and the root cause route through the abnormal node determination module 340.

[0114] An embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the streaming media transmission anomaly detection method provided by any of the aforementioned method embodiments is implemented.

[0115] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0116] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a general hardware platform, and of course, by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the streaming media transmission anomaly detection method described in each embodiment or some parts of the embodiment.

[0117] It should be understood that the terms used herein are only for the purpose of describing specific example embodiments and are not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms "one", "an" and "said" as used herein may also be meant to include plural forms. The terms "include", "comprise", "contain", and "have" are inclusive, and therefore specify the existence of stated features, steps, operations, elements and / or parts, but do not exclude the existence or addition of one or more other features, steps, operations, elements, parts, and / or combinations thereof. The method steps, processes, and operations described herein are not interpreted as necessarily requiring them to be performed in the specific order described or illustrated, unless the execution order is clearly indicated. It should also be understood that additional or alternative can be used.

[0118] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A method for detecting abnormalities in streaming media transmission, characterized in that: The method comprises: Determining the streaming media to be transmitted in the target node, wherein the target node is a distributed node for providing the streaming media to be transmitted; Transmitting the streaming media to be transmitted from the target node to the edge node, and in the process of transmitting the streaming media to be transmitted from the target node to the edge node, generating a corresponding root cause code for the abnormal type of the abnormal node with abnormal transmission; Generate a root cause route according to the routing information of the root cause code route to the edge node; An abnormal node causing abnormal transmission of the streaming media to be transmitted is determined according to the root cause code and the root cause route.

2. The method for detecting abnormalities in streaming media transmission according to claim 1, characterized in that: The step of determining the streaming media to be transmitted in the target node includes: When the target node receives a stream pull request, the streaming media in the target node that hits the stream pull request is determined as the streaming media to be transmitted; When the target node is an edge node and the target node receives a streaming request, the streaming media to be pushed received by the target node according to the streaming request is determined as the streaming media to be transmitted.

3. The method for detecting abnormalities in streaming media transmission according to claim 2, characterized in that: When the target node receives the stream pulling request, determining the streaming media in the target node that hits the stream pulling request as the streaming media to be transmitted includes: When the target node receives a stream pull request, the stream pull request is assigned to a target request process in the target node, wherein the target request process is any request process in the target node; When the target request process does not hit the stream pull request, hashing the stream pull request to the target back-to-source process in the target node, wherein the target back-to-source process is any back-to-source process in the target node; When the target back-to-source process hits the stream pull request, the streaming media of which the target back-to-source process hits the stream pull request is determined as the streaming media to be transmitted.

4. The method for detecting abnormalities in streaming media transmission according to claim 3, characterized in that: When the target request process does not hit the stream pull request, after hashing the stream pull request to the target back-to-source process in the target node, the method further includes: When the target back-to-source process misses the stream pull request, the stream pull request is uploaded to the target upper-level node corresponding to the target node, and the target upper-level node is used to perform the corresponding request processing task according to the step of allocating the stream pull request to the target request process in the target node when the target node receives the stream pull request.

5. The method for detecting abnormalities in streaming media transmission according to claim 2, characterized in that: The streaming media to be transmitted is transmitted from the target node to the edge node, and in the process of transmitting the streaming media to be transmitted from the target node to the edge node, a corresponding root cause code is generated according to the abnormal type of the abnormal node with abnormal transmission, including: When the target node is an edge node and the target node receives a streaming request, the streaming media to be transmitted is transmitted from the target node to the client source station; In the process of transmitting the streaming media to be transmitted from the target node to the client source station, when the target intermediate node in the transmission path from the target node to the client source station receives the pull stream request corresponding to the push stream request and hits the pull stream request, the streaming media to be transmitted is transmitted from the target intermediate node to the edge node; In the process of transmitting the streaming media to be transmitted from the target node to the edge node, a corresponding root cause code is generated according to the abnormal type of the abnormal node with abnormal transmission.

6. The method for detecting abnormalities in streaming media transmission according to claim 1, characterized in that: In the process of transmitting the streaming media to be transmitted from the target node to the edge node, generating a corresponding root cause code for the abnormal type of the abnormal node with abnormal transmission, including: In the process of transmitting the streaming media to be transmitted from the target node to the edge node, each distributed node on the transmission link from the target node to the edge node monitors the communication status of the adjacent node and the working status of the request process in each distributed node; When a first node monitors that a communication state of an adjacent second node is abnormal, the first node generates a root cause code for the abnormal second node, wherein the first node is any distributed node in the transmission link, and the second node is an adjacent node for transmitting the streaming media to be transmitted to the first node; When the second node monitors that the working status of at least one request process inside is abnormal, the second node generates a root cause code for the abnormal request process and transmits it to the first node through the return-to-source process in the second node.

7. The method for detecting abnormalities in streaming media transmission according to claim 1, characterized in that: Determine the streaming media to be transmitted in the target node, including: Adding encapsulation data in a preset format to the target streaming media in the target node to obtain the streaming media to be transmitted; Generating a root cause route according to the routing information of the root cause code route to the edge node, including: Encapsulating the root cause code and the node information of the root cause generation node into a streaming media data packet according to the encapsulation data in the preset format, wherein the root cause generation node is a distributed node that generates the root cause code; According to the routing path from the abnormal node to the edge node, the node information of each distributed node is sequentially added in a chain to the streaming media data packet to generate a root cause route.

8. A streaming media transmission anomaly detection device, characterized in that: The device comprises: A streaming media determination module, used to determine the streaming media to be transmitted in a target node, wherein the target node is a distributed node used to provide the streaming media to be transmitted; A generating module, configured to transmit the streaming media to be transmitted from the target node to the edge node, and in the process of transmitting the streaming media to be transmitted from the target node to the edge node, generate a corresponding root cause code for the abnormal type of the abnormal node with abnormal transmission; A routing module, used for generating a root cause route according to the routing information of the root cause code route to the edge node; The abnormal node determination module is used to determine the abnormal node for the abnormal transmission of the streaming media to be transmitted according to the root cause code and the root cause route.

9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the streaming media transmission anomaly detection method described in any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the streaming media transmission anomaly detection method according to any one of claims 1 to 7 is implemented.