Abnormity processing method and device for edge computing node in live broadcast system

By detecting and processing edge computing node anomalies, the problem of stream frame loss and lag caused by node anomalies in the live broadcast system is solved, improving the stability of the live broadcast system and the audience experience.

CN118828068APending Publication Date: 2024-10-22SHANGHAI BILIBILI TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411018376.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-26
Publication Date
2024-10-22

AI Technical Summary

Technical Problem

In a live broadcast system, abnormalities in edge computing nodes can cause frame drops, freezes, or black screens in the live stream, affecting the audience's viewing experience. It is difficult for existing technologies to effectively handle and solve such problems.

Method used

By detecting whether the edge computing node meets the abnormal triggering conditions, if so, it will be set to an unschedulable state, and the live stream will be pushed to the target edge computing node to replace the abnormal node to ensure the stability and availability of the live stream.

Benefits of technology

It achieves timely detection and processing of edge computing node anomalies, reduces the impact on anchors and viewers, improves the availability and stability of the live broadcast system, and ensures the continuity and quality of the live stream.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118828068A_ABST
    Figure CN118828068A_ABST
Patent Text Reader

Abstract

The invention provides an exception handling method and device for an edge computing node in a live broadcast system, a computer readable storage medium and a program product. The method comprises the following steps: detecting whether an edge computing node meets a node exception triggering condition or not; and if the exception triggering condition is met, processing the edge computing node to eliminate the influence on the live broadcast system caused by the exception of the node. According to the application, whether the edge computing node meets the node exception triggering condition is detected, and if the edge computing node meets the node exception triggering condition, the edge computing node is processed to eliminate the influence of the node exception on the live broadcast system, so that the exception of the edge computing node can be actively found, and the live broadcast system can be timely started after the exception occurs. According to the method, the node abnormity is processed to eliminate the influence of the node abnormity on the live broadcast system, the loss is reduced in time, the anchor number and the audience number influenced by the node abnormity are reduced, the anchor and audience experience is improved, and the availability and the stability of the edge computing system are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of live broadcast technology, and in particular to an exception handling method, device, computer-readable storage medium and program product for edge computing nodes in a live broadcast system. Background Art

[0002] This section is intended to provide a background or context to the embodiments of the application that are recited in the claims. The description herein is not admitted to be prior art by inclusion in this section.

[0003] In the current live broadcast architecture, Figure 1 As shown, the anchor uses the broadcast tool to obtain the push stream address from the scheduling system and pushes the live stream to the edge computing node (in a specific embodiment, the edge computing node can be located in the cloud). The edge computing node will push the live stream to the edge computing recording, screenshot and other service nodes to record the content. At the same time, the transcoding system will pull the source stream from the edge computing node for encoding and decoding and output the transcoded stream. The audience uses the player to pull the source stream and transcoded stream from the downstream CDN back to the edge computing node or transcoding system to watch, forming a full-link process of the live stream. Live broadcasting is a long-link process. If the edge computing node, transcoding node and other modules are unavailable, the live stream served on the node will be lost, which will cause the live broadcast room to freeze or black screen, affecting the audience's viewing experience. Summary of the invention

[0004] Multiple aspects of the present application provide an exception handling method, device, computer-readable storage medium and program product for edge computing nodes in a live broadcast system, so as to solve the technical problem of exceptions occurring in edge computing nodes in the live broadcast system.

[0005] In one aspect of the present application, a method for handling exceptions of edge computing nodes in a live broadcast system is provided, comprising:

[0006] Detect whether the edge computing node meets the node abnormality triggering conditions;

[0007] If the abnormal triggering condition is met, the edge computing node is processed to eliminate the impact of the node abnormality on the live broadcast system.

[0008] In another aspect of the present application, a device for handling exceptions of edge computing nodes in a live broadcast system is provided, the device comprising:

[0009] A detection module is used to detect whether the edge computing node meets the node abnormality triggering conditions;

[0010] The processing module is used to process the edge computing node if the abnormal trigger condition is met to eliminate the impact of the node abnormality on the live broadcast system.

[0011] In another aspect of the present application, an electronic device is provided, the electronic device comprising:

[0012] at least one processor; and

[0013] a memory communicatively connected to the at least one processor; wherein,

[0014] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the above-mentioned exception handling method for edge computing nodes in a live broadcast system.

[0015] In another aspect of the present application, a computer-readable storage medium is provided, on which computer program instructions are stored. The computer program instructions can be executed by a processor to implement the exception handling method for edge computing nodes in a live broadcast system.

[0016] In another aspect of the present application, a computer program product is provided, including a computer program, which, when executed by a processor, implements the exception handling method for an edge computing node in a live broadcast system.

[0017] In the solution provided in the embodiment of the present application, by detecting whether the edge computing node meets the node abnormality trigger condition, if the abnormality trigger condition is met, the edge computing node is processed to eliminate the impact of the node abnormality on the live broadcast system, thereby achieving the ability to actively and timely discover the abnormality of the edge computing node, and after the abnormality occurs, it is processed to eliminate the impact of the node abnormality on the live broadcast system, timely reduce losses, reduce the number of anchors and viewers affected by the node abnormality, improve the experience of the anchors and viewers, and improve the availability and stability of the edge computing system. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0019] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:

[0020] Figure 1 A schematic diagram of the existing live broadcast architecture provided for this application;

[0021] Figure 2 A flowchart of an exception handling method for edge computing nodes in a live broadcast system provided by an embodiment of the present application;

[0022] Figure 3 A schematic diagram of the device structure of an exception handling device for an edge computing node in a live broadcast system provided by another embodiment of the present application;

[0023] Figure 4 A schematic diagram of the structure of a device suitable for implementing the solution in the embodiment of the present application.

[0024] The same or similar reference numerals in the drawings represent the same or similar components. DETAILED DESCRIPTION

[0025] 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 creative work are within the scope of protection of this application.

[0026] In a typical configuration of the present application, the terminal and the equipment of the service network each include one or more processors (CPU), input / output interface, network interface and memory.

[0027] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0028] Computer readable storage media include permanent and non-permanent, removable and non-removable media, and can be implemented by any method or technology to store information. Information can be computer program instructions, data structures, program modules 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 (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape 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.

[0029] The present application provides an exception handling method for edge computing nodes in a live broadcast system, the method comprising:

[0030] Detect whether the edge computing node meets the node abnormality triggering conditions;

[0031] If the abnormal triggering condition is met, the edge computing node is processed to eliminate the impact of the node abnormality on the live broadcast system.

[0032] In actual scenarios, the execution subject of the method can be a network device, or a device formed by integrating a user device and a network device through a network, or an application running on the above device. The user device includes but is not limited to various terminal devices such as computers, mobile phones, tablet computers, smart watches, and bracelets. The network device includes but is not limited to network hosts, single network servers, multiple network server sets, or cloud computing-based computer sets, which can be used to implement some processing functions when setting an alarm. Here, the cloud is composed of a large number of hosts or network servers based on cloud computing, where cloud computing is a type of distributed computing, a virtual computer composed of a group of loosely coupled computer sets.

[0033] Here, in order to better understand the present application, some terms in the present application are described as follows:

[0034] Live streaming: A data stream that transmits audio and video content in real time. It is real-time and interactive. The live streaming process is a long link. Unless the host actively disconnects the stream, the live streaming will continue.

[0035] Live Edge Computing: A technology that pushes live streaming processing and distribution to the edge of the network. It combines edge computing and live streaming to improve the real-time live streaming experience and reduce the impact of latency and network congestion.

[0036] Edge computing nodes: They are an important part of the edge computing architecture. They are located at the edge of the network and are used to perform computing tasks, process data, and provide services. They are usually composed of servers.

[0037] Frame rate: The number of video frames transmitted per second by the video transmission system during live broadcasting. Common live broadcast frame rates include 30fps and 60fps, which determine the smoothness and viewing quality of the video image.

[0038] Bit rate: refers to the amount of data transmitted per second during live video broadcasting, usually expressed in bit rate, in kilobits per second or megabits per second. It determines the clarity and smoothness of the video. A higher bit rate can provide higher quality video, but it also requires a larger bandwidth for transmission.

[0039] Encoder SEI: refers to the enhancement information in the H.264 or H.265 / HEVC encoder, which is a mechanism for adding additional information to the video stream.

[0040] Figure 2 The processing flow of an exception handling method for edge computing nodes in a live broadcast system provided by an embodiment of the present application is shown, and the method at least includes the following processing steps S201 and S202. Specifically:

[0041] Step S201, detecting whether the edge computing node meets the node abnormality triggering condition;

[0042] Here, the node abnormality triggering condition includes but is not limited to at least one of the following:

[0043] - The video related information when the video stream data packet flows out of the edge computing node is inconsistent with the video related information when it flows into the edge computing node;

[0044] -Data loss occurs in the external network of the edge computing node.

[0045] Here, the video related information includes but is not limited to the bit rate and frame rate of the video stream data packet. Data loss in the external network of the edge computing node includes but is not limited to packet loss and frame loss.

[0046] For example, for a live broadcast system, it is assumed that it has multiple edge computing nodes such as A, B, C, etc. Here, it should be noted that the edge computing nodes and anchors in the live broadcast system are in a one-to-one correspondence. If it is detected that for edge computing node A, the bit rate or frame rate of the video stream data packet when it flows out of edge computing node A is inconsistent with the bit rate or frame rate when it flows into edge computing node A, the frame rate of the video stream data packet is used as an example to illustrate, such as frame loss, or the frame loss rate exceeds a predetermined threshold, or the number of frame losses exceeds a predetermined value within a predetermined time range, or the number of video stream data packets with frame loss accounts for more than a predetermined proportion of the total number of video stream data packets passing through the edge video node A, then it can be judged that edge computing node A meets the node abnormality trigger condition, that is, edge computing node A is an abnormal node. Here, those skilled in the art should understand that in a specific embodiment, it is also applicable to replace the frame rate in this embodiment with the bit rate.

[0047] In another embodiment, the present application also includes the following steps: setting a traffic statistics component of the edge computing node to count the incoming bit rate and incoming frame rate of the video stream data packets flowing into the edge computing node; when the video stream data packets flowing into the edge computing node flow out of the edge computing node, obtaining their outgoing bit rate and outgoing frame rate; comparing the incoming bit rate with the outgoing bit rate, and comparing the incoming frame rate with the outgoing frame rate to determine whether the two are consistent.

[0048] Specifically, statistics are collected on the pull-in and push-out of video stream data packets (that is, live streams) on edge computing nodes. A single stream is used as the minimum statistical unit. The bit rate and frame rate of a live stream when it enters the node are recorded and organized in the following fixed format:

[0049]

[0050] This information is inserted into the SEI (Supplemental Enhancement Information) field in the video stream data packet, where fps represents the frame rate and bw represents the bit rate. After the video stream data packet circulates inside the edge computing node, when it is about to leave the node, the bit rate and frame rate information of the current live stream is obtained, and the bit rate and frame rate information when entering the node in the SEI is parsed for comparison. If the frame loss rate exceeds the predetermined threshold, it is recorded that the live stream has data loss and frame loss on the edge computing node. If the live stream on the node has a large-scale frame loss phenomenon or the live stream with frame loss reaches a certain proportion, it is considered that the edge computing node is abnormal, and the traffic statistics unit will automatically report the abnormal edge computing node to the control service of the central computer room and identify the node as abnormal.

[0051] For another example, if the node abnormality triggering condition includes data loss in the external network of the edge computing node, at this time, it can be resolved by dialing and testing in the central computer room. The central computer room sets a scheduled task to send network requests for data packets to the edge computing nodes in normal service at a fixed frequency, and checks the integrity of the returned data packets. If there are continuous requests to the receiving nodes that are blocked or the continuously returned data packets are incomplete, it is determined that the edge computing node has an abnormality.

[0052] Here, it should be noted that in step S201, the present application can actively detect whether the edge computing node meets the node abnormality trigger condition on a periodic basis, or it can detect whether it meets the node abnormality trigger condition based on the request of the edge computing node.

[0053] Step S202: If the abnormal triggering condition is met, the edge computing node is processed to eliminate the impact of the node abnormality on the live broadcast system.

[0054] Specifically, the processing of the edge computing node includes: reporting the edge computing node to the live broadcast scheduling system, so that the live broadcast scheduling system sets the edge computing node to an unschedulable state, that is, after the abnormal edge computing node is set to an unschedulable state, it cannot be used by a new anchor.

[0055] Here, the present application processes abnormal edge computing nodes by linking the live broadcast scheduling system, and automatically sets the abnormal edge computing nodes to an unschedulable state, ensuring that no new live broadcast traffic will be scheduled to the abnormal nodes, solving the problem of incremental live broadcast streams, avoiding an increase in the number of anchors affected by abnormal nodes, and minimizing the impact on anchor broadcasts and user viewing.

[0056] Optionally, the present application further includes the following steps: determining a target edge computing node corresponding to the edge computing node;

[0057] The processing of the edge computing node includes:

[0058] The live stream to be passed through the edge computing node is pushed to the target edge computing node, so that the target edge computing node replaces the edge computing node to push the live stream.

[0059] For example, continuing with the previous example, for an abnormal edge computing node A, if its corresponding target edge computing node is determined to be A', the live stream that is intended to pass through edge computing node A can be pushed to the target edge computing node A', so that the target edge computing node A' replaces edge computing node A to push the live stream.

[0060] Here, when an abnormality occurs in an edge computing node, the present application pushes the live stream to a new edge computing node, thereby solving the problem of live stream freeze and frame drops on the abnormal node. The one-click switching operation can quickly solve the problem and ensure that the existing live stream on the abnormal node will no longer experience freezes, frame drops, and other problems. It greatly improves the experience of the host pushing the stream and the user watching, as well as the automated processing flow, which can also reduce the mental burden of R&D personnel and improve the availability and stability of the edge computing system.

[0061] Optionally, in another embodiment, determining a target edge computing node corresponding to the edge computing node includes:

[0062] Determine a first candidate node list, wherein the operator to which the nodes in the first candidate node list belong is the same as the operator at the location of the anchor corresponding to the edge computing node, and the cloud resource vendor to which the nodes in the candidate node list belong is different from the cloud resource vendor to which the edge computing node belongs;

[0063] According to the proximity principle, the target edge computing node is screened out from the first candidate node list.

[0064] For example, continuing with the previous example, for an abnormal edge computing node A, we can first find all edge computing nodes with the same operator as the anchor location corresponding to the node. For example, if we find 10 edge computing nodes, namely, edge computing nodes A1, A2, A3, A4, A5, A6, A7, A8, A9 and A10, and only node A3 belongs to the same cloud resource vendor as edge computing node A, and the cloud resource vendors of the remaining nodes are different from those of edge computing node A, then nodes A1, A2, A4-A10 can be used as nodes in the first candidate node list; assuming that among these 9 nodes, node A1 is closest to node A, then we can select the node closest to edge computing node A, that is, node A1, from the first candidate node list as the target edge computing node based on the principle of proximity. Here, cloud resource vendors refer to vendors that provide live broadcast resources.

[0065] Optionally, screening out a second candidate node from the first candidate node list;

[0066] According to the proximity principle, the target edge computing node is selected from the first candidate node list, including:

[0067] According to the proximity principle, the target edge computing node is screened out from the second candidate node list.

[0068] Specifically, selecting a second candidate node from the first candidate node list includes:

[0069] Selecting a second candidate node from the first candidate node list according to at least one of the following:

[0070] - selecting a second candidate node from the first candidate node list according to the real-time resource usage information of the nodes in the first candidate node list;

[0071] - Filter out a second candidate node from the first candidate node list according to historical unavailable information of nodes in the first candidate node list.

[0072] For example, continuing with the above example, there are 9 nodes in the first candidate node list: A1, A2, A4-A10, then the second candidate node can be screened out from the first candidate node list according to the real-time resource usage information of the nodes in the first candidate node list. Here, the real-time resource usage information of the node includes but is not limited to the usage of dimensions such as node CPU, memory, bandwidth, disk, etc. When screening the nodes in the first candidate node list according to the real-time resource usage information of the node, for example, the nodes whose resource usage in various dimensions such as node CPU, memory, bandwidth, disk, etc. is less than 50% can be used as the second candidate nodes, such as the screened second candidate nodes A4, A6, A7 and A8; the health score of each node can also be calculated according to indicators such as the resource usage in various dimensions such as node CPU, memory, bandwidth, disk, etc., and then, the weighted average method is used to standardize and weight different indicators to obtain the final health score of the node, and then, according to the health score, the nodes whose health score is greater than the predetermined threshold are screened out from the first candidate node list as the second candidate nodes.

[0073] Here, the present application screens the nodes in the first candidate node list according to the real-time resource usage information of the nodes to ensure that there will be no streaming jitter due to resource bottlenecks, thereby affecting the anchor and the audience.

[0074] For another example, continuing with the above example, there are 9 nodes in the first candidate node list: A1, A2, A4-A10, then the second candidate node can be screened out from the first candidate node list based on the historical unavailable information of the nodes in the first candidate node list. Here, the historical unavailable information of the node includes but is not limited to the number of jitters, failures, anomalies, etc. that have occurred in the history of the node. When the nodes in the first candidate node list are screened based on the historical unavailable information of the node, the node with the least number of occurrences of the historical unavailable information can be used as the second candidate node, such as screening out the second candidate nodes A4 and A8.

[0075] In another embodiment, the present application may first screen the nodes in the first candidate node list based on the real-time resource usage information of the nodes, and then screen the nodes in the first candidate node list again based on the historical unavailable information of the nodes. For example, based on the real-time resource usage information of the nodes, nodes A4, A6, A7 and A8 are first screened out, and then based on the historical unavailable information of the nodes, A4 and A6 are screened out. Therefore, the nodes in the second candidate node list include nodes A4 and A6.

[0076] Next, the present application selects the target edge computing node from the second candidate node list according to the proximity principle. For example, continuing with the above example, the nodes in the second candidate node list include nodes A4 and A6. Assuming that node A4 is closest to node A, then according to the proximity principle, the node closest to edge computing node A, i.e. node A4, is selected from the second candidate node list as the target edge computing node.

[0077] In addition, the embodiment of the present application also provides an exception handling device for edge computing nodes in a live broadcast system, the structure of which is as follows: Figure 3 As shown, the exception handling device includes a detection module 301 and a processing module 302. Specifically, the detection module 301 is used to detect whether the edge computing node meets the node abnormality triggering condition; the processing module 302 is used to process the edge computing node if the abnormality triggering condition is met to eliminate the impact of the node abnormality on the live broadcast system.

[0078] Specifically, the detection module 301 is used to detect whether the edge computing node meets the node abnormality triggering condition;

[0079] Here, the node abnormality triggering condition includes but is not limited to at least one of the following:

[0080] - The video related information when the video stream data packet flows out of the edge computing node is inconsistent with the video related information when it flows into the edge computing node;

[0081] -Data loss occurs in the external network of the edge computing node.

[0082] Here, the video related information includes but is not limited to the bit rate and frame rate of the video stream data packet. Data loss in the external network of the edge computing node includes but is not limited to packet loss and frame loss.

[0083] For example, for a live broadcast system, it is assumed that it has multiple edge computing nodes such as A, B, C, etc. Here, it should be noted that the edge computing nodes and anchors in the live broadcast system are in a one-to-one correspondence. If it is detected that for edge computing node A, the bit rate or frame rate of the video stream data packet when it flows out of edge computing node A is inconsistent with the bit rate or frame rate when it flows into edge computing node A, the frame rate of the video stream data packet is used as an example to illustrate, such as frame loss, or the frame loss rate exceeds a predetermined threshold, or the number of frame losses exceeds a predetermined value within a predetermined time range, or the number of video stream data packets with frame loss accounts for more than a predetermined proportion of the total number of video stream data packets passing through the edge video node A, then it can be judged that edge computing node A meets the node abnormality trigger condition, that is, edge computing node A is an abnormal node. Here, those skilled in the art should understand that in a specific embodiment, it is also applicable to replace the frame rate in this embodiment with the bit rate.

[0084] In another embodiment, the exception handling device of the present application also includes a judgment module (not shown). Specifically, the judgment module is used to: set the traffic statistics component of the edge computing node to count the incoming bit rate and incoming frame rate of the video stream data packet flowing into the edge computing node; when the video stream data packet flowing into the edge computing node flows out of the edge computing node, obtain its outgoing bit rate and outgoing frame rate; compare the incoming bit rate with the outgoing bit rate, and compare the incoming frame rate with the outgoing frame rate to determine whether the two are consistent.

[0085] Specifically, statistics are collected on the pull-in and push-out of video stream data packets (that is, live streams) on edge computing nodes. A single stream is used as the minimum statistical unit. The bit rate and frame rate of a live stream when it enters the node are recorded and organized in the following fixed format:

[0086]

[0087] This information is inserted into the SEI (Supplemental Enhancement Information) field in the video stream data packet, where fps represents the frame rate and bw represents the bit rate. After the video stream data packet circulates inside the edge computing node, when it is about to leave the node, the bit rate and frame rate information of the current live stream is obtained, and the bit rate and frame rate information when entering the node in the SEI is parsed for comparison. If the frame loss rate exceeds the predetermined threshold, it is recorded that the live stream has data loss and frame loss on the edge computing node. If the live stream on the node has a large-scale frame loss phenomenon or the live stream with frame loss reaches a certain proportion, it is considered that the edge computing node is abnormal, and the traffic statistics unit will automatically report the abnormal edge computing node to the control service of the central computer room and identify the node as abnormal.

[0088] For another example, if the node abnormality triggering condition includes data loss in the external network of the edge computing node, at this time, it can be resolved by dialing and testing in the central computer room. The central computer room sets a scheduled task to send network requests for data packets to the edge computing nodes in normal service at a fixed frequency, and checks the integrity of the returned data packets. If there are continuous requests to the receiving nodes that are blocked or the continuously returned data packets are incomplete, it is determined that the edge computing node has an abnormality.

[0089] Here, it should be noted that the present application can actively detect whether the edge computing node meets the node abnormality trigger condition on a periodic basis, or can detect whether the edge computing node meets the node abnormality trigger condition based on the request of the edge computing node.

[0090] The processing module 302 is used to process the edge computing node if the abnormal trigger condition is met to eliminate the impact of the node abnormality on the live broadcast system.

[0091] Specifically, the processing of the edge computing node includes: reporting the edge computing node to the live broadcast scheduling system, so that the live broadcast scheduling system sets the edge computing node to an unschedulable state, that is, after the abnormal edge computing node is set to an unschedulable state, it cannot be used by a new anchor.

[0092] Here, the present application processes abnormal edge computing nodes by linking the live broadcast scheduling system, and automatically sets the abnormal edge computing nodes to an unschedulable state, ensuring that no new live broadcast traffic will be scheduled to the abnormal nodes, solving the problem of incremental live broadcast streams, avoiding an increase in the number of anchors affected by abnormal nodes, and minimizing the impact on anchor broadcasts and user viewing.

[0093] Optionally, the exception handling device of the present application further includes a determination module (not shown). Specifically, the determination module is used to determine the target edge computing node corresponding to the edge computing node;

[0094] The processing of the edge computing node includes:

[0095] The live stream to be passed through the edge computing node is pushed to the target edge computing node, so that the target edge computing node replaces the edge computing node to push the live stream.

[0096] For example, continuing with the previous example, for an abnormal edge computing node A, if its corresponding target edge computing node is determined to be A', the live stream that is intended to pass through edge computing node A can be pushed to the target edge computing node A', so that the target edge computing node A' replaces edge computing node A to push the live stream.

[0097] Here, when an abnormality occurs in an edge computing node, the present application pushes the live stream to a new edge computing node, thereby solving the problem of live stream freeze and frame drops on the abnormal node. The one-click switching operation can quickly solve the problem and ensure that the existing live stream on the abnormal node will no longer experience freezes, frame drops, and other problems. It greatly improves the experience of the host pushing the stream and the user watching, as well as the automated processing flow, which can also reduce the mental burden of R&D personnel and improve the availability and stability of the edge computing system.

[0098] Optionally, in another embodiment, determining a target edge computing node corresponding to the edge computing node includes:

[0099] Determine a first candidate node list, wherein the operator to which the nodes in the first candidate node list belong is the same as the operator at the location of the anchor corresponding to the edge computing node, and the cloud resource vendor to which the nodes in the candidate node list belong is different from the cloud resource vendor to which the edge computing node belongs;

[0100] According to the proximity principle, the target edge computing node is screened out from the first candidate node list.

[0101] For example, continuing with the previous example, for an abnormal edge computing node A, we can first find all edge computing nodes with the same operator as the anchor location corresponding to the node. For example, if we find 10 edge computing nodes, namely, edge computing nodes A1, A2, A3, A4, A5, A6, A7, A8, A9 and A10, and only node A3 belongs to the same cloud resource vendor as edge computing node A, and the cloud resource vendors of the remaining nodes are different from those of edge computing node A, then nodes A1, A2, A4-A10 can be used as nodes in the first candidate node list; assuming that among these 9 nodes, node A1 is closest to node A, then we can select the node closest to edge computing node A, that is, node A1, from the first candidate node list as the target edge computing node based on the principle of proximity. Here, cloud resource vendors refer to vendors that provide live broadcast resources.

[0102] Optionally, screening out a second candidate node from the first candidate node list;

[0103] According to the proximity principle, the target edge computing node is selected from the first candidate node list, including:

[0104] According to the proximity principle, the target edge computing node is screened out from the second candidate node list.

[0105] Specifically, selecting a second candidate node from the first candidate node list includes:

[0106] Selecting a second candidate node from the first candidate node list according to at least one of the following:

[0107] - selecting a second candidate node from the first candidate node list according to the real-time resource usage information of the nodes in the first candidate node list;

[0108] - Filter out a second candidate node from the first candidate node list according to historical unavailable information of nodes in the first candidate node list.

[0109] For example, continuing with the above example, there are 9 nodes in the first candidate node list: A1, A2, A4-A10, then the second candidate node can be screened out from the first candidate node list according to the real-time resource usage information of the nodes in the first candidate node list. Here, the real-time resource usage information of the node includes but is not limited to the usage of dimensions such as node CPU, memory, bandwidth, disk, etc. When screening the nodes in the first candidate node list according to the real-time resource usage information of the node, for example, the nodes whose resource usage in various dimensions such as node CPU, memory, bandwidth, disk, etc. is less than 50% can be used as the second candidate nodes, such as the screened second candidate nodes A4, A6, A7 and A8; the health score of each node can also be calculated according to indicators such as the resource usage in various dimensions such as node CPU, memory, bandwidth, disk, etc., and then, the weighted average method is used to standardize and weight different indicators to obtain the final health score of the node, and then, according to the health score, the nodes whose health score is greater than the predetermined threshold are screened out from the first candidate node list as the second candidate nodes.

[0110] Here, the present application screens the nodes in the first candidate node list according to the real-time resource usage information of the nodes to ensure that streaming jitters will not occur again due to resource bottlenecks, affecting the anchor and the audience.

[0111] For another example, continuing with the above example, there are 9 nodes in the first candidate node list: A1, A2, A4-A10, then the second candidate node can be screened out from the first candidate node list based on the historical unavailable information of the nodes in the first candidate node list. Here, the historical unavailable information of the node includes but is not limited to the number of jitters, failures, anomalies, etc. that have occurred in the history of the node. When the nodes in the first candidate node list are screened based on the historical unavailable information of the node, the node with the least number of occurrences of the historical unavailable information can be used as the second candidate node, such as screening out the second candidate nodes A4 and A8.

[0112] In another embodiment, the present application may first screen the nodes in the first candidate node list based on the real-time resource usage information of the nodes, and then screen the nodes in the first candidate node list again based on the historical unavailable information of the nodes. For example, based on the real-time resource usage information of the nodes, nodes A4, A6, A7 and A8 are first screened out, and then based on the historical unavailable information of the nodes, A4 and A6 are screened out. Therefore, the nodes in the second candidate node list include nodes A4 and A6.

[0113] Next, the present application selects the target edge computing node from the second candidate node list according to the proximity principle. For example, continuing with the above example, the nodes in the second candidate node list include nodes A4 and A6. Assuming that node A4 is closest to node A, then according to the proximity principle, the node closest to edge computing node A, i.e. node A4, is selected from the second candidate node list as the target edge computing node.

[0114] Based on the same inventive concept, an electronic device is also provided in an embodiment of the present application, and the method corresponding to the electronic device may be the model training method and the traffic screening method for traffic screening in the aforementioned embodiment, and its principle of solving the problem is similar to that of the method. The electronic device provided in an embodiment of the present application includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the methods and / or technical solutions of the aforementioned multiple embodiments of the present application.

[0115] The electronic device may be a network device, or a device formed by integrating a user device and a network device through a network, or may be an application running on the above device. The user device includes but is not limited to various terminal devices such as computers, mobile phones, tablet computers, smart watches, and bracelets. The network device includes but is not limited to network hosts, single network servers, multiple network server sets, or cloud computing-based computer sets, which can be used to implement some processing functions when setting an alarm. Here, the cloud is composed of a large number of hosts or network servers based on cloud computing, where cloud computing is a type of distributed computing, a virtual computer composed of a group of loosely coupled computer sets.

[0116] Figure 4The structure of a device suitable for implementing the method and / or technical solution in the embodiment of the present application is shown, and the device 1200 includes a central processing unit (CPU, Central Processing Unit) 1201, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM, Read Only Memory) 1202 or the program loaded from the storage part 1208 to the random access memory (RAM, Random Access Memory) 1203. In RAM1203, various programs and data required for system operation are also stored. CPU 1201, ROM 1202 and RAM 1203 are connected to each other through bus 1204. Input / output (I / O, Input / Output) interface 1205 is also connected to bus 1204.

[0117] The following components are connected to the I / O interface 1205: an input section 1206 including a keyboard, a mouse, a touch screen, a microphone, an infrared sensor, etc.; an output section 1207 including a cathode ray tube (CRT), a liquid crystal display (LCD), an LED display, an OLED display, etc., and a speaker, etc.; a storage section 1208 including one or more computer-readable media such as a hard disk, an optical disk, a magnetic disk, a semiconductor memory, etc.; and a communication section 1209 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 1209 performs communication processing via a network such as the Internet.

[0118] In particular, the methods and / or embodiments in the embodiments of the present application may be implemented as computer software programs. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes program code for executing the method shown in the flowchart. When the computer program is executed by the central processing unit (CPU) 1201, the above functions defined in the method of the present application are executed.

[0119] Another embodiment of the present application further provides a computer-readable storage medium having computer program instructions stored thereon, wherein the computer program instructions can be executed by a processor to implement the methods and / or technical solutions of any one or more embodiments of the present application described above.

[0120] Specifically, the present embodiment may adopt any combination of one or more computer-readable media. The computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device, or device.

[0121] Computer readable signal media may include a data signal propagated in baseband or as part of a carrier wave, which carries a computer readable program code. Such propagated data signals may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the above. Computer readable signal media may also be any computer readable medium other than a computer readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0122] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

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

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

[0125] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0126] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or page components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0127] 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 units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0128] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0129] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform some steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program codes.

[0130] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

[0131] In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in a device claim can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.

Claims

1. A method for handling exceptions at edge computing nodes in a live broadcast system, wherein: The method comprises: Detect whether the edge computing node meets the node abnormality triggering conditions; If the abnormal triggering condition is met, the edge computing node is processed to eliminate the impact of the node abnormality on the live broadcast system.

2. The exception handling method according to claim 1, wherein: The node abnormality triggering condition includes at least one of the following: - The video related information when the video stream data packet flows out of the edge computing node is inconsistent with the video related information when it flows into the edge computing node; -Data loss occurs in the external network of the edge computing node.

3. The processing method according to claim 1 or 2, wherein: Processing the edge computing node includes: The edge computing node is reported to the live broadcast scheduling system, so that the live broadcast scheduling system sets the edge computing node to an unschedulable state.

4. The processing method according to claim 1 or 2, wherein: The method further comprises: Determine a target edge computing node corresponding to the edge computing node; The processing of the edge computing node includes: The live stream to be passed through the edge computing node is pushed to the target edge computing node, so that the target edge computing node replaces the edge computing node to push the live stream.

5. The processing method according to claim 4, wherein: Determining a target edge computing node corresponding to the edge computing node includes: Determine a first candidate node list, wherein the operator to which the nodes in the first candidate node list belong is the same as the operator at the location of the anchor corresponding to the edge computing node, and the cloud resource vendor to which the nodes in the candidate node list belong is different from the cloud resource vendor to which the edge computing node belongs; According to the proximity principle, the target edge computing node is screened out from the first candidate node list.

6. The processing method according to claim 5, wherein: The method further comprises: Filtering a second candidate node from the first candidate node list; According to the proximity principle, the target edge computing node is selected from the first candidate node list, including: According to the proximity principle, the target edge computing node is screened out from the second candidate node list.

7. The processing method according to claim 6, wherein: Screening out a second candidate node from the first candidate node list includes: Selecting a second candidate node from the first candidate node list according to at least one of the following: - selecting a second candidate node from the first candidate node list according to the real-time resource usage information of the nodes in the first candidate node list; - Filter out a second candidate node from the first candidate node list according to historical unavailable information of nodes in the first candidate node list.

8. An exception handling device for edge computing nodes in a live broadcast system, wherein: The device comprises: A detection module is used to detect whether the edge computing node meets the node abnormality triggering conditions; The processing module is used to process the edge computing node if the abnormal trigger condition is met to eliminate the impact of the node abnormality on the live broadcast system.

9. An electronic device, comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 7.

10. A computer-readable storage medium having computer program instructions stored thereon, wherein the computer program instructions can be executed by a processor to implement the method according to any one of claims 1 to 7.

11. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Live broadcast scheduling method and apparatus thereof

    CN107105309A

  • Edge node scheduling method and device

    CN114745565A

  • Edge node dynamic prediction scheduling system and method and computing equipment

    CN117156166A

  • Real-time streaming media data transmission method and device, and storage medium

    WO2023226949A1