Live streaming media stream transmission method and apparatus
By dynamically switching communication links, the problem of cross-region return delay and high cost is solved, and efficient transmission and low-cost transmission of live media streams are achieved.
Patent Information
- Application Number
- PCT/CN2024/073653
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-06-27
- Filing Date
- 2024-01-23
- Publication Date
- 2024-10-24
AI Technical Summary
In the cross-region back-to-origin business scenario, the delay requirements of live media streams are difficult to meet, and the multi-push solution results in high transmission costs.
By determining the communication indicators of multiple communication links and dynamically switching communication links based on these indicators and link switching strategies, it avoids establishing multiple source stations and realizes real-time transmission of live media streams.
It reduces the cost of live media stream transmission, ensures transmission effects, reduces lags and delays, and improves user experience.
Smart Images

Figure CN2024073653_24102024_PF_FP_ABST
Abstract
Description
Live media streaming transmission method and device
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on April 17, 2023, with application number 202310412080.0 and invention name “A back-to-source scheduling method, device and equipment”, the entire contents of which are incorporated by reference into this application, and this application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on June 27, 2023, with application number 202310768572.3 and application name “A live media stream transmission method and device”, the entire contents of which are incorporated by reference into this application. Technical Field
[0003] The present application relates to the field of computer technology, and in particular to a method and device for transmitting live media streams. Background Art
[0004] Live media streams can be streaming media data. In streaming, media data is compressed and then sent over the internet in segments, where it is transmitted in real time for viewing. Transmitting live media streams requires high latency to ensure a "real-time" viewing experience for users. With the continuous development of live media streams, new business scenarios such as cross-regional backsourcing have emerged. Cross-regional backsourcing refers to the situation where the client providing the live media stream (referred to as the push client) and the client viewing the live media stream (referred to as the pull client) are located in different regions. Cross-border backsourcing is a typical example of cross-regional backsourcing, in which the push client and the pull client are located in different countries. In cross-regional backsourcing, the long physical distance between the push and pull clients makes meeting the latency requirements for live media stream transmission a major challenge.
[0005] To meet latency requirements in cross-region backhaul scenarios, a multi-push solution currently exists. In this solution, source stations can be established in multiple regions. Each of these source stations can store live media streams from push clients in different regions. Pull clients can obtain live media streams from source stations that are closer to them, thus ensuring the latency requirements for live media stream transmission. However, this solution requires the establishment of multiple source stations, and each source station in each region needs to accommodate a large number of live media streams, which results in high transmission costs for live media streams.
[0006] Summary of the Invention
[0007] The embodiments of the present application provide a live media stream transmission method and apparatus for reducing the cost of transmitting live media streams while ensuring the latency requirements for transmitting live media streams in cross-region back-to-source business scenarios.
[0008] In a first aspect, an embodiment of the present application provides a method for transmitting live media streams. The method may be performed, for example, by a media stream transmission device, which may be a big data platform, or by a software or hardware module of a big data platform, or by a chip system having a big data platform, etc., and the embodiment of the present application does not limit this. The big data platform may be implemented by a computing device or a computing device cluster, such as a server or a terminal device. The method includes: determining N communication indicators corresponding to N communication links, wherein each communication indicator is used to characterize the communication parameters (such as communication cost and / or communication indicator) of one of the N communication links, any two of the N communication links are different, and each of the N communication links is used for forwarding the live media stream by some or all of the M forwarding nodes, where N is an integer greater than 1. M is a positive integer; based on the N communication indicators and the link switching strategy, determining a target communication link from the N communication links; and sending a first indication message to at least one of the M forwarding nodes, the first indication message indicating that the communication link transmitting the live media stream is switched from the source communication link to the target communication link.
[0009] In an embodiment of the present application, a media stream transmission device can control the switching of the communication link between the target client and the target source station to forward the live media stream, allowing the corresponding forwarding node to forward the live media stream. This eliminates the need to establish multiple source stations, thereby reducing the cost of live media stream transmission. Furthermore, because the media stream transmission device switches the communication link in real time based on communication indicators, it avoids the problem of poor live media stream transmission quality caused by switching only when the current link experiences an anomaly. This ensures the transmission quality of the communication link, reduces the problems of lag and excessive delay in the transmission of the live media stream, and helps improve the user experience.
[0010] In one possible embodiment, some or all of the M forwarding nodes are located in different geographical regions from the target source station, for example, a forwarding node among the M forwarding nodes and the target source station are located in different countries; and / or, the target client and the target source station are located in different geographical regions, for example, the target client and the target source station are located in different countries.
[0011] In the above embodiment, even if the distance between the forwarding node and the target source station is far, and / or the distance between the target source station and the target client is far, the method provided in the embodiment of the present application can be applied to transmit live media streams. In other words, the embodiment of the present application can be used in scenarios where the live media stream transmission distance is far, making the method provided in the embodiment of the present application more universal.
[0012] In a possible implementation, any two communication links among the N communication links correspond to different forwarding nodes and / or different communication modes.
[0013] In the above embodiment, any two communication links among the N communication links include different forwarding nodes and / or different communication modes, which enriches the content of the N communication links and makes switching of the communication links more flexible.
[0014] In a possible implementation, the method further includes: providing a configuration interface, and receiving a link switching policy configured by a user through the configuration interface.
[0015] In the above implementation, users can be supported to flexibly configure link switching strategies, and a method for configuring link switching strategies is provided. Moreover, users can flexibly configure link switching strategies so that the communication link for transmitting live media streams better meets the user's usage needs.
[0016] In one possible embodiment, the link switching strategy indicates one of the following: switching to the communication link with the largest communication index among N communication links; or, switching to the communication link with a communication index greater than or equal to a first threshold among N communication links; or, switching to the communication link with a communication index in the top S places among N communication links and a communication quality greater than or equal to a second threshold, where S is a positive integer; or, switching to the communication link with a communication index in the top K places among N communication links and a communication cost less than or equal to a third threshold, where K is a positive integer.
[0017] In the above embodiment, multiple link switching strategies are provided, which enriches the content of the link switching strategy. The richer the content of the link switching strategy, the more flexible the target communication link can be.
[0018] In a possible implementation, the communication parameter includes communication quality and / or communication cost.
[0019] In the above embodiment, the communication indicator may be used to indicate the communication quality and / or communication cost of the communication link, so that the communication quality and / or communication cost of the communication link after switching can also better meet the requirements.
[0020] In one possible implementation, determining N communication indicators includes: determining a weighted sum of the communication quality and the communication cost of each communication link in the N communication links, and obtaining a total of multiple weighted summation results, wherein each communication indicator in the N communication indicators is a weighted summation result among the multiple weighted summation results.
[0021] In the above embodiment, a specific calculation method of the communication index is provided. The communication index can be the weighted sum of communication quality and communication cost, so that the communication quality and communication cost of the target communication link determined by the media stream transmission device based on the communication index can meet the requirements.
[0022] In one possible embodiment, the method further includes: receiving information from each of the M forwarding nodes, the information of each forwarding node indicating the traffic used by each forwarding node and the communication quality; and determining the communication quality and communication cost corresponding to each of the N communication links based on the information of each of the M forwarding nodes.
[0023] In the above embodiment, the media stream transmission device can communicate with M forwarding nodes, periodically or irregularly obtaining information about the M forwarding nodes. Based on this information, the device can determine the communication metrics of the M forwarding nodes, thereby more promptly and accurately identifying target communication links. Furthermore, the forwarding nodes do not need to calculate communication metrics, thereby reducing the computational burden on the forwarding nodes.
[0024] In one possible embodiment, before determining the N communication indicators, the method further includes: determining the weight value corresponding to the communication quality of each communication link in the N communication links and the weight value corresponding to the communication cost based on information of each forwarding node in the M forwarding nodes; or, receiving the weight value corresponding to the communication quality of each communication link in the N communication links configured by the user, and the weight value corresponding to the communication cost.
[0025] In the above embodiment, the media stream transmission device may adjust the weight values corresponding to the communication quality and the communication cost according to the information of the M forwarding nodes, so as to determine a communication indicator that is more in line with the actual communication situation.
[0026] In one possible implementation, the M forwarding nodes include at least one of a content delivery network (CDN) edge node, a CDN proxy node, or a CDN central node. Thus, multiple possible implementations of forwarding nodes are provided.
[0027] In the second aspect, an embodiment of the present application provides a method for transmitting live media streams, which can be executed, for example, by a first forwarding node, or by a software or hardware module of the first forwarding node, or by a chip system having a first forwarding node, etc. For ease of description, the following description will be given by taking the execution of the first forwarding node as an example. The first forwarding node can be implemented by a computing device, a software or hardware module (such as a chip) in a computing device, a computing device cluster, or a software or hardware module in a computing device cluster, etc. The implementation method of the computing device can refer to the above. The method includes: forwarding the live media stream between the target client and the target source station through a source communication link; receiving a first indication information from a media stream transmission device, the first indication information indicating switching from the source communication link to the target communication link to forward the live media stream; forwarding the live media stream between the target client and the target source station through the target communication link.
[0028] In one possible embodiment, before receiving the first indication information from the media stream transmission device, the method also includes: sending information of the first forwarding node to the media stream transmission device, the information of the first forwarding node indicating the traffic used by the first forwarding node and the communication quality; wherein, the target communication link is a target communication link that complies with the link switching strategy determined from N communication links based on N communication indicators, each of the N communication indicators corresponds to one of the N communication links, each communication indicator is used to characterize the communication parameters of one of the N communication links, any two of the N communication links are different, N is an integer greater than 1, and M is a positive integer.
[0029] In a possible implementation, any two communication links among the N communication links correspond to different forwarding nodes and / or different communication modes.
[0030] In a third aspect, embodiments of the present application provide a media stream transmission device, which may be the media stream transmission device described in the first aspect, or a software or hardware module (e.g., a chip system) configured in the media stream transmission device. The media stream transmission device includes corresponding means or modules for executing the first aspect or any possible implementation method described above. For example, the media stream transmission device includes an indicator determination module (also referred to as an indicator determination unit), a link determination module (link determination unit), and a scheduling module (scheduling unit).
[0031] For example, an indicator determination module is used to determine N communication indicators, each of the N communication indicators is used to characterize the communication parameters of a communication link among the N communication links, each of the N communication links is used for some or all of the M forwarding nodes to forward the live media stream, any two of the N communication links are different, and N is an integer greater than 1; a link determination module is used to determine a target communication link from the N communication links based on the N communication indicators and the link switching strategy; a scheduling module is used to send a first indication information to at least one forwarding node among the M forwarding nodes, the first indication information indicating switching from the source communication link to the target communication link, and using the target communication link to forward the live media stream between the target source station and the target client.
[0032] In a fourth aspect, embodiments of the present application provide a media streaming transmission device, which may be the media streaming transmission device described in the second aspect, or a software or hardware module (e.g., a chip system) configured in the media streaming transmission device. The media streaming transmission device includes corresponding means or modules for executing the second aspect or any possible implementation method described above. For example, the media streaming transmission device includes a processing module (sometimes also referred to as a processing unit) and a transceiver module (sometimes also referred to as a transceiver unit).
[0033] For example, the transceiver module is used to forward the live media stream between the target client and the target source station through the source communication link under the control of the processing module; receive first indication information from the media stream transmission device, the first indication information instructing to switch from the source communication link to the target communication link to forward the live media stream, and forward the live media stream between the target client and the target source station through the target communication link.
[0034] In a fifth aspect, an embodiment of the present application provides a computing device comprising a processor and a memory; the processor is used to execute instructions stored in the memory of at least one computing device, so that the computing device executes a method as described in any one of the first aspect or the second aspect.
[0035] In a sixth aspect, an embodiment of the present application provides a computing device cluster, comprising at least one computing device, each computing device comprising a processor and a memory; the processor of at least one computing device is used to execute instructions stored in the memory of the at least one computing device, so that the computing device cluster performs a method as described in any one of the first aspect or the second aspect.
[0036] In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium, which is used to store computer programs or instructions, and when the computer-readable storage medium is executed, implements the method described in any one of the first or second aspects above.
[0037] In an eighth aspect, an embodiment of the present application provides a computer program product comprising instructions, which, when executed by a computing device cluster, enables the computing device cluster to execute the method as described in any one of the first aspect or the second aspect.
[0038] Regarding the beneficial effects of any technical solution in the above-mentioned second to eighth aspects, reference can be made to the beneficial effects discussion of the corresponding technical solution in the first aspect, and the repeated parts will not be listed here. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] FIG1 is a schematic diagram of transmitting a live media stream;
[0040] FIG2 is a schematic diagram of a scenario provided in an embodiment of the present application;
[0041] FIG3 is a schematic diagram of another scenario provided in an embodiment of the present application;
[0042] FIG4 is a schematic diagram of the structure of a big data platform provided in an embodiment of the present application;
[0043] FIG5 is a schematic diagram of a method for transmitting live media streams according to an embodiment of the present application;
[0044] FIG6 is a schematic diagram of N communication links provided in an embodiment of the present application;
[0045] FIG7 is a schematic diagram of a communication link switching according to an embodiment of the present application;
[0046] FIG8 is a schematic structural diagram of a media stream transmission device provided in an embodiment of the present application;
[0047] FIG9 is a schematic structural diagram of another media stream transmission device provided in an embodiment of the present application;
[0048] FIG10 is a schematic diagram of the structure of a computing device provided in an embodiment of the present application;
[0049] FIG11 is a schematic diagram of the structure of a computing device cluster provided in an embodiment of the present application. DETAILED DESCRIPTION
[0050] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.
[0051] In the embodiments of the present application, the number of nouns, unless otherwise specified, means "singular noun or plural noun", that is, "one or more". "At least one" means one or more, and "plural" means two or more. "And / or" describes the association relationship of associated objects, indicating that there may be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. For example, A / B means: A or B. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c means: a, b, c, a and b, a and c, b and c, or a and b and c, where a, b, c can be single or multiple.
[0052] The following describes the multi-push solution mentioned in the background technology, in conjunction with a schematic diagram of transmitting a live media stream, shown in Figure 1. As shown in Figure 1, the push stream client in location C can generate a live media stream based on the operations of the live broadcast user. The push stream client in location C can sequentially transmit the live media stream to the CDN edge node in location C. The CDN edge node in location C transmits the live media stream to the source station in location C via the CDN central node in location C. The push stream client can be a client used to provide or generate a live media stream.
[0053] In order to enable users in places A and B to watch the live media stream, a source station in place A is established in place A, and a source station in place B is established in place B. The CDN central node in place C can also transmit the live media stream to the source station in place A and the source station in place B respectively through the CDN central node in place D. The source station in place A and the source station in place B cache the live media stream. In this way, the stream pulling client in place A can obtain the live media stream from the source station in place A through the CDN edge node in place A and the CDN central node in place A in turn, and the stream pulling client in place B can obtain the live media stream from the source station in place B through the CDN edge node in place B and the CDN central node in place B in turn. It can be seen that this multi-push method requires the establishment of source stations in different regions, resulting in a high cost for transmitting live media streams. The stream pulling client can be a client used to request the acquisition of live media streams.
[0054] In view of this, an embodiment of the present application provides a method for transmitting live media streams, which can be executed by a media stream transmission device, for example. For ease of description, the embodiment of the present application is introduced by taking the execution of a media stream transmission device as an example. In this method, the media stream transmission device can determine the communication indicators of N communication links to determine N communication indicators. Any of the N communication links can be used by the forwarding node to forward the live media stream between the target client and the target source station. The media stream transmission device can determine the target communication link based on the N communication indicators, so that the forwarding node switches to the target communication link to forward the live media stream. In this way, a method for dynamically switching communication links is provided, and in this method, the forwarding node can be relied on to forward the live media stream between the target client and the target source station, without the need to establish multiple source stations separately, thereby reducing the cost of transmitting the live media stream. In addition, the media stream transmission device can select a more suitable communication link based on the communication indicators, ensuring that the communication indicators of the communication link transmitting the live media stream are better.
[0055] It should be understood that the live media stream in the embodiments of the present application is, for example, a real-time media stream. A live media stream refers to a media stream with high real-time transmission, such as a streaming media stream. Live media streams include, for example, live video streams, live audio streams, live audio and video streams, live VR streams, or live AR streams.
[0056] Please refer to Figure 2, which is a schematic diagram of a scenario provided in an embodiment of the present application. Alternatively, Figure 2 can also be viewed as a structural schematic diagram of a live media streaming transmission system. As shown in Figure 2, the scenario includes a target client, M forwarding nodes, a target source station, and a big data platform. M is a positive integer. Figure 2 is an example in which the data platform is a media streaming transmission device.
[0057] The client involved in the embodiment of the present application refers to an application (APP) running in a terminal device. An application is a software program that can implement one or more specific functions. Usually, multiple applications can be installed in a device, for example, conference applications or screen projection applications, etc. Among them, conference applications. The applications mentioned in the embodiment of the present application can be applications that are installed when the device leaves the factory, or they can be applications that the user downloads from the network or obtains from other devices during the use of the device. In the embodiment of the present application, the client can be a pull-stream client or a push-stream client. The target client may include a pull-stream client or a diversion client, which is explained below.
[0058] Case 1: The target client can provide live media stream (ie, the target client can be regarded as a streaming client).
[0059] In the following situation, the target client can generate a live media stream according to the operation of the user (such as a live broadcast user), and transmit the live media stream to the target source station through some or all of the M forwarding nodes. Any forwarding node is a node with a forwarding function, such as a terminal device or a server. Any forwarding node refers to a node with a data forwarding function, and the node can be a single device, a software or hardware module in a single device, or multiple devices. Any forwarding node is, for example, a node in a content delivery network (CDN), such as a CDN edge node, a CDN proxy node, or a CDN center node. The target source station is a single device or a device cluster with a data storage function, and the target source station can be, for example, a server cluster. CDN refers to a computer network system that is interconnected through the Internet. It uses the server closest to each user to send music, pictures, videos, applications and other files to users faster and more reliably to provide high-performance, scalability and low-cost network content delivery to users.
[0060] Case 2: The target client can request a live media stream (ie, the target client can be regarded as a stream pulling client).
[0061] In the second case, the target client can obtain the live media stream from the target source station through some or all of the M forwarding nodes according to the operation of the user (such as the audience watching the live broadcast).
[0062] In either case 1 or 2 above, each of the M forwarding nodes can communicate with the big data platform, and the big data platform can determine some or all of the forwarding nodes from the M forwarding nodes to serve the target client. The big data platform can be implemented by a single computing device or a cluster of computing devices, such as a server or a terminal device. A terminal device is a device with wireless transceiver capabilities and can be a fixed device, a mobile device, a handheld device, a wearable device, an in-vehicle device, or a wireless device built into any of the above devices (e.g., a communication module or a chip system). The terminal device is used to connect people, objects, machines, etc. and can be widely used in various scenarios, including but not limited to the following scenarios: cellular communications, device-to-device communications (D2D), vehicle to everything (V2X), machine-to-machine / machine-type communications (M2M / MTC), Internet of Things (IoT), virtual reality (VR), augmented reality (AR), industrial control, self-driving, remote medical, smart grid, smart furniture, smart office, smart wearable, smart transportation, smart city, drones, robots, etc. The terminal device may sometimes be referred to as user equipment (UE), terminal, access station, UE station, remote station, wireless communication equipment, or user device.
[0063] In a possible implementation, any forwarding node among the M forwarding nodes and the target source station are located in different geographical areas. Alternatively, it can be described as follows: the distance between any forwarding node among the M forwarding nodes and the target source station is greater than or equal to the first distance.
[0064] It should be understood that FIG2 is an example in which the number of target clients is 1 and the number of big data platforms is 1. In fact, the number of target clients and big data platforms is not limited.
[0065] Please refer to Figure 3, which is a schematic diagram of another scenario provided in an embodiment of the present application. Alternatively, Figure 3 can also be regarded as a structural diagram of a live media streaming transmission system. As shown in Figure 3, the scenario includes multiple source stations, multiple forwarding nodes, multiple clients and a big data platform. Figure 3 also takes the media streaming transmission device as an example, which is a big data platform. The multiple source stations include a first source station and a second source station, the multiple clients include a push stream client and a pull stream client, and the multiple forwarding nodes include a first CDN proxy node, a second CDN proxy node, a first CDN center node, a second CDN center node, a first CDN edge node and a second CDN edge node. The big data platform can communicate with any of the multiple forwarding nodes. In Figure 3, the first source station and the first CDN proxy node are located in the first geographical area, and the second source station and the second CDN proxy node are located in the second geographical area as an example. The first geographical area and the second geographical area may be different geographical areas.
[0066] Optionally, the CDN proxy node and the CDN central node may communicate via a DCI dedicated line, and the CDN edge node and the CDN central node may communicate via a BGP network. For example, the first CDN proxy node and the first CDN central node may communicate via a DCI dedicated line, and the first CDN edge node and the first CDN central node may communicate via a BGP network.
[0067] The first source station in Figure 3 can be used as an example of the target source station involved in Figure 2, the streaming client can be used as an example of the target client involved in Figure 2, and the first CDN proxy node, the first CDN central node, and the first CDN edge node can be used as an example of the M forwarding nodes involved in Figure 2. Alternatively, the second source station in Figure 3 can be used as an example of the target source station involved in Figure 2, the streaming client can be used as an example of the target client involved in Figure 2, and the second CDN proxy node, the second CDN central node, and the second CDN edge node can be used as an example of the M forwarding nodes involved in Figure 2.
[0068] The push client can sequentially transmit the live media stream to the first origin site via the first CDN edge node and the first CDN central node. The pull client can sequentially obtain the live media stream from the second origin site or the first origin site via the second CDN edge node, the second CDN central node, and the second CDN proxy node. Optionally, the first origin site and the pull client can be located in different geographic regions.
[0069] In one possible design, both the first and second source stations can include notification and configuration agent services, value-added services, and access services. The notification and configuration agent is used to receive configuration notifications issued by the management plane and obtain the issued configuration information, as well as forward streaming and offline notifications and recording and screenshot notifications from the source station data plane. The access service is used to accept live stream push access and viewer pull responses. The value-added service is used to connect to value-added services such as live recording, screenshots, or transcoding.
[0070] In one possible design, both the first CDN proxy node and the second CDN proxy node may include a logging proxy service, a scheduling proxy service, a live streaming cache service, and a node management component. The logging proxy service is used to record logs, the scheduling proxy service is used to schedule proxy nodes, the live streaming cache service is used to cache live media streams, and the node management component is used to manage proxy nodes.
[0071] In one possible design, both the first CDN central node and the second CDN central node may include live broadcast caching services and operation and maintenance services. The operation and maintenance services may adopt PMGR technology, for example.
[0072] Please refer to Figure 4, which is a schematic diagram of the structure of a big data platform provided in an embodiment of the present application. The big data platform is, for example, the big data platform involved in Figure 2 or Figure 3. As shown in Figure 4, the big data platform includes a user live broadcast sub-platform, an operation and maintenance management sub-platform, and a scheduling sub-platform.
[0073] The user live broadcast sub-platform is used to connect with users and can be used for users to order live broadcast services, manage live broadcast push and pull domain names, and other configuration entries related to the live broadcast business. The user live broadcast sub-platform may include big cloud basic services and live broadcast management interfaces. Big cloud basic services can be used, for example, for users to order live broadcast services, order cross-border user pull stream bandwidth packages and other products. The live broadcast management interface can be used for live broadcast configuration services, specifically for example, to provide a configuration interface so that users can manage live broadcast push and pull domain names through the configuration interface, including adding, deleting, modifying, and querying domain names for anchor push streams and domain names for audience pull streams. The live broadcast management interface can also be used for other configurations related to the live broadcast business, such as live recording, screenshots, and transcoding.
[0074] The operation and maintenance management sub-platform is used to connect with operation and maintenance personnel and can be used for operation and maintenance. The operation and maintenance management sub-platform may include alarm or monitoring services, live broadcast operation and maintenance services, live broadcast big data services and data interfaces, etc.
[0075] Alarm or monitoring services, for example, set threshold indicators for live broadcast services and notify operations and maintenance personnel of service alerts via messages, text messages, or emails. Live broadcast operations and maintenance services manage live broadcast-level situations. Live broadcast big data services collect information reported by forwarding centers and perform big data analysis and management. The scheduling sub-platform is used to schedule and manage forwarding nodes. Examples of the scheduling sub-platform include scheduling control services and scheduling decision services. The scheduling control service manages communication links. The scheduling decision service communicates with forwarding nodes to issue decisions. Data interfaces can be used to exchange data with other devices.
[0076] The following describes the method provided by the embodiments of the present application in conjunction with the accompanying drawings. In the accompanying drawings corresponding to the various embodiments of the present application, all steps represented by dotted lines are optional steps. The various embodiments of the present application take the media stream transmission device as an example, which is a big data platform, such as the big data platform involved in Figure 2, Figure 3 or Figure 4, the M forwarding nodes, such as the M forwarding nodes involved in Figure 2 or Figure 3, and the target source station, such as the target source station involved in Figure 2 or Figure 3.
[0077] Please refer to Figure 5, which is a schematic diagram of a live media streaming transmission method provided by an embodiment of the present application. In Figure 5, the target client is a stream pulling client as an example.
[0078] S501: A first forwarding node transmits a live media stream via a source communication link. In this embodiment, the first forwarding node forwards a live media stream as an example.
[0079] The source communication link is the communication link currently used to forward the live media stream. The source communication link can be a communication link between a first forwarding node and a target source station, a communication link between the first forwarding node and a target client, or a communication link between the target client, the first forwarding node, and the target source station. The first forwarding node can be a forwarding node included in the source communication link, or can be considered as a forwarding node currently used to forward the live media stream. Optionally, the first forwarding node is one or more forwarding nodes among M forwarding nodes, where M is a positive integer.
[0080] The big data platform can determine a communication link as the source communication link from the currently available P communication links. P is a positive integer. Each of the P communication links can be a communication link between a forwarding node and a target source station, or a communication link between a forwarding node and a target client, or a communication link between a target client, a forwarding node, and a target source station. This embodiment of the present application does not specifically limit this. The P communication links are used by some or all of the M forwarding nodes to forward live media streams.
[0081] Any two communication links among the P communication links are different, for example, any two communication links include different forwarding nodes, and / or different communication modes. The different forwarding nodes among any two communication links may be that the forwarding nodes included in any two communication links are completely different, or the forwarding nodes included in any two communication links are not completely the same. For example, communication link A among the P communication links includes forwarding node a1 and forwarding node a2, and communication link B includes forwarding node a2 and forwarding node a3, then communication link A and communication link B include different forwarding nodes. The communication mode may refer to different communication protocols and / or different communication lines. Communication modes include, for example, cloud connection (CC), public network, self-built network and backbone dedicated line. The source communication link may be the initial communication link for transmitting the live media stream, and the initial communication link is the communication link used when starting to transmit the live media stream between the target client and the target source station.
[0082] The following describes how the big data platform determines the source communication link from P communication links.
[0083] Method 1: The big data platform determines a default communication link among P communication links as the source communication link. The source communication link is, for example, a backbone dedicated line link or a public network link.
[0084] Method 2: The big data platform determines the communication link with the best communication quality among the P communication links as the source communication link.
[0085] Method 3: The big data platform determines the communication link with the highest communication index in the first time period among the P communication links as the source communication link.
[0086] P communication links correspond to a communication indicator in the first time period respectively. For the sake of distinction, the communication indicator corresponding to the first time period is referred to as the first communication indicator below. Accordingly, P communication links correspond to P first communication indicators in the first time period. The first time period may be a historical time period (i.e., any moment in the first time period is a past moment), or it may be a future time period (i.e., there are one or more moments in the future in the first time period). Any first communication indicator indicates the communication parameters of a communication link in the first time period. The communication parameters may be various parameters of the communication link, for example, the communication parameters include communication cost and / or communication quality. Optionally, the communication parameters may also include a legality parameter, which indicates that the communication link complies with the requirements of relevant laws and regulations. The communication cost in the first time period can be understood as the cost of using the communication link for communication in the first time period. The communication quality in the first time period may be, for example, quality of service (QoS).
[0087] In Method 3, the big data platform can determine P first communication indicators and identify the communication link with the highest first communication indicator as the source communication link. The method for determining the P first communication indicators can be the same. The following describes an example of the big data platform determining the first communication indicator of any one of the P communication links. To simplify the description, any one of the P communication links will be referred to as the first communication link.
[0088] In the first determination method, the big data platform determines the first communication indicator of the first communication link based on the information of the H forwarding nodes in the second time period. To simplify the description, the information of the forwarding nodes in the second time period is referred to as the first information below, and the information of the H forwarding nodes in the second time period is the H first information.
[0089] The H forwarding nodes are forwarding nodes included in the first communication link, where H is a positive integer. The second time period is the same as the first time period described above. In other words, the first time period and the second time period are the same time period. Alternatively, the second time period is different from the first time period, for example, the end time of the second time period is before the end time of the first time period.
[0090] The H pieces of first information include first information for each of the H forwarding nodes. The first information for each forwarding node indicates the traffic and / or communication quality used by the forwarding node during the second time period. The content items of the first information for any two of the H forwarding nodes may be identical. The following description uses the first information for any one of the H forwarding nodes as an example. To simplify the description, any one of the H forwarding nodes is referred to as the first forwarding node.
[0091] The first information of the first forwarding node includes information about the traffic used by the first forwarding node during the second time period and / or information about the quality of service. The duration of the second time period may be preconfigured or predefined in the big data platform, for example, manually configured by a user (e.g., an administrator) in the big data platform.
[0092] The information on the traffic used by the first forwarding node in the second time period indicates the traffic used by the first forwarding node in the second time period, specifically the number of bytes sent by the first forwarding node in the second time period. The information on the quality of service of the first forwarding node in the second time period may include at least one of the information such as the response time, packet loss rate, jitter duration, freeze duration, number of freezes or first frame transmission duration of the first forwarding node. The response time refers to the time required for the first forwarding node to respond to the request of the target client. The freeze duration, for example, is the freeze duration of the first forwarding node in a unit time, and the number of freezes can also be the freeze duration in a unit time, and the unit time is, for example, 100 seconds (s).
[0093] Optionally, the first information of the first forwarding node further includes at least one of the following A1 to A5.
[0094] A1. Identifier of the first forwarding node. The identifier of the first forwarding node is used to indicate the first forwarding node, for example, to indicate which forwarding node the first forwarding node is among the M forwarding nodes. The identifier of the first forwarding node is, for example, the name of the first forwarding node.
[0095] A2. Identification of the communication link supported by the first forwarding node.
[0096] A communication link may also be referred to as a communication line or line. The communication link involved in the embodiments of the present application may be a wireless communication link or a wired communication link. The identifier of the communication link supported by the first forwarding node may be represented by an identifier of the communication mode corresponding to the communication link.
[0097] A3. Identification of the starting forwarding node: The content of the identification of the starting forwarding node can refer to the content of the identification of the first forwarding node mentioned above.
[0098] The starting forwarding node refers to the first forwarding node on the communication link between the forwarding node and the target client or the target source station.
[0099] A4. Identification of the client served by the first forwarding node, specifically, for example, a domain name (or application name, or flow name). The domain name, application name, or flow name, etc., all indicate the client served by the first forwarding node.
[0100] A5. The identifier of the geographical region to which the domain name belongs.
[0101] The following describes how the big data platform obtains the first information of H forwarding nodes.
[0102] For example, the big data platform may obtain the first information from each of the H forwarding nodes. Alternatively, the big data platform may receive the H first information from a master forwarding node among the H forwarding nodes. The master forwarding node is one of the H forwarding nodes. The master forwarding node among the H forwarding nodes may be determined and configured by the big data platform, or configured by a user (e.g., an administrator).
[0103] The relationship between the second time period and the first time period is different, so the first communication indicator of the first communication link determined by the big data platform is also different, which is explained below.
[0104] B1. The second time period is the same as the first time period.
[0105] Under B1, the big data platform may directly determine the communication cost and / or communication quality of the first communication link in the second time period based on the H first information. The big data platform may determine the first communication indicator of the first communication link based on the communication cost and / or communication quality of the first communication link in the second time period.
[0106] For example, the big data platform may determine the communication cost of the first communication link during the second time period based on the unit price of the traffic and the traffic used by the forwarding nodes in the first communication link during the second time period. The unit price of the traffic may be preconfigured or predefined in the big data platform. For example, the unit price of the traffic may be configured in the big data platform by a user (e.g., an administrator).
[0107] The big data platform may also determine the communication quality of the first communication link during the second time period based on the communication quality of the forwarding nodes included in the first communication link during the second time period. For example, the big data platform may determine the communication quality of the first communication link during the second time period as the product of the communication qualities of the forwarding nodes included in the first communication link during the second time period, or determine the communication quality of the first communication link during the second time period as the average of the communication qualities of the forwarding nodes included in the first communication link during the second time period.
[0108] In one possible implementation, the big data platform may use the communication cost of the first communication link in the second time period as the first communication indicator of the first communication link. In this case, the first communication indicator of the first communication link may indicate the communication cost of the first communication link in the first time period. Alternatively, the big data platform may use the communication quality of the first communication link in the second time period as the communication indicator of the first communication link in the first time period. In this case, the communication indicator of the first communication link may indicate the communication quality of the first communication link in the first time period. Alternatively, the big data platform may perform a weighted summation of the communication quality and communication cost of the first communication link in the second time period to obtain the communication indicator of the first communication link in the first time period. In this case, the communication indicator of the first communication link in the first time period may indicate the communication cost and communication quality of the first communication link in the first time period. By analogy, the big data platform may determine K first communication indicators.
[0109] When the big data platform performs a weighted summation of the communication cost and the communication cost of the first communication link in the second time period to determine the communication index of the first communication in the first time period, the weight value of the communication quality of the first communication link in the second time period and the weight value of the communication cost in the second time period can be configured by the user in the big data platform, or can be configured by the big data platform based on information of each of the H forwarding nodes in the second time period.
[0110] For example, if the traffic used by H forwarding nodes in the second time period is greater than or equal to the first traffic value, the big data platform can set the weight value of the communication cost of the first communication link in the second time period to be smaller than the weight value of the communication quality of the first communication link in the second time period. Alternatively, if the communication quality of H forwarding nodes in the second time period is greater than or equal to the first communication quality, the big data platform can set the weight value of the communication quality of the first communication link in the second time period to be smaller than the weight value of the communication cost of the first communication link in the second time period. Optionally, the weight values of the communication quality of any two communication links in the second time period are the same, and the weight values of the communication costs of any two communication links in the second time period are the same.
[0111] B2. The second time period is different from the first time period.
[0112] Under B2, the big data platform can predict the first communication indicator of the first communication link in the first time period based on the communication cost and / or communication quality of the first communication link in the second time period. Similarly, the big data platform can obtain K first communication indicators.
[0113] For example, the big data platform may input the communication cost and / or communication quality of the first communication link during the second time period into a trained prediction model to obtain a first communication indicator for the first communication link during the first time period. The trained prediction module is used to predict the communication indicator of the communication link. The trained prediction module may be trained using sample data, for example, including the communication cost and / or communication quality of one or more communication links during the second time period, as well as the first communication indicator during the first time period.
[0114] In a second determination method, the big data platform may obtain K communication indicators from other devices. The other device may be, for example, a first forwarding node. The other device may determine K communication indicators in any manner and is not specifically limited in this embodiment of the present application.
[0115] Optionally, before determining the source communication link using any of Methods 1 to 3, the big data platform may receive a first stream pull request from a target client and determine that the bandwidth required by the first stream pull client is greater than a first default bandwidth. The first stream pull request is for requesting a live media stream. The first default bandwidth is, for example, the maximum bandwidth subscribed by the provider corresponding to the first stream pull client.
[0116] In another possible implementation, if the bandwidth required by the first stream pull request is greater than the second default bandwidth, indicating that the bandwidth required by the first stream pull request is too large, the first forwarding node may send a first response message to the target client, the first response message indicating that the stream pull request has failed. The second default bandwidth is greater than the first default bandwidth.
[0117] S502: The big data platform determines N communication indicators corresponding to the N communication links.
[0118] As the first forwarding node forwards the live media stream, the source communication link may change in real time, or other communication links may be superior to the source communication link. Therefore, in this embodiment of the application, the big data platform may periodically or irregularly determine N communication indicators corresponding to N communication links and determine whether to switch the communication link based on the N communication indicators. N can be a positive integer greater than or equal to K.
[0119] Each of the N communication links corresponds to a communication indicator in the third time period. In order to simplify the description, a communication indicator corresponding to a communication link in the third time period is referred to as a second communication indicator below. Accordingly, N communication links correspond to N second communication indicators. The start time of the third time period may be later than the start time of the first time period. Any of the N communication links is used to transmit a live media stream. Each of the N communication links may be a communication link from a forwarding node to a target source station, or a communication link from a forwarding node to a target client, or a communication link from a target client to a forwarding node, or from a forwarding node to a target source station. This embodiment of the present application does not specifically limit this. Any two of the N communication links are different, wherein any two communication links include different forwarding nodes, and / or different communication methods. Among them, the different meanings of the forwarding nodes and the contents of the communication methods can be referred to in the previous text.
[0120] For example, please refer to Figure 6, which is a schematic diagram of N communication links provided in an embodiment of the present application. In Figure 6, M forwarding nodes include forwarding node 1 and forwarding node 2 as an example, and the existence of three communication modes of communication links between each forwarding node and the target source station is taken as an example. As shown in Figure 6, the number of N communication links is 6, specifically including a communication link of communication mode 1 corresponding to forwarding node 1 and the target source station, a communication link of communication mode 2 corresponding to forwarding node 1 and the target source station, a communication link of communication mode 3 corresponding to forwarding node 1 and the target source station, a communication link of communication mode 1 corresponding to forwarding node 2 and the target source station, a communication link of communication mode 2 corresponding to forwarding node 2 and the target source station, and a communication link of communication mode 3 corresponding to forwarding node 2 and the target source station.
[0121] The following describes how the big data platform determines N second communication indicators.
[0122] In one method of determining N second communication indicators, the big data platform determines N communication indicators based on information of the M forwarding nodes in the fourth time period. To simplify the description, the information of the forwarding nodes in the fourth time period is referred to as second information below.
[0123] The second information of the M forwarding nodes may include the second information of each of the M forwarding nodes. The second information of each forwarding node indicates the traffic volume and / or communication quality used by the forwarding node during the fourth time period. The following description uses as an example an example where the second information of the M forwarding nodes may include the second information of all of the M forwarding nodes (i.e., the second information of the M forwarding nodes includes M pieces of second information).
[0124] The content items of the second information of any two forwarding nodes among the M forwarding nodes may be the same. The second information of any forwarding node among the M forwarding nodes is used as an example for description. For ease of description, any forwarding node among the M forwarding nodes is referred to as the second forwarding node below.
[0125] The second information of the second forwarding node includes information about the traffic used by the second forwarding node during a fourth time period, and / or information about the communication quality. The duration of the fourth time period may be preconfigured or predefined in the big data platform, for example, it may be manually configured in the big data platform by a user (such as an administrator). The fourth time period is the same as the third time period. Alternatively, the fourth time period is different from the third time period, for example, the end time of the fourth time period is before the end time of the third time period.
[0126] Among them, the content of the information on the traffic used by the second forwarding node in the fourth time period can refer to the content of the information on the traffic used by the first forwarding node in the second time period in the previous text, and the content of the information on the service quality of the second forwarding node in the fourth time period can refer to the content of the information on the service quality of the first forwarding node in the second time period in the previous text.
[0127] Optionally, the information of the second forwarding node also includes at least one of an identifier of the second forwarding node, an identifier of the type of communication link supported by the second forwarding node, an identifier of the starting forwarding node of the second forwarding node, an identifier of the client served by the second forwarding node, and an identifier of the geographical area to which the account to which the domain name belongs belongs.
[0128] The content of the identifier of the second forwarding node can refer to the identifier of the first forwarding node in the previous text, the content of the identifier of the type of communication link supported by the second forwarding node can refer to the content of the identifier of the type of communication link supported by the first forwarding node in the previous text, the content of the identifier of the starting forwarding node of the second forwarding node can refer to the identifier of the starting forwarding node of the first forwarding node in the previous text, the content of the identifier of the client served by the second forwarding node can refer to the identifier of the client served by the first forwarding node in the previous text, and the content of the identifier of the geographical area to which the account to which the domain name corresponding to the second forwarding node belongs can refer to the content of the geographical area to which the account to which the domain name corresponding to the first forwarding node belongs in the previous text.
[0129] The following introduces how the big data platform obtains M pieces of second information.
[0130] For example, the big data platform may obtain the second information from each of the M forwarding nodes. Alternatively, the big data platform may receive the M pieces of second information from a primary forwarding node among the M forwarding nodes. The primary forwarding node among the M forwarding nodes may be determined and configured by the big data platform, or configured by a user (e.g., an administrator).
[0131] The relationship between the fourth time period and the third time period is different, so the big data platform also determines the second communication indicator differently, which are explained below.
[0132] C1. The fourth time period is the same as the third time period.
[0133] The big data platform can directly determine the communication cost and / or communication quality corresponding to each of the N communication links based on the M second information, and determine N second communication indicators based on the communication cost and / or communication quality of each of the N communication links during the fourth time period. The method for determining the N second communication indicators can refer to the method for determining the first communication indicator described above.
[0134] C2. The fourth time period is different from the third time period.
[0135] The big data platform can predict the second communication indicators of the N communication links in the third time period based on the communication costs and / or communication qualities of the N communication links in the fourth time period. Similarly, the big data platform can obtain N second communication indicators.
[0136] Another method for determining the N second communication indicators is that the big data platform can obtain the N second communication indicators from other devices. The other devices may be, for example, one or more of the M forwarding nodes, such as the second forwarding node. The method by which one or more of the M forwarding nodes can determine the N second communication indicators can be arbitrary and is not limited in this embodiment of the present application.
[0137] As an example, S503 may be executed by a scheduling sub-platform in the big data platform, specifically, for example, by a scheduling control service in the scheduling sub-platform.
[0138] S503: The big data platform determines the target communication link based on the N (second) communication indicators and the link switching strategy.
[0139] The link switching policy is used to indicate the conditions or methods for switching the communication link. The link switching policy may include one or more policies. The embodiment of the present application does not limit the number of policies included in the link switching policy. The link switching policy may be pre-configured or pre-defined in the big data platform. For example, it may be manually configured in the big data platform by a user (such as an administrator or an ordinary user). Alternatively, the link switching policy may also be received by the big data platform through the configuration interface of the big data platform. For example, the user manually sets it in the configuration interface of the big data platform. Alternatively, some of the policies in the link switching policy may be pre-defined by the big data platform, and another part of the policies may be received through the configuration interface.
[0140] Optionally, if it is detected that some policies received through the configuration interface conflict with some policies predefined by the big data platform, the big data platform may determine the policy received through the configuration interface as the link switching policy by default.
[0141] The content of the link switching strategy is different, and the way the big data platform determines the target communication link is also different. The following describes them separately.
[0142] D1. The link switching strategy instructs switching to (or selecting) the communication link with the largest communication index.
[0143] Under D1, the big data platform can determine the communication link with the largest communication index among the N communication links as the target communication link.
[0144] If N communication indicators indicate the communication cost of a communication link, the big data platform uses the communication cost as a factor in link switching. If N communication indicators indicate the communication quality of a communication link, the big data platform uses the communication quality as a factor in link switching. If N communication indicators indicate both the communication cost and the communication quality of a communication link, the big data platform uses both the communication cost and the communication quality as factors in link switching.
[0145] D2. The link switching strategy instructs switching to a communication link whose communication index is greater than or equal to a first threshold.
[0146] Under D2, the big data platform may determine at least one communication link having a communication indicator greater than or equal to a first threshold from the N communication links, and determine one of the at least one communication link as a target communication link.
[0147] D3. The link switching strategy instructs switching to a communication link with a communication index in the top S positions and a communication quality greater than or equal to a second threshold, where S is a positive integer.
[0148] Under D3, the big data platform can determine S communication links corresponding to the top S communication indicators from N communication indicators, and determine a communication link among the S communication links whose communication quality is greater than or equal to the second threshold as the target communication link.
[0149] D4. The link switching strategy instructs switching to a communication link with a communication index that is in the top K positions and a communication cost that is less than or equal to a third threshold, where K is a positive integer.
[0150] Under D4, the big data platform can determine K communication links corresponding to the top K communication indicators from N communication indicators, and determine the communication link with a communication cost less than or equal to the third threshold among the K communication links as the target communication link.
[0151] S504: The big data platform sends first indication information to the first forwarding node. Correspondingly, the first forwarding node receives the first indication information from the big data platform.
[0152] The big data platform may send first indication information to at least one of the M forwarding nodes. The at least one forwarding node may be all or part of the M forwarding nodes. For example, the at least one forwarding node includes part or all of the forwarding nodes of the target communication link, or the at least one forwarding node is a forwarding node other than all of the forwarding nodes of the target communication link among the M forwarding nodes. The big data platform sends first indication information to the at least one forwarding node. The first indication information indicates that the communication link used to transmit the target client and the target source station is switched from the source communication link to the target source communication link. In other words, the forwarding node uses the target source communication link to transmit the communication link between the target client and the target source station. In this way, when the at least one forwarding node receives the first indication information, it is equivalent to determining the target communication link.
[0153] In the case where at least one forwarding node is a forwarding node other than all forwarding nodes of the target communication link among the M forwarding nodes, this at least one forwarding node can also send first indication information to some or all forwarding nodes of the target communication link, so that some or all forwarding nodes of the target communication link will subsequently forward the live media stream according to the target communication link.
[0154] It should be understood that in the embodiments of the present application, at least one forwarding node is taken as the first forwarding node for introduction, and there is actually no limitation on the number of forwarding nodes included in the at least one forwarding node.
[0155] As an example, S503 may be executed by a scheduling sub-platform in the big data platform, specifically, for example, by a scheduling decision service in the scheduling sub-platform.
[0156] S505: The first forwarding node transmits the live media stream through the target communication link.
[0157] Exemplarily, the target source station sends a live media stream to the first forwarding node. Accordingly, the first forwarding node receives the live media stream from the target source station. The first forwarding node sends the live media stream to the target client. Accordingly, the target client receives the live media stream from the first forwarding node.
[0158] In one possible implementation, to reduce lag for users (e.g., those watching a live broadcast), before forwarding the live media stream to the target client via the target communication link, the first forwarding node may determine that the amount of live media stream data cached by the target client is greater than or equal to a first data amount. This allows the user to remain unaware of the situation even if the first forwarding node switches the communication link, thereby improving the user experience and reducing the likelihood of lag on the target client.
[0159] It should be understood that FIG5 illustrates a single target client, and the live media stream transmission method provided in the embodiments of the present application is applicable to multiple target clients. Furthermore, the embodiments of the present application illustrate a single switching of the communication link for transmitting the live media stream. In practice, the media stream transmission device may perform the process illustrated in FIG5 periodically or irregularly, depending on the transmission process, and the details are omitted here.
[0160] In a possible implementation, if the first forwarding node is not a forwarding node included in the target communication link, and / or the target client is a streaming client, then the target source station does not need to perform steps S501 and S505, that is, S501 and S505 are optional steps.
[0161] When the target client is a streaming client, the process of the live media stream transmission method provided in the embodiment of the present application can also refer to the content shown in Figure 5 above, and the repeated parts are not repeated here. Unlike Figure 5, the first forwarding node is used to forward the live media stream from the streaming client to the big data platform via the source communication link, and can subsequently forward the live media stream from the streaming client to the big data platform via the target communication link.
[0162] In an embodiment of the present application, the live media stream between the target client and the target source station can be forwarded by the forwarding node, without the need to establish multiple source stations separately, thereby reducing the cost of transmitting the live media stream. In addition, the big data platform can determine to switch to the appropriate communication link based on the communication indicators, rather than considering switching only when an abnormality occurs in the current link. In this way, a method of dynamically switching the communication link is provided, which takes into account the communication quality and communication cost between the target client and the target source station. In addition, the method provided in the embodiment of the present application can be applied to scenarios where the distance between the forwarding node and the target source station is relatively far, and has good universality.
[0163] Please refer to Figure 7, which is a schematic diagram of a communication link switching provided in an embodiment of the present application. Figure 7 uses a first client in location A, a second client in location B, a third client in location C, and a fourth client in location D as pull clients, and a fifth client in location D as a push client as an example. It also uses DCI dedicated line communication between the CDN proxy node and the CDN central node, and BGP network communication between the CDN edge node and the CDN central node as an example.
[0164] 1. The first client is an example of a target client. Specifically, for example, the first client is used to pull the live media stream of the target source station.
[0165] For example, the provider corresponding to the first client purchased a bandwidth package in location A, such as a backbone dedicated line link traffic package (1000MB), and there is a firewall between location A and other regions.
[0166] There is an effective cloud CC connection between locations A and D (bandwidth specification limited to 1G, example only), a self-built backbone dedicated line bandwidth (<5G, example only, latency approximately 400ms), and no public network link (due to a national firewall-like interception gateway between the two regions). If the return traffic exceeds the default CC maximum specification, the big data platform instructs the forwarding node (such as the first CDN proxy node) to switch to the self-built backbone dedicated line. When the backbone dedicated line bandwidth usage reaches the threshold, the big data platform can return a first response message through the first CDN proxy node to the first client, indicating that the return of the live media stream failed.
[0167] 2. The second client is an example of a target client. Specifically, for example, the second client is used to pull the live media stream of the target source station.
[0168] For example, the provider corresponding to the second client purchases a bandwidth package in location B, such as a backbone dedicated line link traffic package (1000MB) and a public network traffic package (500MB).
[0169] There is an effective cloud CC connection between locations B and D (bandwidth specification limited to 1G, example only), a self-built backbone dedicated line bandwidth (<6G, example only, latency of approximately 350ms), and a public network link (because there is no interception gateway similar to the national firewall between the two regions, direct public network connection is possible, but the quality of the public network does not guarantee the service requirements of the local security authority (LSA), and the cost of the public network is relatively high). Therefore, if the cross-border return traffic exceeds the default CC default maximum specification, the big data platform can instruct the forwarding node (such as the second CDN proxy node) to switch to the self-built backbone dedicated line link. When the backbone dedicated line link bandwidth usage reaches the threshold, the big data platform will decide to switch to the public network link to return to the source from the target source station. The user of the second client may experience delays and lags when switching to the public network link.
[0170] 3. The third client is an example of a target client. Specifically, for example, the third client is used to pull the live media stream of the target source station.
[0171] For example, the provider corresponding to the third client purchases a bandwidth package in location C, such as a backbone dedicated line link traffic package (500MB) and a public network traffic package (500MB), and the link switching is based on the communication quality and communication cost of the communication link.
[0172] There is an effective cloud CC connection between locations C and D (bandwidth specification limited to 1G, example only), a self-built backbone dedicated line bandwidth (<10G, example only, latency approximately 70ms), and a public network link (because there is no interception gateway such as the national firewall between the two regions, direct public network connection is possible. At the same time, the public network quality meets the LSA service requirements, and the public network cost is relatively low due to the short distance). Therefore, if the cross-border back-to-source traffic exceeds the default CC maximum specification, the big data platform can determine to switch to a self-built backbone dedicated line link or a public network link to the target source station for back-to-source based on the predicted second communication indicator. Users of the third-party client are unaware of this switching process.
[0173] An embodiment of the present application provides a media streaming transmission device. Please refer to FIG8 , which is a schematic diagram of the structure of a media streaming transmission device provided in an embodiment of the present application. The media streaming transmission device 800 can be used to implement the functions of the media streaming transmission device described above (such as the big data platform described above), and accordingly, can also perform the steps performed by the media streaming transmission device described above.
[0174] As shown in Figure 8 , media stream transmission device 800 includes an indicator determination module 801, a link determination module 802, and a scheduling module 803. Each of these modules can be implemented in software or hardware. For example, the implementation of indicator determination module 801 will be described below, using indicator determination module 801 as an example. Similarly, the implementation of link determination module 802 and scheduling module 803 can refer to the implementation of indicator determination module 801.
[0175] As an example of a software functional unit, the indicator determination module 801 may include code running on a computing instance. The computing instance may include at least one of a physical host (computing device), a virtual machine, and a container. Furthermore, the computing instance may be one or more. For example, the indicator determination module 801 may include code running on multiple hosts / virtual machines / containers. It should be noted that the multiple hosts / virtual machines / containers used to run the code may be distributed in the same region or in different regions. Furthermore, the multiple hosts / virtual machines / containers used to run the code may be distributed in the same availability zone (AZ) or in different AZs, each AZ including one data center or multiple geographically close data centers. Typically, a region may include multiple AZs.
[0176] Similarly, multiple hosts / virtual machines / containers running the code can be distributed within the same virtual private cloud (VPC) or across multiple VPCs. Typically, a VPC is set up within a region. Cross-region communication between two VPCs within the same region, or between VPCs in different regions, requires a communication gateway within each VPC to interconnect the VPCs.
[0177] As an example of a hardware functional unit, the indicator determination module 801 may include at least one computing device, such as a server. Alternatively, the indicator determination module 801 may be implemented using an application-specific integrated circuit (ASIC) or a programmable logic device (PLD). The PLD may be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.
[0178] The multiple computing devices included in the indicator determination module 801 can be distributed in the same region or in different regions. The multiple computing devices included in the indicator determination module 801 can be distributed in the same AZ or in different AZs. Similarly, the multiple computing devices included in the indicator determination module 801 can be distributed in the same VPC or in multiple VPCs. The multiple computing devices can be any combination of computing devices such as servers, ASICs, PLDs, CPLDs, FPGAs, and GALs.
[0179] For example, the media stream transmission device 800 can be used to implement the steps performed by the big data platform in Figure 5 above.
[0180] Exemplarily, the indicator determination module 801 can be used to execute step S502. For example, the indicator determination module 801 is used to implement the function of the scheduling sub-platform in Figure 4 above, the link determination module 802 can be used to execute step S503, and the scheduling module 803 can be used to execute step S504.
[0181] Among them, the contents of each step involved in the embodiment of the present application can refer to the contents discussed in Figure 5 above and are not listed here again.
[0182] The present invention provides a media stream transmission device. Referring to FIG9 , which is a schematic diagram of the structure of a media stream transmission device provided in an embodiment of the present invention, the media stream transmission device 900 can be used to implement the functions of a forwarding node (such as the forwarding node described above) and, accordingly, can also perform the steps performed by the forwarding node described above.
[0183] As shown in Figure 9, the media stream transmission device 900 includes a processing module 901 and a transceiver module 902. The implementation of the processing module 901 and the transceiver module 902 can refer to the implementation of the indicator determination module 801 in Figure 8 above, and will not be listed here.
[0184] For example, the media stream transmission device 900 may be used to implement the steps performed by the forwarding node involved in FIG. 5 (specifically, the first forwarding node in FIG. 5 ).
[0185] For example, processing module 901 may be configured to control transceiver module 902 to receive a first instruction from the big data platform and transmit a live media stream via a target communication link. The first instruction and the contents of the transmitted live media stream may be referenced above with reference to FIG. 5 and are not further detailed here.
[0186] The present invention provides a computing device. FIG10 is a block diagram of a computing device 1000 provided in an embodiment of the present invention. As shown in FIG10 , the computing device 1000 includes a processor 1001 and a memory 1002. Optionally, the computing device 1000 also includes a communication interface 1003.
[0187] The processor 1001, the memory 1002, and the communication interface 1003 can communicate with each other via the bus 1004. The computing device 1000 can be a server or a terminal device. It should be understood that the embodiment of the present application does not limit the number of processors and memories in the computing device 1000.
[0188] Bus 1004 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, among others. Buses may be classified as address buses, data buses, control buses, and the like. For ease of illustration, FIG10 illustrates a single bus line, but this does not imply a single bus or type of bus. Bus 1004 may include a path for transmitting information between various components of computing device 1000 (e.g., processor 1001, memory 1002, and communication interface 1003).
[0189] The processor 1001 may include any one or more of a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP). The memory 1002 may include a volatile memory, such as a random access memory (RAM). The memory 1002 may also include a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD), or a solid state drive (SSD). The communication interface 1003 uses a transceiver module such as, but not limited to, a network interface card or a transceiver to implement communication between the computing device 1000 and other devices or a communication network.
[0190] In one possible embodiment, the memory 1002 stores executable program code, and the processor 1001 executes the executable program code to implement the functions of the media streaming transmission device (such as the big data platform in Figure 5) described above, such as implementing the functions of the indicator determination module 801, the link determination module 802, and the scheduling module 803 in Figure 8 described above, thereby implementing any of the live media streaming transmission methods described above. That is, the memory 1002 stores instructions for executing any of the live media streaming transmission methods. Among them, the functions of the indicator determination module 801, the link determination module 802, and the scheduling module 803 can refer to the contents discussed in Figure 8 described above. Alternatively, the memory 1002 stores executable code, and the processor 1001 executes the executable code to implement the functions of any of the media streaming transmission devices described above, thereby implementing any of the live media streaming transmission methods described above. That is, the memory 1002 stores instructions for executing any of the live media streaming transmission methods described above.
[0191] In another possible embodiment, memory 1002 stores executable program code, and processor 1001 executes the executable program code to implement the functions of the forwarding node (such as the first forwarding node in Figure 5) described above, for example, to implement the functions of processing module 901 and transceiver module 902 described above in Figure 9, thereby implementing any of the live media streaming transmission methods described above. In other words, memory 1002 stores instructions for executing any of the live media streaming transmission methods. The functions of processing module 901 and transceiver module 902 can be referred to the discussion of Figure 9 described above.
[0192] Embodiments of the present application also provide a computing device cluster. The computing device cluster includes at least one computing device. Each of the at least one computing device can be a server, such as a central server, an edge server, or a local server in a local data center. In some embodiments, the computing device can also be a terminal device such as a desktop computer, a laptop computer, or a smartphone.
[0193] Please refer to Figure 11, which is a structural diagram of a computing device cluster provided in an embodiment of the present application. As shown in Figure 11, the computing device cluster includes at least one computing device 1100. Any two computing devices can communicate through a network. Each computing device 1100 in the computing device cluster can include a processor 1101 and a memory 1102. Optionally, each computing device 1100 in the computing device cluster also includes a communication interface 1103. The processor 1101, the memory 1102, and the communication interface 1103 can be connected via a bus 1104. The implementation of the processor 1101 can refer to the implementation of the processor 1001 in Figure 10 above, the implementation of the memory 1102 can refer to the implementation of the memory 1002 in Figure 10 above, the implementation of the communication interface 1103 can refer to the implementation of the communication interface 1003 in Figure 10 above, and the implementation of the bus 1104 can also refer to the implementation of the bus 1004 in Figure 10 above.
[0194] In one possible implementation, the memory 1102 in each computing device 1100 in the computing device cluster may store the same instructions for executing any of the above-mentioned live media streaming transmission methods.
[0195] In another possible implementation, the memory 1102 of at least one computing device 1100 in the computing device cluster may also store partial instructions for executing any of the above-described live media streaming transmission methods. In other words, the combination of at least one computing device 1100 can collectively execute instructions for executing any of the above-described live media streaming transmission methods.
[0196] Optionally, the memory 1102 in different computing devices 1100 in the computing device cluster may store different instructions, each for executing a portion of the functions of the media stream transmission apparatus 900. That is, the instructions stored in the memory 1102 in different computing devices 1100 may implement the functions of the indicator determination module 801, the link determination module 802, and the scheduling module 803. The functions of the indicator determination module 801, the link determination module 802, and the scheduling module 803 may be described with reference to the discussion above regarding FIG. 8 .
[0197] Optionally, the memory 1102 in different computing devices 1100 in the computing device cluster may store different instructions, each for executing a portion of the functions of the media stream transmission apparatus 900. That is, the instructions stored in the memory 1102 in different computing devices 1100 may implement the functions of the processing module 901 and the transceiver module 902. The functions of the processing module 901 and the transceiver module 902 may be described with reference to the discussion above with reference to FIG. 9 .
[0198] In some possible implementations, at least one computing device 1100 in a computing device cluster can be connected via a network. The network can be a wide area network (WAN) or a local area network (LAN). Specifically, the connection to the network is established via a communication interface 1103 in each computing device 1100. In this type of possible implementation, at least one computing device 1100 in the computing device cluster can collectively execute any of the aforementioned methods for transmitting live media streams.
[0199] An embodiment of the present application provides a computer-readable storage medium for storing a computer program or instruction, which, when executed, implements any of the above-mentioned methods for transmitting live media streams. The computer-readable storage medium may be any available medium that a computing device can store, or a data storage device such as a data center that includes one or more available media. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive).
[0200] The present application provides a computer program product comprising instructions that, when executed on a computer, implements any of the above-mentioned methods for transmitting live media streams. The computer program product may be software or a program product comprising instructions that can be executed on a computing device or stored in any available medium.
[0201] The method steps in the embodiments of the present application can be implemented by hardware or by a processor executing software instructions. The software instructions can be composed of corresponding software modules, and the software modules can be stored in a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an erasable programmable read-only memory, an electrically erasable programmable read-only memory, a register, a hard disk, a mobile hard disk, a CD-ROM or any other form of storage medium well known in the art. An exemplary storage medium is coupled to the processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be an integral part of the processor. The processor and the storage medium can be located in an ASIC. In addition, the ASIC can be located in a base station or a terminal. Of course, the processor and the storage medium can also exist in a base station or a terminal as discrete components.
[0202] In the above embodiments, all or part of the embodiments may be implemented using software, hardware, firmware, or any combination thereof. When implemented using software, all or part of the embodiments may be implemented in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present application are performed in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, a network device, a user device, or other programmable device. The computer program or instructions may be stored in a computer-readable storage medium or transferred from one computer-readable storage medium to another. For example, the computer program or instructions may be transferred from one website, computer, server, or data center to another website, computer, server, or data center via wired or wireless means. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center that integrates one or more available media. The available medium may be a magnetic medium, such as a floppy disk, hard disk, or magnetic tape; an optical medium, such as a digital video disk; or a semiconductor medium, such as a solid-state drive. The computer-readable storage medium may be a volatile or nonvolatile storage medium, or may include both volatile and nonvolatile types of storage media.
[0203] In the various embodiments of the present application, unless otherwise specified or there is a logical conflict, the terms and / or descriptions between different embodiments are consistent and can be referenced by each other. The technical features in different embodiments can be combined to form new embodiments according to their inherent logical relationships.
[0204] It is understood that the various numbers used in the embodiments of this application are merely for ease of description and are not intended to limit the scope of the embodiments of this application. The order of the sequence numbers of the above-mentioned processes does not necessarily imply a specific order of execution; the order of execution of the processes should be determined by their functions and inherent logic.
Claims
1. A method for transmitting live media streams, characterized in that: The method is applied to a media stream transmission device, wherein the transmission system in which the media stream transmission device is located further includes a target source station, a target client and M forwarding nodes, and there is transmission of a live media stream between the target source station and the target client, where M is a positive integer; the method includes: Determine N communication indicators, each of the N communication indicators is used to characterize a communication parameter of one of the N communication links, each of the N communication links is used for some or all of the M forwarding nodes to forward a live media stream, any two of the N communication links are different, and N is an integer greater than 1; Determining a target communication link from the N communication links based on the N communication indicators and the link switching strategy; Sending first indication information to at least one of the M forwarding nodes, wherein the first indication information indicates switching from the source communication link to the target communication link, and using the target communication link to forward the live media stream between the target source station and the target client.
2. The method according to claim 1, characterized in that Some or all of the M forwarding nodes are located in different geographical areas from the target source station; and / or, The target client and the target source station are located in different geographical areas.
3. The method according to claim 1 or 2, characterized in that: Any two communication links among the N communication links correspond to different forwarding nodes and / or different communication modes.
4. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: A configuration interface is provided, and the link switching policy configured by the user is received through the configuration interface.
5. The method according to any one of claims 1 to 4, characterized in that: The link switching strategy indicates one of the following: Switch to the communication link with the largest communication index among the N communication links; or, Switching to a communication link among the N communication links whose communication index is greater than or equal to a first threshold; or, Switching to a communication link whose communication index is in the top S places among the N communication links and whose communication quality is greater than or equal to a second threshold, where S is a positive integer; or, Switch to a communication link whose communication index is in the top K places among the N communication links and whose communication cost is less than or equal to a third threshold, where K is a positive integer.
6. The method according to any one of claims 1 to 5, characterized in that: The communication parameters include communication quality and / or communication cost.
7. The method according to claim 6, characterized in that Determine N communication indicators, including: A weighted summation result of the communication quality and the communication cost of each of the N communication links is determined to obtain a total of multiple weighted summation results, wherein each communication indicator of the N communication indicators is a weighted summation result of the multiple weighted summation results.
8. The method according to claim 7, characterized in that The method further comprises: Receiving information from each of the M forwarding nodes, wherein the information of each forwarding node indicates a flow rate and / or a communication quality used by each forwarding node; The communication quality and / or communication cost corresponding to each of the N communication links is determined according to the information of each of the M forwarding nodes.
9. The method according to claim 7 or 8, characterized in that: Before determining the N communication indicators, the method further includes: Determine, according to information of each of the M forwarding nodes, a weight value corresponding to the communication quality of each of the N communication links and a weight value corresponding to the communication cost; or, A weight value corresponding to the communication quality of each communication link in the N communication links configured by a user and a weight value corresponding to the communication cost are received.
10. The method according to any one of claims 1 to 9, characterized in that: The M forwarding nodes include at least one of a content delivery network CDN edge node, a CDN proxy node or a CDN central node.
11. A media stream transmission device, characterized in that: The transmission system where the media stream transmission device is located also includes a target source station, a target client and M forwarding nodes, and there is a live media stream transmission between the target source station and the target client, where M is a positive integer; the device includes: An indicator determination module is used to determine N communication indicators, each of which is used to characterize a communication parameter of one of the N communication links, and each of the N communication links is used for the M forwarding nodes. Some or all of the forwarding nodes in forward the live media stream, any two of the N communication links are different, and N is an integer greater than 1; A link determination module, configured to determine a target communication link from the N communication links based on the N communication indicators and the link switching strategy; A scheduling module is used to send a first indication information to at least one forwarding node among the M forwarding nodes, wherein the first indication information indicates switching from the source communication link to the target communication link, and using the target communication link to forward the live media stream between the target source station and the target client.
12. The device according to claim 11, characterized in that Some or all of the M forwarding nodes are located in different geographical areas from the target source station; and / or, The target client and the target source station are located in different geographical areas.
13. The device according to claim 11 or 12, characterized in that Any two communication links among the N communication links correspond to different forwarding nodes and / or different communication modes.
14. The device according to any one of claims 11 to 13, characterized in that: The scheduling module is also used for: A configuration interface is provided, and the link switching policy configured by the user is received through the configuration interface.
15. The device according to any one of claims 11 to 14, characterized in that: The link switching strategy indicates one of the following: Switch to the communication link with the largest communication index among the N communication links; or, Switching to a communication link among the N communication links whose communication index is greater than or equal to a first threshold; or, Switching to a communication link whose communication index is in the top S places among the N communication links and whose communication quality is greater than or equal to a second threshold, where S is a positive integer; or, Switch to a communication link whose communication index is in the top K places among the N communication links and whose communication cost is less than or equal to a third threshold, where K is a positive integer.
16. The device according to any one of claims 11 to 15, characterized in that: The communication parameters include communication quality and / or communication cost.
17. The device according to claim 16, characterized in that The indicator determination module is specifically used for: A weighted summation result of the communication quality and the communication cost of each of the N communication links is determined to obtain a total of multiple weighted summation results, wherein each communication indicator of the N communication indicators is a weighted summation result of the multiple weighted summation results.
18. The device according to claim 17, characterized in that The indicator determination module is also used for: Receiving information from each of the M forwarding nodes, wherein the information of each forwarding node indicates a flow rate and / or a communication quality used by each forwarding node; The communication quality and / or communication cost corresponding to each of the N communication links is determined according to the information of each of the M forwarding nodes.
19. The device according to claim 17 or 18, characterized in that The indicator determination module is also used for: Before determining the N communication indicators, determining a weight value corresponding to the communication quality of each communication link in the N communication links and a weight value corresponding to the communication cost according to information of each forwarding node in the M forwarding nodes; or, Before determining the N communication indicators, a weight value corresponding to the communication quality of each communication link in the N communication links and a weight value corresponding to the communication cost configured by a user are received.
20. The device according to any one of claims 11 to 19, characterized in that The M forwarding nodes include at least one of a content delivery network CDN edge node, a CDN proxy node or a CDN central node.
21. A computing device cluster, characterized in that: comprising at least one computing device, each computing device comprising a processor and a memory; The processor of the at least one computing device is configured to execute instructions stored in the memory of the at least one computing device, so that the computing device cluster executes the method according to any one of claims 1 to 10.
22. A computer program product comprising instructions, characterized in that When the instructions are executed by a computing device cluster, the computing device cluster executes the method according to any one of claims 1 to 10.
23. A computer-readable storage medium, characterized in that: The storage medium stores a computer program or instruction, and when the computer program or instruction is executed by the communication device, the method according to any one of claims 1 to 10 is implemented.
Citation Information
Patent Citations
Switching method of back-to-source link, server and storage medium
CN112671718A
Real-time streaming media data transmission method and device and storage medium
CN115002083A
Method, system for processing a live-broadcasting data, and server thereof
US20200245020A1
Content delivery network, data processing method, apparatus and device, and storage medium
WO2021004384A1
Cited By
Communication data interaction method of charging pile, electronic equipment and storage medium
CN121259951A
