Movatterモバイル変換


[0]ホーム

URL:


CN113038191A - Live stream scheduling method and device, electronic equipment and readable storage medium - Google Patents

Live stream scheduling method and device, electronic equipment and readable storage medium
Download PDF

Info

Publication number
CN113038191A
CN113038191ACN202110219546.6ACN202110219546ACN113038191ACN 113038191 ACN113038191 ACN 113038191ACN 202110219546 ACN202110219546 ACN 202110219546ACN 113038191 ACN113038191 ACN 113038191A
Authority
CN
China
Prior art keywords
node
parameter
scheduling
target
target node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110219546.6A
Other languages
Chinese (zh)
Other versions
CN113038191B (en
Inventor
郭栋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co LtdfiledCriticalBeijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202110219546.6ApriorityCriticalpatent/CN113038191B/en
Publication of CN113038191ApublicationCriticalpatent/CN113038191A/en
Application grantedgrantedCritical
Publication of CN113038191BpublicationCriticalpatent/CN113038191B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

The application discloses a live streaming scheduling method and device, electronic equipment and a readable storage medium, relates to the technical field of computers, and particularly relates to the technical field of live and content distribution networks. The specific implementation scheme is as follows: in response to the received scheduling request for the live streaming, the condition of each node in the CDN network may be determined based on at least one of the processing quality of each node on the audio and video data, the real-time load capacity of each node, the deployment cost of each node, and the level to which each node belongs, so as to determine a scheduling node for each live streaming. Therefore, the target node can be comprehensively determined based on one or more service parameters according to different requirements for live stream scheduling, so that the live stream scheduling node is more flexibly selected and meets the personalized requirements of manufacturers for providing audio and video live broadcast services.

Description

Translated fromChinese
直播流的调度方法、装置、电子设备及可读存储介质Scheduling method, apparatus, electronic device and readable storage medium for live streaming

技术领域technical field

本申请涉及计算机技术领域,尤其涉及直播和内容分发技术领域,具体涉及一种直播流的调度方法、装置、电子设备及可读存储介质。The present application relates to the field of computer technologies, in particular to the technical field of live broadcasting and content distribution, and in particular to a scheduling method, apparatus, electronic device, and readable storage medium for live streaming.

背景技术Background technique

内容分发网络(Content Delivery Network,CDN)是指构建在现有网络基础之上的智能虚拟网络,依靠部署在各地的边缘服务器,通过中心平台的负载均衡、内容分发、调度等功能模块,能够使用户就近获取所需内容,降低网络拥塞。在现有的音视频直播服务(Live Streaming Service,LSS)的过程中,通常随机选取CDN节点以完成直播流的调度。Content Delivery Network (CDN) refers to an intelligent virtual network built on the basis of the existing network, relying on edge servers deployed in various places, through the load balancing, content distribution, scheduling and other functional modules of the central platform, to enable Users can obtain the desired content nearby, reducing network congestion. In the existing audio and video live streaming service (Live Streaming Service, LSS) process, CDN nodes are usually randomly selected to complete the scheduling of the live streaming.

发明内容SUMMARY OF THE INVENTION

本申请提供了一种用于直播流的调度的方法、装置、设备以及存储介质。The present application provides a method, apparatus, device and storage medium for scheduling of live streams.

根据本申请的一方面,提供了一种直播流的调度方法,包括:According to an aspect of the present application, a method for scheduling a live stream is provided, including:

接收针对直播流的调度请求,所述直播流携带有音视频数据;receiving a scheduling request for a live stream, the live stream carrying audio and video data;

响应于所述调度请求,基于内容分发网络中各节点的服务参数的参数值,确定目标节点;In response to the scheduling request, determining a target node based on parameter values of service parameters of each node in the content distribution network;

将所述直播流通过所述目标节点调度至目标设备,所述目标设备包括用户设备或者服务器;scheduling the live stream to a target device through the target node, where the target device includes a user equipment or a server;

其中,所述节点的服务参数包括第一参数、第二参数、第三参数和第四参数中的至少一项,所述第一参数用于表征所述节点对所述音视频数据的处理质量,所述第二参数用于表征所述节点的实时负载容量,所述第三参数用于表征所述节点的部署成本,所述第四参数用于表征所述节点所属的级别。The service parameter of the node includes at least one of a first parameter, a second parameter, a third parameter and a fourth parameter, and the first parameter is used to represent the processing quality of the audio and video data by the node , the second parameter is used to represent the real-time load capacity of the node, the third parameter is used to represent the deployment cost of the node, and the fourth parameter is used to represent the level to which the node belongs.

根据本申请的另一方面,提供了一种直播流的调度装置,包括:According to another aspect of the present application, a live streaming scheduling device is provided, comprising:

接收模块,用于接收针对直播流的调度请求,所述直播流携带有音视频数据;a receiving module, configured to receive a scheduling request for a live stream, the live stream carrying audio and video data;

确定模块,用于响应于所述调度请求,基于内容分发网络中各节点的服务参数的参数值,确定目标节点;a determining module, configured to, in response to the scheduling request, determine a target node based on parameter values of service parameters of each node in the content distribution network;

调度模块,用于将所述直播流通过所述目标节点调度至目标设备,所述目标设备包括用户设备或者服务器;a scheduling module, configured to schedule the live stream to a target device through the target node, where the target device includes a user equipment or a server;

其中,所述节点的服务参数包括第一参数、第二参数、第三参数和第四参数中的至少一项,所述第一参数用于表征所述节点对所述音视频数据的处理质量,所述第二参数用于表征所述节点的实时负载容量,所述第三参数用于表征所述节点的部署成本,所述第四参数用于表征所述节点所属的级别。The service parameter of the node includes at least one of a first parameter, a second parameter, a third parameter and a fourth parameter, and the first parameter is used to represent the processing quality of the audio and video data by the node , the second parameter is used to represent the real-time load capacity of the node, the third parameter is used to represent the deployment cost of the node, and the fourth parameter is used to represent the level to which the node belongs.

根据本申请的另一方面,提供了一种电子设备,包括:According to another aspect of the present application, an electronic device is provided, comprising:

至少一个处理器;以及at least one processor; and

与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein,

所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行本申请提供的直播流的调度方法。The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method for scheduling a live stream provided by the present application.

根据本申请的另一方面,提供了一种存储有计算机指令的非瞬时计算机可读存储介质,其中,所述计算机指令用于使所述计算机执行本申请提供的直播流的调度方法。According to another aspect of the present application, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause the computer to execute the method for scheduling a live stream provided by the present application.

根据本申请的另一方面,提供了一种计算机程序产品,包括计算机程序,所述计算机程序在被处理器执行时实现本申请提供的直播流的调度方法。According to another aspect of the present application, a computer program product is provided, including a computer program that, when executed by a processor, implements the method for scheduling a live stream provided by the present application.

根据本申请的技术提高了直播流调度节点选取的灵活性。The technology according to the present application improves the flexibility of live stream scheduling node selection.

应当理解,本部分所描述的内容并非旨在标识本申请的实施例的关键或重要特征,也不用于限制本申请的范围。本申请的其它特征将通过以下的说明书而变得容易理解。It should be understood that the content described in this section is not intended to identify key or critical features of the embodiments of the application, nor is it intended to limit the scope of the application. Other features of the present application will become readily understood from the following description.

附图说明Description of drawings

附图用于更好地理解本方案,不构成对本申请的限定。其中:The accompanying drawings are used for better understanding of the present solution, and do not constitute a limitation to the present application. in:

图1是根据本申请的一种音视频直播服务的系统框图1 is a system block diagram of a live audio and video service according to the present application

图2是根据本申请第一实施例的直播流的调度方法的流程示意图;2 is a schematic flowchart of a method for scheduling a live stream according to the first embodiment of the present application;

图3是根据本申请第二实施例的直播流的调度装置的结构框图;3 is a structural block diagram of an apparatus for scheduling a live stream according to a second embodiment of the present application;

图4是用来实现本申请实施例的直播流的调度方法的电子设备的框图。FIG. 4 is a block diagram of an electronic device used to implement the method for scheduling a live stream according to an embodiment of the present application.

具体实施方式Detailed ways

以下结合附图对本申请的示范性实施例做出说明,其中包括本申请实施例的各种细节以助于理解,应当将它们认为仅仅是示范性的。因此,本领域普通技术人员应当认识到,可以对这里描述的实施例做出各种改变和修改,而不会背离本申请的范围和精神。同样,为了清楚和简明,以下的描述中省略了对公知功能和结构的描述。Exemplary embodiments of the present application are described below with reference to the accompanying drawings, which include various details of the embodiments of the present application to facilitate understanding, and should be considered as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted from the following description for clarity and conciseness.

为方便理解,以下对本申请涉及的一些内容进行说明:For the convenience of understanding, some contents involved in this application are described below:

主播:主播是指发起直播的用户,作为一条直播流的发起方,通过直播入口进行直播推流。Host: The host refers to the user who initiates the live broadcast. As the initiator of a live stream, the host pushes the live stream through the live broadcast portal.

观众:观众是指观看直播的用户,作为一条直播流的拉取方,通过播放入口进行直播观看。Viewers: Viewers refer to users who watch the live broadcast. As a puller of a live stream, they can watch the live broadcast through the playback portal.

内容分发网络(Content Delivery Network,CDN):以下简称为CDN网络,CDN网络构建在现有网络基础之上的智能虚拟网络,依靠部署在各地的边缘服务器,通过中心平台的负载均衡、内容分发、调度等功能模块,能够使用户就近获取所需内容,降低网络拥塞,提高用户访问响应速度和命中率。CDN网络中包含的功能实体包括内容缓存设备、内容交换机、内容路由器、CDN内容管理系统等组成。其中,所述内容路由器负责将用户的请求调度到适当的设备上,动态均衡各个内容缓存站点的载荷分配,可以理解为本申请实施例所述的节点。负载均衡系统是整个CDN网络的核心,负载均衡的准确性和效率直接决定了整个CDN网络的效率和性能。Content Delivery Network (CDN): hereinafter referred to as CDN network, CDN network is an intelligent virtual network built on the basis of existing networks, relying on edge servers deployed in various places, through the central platform for load balancing, content distribution, Scheduling and other functional modules can enable users to obtain the required content nearby, reduce network congestion, and improve user access response speed and hit rate. The functional entities included in the CDN network include content cache devices, content switches, content routers, and CDN content management systems. The content router is responsible for scheduling the user's request to an appropriate device, and dynamically balancing the load distribution of each content cache site, which can be understood as a node described in this embodiment of the present application. The load balancing system is the core of the entire CDN network. The accuracy and efficiency of load balancing directly determine the efficiency and performance of the entire CDN network.

音视频直播服务(Live Streaming Service,LSS):如图1所示,LSS通过采集主播用户设备的推流信息将直播流推送至直播平台(Platform),推送的直播流可以通过CDN网络进行加速保证上行传输的稳定性。视频流推送至直播平台后,可按需对视频流进行转码,录制,截图,安全审核等处理。处理好的视频流通过CDN网络下发至观众用户设备中进行播放。Live Streaming Service (LSS): As shown in Figure 1, LSS pushes the live stream to the live platform (Platform) by collecting the streaming information of the host's user equipment, and the pushed live stream can be accelerated through the CDN network. Upstream transmission stability. After the video stream is pushed to the live broadcast platform, the video stream can be transcoded, recorded, taken screenshots, and security audited as needed. The processed video stream is delivered to the viewer's user equipment through the CDN network for playback.

推流:推流是指将直播流推送至直播平台的服务器的过程。Streaming: Streaming refers to the process of pushing the live stream to the server of the live platform.

拉流:拉流是指在直播平台的服务器已有直播流的情况下,拉流端的观众用户设备用指定地址从上述服务器拉取直播流的过程。Stream pull: Stream pull refers to the process of pulling the live stream from the above-mentioned server using the specified address on the viewer user equipment of the streaming end when the server of the live broadcast platform already has a live stream.

请参见图2,图2是本申请的实施例提供的一种直播流的调度方法,所述方法包括:Please refer to FIG. 2. FIG. 2 is a method for scheduling a live stream provided by an embodiment of the present application. The method includes:

S201、接收针对直播流的调度请求,所述直播流携带有音视频数据。S201. Receive a scheduling request for a live stream, where the live stream carries audio and video data.

本申请实施例中,如图1所示,针对直播流的调度可以应用于主播用户设备向直播平台推流的过程中,也可以应用于观众用户设备向直播平台拉流的过程中,具体可根据实际情况决定,本申请实施例在此不作限定。In this embodiment of the present application, as shown in FIG. 1 , the scheduling of live streams can be applied to the process of the host user equipment pushing streams to the live broadcast platform, and also to the process of viewer user equipment pulling streams to the live broadcast platform. It is determined according to the actual situation, and the embodiments of the present application are not limited herein.

具体实现时,所述直播流的调度方法可以由CDN网络的中心平台执行,具体可根据实际情况决定,本申请实施例在此不作限定。During specific implementation, the scheduling method of the live stream may be executed by the central platform of the CDN network, which may be specifically determined according to the actual situation, which is not limited in this embodiment of the present application.

所述针对直播流的调度请求可以是主播用户设备向CDN网络的中心平台发送的调度请求,也可以是直播平台的服务器向CDN网络发送的调度请求。所述调度请求携带有至少一条直播流,所述直播流通过主播用户设备采集音视频数据生成。当CDN网络中的中心平台接收到一条直播流的调度请求时,需要在CDN网络中确定目标节点实现对该条直播流的调度。The scheduling request for the live stream may be a scheduling request sent by the host user equipment to the central platform of the CDN network, or may be a scheduling request sent by the server of the live broadcast platform to the CDN network. The scheduling request carries at least one live stream, and the live stream is generated by collecting audio and video data by the host user equipment. When the central platform in the CDN network receives a scheduling request for a live stream, it needs to determine a target node in the CDN network to schedule the live stream.

S202、响应于所述调度请求,基于CDN网络中各节点的服务参数的参数值,确定目标节点。S202. In response to the scheduling request, determine a target node based on parameter values of service parameters of each node in the CDN network.

其中,所述节点的服务参数包括第一参数、第二参数、第三参数和第四参数中的至少一项,所述第一参数用于表征所述节点对所述音视频数据的处理质量,所述第二参数用于表征所述节点的实时负载容量,所述第三参数用于表征所述节点的部署成本,所述第四参数用于表征所述节点所属的级别。The service parameter of the node includes at least one of a first parameter, a second parameter, a third parameter and a fourth parameter, and the first parameter is used to represent the processing quality of the audio and video data by the node , the second parameter is used to represent the real-time load capacity of the node, the third parameter is used to represent the deployment cost of the node, and the fourth parameter is used to represent the level to which the node belongs.

本申请实施例中,CDN网络的中心平台可以基于CDN网络中各节点的服务参数的参数值,确定目标节点。In this embodiment of the present application, the central platform of the CDN network may determine the target node based on parameter values of service parameters of each node in the CDN network.

所述服务参数可以包括所述第一参数,所述对所述音视频数据的处理质量,其可以反映各节点在对所述音视频数据处理之后,所述音视频数据的质量。具体实现时,某一节点的所述第一参数的参数值取决于该节点的性能,例如带宽、吞吐量、中央处理器的处理性能等。基于各节点对所述音视频数据的处理质量,CDN网络的中心平台可以评价各节点对所述直播流的处理能力,进而可以将当前CDN网络中处理能力较优的节点确定为所述目标节点,以提高所述音视频数据的处理效果。The service parameter may include the first parameter, the processing quality of the audio and video data, which may reflect the quality of the audio and video data after each node processes the audio and video data. During specific implementation, the parameter value of the first parameter of a node depends on the performance of the node, such as bandwidth, throughput, processing performance of the central processing unit, and the like. Based on the processing quality of the audio and video data by each node, the central platform of the CDN network can evaluate the processing capability of each node on the live stream, and then can determine the node with better processing capability in the current CDN network as the target node , so as to improve the processing effect of the audio and video data.

所述服务参数可以包括所述第二参数,所述实时负载容量可以理解为当前可用的负载容量,可以反映各节点当前的负载能力,以及是否能够及时对所述直播流进行处理。基于各节点的实时负载容量,CDN网络的中心平台可以评价各节点的负载能力,进而可以确定当前CDN网络中实时负载容量较低的节点确定为所述目标节点,以降低网络拥塞,提高用户的访问速度。The service parameter may include the second parameter, and the real-time load capacity may be understood as the currently available load capacity, which may reflect the current load capacity of each node and whether the live stream can be processed in time. Based on the real-time load capacity of each node, the central platform of the CDN network can evaluate the load capacity of each node, and then determine the node with lower real-time load capacity in the current CDN network as the target node, so as to reduce network congestion and improve user experience. access speed.

所述服务参数可以包括所述第三参数,所述部署成本可以反映所述直播流所需的调度成本。基于各节点的部署成本相关的信息,CDN网络的中心平台可以将当前CDN网络中部署成本较低的节点确定为所述目标节点,以降低节约音视频直播服务的成本。The service parameter may include the third parameter, and the deployment cost may reflect a scheduling cost required for the live stream. Based on the information related to the deployment cost of each node, the central platform of the CDN network can determine the node with the lower deployment cost in the current CDN network as the target node, so as to reduce the cost of the audio and video live broadcast service.

所述服务参数可以包括所述第四参数,在长距离跨区域的推流或者拉流过程中,可以通过不同级别节点之间的依次调度,提高直播流传输的稳定性,提升直播效果。基于各节点所属的级别,CDN网络的中心平台可以逐级确定多个目标节点,通过分层级调度降低音视频直播服务中的地域隔离。The service parameters may include the fourth parameter. In the process of long-distance and cross-regional streaming or streaming, sequential scheduling between nodes at different levels can improve the stability of live streaming transmission and improve live streaming effects. Based on the level to which each node belongs, the central platform of the CDN network can determine multiple target nodes level by level, and reduce geographical isolation in live audio and video services through hierarchical scheduling.

本申请实施例中,CDN网络的中心平台可以根据预设规则,基于上述一种服务参数的参数值,或者结合两种或多种服务参数的参数值综合评价CDN网络中各节点的情况,确定针对每一条直播流的调度节点。上述预设规则可以为根据直播平台厂商,即提供音视频直播服务的厂商的需求确定的自定义规则,也可以是CDN网络默认的规则,具体可根据实际情况决定,本申请实施例在此不作限定。In the embodiment of the present application, the central platform of the CDN network may comprehensively evaluate the conditions of each node in the CDN network based on the parameter value of one of the above service parameters, or combine the parameter values of two or more service parameters according to preset rules, and determine the Scheduling node for each live stream. The above preset rules may be custom rules determined according to the needs of live broadcast platform manufacturers, that is, manufacturers that provide audio and video live broadcast services, or may be default rules of the CDN network, which can be determined according to the actual situation, and are not set forth in the embodiments of the present application. limited.

S203、将所述直播流通过所述目标节点调度至目标设备,所述目标设备包括用户设备或者服务器。S203. Schedule the live stream to a target device through the target node, where the target device includes a user equipment or a server.

本申请实施例中,在所述针对直播流的调度请求是主播用户设备向CDN网络的中心平台发送的调度请求的情况下,所述目标设备为直播平台的服务器;在所述针对直播流的调度请求是直播平台的服务器向CDN网络发送的调度请求的情况下,所述目标设备为用户设备,所述用户设备可以理解为观众使用的用户设备,观众可以通过所述用户设备观看直播内容。In the embodiment of the present application, when the scheduling request for live streaming is a scheduling request sent by the host user equipment to the central platform of the CDN network, the target device is the server of the live streaming platform; When the scheduling request is a scheduling request sent by the server of the live broadcast platform to the CDN network, the target device is a user equipment, which can be understood as the user equipment used by the viewer, and the viewer can watch the live content through the user equipment.

具体实现时,CDN网络的中心平台在确定所述目标节点之后,可以将携带有音视频数据的直播流发送至所述目标节点上,所述目标节点可以对所述音视频数据进行加速、缓存等处理。当所述目标节点接收到所述用户设备发送的直播请求时,可以将所述携带有音视频数据的直播流发送至所述用户设备。During specific implementation, after determining the target node, the central platform of the CDN network can send the live stream carrying the audio and video data to the target node, and the target node can accelerate and cache the audio and video data. and so on. When the target node receives the live broadcast request sent by the user equipment, it can send the live stream carrying the audio and video data to the user equipment.

本申请的上述实施例具有如下优点或有益效果:响应于接收到的针对直播流的调度请求,可以基于CDN网络中各节点对所述音视频数据的处理质量、各节点的实时负载容量、各节点的部署成本和各节点所属的级别中的至少一项,确定CDN网络中各节点的情况,进而确定针对每一条直播流的调度节点,可以根据对直播流调度的不同需求,基于一种或者多种服务参数综合确定所述目标节点,使得直播流调度节点的选取更加灵活,更加符合提供音视频直播服务的厂商的个性化需求。The above embodiments of the present application have the following advantages or beneficial effects: in response to the received scheduling request for the live stream, the processing quality of the audio and video data by each node in the CDN network, the real-time load capacity of each node, the At least one of the deployment cost of the node and the level to which each node belongs, determines the situation of each node in the CDN network, and then determines the scheduling node for each live stream, which can be based on different requirements for live stream scheduling, based on one or The target node is determined comprehensively by multiple service parameters, which makes the selection of live stream scheduling nodes more flexible and more in line with the individual needs of manufacturers that provide audio and video live broadcast services.

下面对本申请实施例中确定目标节点的具体实施方式进行说明,本申请实施例中的确定目标节点的实施方式包括但不限于以下三种:The specific implementations of determining the target node in the embodiments of the present application will be described below. The implementations of determining the target nodes in the embodiments of the present application include but are not limited to the following three:

第一种实施方式中,所述响应于所述调度请求,基于内容分发网络中各节点的服务参数的参数值,确定目标节点,包括:In a first implementation manner, in response to the scheduling request, determining the target node based on parameter values of service parameters of each node in the content distribution network includes:

响应于所述调度请求,获取所述内容分发网络中各节点的服务参数的参数值,所述服务参数包括所述第一参数、所述第二参数和所述第三参数;In response to the scheduling request, obtain parameter values of service parameters of each node in the content distribution network, where the service parameters include the first parameter, the second parameter, and the third parameter;

基于所述各节点的每一个所述服务参数的参数值,以及每一个所述服务参数分别对应的第一预设权重,获取所述各节点的第一分数;obtaining a first score of each node based on the parameter value of each of the service parameters of the nodes and the first preset weight corresponding to each of the service parameters;

基于所述第一分数确定所述各节点的优先级,并将优先级最高的节点确定为所述目标节点。The priority of each node is determined based on the first score, and the node with the highest priority is determined as the target node.

本实施方式中,CDN网络的中心平台可以基于所述第一参数、所述第二参数和所述第三参数综合确定CDN网络中各节点在直播流调度时的优先级,并将优先级最高的节点确定为所述目标节点。In this embodiment, the central platform of the CDN network can comprehensively determine the priority of each node in the CDN network during live stream scheduling based on the first parameter, the second parameter and the third parameter, and assign the highest priority The node is determined as the target node.

具体实现时,CDN网络的中心平台可以根据直播平台厂商的需求设置每一个所述服务参数的第一预设权重。示例性的,若直播平台厂商优先考虑对音视频数据的处理质量,CDN网络的中心平台可以设置所述第一参数的第一预设权重高于所述第二参数和所述第三参数的第一预设权重;若直播平台厂商优先考虑用户的访问速度,CDN网络的中心平台可以设置所述第二参数的第一预设权重高于所述第一参数和所述第三参数的第一预设权重。During specific implementation, the central platform of the CDN network may set the first preset weight of each of the service parameters according to the requirements of the live broadcast platform manufacturer. Exemplarily, if the live broadcast platform manufacturer gives priority to the processing quality of audio and video data, the central platform of the CDN network can set the first preset weight of the first parameter to be higher than the second parameter and the third parameter. The first preset weight; if the live broadcast platform manufacturer gives priority to the user's access speed, the central platform of the CDN network can set the first preset weight of the second parameter to be higher than the first parameter and the third parameter. a preset weight.

本实施方式中,CDN网络的中心平台可以实时监测CDN网络中各节点的每一个服务参数的参数值,之后根据各节点的每一个所述服务参数的参数值,以及每一个所述服务参数分别对应的第一预设权重进行加权平均计算,获取所述各节点的第一分数。CDN网络的中心平台可以基于所述第一分数确定各节点的优先级顺序。示例性的,某一节点的所述第一分数越高,该节点的优先级越高。可以理解的是,基于所述第一分数确定各节点的优先级的具体实施方式可以根据实际情况决定,本申请实施例在此不作限定。In this embodiment, the central platform of the CDN network can monitor the parameter value of each service parameter of each node in the CDN network in real time, and then according to the parameter value of each of the service parameters of each node, and each of the service parameters respectively A weighted average calculation is performed on the corresponding first preset weight to obtain the first score of each node. The central platform of the CDN network may determine the priority order of each node based on the first score. Exemplarily, the higher the first score of a certain node, the higher the priority of the node. It can be understood that, the specific implementation manner of determining the priority of each node based on the first score may be determined according to the actual situation, which is not limited in this embodiment of the present application.

具体实现时,针对所述第一参数的参数值,CDN网络的中心平台可以按照时间维度,监测通过监测每个节点在单位时间内处理的音视频数据的清晰度、卡顿率、首帧时间等参数的参数值,基于一种或者多种参数的参数值可以确定所述第一参数的参数值。During specific implementation, for the parameter value of the first parameter, the central platform of the CDN network can monitor the definition, freezing rate, and first frame time of the audio and video data processed by each node in a unit time according to the time dimension. The parameter value of the first parameter can be determined based on the parameter value of one or more parameters.

示例性的,CDN网络的中心平台基于处理的音视频数据的清晰度确定所述第一参数的参数值。假设处理的音视频数据的清晰度的基准为480P,基于上述基准,可以对采集的音视频数据的实时清晰度确定对应的参数值,例如采集的音视频数据的实时清晰度为720P,得分为75分;采集的音视频数据的实时清晰度为480P,得分为60分。可以理解的是,CDN网络的中心平台也可以基于多种参数的参数值确定所述第一参数的参数值,具体可根据实际情况决定,本申请实施例在此不作具体限定。Exemplarily, the central platform of the CDN network determines the parameter value of the first parameter based on the definition of the processed audio and video data. Assuming that the standard of the clarity of the processed audio and video data is 480P, based on the above-mentioned standard, the corresponding parameter values can be determined for the real-time clarity of the collected audio and video data. For example, the real-time clarity of the collected audio and video data is 720P, and the score is 75 points; the real-time resolution of the collected audio and video data is 480P, and the score is 60 points. It can be understood that the central platform of the CDN network can also determine the parameter value of the first parameter based on the parameter values of various parameters, which can be specifically determined according to the actual situation, which is not specifically limited in this embodiment of the present application.

针对所述第二参数的参数值,CDN网络的中心平台可以按照时间维度,监测每个节点在单位时间内的平均实时负载容量,进而确定所述第二参数的参数值。示例性的,CDN网络的中心平台可以根据节点负载容量的历史数据,确定节点负载容量的基准,基于上述基准,可以对采集的实时负载容量确定对应的参数值。CDN网络的中心平台也可以为各节点设置负载容量上限报警,在某一节点的负载容量超过所述负载容量上限的情况下,CDN网络的中心平台可以接收到报警信息,具体可根据实际情况决定,本申请实施例在此不作限定。Regarding the parameter value of the second parameter, the central platform of the CDN network can monitor the average real-time load capacity of each node in unit time according to the time dimension, and then determine the parameter value of the second parameter. Exemplarily, the central platform of the CDN network can determine the benchmark of the node load capacity according to the historical data of the node load capacity, and based on the above benchmark, can determine the corresponding parameter value for the collected real-time load capacity. The central platform of the CDN network can also set a load capacity upper limit alarm for each node. When the load capacity of a node exceeds the upper limit of the load capacity, the central platform of the CDN network can receive the alarm information, which can be determined according to the actual situation. , the embodiments of the present application are not limited herein.

针对所述第三参数的参数值,CDN网络的中心平台可以通过采集每个节点所部署的地域的建设情况、网络质量、网络运营商或者该节点的设备性能等信息,确定每个节点的部署成本;也可以通过接收运维人员上传的部署成本说明确定每个节点的部署成本,进而确定所述第三参数的参数值。示例性的,CDN网络的中心平台可以根据直播平台厂商具体需求,确定节点部署成本的基准,基于上述基准,可以对采集的实时部署成本确定对应的参数值。Regarding the parameter value of the third parameter, the central platform of the CDN network can determine the deployment of each node by collecting information such as the construction situation of the region where each node is deployed, network quality, network operator or equipment performance of the node, etc. cost; the deployment cost of each node can also be determined by receiving the deployment cost description uploaded by the operation and maintenance personnel, and then the parameter value of the third parameter can be determined. Exemplarily, the central platform of the CDN network may determine a benchmark for node deployment costs according to specific requirements of the live broadcast platform manufacturer, and based on the aforementioned benchmarks, may determine corresponding parameter values for the collected real-time deployment costs.

本实施方式具有如下优点或有益效果本实施方式:CDN网络的中心平台可以基于所述第一参数、所述第二参数和所述第三参数综合确定CDN网络中各节点在直播流调度时的优先级,既考虑了各节点的处理质量、也考虑各节点的负载容量,还考虑了各节点的部署成本,使得针对直播流的调度节点的确定更加全面,提高了调度节点确定的优化程度。同时,通过加权计算的方式确定CDN网络中各节点的优先级,可以自定义设置每一个服务参数对应的第一预设权重,以满足直播平台厂商不同的调度需求,进一步提高了直播流的调度节点的确定的灵活性。This embodiment has the following advantages or beneficial effects: This embodiment: the central platform of the CDN network can comprehensively determine the live streaming scheduling of each node in the CDN network based on the first parameter, the second parameter and the third parameter. Priority, not only considers the processing quality of each node, but also considers the load capacity of each node, and also considers the deployment cost of each node, which makes the determination of scheduling nodes for live streams more comprehensive and improves the optimization degree of scheduling node determination. At the same time, the priority of each node in the CDN network is determined by weighted calculation, and the first preset weight corresponding to each service parameter can be customized to meet the different scheduling requirements of live broadcast platform manufacturers and further improve the scheduling of live streams. Deterministic flexibility of nodes.

第二种实施方式中,所述响应于所述调度请求,基于内容分发网络中各节点的服务参数的参数值,确定目标节点,包括:In the second implementation manner, in response to the scheduling request, determining the target node based on parameter values of service parameters of each node in the content distribution network includes:

响应于所述调度请求,获取所述内容分发网络中各节点的所述第一参数的参数值,所述第一参数包括处理后的所述音视频数据的清晰度、处理后的所述音视频数据的卡顿率和处理后的所述音视频的首帧时间中的至少一项;In response to the scheduling request, obtain the parameter value of the first parameter of each node in the content distribution network, where the first parameter includes the clarity of the processed audio and video data, the processed audio At least one of the freezing rate of the video data and the first frame time of the processed audio and video;

基于所述各节点的每一个所述第一参数的参数值,以及每一个所述第一参数分别对应的第二预设权重,获取各节点的第二分数;obtaining a second score of each node based on the parameter value of each of the first parameters of the nodes and the second preset weight corresponding to each of the first parameters;

基于所述第二分数确定所述各节点的优先级,并将优先级最高的节点确定为所述目标节点。The priority of each node is determined based on the second score, and the node with the highest priority is determined as the target node.

本实施方式中,CDN网络的中心平台可以基于所述第一参数的参数值确定CDN网络中各节点在直播流调度时的优先级,并将优先级最高的节点确定为所述目标节点。这样,可以提高所述直播流在传输过程中的稳定性,进而提高直播效果。In this embodiment, the central platform of the CDN network may determine the priority of each node in the CDN network during live stream scheduling based on the parameter value of the first parameter, and determine the node with the highest priority as the target node. In this way, the stability of the live stream in the transmission process can be improved, thereby improving the live broadcast effect.

具体实现时,CDN网络的中心平台可以按照时间维度,通过监测每个节点在单位时间内处理的音视频数据的清晰度、卡顿率、首帧时间等参数的参数值,基于一种或者多种参数的参数值可以确定所述第一参数的参数值。In the specific implementation, the central platform of the CDN network can monitor the parameter values of the audio and video data processed by each node in a unit time, such as the definition, freezing rate, first frame time and other parameters according to the time dimension, based on one or more parameters. The parameter value of the first parameter may determine the parameter value of the first parameter.

示例性的,CDN网络的中心平台基于处理的音视频数据的清晰度确定所述第一参数的参数值,假设处理的音视频数据的清晰度的基准为480P,基于上述基准,可以对采集的音视频数据的实时清晰度确定对应的参数值,例如采集的音视频数据的实时清晰度为720P,得分为75分;采集的音视频数据的实时清晰度为480P,得分为60分。可以理解的是,当CDN网络的中心平台也可以基于多种参数的参数值确定所述第一参数的参数值,具体可根据实际情况决定,本申请实施例在此不作具体限定。Exemplarily, the central platform of the CDN network determines the parameter value of the first parameter based on the clarity of the processed audio and video data. It is assumed that the standard of the clarity of the processed audio and video data is 480P. The real-time resolution of the audio and video data determines the corresponding parameter value. For example, the real-time resolution of the collected audio and video data is 720P, and the score is 75 points; the real-time resolution of the collected audio and video data is 480P, and the score is 60 points. It can be understood that, when the central platform of the CDN network can also determine the parameter value of the first parameter based on the parameter values of various parameters, the parameter value can be determined according to the actual situation, which is not specifically limited in this embodiment of the present application.

在一种具体的实现形式中,CDN网络的中心平台可以按照时间维度,实时监测单位时间内,CDN网络中各节点的清晰度、卡顿率和首帧时间,之后根据清晰度、卡顿率和首帧时间的参数值及其分别对应的第二预设权重,进行加权平均计算,获取所述各节点的第二分数。CDN网络的中心平台可以基于所述第二分数确定各节点的优先级顺序。示例性的,某一节点的所述第二分数越高,该节点的优先级越高。可以理解的是,基于所述第二分数确定各节点的优先级的具体实施方式可以根据实际情况决定,本申请实施例在此不作限定。In a specific implementation form, the central platform of the CDN network can monitor the resolution, freezing rate and first frame time of each node in the CDN network in real time according to the time dimension, and then monitor the resolution, freezing rate and first frame time of each node in the CDN network in real time. and the parameter value of the first frame time and its corresponding second preset weight, perform a weighted average calculation to obtain the second score of each node. The central platform of the CDN network may determine the priority order of each node based on the second score. Exemplarily, the higher the second score of a certain node, the higher the priority of the node. It can be understood that, the specific implementation manner of determining the priority of each node based on the second score may be determined according to the actual situation, which is not limited in this embodiment of the present application.

本实施方式中,在一种实现形式中,所述基于所述第二分数确定所述各节点的优先级,并将优先级最高的节点确定为所述目标节点,包括:In this implementation manner, in an implementation form, the determining the priority of each node based on the second score, and determining the node with the highest priority as the target node, includes:

在所述优先级最高的节点的数量为多个的情况下,获取每个所述优先级最高的节点的所述第二参数的参数值;In the case that the number of the nodes with the highest priority is multiple, obtain the parameter value of the second parameter of each node with the highest priority;

将所述优先级最高的节点中所述第二参数的参数值小于第一预设阈值的节点确定为所述目标节点。A node whose parameter value of the second parameter is smaller than the first preset threshold among the nodes with the highest priority is determined as the target node.

本实现形式中,基于所述第一参数,若确定的优先级最高的节点存在多个的情况下,可以进一步基于所述第二参数的参数值在多个优先级最高的节点中确定一个目标节点。In this implementation form, based on the first parameter, if there are multiple nodes with the highest priority determined, a target may be further determined among the nodes with the highest priority based on the parameter value of the second parameter node.

具体实现时,CDN网络的中心平台获取每个优先级最高的节点的实时负载容量。在一种具体的实现形式中,CDN网络的中心平台可以将其中实时负载容量最低的节点确定为所述目标节点,若实时负载容量最低的节点仍存在多个的情况下,CDN网络的中心平台可以在实时负载容量最低的节点中随机确定一个节点为所述目标节点,也可以根据实时负载容量最低的节点与所述目标设备之间的距离,将与所述目标设备之间距离最近的节点确定为所述目标节点。During specific implementation, the central platform of the CDN network obtains the real-time load capacity of each node with the highest priority. In a specific implementation form, the central platform of the CDN network may determine the node with the lowest real-time load capacity as the target node, and if there are still multiple nodes with the lowest real-time load capacity, the central platform of the CDN network A node can be randomly determined as the target node among the nodes with the lowest real-time load capacity, or the node with the closest distance to the target device can be selected according to the distance between the node with the lowest real-time load capacity and the target device. Determined as the target node.

在另一种具体的实现形式中,CDN网络的中心平台可以在实时负载容量小于第一预设阈值的节点中随机确定一个节点为所述目标节点。其中,上述所述第一预设阈值可以理解为每个节点对应的负载容量上限。CDN网络的中心平台也可以根据实时负载容量小于第一预设阈值的节点与所述目标设备之间的距离,将与所述目标设备之间距离最近的节点确定为所述目标节点。需要说明的是,本实现形式中,若多个优先级最高的节点的实时负载容量均大于所述第一预设阈值,可以在优先级第二高的节点中确定所述目标节点。In another specific implementation form, the central platform of the CDN network may randomly determine a node as the target node among the nodes whose real-time load capacity is smaller than the first preset threshold. The above-mentioned first preset threshold can be understood as the upper limit of the load capacity corresponding to each node. The central platform of the CDN network may also determine the node with the closest distance to the target device as the target node according to the distance between the node whose real-time load capacity is less than the first preset threshold and the target device. It should be noted that, in this implementation form, if the real-time load capacity of multiple nodes with the highest priority is greater than the first preset threshold, the target node may be determined from the node with the second highest priority.

需要说明的是,本实现形式中,基于所述第二参数的参数值在多个优先级最高的节点中确定一个目标节点的具体实现形式,可以根据实际情况决定,本申请实施例在此不作限定。It should be noted that, in this implementation form, the specific implementation form of determining a target node among multiple nodes with the highest priority based on the parameter value of the second parameter can be determined according to the actual situation, and this embodiment of the present application does not make a specific implementation form. limited.

本实现形式具有如下优点或有益效果本实施方式:基于所述第一参数的参数值确定CDN网络中各节点在直播流调度时的优先级,并将优先级最高的节点确定为所述目标节点,可以提高所述直播流在传输过程中的稳定性,进而提升直播效果。在优先考虑节点质量的基础上,结合节点的负载容量,避免高质量节点网络拥塞,进一步提高直播流调度节点选取的灵活性,进一步提升直播效果。This implementation form has the following advantages or beneficial effects. In this embodiment, the priority of each node in the CDN network during live streaming scheduling is determined based on the parameter value of the first parameter, and the node with the highest priority is determined as the target node , which can improve the stability of the live stream in the transmission process, thereby improving the live broadcast effect. On the basis of prioritizing the quality of nodes, combined with the load capacity of nodes, network congestion of high-quality nodes is avoided, and the flexibility of node selection for live stream scheduling is further improved, and the live broadcast effect is further improved.

本实施方式中,在一种实现形式中,所述基于所述第二分数确定所述各节点的优先级,并将优先级最高的节点确定为所述目标节点,包括:In this implementation manner, in an implementation form, the determining the priority of each node based on the second score, and determining the node with the highest priority as the target node, includes:

在优先级最高的节点的数量为多个的情况下,获取每个所述优先级最高的节点的所述第三参数的参数值;When the number of nodes with the highest priority is multiple, obtain the parameter value of the third parameter of each node with the highest priority;

将所述优先级最高的节点中所述第三参数的参数值小于第二预设阈值的节点确定为所述目标节点。A node whose parameter value of the third parameter is smaller than the second preset threshold in the nodes with the highest priority is determined as the target node.

本实现形式中,基于所述第一参数,若确定的优先级最高的节点存在多个的情况下,可以进一步基于所述第三参数的参数值在多个优先级最高的节点中确定一个目标节点。In this implementation form, based on the first parameter, if there are multiple nodes with the highest priority determined, a target may be further determined from the multiple nodes with the highest priority based on the parameter value of the third parameter node.

具体实现时,CDN网络的中心平台获取每个优先级最高的节点的实时部署成本。在一种具体的实现形式中,CDN网络的中心平台可以将其中实时部署成本最低的节点确定为所述目标节点,若实时部署成本最低的节点仍存在多个的情况下,CDN网络的中心平台可以在实时部署成本最低的节点中随机确定一个节点为所述目标节点,也可以根据实时部署成本最低的节点与所述目标设备之间的距离,将与所述目标设备之间距离最近的节点确定为所述目标节点。When specifically implemented, the central platform of the CDN network obtains the real-time deployment cost of each node with the highest priority. In a specific implementation form, the central platform of the CDN network may determine the node with the lowest real-time deployment cost as the target node, and if there are still multiple nodes with the lowest real-time deployment cost, the central platform of the CDN network One node can be randomly determined as the target node among the nodes with the lowest real-time deployment cost, or the node with the closest distance to the target device can be selected according to the distance between the node with the lowest real-time deployment cost and the target device. Determined as the target node.

在另一种具体的实现形式中,CDN网络的中心平台可以在实时部署成本小于第二预设阈值的节点中随机确定一个节点为所述目标节点。CDN网络的中心平台也可以根据实时部署成本小于第二预设阈值的节点与所述目标设备之间的距离,将与所述目标设备之间距离最近的节点确定为所述目标节点。需要说明的是,本实现形式中,若多个优先级最高的节点的实时部署成本均大于所述第二预设阈值,可以在优先级第二高的节点中确定所述目标节点。In another specific implementation form, the central platform of the CDN network may randomly determine a node as the target node among the nodes whose real-time deployment cost is less than the second preset threshold. The central platform of the CDN network may also determine the node with the closest distance to the target device as the target node according to the distance between the node whose real-time deployment cost is less than the second preset threshold and the target device. It should be noted that, in this implementation form, if the real-time deployment costs of multiple nodes with the highest priority are all greater than the second preset threshold, the target node may be determined from the node with the second highest priority.

需要说明的是,本实现形式中,基于所述第三参数的参数值在多个优先级最高的节点中确定一个目标节点的具体实现形式,可以根据实际情况决定,本申请实施例在此不作限定。It should be noted that, in this implementation form, the specific implementation form of determining a target node among multiple nodes with the highest priority based on the parameter value of the third parameter can be determined according to the actual situation, and this embodiment of the present application does not make a specific implementation form. limited.

本实现形式具有如下优点或有益效果本实施方式:基于所述第一参数的参数值确定CDN网络中各节点在直播流调度时的优先级,并将优先级最高的节点确定为所述目标节点,可以提高所述直播流在传输过程中的稳定性,进而提升直播效果。在优先考虑节点质量的基础上,结合节点的部署成本,既提高了直播流传输的稳定性,还节约了调度成本。This implementation form has the following advantages or beneficial effects. In this embodiment, the priority of each node in the CDN network during live streaming scheduling is determined based on the parameter value of the first parameter, and the node with the highest priority is determined as the target node , which can improve the stability of the live stream in the transmission process, thereby improving the live broadcast effect. On the basis of prioritizing node quality, combined with node deployment costs, it not only improves the stability of live streaming transmission, but also saves scheduling costs.

本申请实施例中,在其他实施方式中,CDN网络平台可以根据直播平台厂商的不同需求,基于所述第二参数的参数值确定CDN网络中各节点在直播流调度时的优先级,或者基于所述第三参数的参数值确定CDN网络中各节点在直播流调度时的优先级,并将优先级最高的节点确定为所述目标节点。In the embodiments of the present application, in other implementations, the CDN network platform may determine the priority of each node in the CDN network during live stream scheduling based on the parameter value of the second parameter according to the different requirements of the live broadcast platform manufacturer, or based on the parameter value of the second parameter. The parameter value of the third parameter determines the priority of each node in the CDN network when scheduling the live stream, and the node with the highest priority is determined as the target node.

具体的,若CDN网络平台基于所述第二参数的参数值确定CDN网络中各节点在直播流调度时的优先级,可以将优先级最高的节点确定为所述目标节点。若确定的优先级最高的节点存在多个的情况下,可以进一步基于所述第一参数的参数值或者所述第三参数的参数值,进一步在多个优先级最高的节点中确定一个节点为所述目标节点。Specifically, if the CDN network platform determines the priority of each node in the CDN network during live stream scheduling based on the parameter value of the second parameter, the node with the highest priority may be determined as the target node. If there are multiple nodes with the highest priority determined, based on the parameter value of the first parameter or the parameter value of the third parameter, further determine a node among the nodes with the highest priority as the target node.

或者,若CDN网络平台基于所述第三参数的参数值确定CDN网络中各节点在直播流调度时的优先级,可以将优先级最高的节点确定为所述目标节点。若确定的优先级最高的节点存在多个的情况下,可以进一步基于所述第一参数的参数值或者所述第二参数的参数值,进一步在多个优先级最高的节点中确定一个节点为所述目标节点。Alternatively, if the CDN network platform determines the priority of each node in the CDN network during live streaming scheduling based on the parameter value of the third parameter, the node with the highest priority may be determined as the target node. If there are multiple nodes with the highest priority determined, based on the parameter value of the first parameter or the parameter value of the second parameter, further determine a node among the nodes with the highest priority as the the target node.

第三种实施方式,所述内容分发网络中包括至少一个第一级节点,每个所述第一级节点对应至少一个第二级节点;所述响应于所述调度请求,基于内容分发网络中各节点的服务参数的参数值,确定目标节点,包括:In a third implementation manner, the content distribution network includes at least one first-level node, and each of the first-level nodes corresponds to at least one second-level node; the response to the scheduling request is based on the content distribution network The parameter values of the service parameters of each node determine the target node, including:

响应于所述调度请求,基于每个所述第一级节点的服务参数的参数值,确定第一目标节点;In response to the scheduling request, determining a first target node based on a parameter value of a service parameter of each of the first-level nodes;

基于所述第一目标节点对应的每个所述第二级节点的服务参数的参数值,确定第二目标节点;determining a second target node based on the parameter value of the service parameter of each of the second-level nodes corresponding to the first target node;

所述将所述直播流通过所述目标节点调度至目标设备,包括:The scheduling of the live stream to the target device through the target node includes:

将所述直播流调度至所述第一目标节点,并通过所述第一目标节点将所述直播流调度至所述第二目标节点,以及通过所述第二目标节点将所述直播流调度至所述目标设备。Scheduling the live stream to the first target node, and scheduling the live stream to the second target node through the first target node, and scheduling the live stream through the second target node to the target device.

本实施方式中,CDN网络的中心平台可以根据各节点的负载能力和部署地域对各节点进行分级,CDN网络的中心平台可以基于每个所述第一级节点的服务参数的参数值,在长距离跨区域的推流或者拉流过程中,可以通过不同级别节点之间的依次调度,提高直播流传输的稳定性,提升直播效果。具体的,CDN网络的中心平台可以将CDN网络中各节点至少分为两级,每一个第一级节点可以辐射至少一个第二级节点,已形成不同级别的节点之间的连接关系。In this embodiment, the central platform of the CDN network can classify each node according to the load capacity and deployment area of each node. In the process of pushing or pulling streams across regions, the stability of live streaming transmission can be improved and the live streaming effect can be improved through sequential scheduling between nodes at different levels. Specifically, the central platform of the CDN network can divide each node in the CDN network into at least two levels, each first-level node can radiate at least one second-level node, and a connection relationship between nodes of different levels has been formed.

具体实现时,CDN网络的中心平台可以基于每个所述第一级节点的服务参数的参数值,确定第一目标节点,所述第一目标节点为CDN网络中的第一级节点。若CDN网络的中心平台接收到用户设备针对所述直播流的访问请求的情况下,可以判断发送请求的用户设备所在的位置,若与所述第一目标节点所在位置或者与发起直播的用户设备之间的距离较长,可以基于所述第一目标节点对应的每个所述第二级节点的服务参数的参数值,确定第二目标节点,以实现各级节点的分级调度。During specific implementation, the central platform of the CDN network may determine the first target node based on the parameter value of the service parameter of each of the first-level nodes, where the first target node is the first-level node in the CDN network. If the central platform of the CDN network receives an access request from the user equipment for the live stream, it can determine the location of the user equipment that sent the request. If the distance between them is relatively long, the second target node may be determined based on the parameter value of the service parameter of each of the second-level nodes corresponding to the first target node, so as to implement hierarchical scheduling of nodes at all levels.

需要说明的是,在CDN网络中的多个第一级节点中确定所述第一目标节点,以及在所述第一目标节点对应的多个第二级节点中确定所述第二目标节点的具体实施方式,可以参照上述确定所述目标节点的具体实施方式,在此不再赘述。It should be noted that the first target node is determined from multiple first-level nodes in the CDN network, and the second target node is determined from multiple second-level nodes corresponding to the first target node. For specific implementations, reference may be made to the specific implementations for determining the target node described above, and details are not described herein again.

本实施方式中,CDN网络的中心平台可以将CDN网络中各节点至少分为两级,针对距离较长的直播流调度场景中,也可以设置三级节点或者多级节点,具体可以根据实际情况决定,本申请实施例在此不作限定。In this embodiment, the central platform of the CDN network can divide each node in the CDN network into at least two levels. For the long-distance live stream scheduling scenario, three-level nodes or multi-level nodes can also be set, which can be determined according to the actual situation. It is decided that the embodiments of the present application are not limited herein.

本实施方式具有如下优点或有益效果本实施方式:CDN网络的中心平台通过不同级别节点之间的依次调度,可以降低主播用户设备与观众用户设备之间的地域隔离,提高直播流跨地域传输的稳定性,提升直播效果。This embodiment has the following advantages or beneficial effects: this embodiment: through sequential scheduling between nodes at different levels, the central platform of the CDN network can reduce the geographical isolation between the host user equipment and the viewer user equipment, and improve the cross-regional transmission of live streams. Stability, improve live broadcast effect.

综上所述,本申请的上述实施例具有如下优点或有益效果:响应于接收到的针对直播流的调度请求,可以基于CDN网络中各节点对所述音视频数据的处理质量、各节点的实时负载容量、各节点的部署成本和各节点所属的级别中的至少一项确定CDN网络中各节点的情况,进而确定针对每一条直播流的调度节点,可以根据对直播流调度的不同需求,基于一种或者多种服务参数综合确定所述目标节点,使得直播流调度节点的选取更加灵活,更加符合提供音视频直播服务的厂商的个性化需求。To sum up, the above-mentioned embodiments of the present application have the following advantages or beneficial effects: in response to the received scheduling request for the live stream, the processing quality of the audio and video data by each node in the CDN network, the At least one of the real-time load capacity, the deployment cost of each node, and the level to which each node belongs determines the status of each node in the CDN network, and then determines the scheduling node for each live stream, which can be based on different requirements for live stream scheduling. The target node is comprehensively determined based on one or more service parameters, so that the selection of the live stream scheduling node is more flexible, and it is more in line with the individual needs of manufacturers that provide live audio and video services.

本申请还提供了一种直播流的调度装置。The present application also provides a scheduling device for live streaming.

如图3所示,直播流的调度装置300包括:As shown in FIG. 3 , thescheduling apparatus 300 for live streaming includes:

接收模块301,用于接收针对直播流的调度请求,所述直播流携带有音视频数据;A receivingmodule 301, configured to receive a scheduling request for a live stream, where the live stream carries audio and video data;

确定模块302,用于响应于所述调度请求,基于内容分发网络中各节点的服务参数的参数值,确定目标节点;Adetermination module 302, configured to, in response to the scheduling request, determine a target node based on parameter values of service parameters of each node in the content distribution network;

调度模块303,用于将所述直播流通过所述目标节点调度至目标设备,所述目标设备包括用户设备或者服务器;a scheduling module 303, configured to schedule the live stream to a target device through the target node, where the target device includes a user equipment or a server;

其中,所述节点的服务参数包括第一参数、第二参数、第三参数和第四参数中的至少一项,所述第一参数用于表征所述节点对所述音视频数据的处理质量,所述第二参数用于表征所述节点的实时负载容量,所述第三参数用于表征所述节点的部署成本,所述第四参数用于表征所述节点所属的级别。The service parameter of the node includes at least one of a first parameter, a second parameter, a third parameter and a fourth parameter, and the first parameter is used to represent the processing quality of the audio and video data by the node , the second parameter is used to represent the real-time load capacity of the node, the third parameter is used to represent the deployment cost of the node, and the fourth parameter is used to represent the level to which the node belongs.

可选地,确定模块302包括:Optionally, the determiningmodule 302 includes:

第一获取单元,用于响应于所述调度请求,获取所述内容分发网络中各节点的服务参数的参数值,所述服务参数包括所述第一参数、所述第二参数和所述第三参数;A first obtaining unit, configured to obtain parameter values of service parameters of each node in the content distribution network in response to the scheduling request, where the service parameters include the first parameter, the second parameter and the first parameter Three parameters;

第一计算单元,用于基于所述各节点的每一个所述服务参数的参数值,以及每一个所述服务参数分别对应的第一预设权重,获取所述各节点的第一分数;a first computing unit, configured to obtain a first score of each node based on a parameter value of each of the service parameters of the nodes and a first preset weight corresponding to each of the service parameters;

第一确定单元,用于基于所述第一分数确定所述各节点的优先级,并将优先级最高的节点确定为所述目标节点。A first determining unit, configured to determine the priority of each node based on the first score, and determine the node with the highest priority as the target node.

可选地,确定模块302包括:Optionally, the determiningmodule 302 includes:

第二获取单元,用于响应于所述调度请求,获取所述内容分发网络中各节点的所述第一参数的参数值,所述第一参数包括处理后的所述音视频数据的清晰度、处理后的所述音视频数据的卡顿率和处理后的所述音视频的首帧时间中的至少一项;a second acquiring unit, configured to acquire, in response to the scheduling request, the parameter value of the first parameter of each node in the content distribution network, where the first parameter includes the resolution of the processed audio and video data , at least one of the freezing rate of the processed audio and video data and the first frame time of the processed audio and video data;

第二计算单元,用于基于所述各节点的每一个所述第一参数的参数值,以及每一个所述第一参数分别对应的第二预设权重,获取各节点的第二分数;a second computing unit, configured to obtain the second score of each node based on the parameter value of each of the first parameters of the nodes and the second preset weight corresponding to each of the first parameters;

第二确定单元,用于基于所述第二分数确定所述各节点的优先级,并将优先级最高的节点确定为所述目标节点。A second determining unit, configured to determine the priority of each node based on the second score, and determine the node with the highest priority as the target node.

可选地,所述第二确定单元包括:Optionally, the second determining unit includes:

第一获取子单元,用于在所述优先级最高的节点的数量为多个的情况下,获取每个所述优先级最高的节点的所述第二参数的参数值;a first obtaining subunit, configured to obtain a parameter value of the second parameter of each node with the highest priority when the number of nodes with the highest priority is multiple;

第一确定子单元,用于将所述优先级最高的节点中所述第二参数的参数值小于第一预设阈值的节点确定为所述目标节点。The first determination subunit is configured to determine the node whose parameter value of the second parameter is smaller than the first preset threshold in the node with the highest priority as the target node.

可选地,所述第二确定单元包括:Optionally, the second determining unit includes:

第二获取子单元,用于在优先级最高的节点的数量为多个的情况下,获取每个所述优先级最高的节点的所述第三参数的参数值;a second obtaining subunit, configured to obtain the parameter value of the third parameter of each node with the highest priority when the number of nodes with the highest priority is multiple;

第二确定子单元,用于将所述优先级最高的节点中所述第三参数的参数值小于第二预设阈值的节点确定为所述目标节点。The second determination subunit is configured to determine the node whose parameter value of the third parameter is smaller than the second preset threshold in the node with the highest priority as the target node.

可选地,所述内容分发网络中包括至少一个第一级节点,每个所述第一级节点对应至少一个第二级节点;确定模块302包括:Optionally, the content distribution network includes at least one first-level node, and each of the first-level nodes corresponds to at least one second-level node; the determiningmodule 302 includes:

第三确定单元,用于响应于所述调度请求,基于每个所述第一级节点的服务参数的参数值,确定第一目标节点;a third determining unit, configured to, in response to the scheduling request, determine a first target node based on a parameter value of a service parameter of each of the first-level nodes;

第四确定单元,用于基于所述第一目标节点对应的每个所述第二级节点的服务参数的参数值,确定第二目标节点;a fourth determining unit, configured to determine a second target node based on a parameter value of a service parameter of each of the second-level nodes corresponding to the first target node;

调度模块303具体用于:The scheduling module 303 is specifically used for:

将所述直播流调度至所述第一目标节点,并通过所述第一目标节点将所述直播流调度至所述第二目标节点,以及通过所述第二目标节点将所述直播流调度至所述目标设备。Scheduling the live stream to the first target node, and scheduling the live stream to the second target node through the first target node, and scheduling the live stream through the second target node to the target device.

本申请的上述实施例中,直播流的调度装置300可实现图2所示的方法实施例中实现的各个过程,且可以达到相同有益效果,为避免重复,这里不再赘述。In the above embodiments of the present application, the livestream scheduling apparatus 300 can implement each process implemented in the method embodiment shown in FIG. 2 , and can achieve the same beneficial effects. To avoid repetition, details are not described here.

根据本申请的实施例,本申请还提供了一种电子设备、一种可读存储介质和一种计算机程序产品。According to the embodiments of the present application, the present application further provides an electronic device, a readable storage medium, and a computer program product.

图4示出了可以用来实施本申请的实施例的示例电子设备400的示意性框图。电子设备旨在表示各种形式的数字计算机,诸如,膝上型计算机、台式计算机、工作台、个人数字助理、服务器、刀片式服务器、大型计算机、和其它适合的计算机。电子设备还可以表示各种形式的移动装置,诸如,个人数字处理、蜂窝电话、智能电话、可穿戴设备和其它类似的计算装置。本文所示的部件、它们的连接和关系、以及它们的功能仅仅作为示例,并且不意在限制本文中描述的和/或者要求的本申请的实现。FIG. 4 shows a schematic block diagram of an exampleelectronic device 400 that may be used to implement embodiments of the present application. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. Electronic devices may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are by way of example only, and are not intended to limit implementations of the application described and/or claimed herein.

如图4所示,设备400包括计算单元401,其可以根据存储在只读存储器(ROM)402中的计算机程序或者从存储单元408加载到随机访问存储器(RAM)403中的计算机程序,来执行各种适当的动作和处理。在RAM 403中,还可存储设备400操作所需的各种程序和数据。计算单元401、ROM 402以及RAM 403通过总线404彼此相连。输入/输出(I/O)接口405也连接至总线404。As shown in FIG. 4 , thedevice 400 includes acomputing unit 401 that can be executed according to a computer program stored in a read only memory (ROM) 402 or loaded from astorage unit 408 into a random access memory (RAM) 403 Various appropriate actions and handling. In theRAM 403, various programs and data necessary for the operation of thedevice 400 can also be stored. Thecomputing unit 401 , theROM 402 , and theRAM 403 are connected to each other through abus 404 . An input/output (I/O)interface 405 is also connected tobus 404 .

设备400中的多个部件连接至I/O接口405,包括:输入单元406,例如键盘、鼠标等;输出单元407,例如各种类型的显示器、扬声器等;存储单元408,例如磁盘、光盘等;以及通信单元409,例如网卡、调制解调器、无线通信收发机等。通信单元409允许设备400通过诸如因特网的计算机网络和/或各种电信网络与其他设备交换信息/数据。Various components in thedevice 400 are connected to the I/O interface 405, including: aninput unit 406, such as a keyboard, mouse, etc.; anoutput unit 407, such as various types of displays, speakers, etc.; astorage unit 408, such as a magnetic disk, an optical disk, etc. ; and acommunication unit 409, such as a network card, a modem, a wireless communication transceiver, and the like. Thecommunication unit 409 allows thedevice 400 to exchange information/data with other devices through a computer network such as the Internet and/or various telecommunication networks.

计算单元401可以是各种具有处理和计算能力的通用和/或专用处理组件。计算单元401的一些示例包括但不限于中央处理单元(CPU)、图形处理单元(GPU)、各种专用的人工智能(AI)计算芯片、各种运行机器学习模型算法的计算单元、数字信号处理器(DSP)、以及任何适当的处理器、控制器、微控制器等。计算单元401执行上文所描述的各个方法和处理,例如直播流的调度方法。例如,在一些实施例中,直播流的调度方法可被实现为计算机软件程序,其被有形地包含于机器可读介质,例如存储单元408。在一些实施例中,计算机程序的部分或者全部可以经由ROM 402和/或通信单元409而被载入和/或安装到设备400上。当计算机程序加载到RAM 403并由计算单元401执行时,可以执行上文描述的直播流的调度方法的一个或多个步骤。备选地,在其他实施例中,计算单元401可以通过其他任何适当的方式(例如,借助于固件)而被配置为执行直播流的调度方法。Computing unit 401 may be various general-purpose and/or special-purpose processing components with processing and computing capabilities. Some examples of computingunits 401 include, but are not limited to, central processing units (CPUs), graphics processing units (GPUs), various specialized artificial intelligence (AI) computing chips, various computing units that run machine learning model algorithms, digital signal processing processor (DSP), and any suitable processor, controller, microcontroller, etc. Thecomputing unit 401 executes the various methods and processes described above, such as the scheduling method of the live stream. For example, in some embodiments, a method of scheduling a live stream may be implemented as a computer software program tangibly embodied on a machine-readable medium, such asstorage unit 408 . In some embodiments, part or all of the computer program may be loaded and/or installed ondevice 400 viaROM 402 and/orcommunication unit 409 . When the computer program is loaded into theRAM 403 and executed by thecomputing unit 401, one or more steps of the scheduling method of the live stream described above may be performed. Alternatively, in other embodiments, thecomputing unit 401 may be configured to perform the scheduling method of the live stream by any other suitable means (eg, by means of firmware).

本文中以上描述的系统和技术的各种实施方式可以在数字电子电路系统、集成电路系统、场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、芯片上系统的系统(SOC)、负载可编程逻辑设备(CPLD)、计算机硬件、固件、软件、和/或它们的组合中实现。这些各种实施方式可以包括:实施在一个或者多个计算机程序中,该一个或者多个计算机程序可在包括至少一个可编程处理器的可编程系统上执行和/或解释,该可编程处理器可以是专用或者通用可编程处理器,可以从存储系统、至少一个输入装置、和至少一个输出装置接收数据和指令,并且将数据和指令传输至该存储系统、该至少一个输入装置、和该至少一个输出装置。Various implementations of the systems and techniques described herein above may be implemented in digital electronic circuitry, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips system (SOC), load programmable logic device (CPLD), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include being implemented in one or more computer programs executable and/or interpretable on a programmable system including at least one programmable processor that The processor, which may be a special purpose or general-purpose programmable processor, may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device an output device.

用于实施本申请的方法的程序代码可以采用一个或多个编程语言的任何组合来编写。这些程序代码可以提供给通用计算机、专用计算机或其他可编程数据处理装置的处理器或控制器,使得程序代码当由处理器或控制器执行时使流程图和/或框图中所规定的功能/操作被实施。程序代码可以完全在机器上执行、部分地在机器上执行,作为独立软件包部分地在机器上执行且部分地在远程机器上执行或完全在远程机器或服务器上执行。Program code for implementing the methods of the present application may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer or other programmable data processing apparatus, such that the program code, when executed by the processor or controller, performs the functions/functions specified in the flowcharts and/or block diagrams. Action is implemented. The program code may execute entirely on the machine, partly on the machine, partly on the machine and partly on a remote machine as a stand-alone software package or entirely on the remote machine or server.

在本申请的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。In the context of this application, a machine-readable medium may be a tangible medium that may contain or store the program for use by or in connection with the instruction execution system, apparatus or device. The machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. Machine-readable media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media would include one or more wire-based electrical connections, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), fiber optics, compact disk read only memory (CD-ROM), optical storage, magnetic storage, or any suitable combination of the foregoing.

为了提供与用户的交互,可以在计算机上实施此处描述的系统和技术,该计算机具有:用于向用户显示信息的显示装置(例如,CRT(阴极射线管)或者LCD(液晶显示器)监视器);以及键盘和指向装置(例如,鼠标或者轨迹球),用户可以通过该键盘和该指向装置来将输入提供给计算机。其它种类的装置还可以用于提供与用户的交互;例如,提供给用户的反馈可以是任何形式的传感反馈(例如,视觉反馈、听觉反馈、或者触觉反馈);并且可以用任何形式(包括声输入、语音输入或者、触觉输入)来接收来自用户的输入。To provide interaction with a user, the systems and techniques described herein may be implemented on a computer having a display device (eg, a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user ); and a keyboard and pointing device (eg, a mouse or trackball) through which a user can provide input to the computer. Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (eg, visual feedback, auditory feedback, or tactile feedback); and can be in any form (including acoustic input, voice input, or tactile input) to receive input from the user.

可以将此处描述的系统和技术实施在包括后台部件的计算系统(例如,作为数据服务器)、或者包括中间件部件的计算系统(例如,应用服务器)、或者包括前端部件的计算系统(例如,具有图形用户界面或者网络浏览器的用户计算机,用户可以通过该图形用户界面或者该网络浏览器来与此处描述的系统和技术的实施方式交互)、或者包括这种后台部件、中间件部件、或者前端部件的任何组合的计算系统中。可以通过任何形式或者介质的数字数据通信(例如,通信网络)来将系统的部件相互连接。通信网络的示例包括:局域网(LAN)、广域网(WAN)和互联网。The systems and techniques described herein may be implemented on a computing system that includes back-end components (eg, as a data server), or a computing system that includes middleware components (eg, an application server), or a computing system that includes front-end components (eg, a user's computer having a graphical user interface or web browser through which a user may interact with implementations of the systems and techniques described herein), or including such backend components, middleware components, Or any combination of front-end components in a computing system. The components of the system may be interconnected by any form or medium of digital data communication (eg, a communication network). Examples of communication networks include: Local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.

计算机系统可以包括客户端和服务器。客户端和服务器一般远离彼此并且通常通过通信网络进行交互。通过在相应的计算机上运行并且彼此具有客户端-服务器关系的计算机程序来产生客户端和服务器的关系。A computer system can include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server arises by computer programs running on the respective computers and having a client-server relationship to each other.

应该理解,可以使用上面所示的各种形式的流程,重新排序、增加或删除步骤。例如,本发公开中记载的各步骤可以并行地执行也可以顺序地执行也可以不同的次序执行,只要能够实现本申请公开的技术方案所期望的结果,本文在此不进行限制。It should be understood that steps may be reordered, added or deleted using the various forms of flow shown above. For example, the steps described in the present disclosure can be executed in parallel, sequentially, or in different orders. As long as the desired results of the technical solutions disclosed in the present application can be achieved, no limitation is imposed herein.

上述具体实施方式,并不构成对本申请保护范围的限制。本领域技术人员应该明白的是,根据设计要求和其他因素,可以进行各种修改、组合、子组合和替代。任何在本申请的精神和原则之内所作的修改、等同替换和改进等,均应包含在本申请保护范围之内。The above-mentioned specific embodiments do not constitute a limitation on the protection scope of the present application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modifications, equivalent replacements and improvements made within the spirit and principles of this application shall be included within the protection scope of this application.

Claims (15)

Translated fromChinese
1.一种直播流的调度方法,包括:1. A scheduling method for live streaming, comprising:接收针对直播流的调度请求,所述直播流携带有音视频数据;receiving a scheduling request for a live stream, the live stream carrying audio and video data;响应于所述调度请求,基于内容分发网络中各节点的服务参数的参数值,确定目标节点;In response to the scheduling request, determining a target node based on parameter values of service parameters of each node in the content distribution network;将所述直播流通过所述目标节点调度至目标设备,所述目标设备包括用户设备或者服务器;scheduling the live stream to a target device through the target node, where the target device includes a user equipment or a server;其中,所述节点的服务参数包括第一参数、第二参数、第三参数和第四参数中的至少一项,所述第一参数用于表征所述节点对所述音视频数据的处理质量,所述第二参数用于表征所述节点的实时负载容量,所述第三参数用于表征所述节点的部署成本,所述第四参数用于表征所述节点所属的级别。The service parameter of the node includes at least one of a first parameter, a second parameter, a third parameter and a fourth parameter, and the first parameter is used to represent the processing quality of the audio and video data by the node , the second parameter is used to represent the real-time load capacity of the node, the third parameter is used to represent the deployment cost of the node, and the fourth parameter is used to represent the level to which the node belongs.2.根据权利要求1所述的方法,其中,所述响应于所述调度请求,基于内容分发网络中各节点的服务参数的参数值,确定目标节点,包括:2. The method according to claim 1, wherein, in response to the scheduling request, determining the target node based on parameter values of service parameters of each node in the content distribution network comprises:响应于所述调度请求,获取所述内容分发网络中各节点的服务参数的参数值,所述服务参数包括所述第一参数、所述第二参数和所述第三参数;In response to the scheduling request, obtain parameter values of service parameters of each node in the content distribution network, where the service parameters include the first parameter, the second parameter, and the third parameter;基于所述各节点的每一个所述服务参数的参数值,以及每一个所述服务参数分别对应的第一预设权重,获取所述各节点的第一分数;obtaining a first score of each node based on the parameter value of each of the service parameters of the nodes and the first preset weight corresponding to each of the service parameters;基于所述第一分数确定所述各节点的优先级,并将优先级最高的节点确定为所述目标节点。The priority of each node is determined based on the first score, and the node with the highest priority is determined as the target node.3.根据权利要求1所述的方法,其中,所述响应于所述调度请求,基于内容分发网络中各节点的服务参数的参数值,确定目标节点,包括:3. The method according to claim 1, wherein, in response to the scheduling request, determining the target node based on parameter values of service parameters of each node in the content distribution network comprises:响应于所述调度请求,获取所述内容分发网络中各节点的所述第一参数的参数值,所述第一参数包括处理后的所述音视频数据的清晰度、处理后的所述音视频数据的卡顿率和处理后的所述音视频的首帧时间中的至少一项;In response to the scheduling request, obtain the parameter value of the first parameter of each node in the content distribution network, where the first parameter includes the clarity of the processed audio and video data, the processed audio At least one of the freezing rate of the video data and the first frame time of the processed audio and video;基于所述各节点的每一个所述第一参数的参数值,以及每一个所述第一参数分别对应的第二预设权重,获取各节点的第二分数;obtaining a second score of each node based on the parameter value of each of the first parameters of the nodes and the second preset weight corresponding to each of the first parameters;基于所述第二分数确定所述各节点的优先级,并将优先级最高的节点确定为所述目标节点。The priority of each node is determined based on the second score, and the node with the highest priority is determined as the target node.4.根据权利要求3所述的方法,其中,所述基于所述第二分数确定所述各节点的优先级,并将优先级最高的节点确定为所述目标节点,包括:4. The method according to claim 3, wherein the determining the priority of each node based on the second score, and determining the node with the highest priority as the target node, comprises:在所述优先级最高的节点的数量为多个的情况下,获取每个所述优先级最高的节点的所述第二参数的参数值;In the case that the number of the nodes with the highest priority is multiple, obtain the parameter value of the second parameter of each node with the highest priority;将所述优先级最高的节点中所述第二参数的参数值小于第一预设阈值的节点确定为所述目标节点。A node whose parameter value of the second parameter is smaller than the first preset threshold among the nodes with the highest priority is determined as the target node.5.根据权利要求3所述的方法,其中,所述基于所述第二分数确定所述各节点的优先级,并将优先级最高的节点确定为所述目标节点,包括:5. The method according to claim 3, wherein the determining the priority of each node based on the second score, and determining the node with the highest priority as the target node, comprises:在优先级最高的节点的数量为多个的情况下,获取每个所述优先级最高的节点的所述第三参数的参数值;When the number of nodes with the highest priority is multiple, obtain the parameter value of the third parameter of each node with the highest priority;将所述优先级最高的节点中所述第三参数的参数值小于第二预设阈值的节点确定为所述目标节点。A node whose parameter value of the third parameter is smaller than the second preset threshold in the nodes with the highest priority is determined as the target node.6.根据权利要求1所述的方法,其中,所述内容分发网络中包括至少一个第一级节点,每个所述第一级节点对应至少一个第二级节点;所述响应于所述调度请求,基于内容分发网络中各节点的服务参数的参数值,确定目标节点,包括:6. The method of claim 1, wherein the content distribution network includes at least one first-level node, each of the first-level nodes corresponding to at least one second-level node; the response to the scheduling Request, determine the target node based on the parameter value of the service parameter of each node in the content distribution network, including:响应于所述调度请求,基于每个所述第一级节点的服务参数的参数值,确定第一目标节点;In response to the scheduling request, determining a first target node based on a parameter value of a service parameter of each of the first-level nodes;基于所述第一目标节点对应的每个所述第二级节点的服务参数的参数值,确定第二目标节点;determining a second target node based on the parameter value of the service parameter of each of the second-level nodes corresponding to the first target node;所述将所述直播流通过所述目标节点调度至目标设备,包括:The scheduling of the live stream to the target device through the target node includes:将所述直播流调度至所述第一目标节点,并通过所述第一目标节点将所述直播流调度至所述第二目标节点,以及通过所述第二目标节点将所述直播流调度至所述目标设备。Scheduling the live stream to the first target node, and scheduling the live stream to the second target node through the first target node, and scheduling the live stream through the second target node to the target device.7.一种直播流的调度装置,包括:7. A scheduling device for live streaming, comprising:接收模块,用于接收针对直播流的调度请求,所述直播流携带有音视频数据;a receiving module, configured to receive a scheduling request for a live stream, the live stream carrying audio and video data;确定模块,用于响应于所述调度请求,基于内容分发网络中各节点的服务参数的参数值,确定目标节点;a determining module, configured to, in response to the scheduling request, determine a target node based on parameter values of service parameters of each node in the content distribution network;调度模块,用于将所述直播流通过所述目标节点调度至目标设备,所述目标设备包括用户设备或者服务器;a scheduling module, configured to schedule the live stream to a target device through the target node, where the target device includes a user equipment or a server;其中,所述节点的服务参数包括第一参数、第二参数、第三参数和第四参数中的至少一项,所述第一参数用于表征所述节点对所述音视频数据的处理质量,所述第二参数用于表征所述节点的实时负载容量,所述第三参数用于表征所述节点的部署成本,所述第四参数用于表征所述节点所属的级别。The service parameter of the node includes at least one of a first parameter, a second parameter, a third parameter and a fourth parameter, and the first parameter is used to represent the processing quality of the audio and video data by the node , the second parameter is used to represent the real-time load capacity of the node, the third parameter is used to represent the deployment cost of the node, and the fourth parameter is used to represent the level to which the node belongs.8.根据权利要求7所述的装置,其中,所述确定模块包括:8. The apparatus of claim 7, wherein the determining module comprises:第一获取单元,用于响应于所述调度请求,获取所述内容分发网络中各节点的服务参数的参数值,所述服务参数包括所述第一参数、所述第二参数和所述第三参数;A first obtaining unit, configured to obtain parameter values of service parameters of each node in the content distribution network in response to the scheduling request, where the service parameters include the first parameter, the second parameter and the first parameter Three parameters;第一计算单元,用于基于所述各节点的每一个所述服务参数的参数值,以及每一个所述服务参数分别对应的第一预设权重,获取所述各节点的第一分数;a first computing unit, configured to obtain a first score of each node based on a parameter value of each of the service parameters of the nodes and a first preset weight corresponding to each of the service parameters;第一确定单元,用于基于所述第一分数确定所述各节点的优先级,并将优先级最高的节点确定为所述目标节点。A first determining unit, configured to determine the priority of each node based on the first score, and determine the node with the highest priority as the target node.9.根据权利要求7所述的装置,其中,所述确定模块包括:9. The apparatus of claim 7, wherein the determining module comprises:第二获取单元,用于响应于所述调度请求,获取所述内容分发网络中各节点的所述第一参数的参数值,所述第一参数包括处理后的所述音视频数据的清晰度、处理后的所述音视频数据的卡顿率和处理后的所述音视频的首帧时间中的至少一项;a second acquiring unit, configured to acquire, in response to the scheduling request, the parameter value of the first parameter of each node in the content distribution network, where the first parameter includes the resolution of the processed audio and video data , at least one of the freezing rate of the processed audio and video data and the first frame time of the processed audio and video data;第二计算单元,用于基于所述各节点的每一个所述第一参数的参数值,以及每一个所述第一参数分别对应的第二预设权重,获取各节点的第二分数;a second computing unit, configured to obtain the second score of each node based on the parameter value of each of the first parameters of the nodes and the second preset weight corresponding to each of the first parameters;第二确定单元,用于基于所述第二分数确定所述各节点的优先级,并将优先级最高的节点确定为所述目标节点。A second determining unit, configured to determine the priority of each node based on the second score, and determine the node with the highest priority as the target node.10.根据权利要求9所述的装置,其中,所述第二确定单元包括:10. The apparatus according to claim 9, wherein the second determining unit comprises:第一获取子单元,用于在所述优先级最高的节点的数量为多个的情况下,获取每个所述优先级最高的节点的所述第二参数的参数值;a first obtaining subunit, configured to obtain a parameter value of the second parameter of each node with the highest priority when the number of nodes with the highest priority is multiple;第一确定子单元,用于将所述优先级最高的节点中所述第二参数的参数值小于第一预设阈值的节点确定为所述目标节点。The first determination subunit is configured to determine the node whose parameter value of the second parameter is smaller than the first preset threshold in the node with the highest priority as the target node.11.根据权利要求9所述的装置,其中,所述第二确定单元包括:11. The apparatus of claim 9, wherein the second determining unit comprises:第二获取子单元,用于在优先级最高的节点的数量为多个的情况下,获取每个所述优先级最高的节点的所述第三参数的参数值;a second obtaining subunit, configured to obtain the parameter value of the third parameter of each node with the highest priority when the number of nodes with the highest priority is multiple;第二确定子单元,用于将所述优先级最高的节点中所述第三参数的参数值小于第二预设阈值的节点确定为所述目标节点。The second determination subunit is configured to determine the node whose parameter value of the third parameter is smaller than the second preset threshold in the node with the highest priority as the target node.12.根据权利要求7所述的装置,其中,所述内容分发网络中包括至少一个第一级节点,每个所述第一级节点对应至少一个第二级节点;所述确定模块包括:12. The apparatus according to claim 7, wherein the content distribution network includes at least one first-level node, and each of the first-level nodes corresponds to at least one second-level node; the determining module comprises:第三确定单元,用于响应于所述调度请求,基于每个所述第一级节点的服务参数的参数值,确定第一目标节点;a third determining unit, configured to, in response to the scheduling request, determine a first target node based on a parameter value of a service parameter of each of the first-level nodes;第四确定单元,用于基于所述第一目标节点对应的每个所述第二级节点的服务参数的参数值,确定第二目标节点;a fourth determining unit, configured to determine a second target node based on a parameter value of a service parameter of each of the second-level nodes corresponding to the first target node;所述调度模块具体用于:The scheduling module is specifically used for:将所述直播流调度至所述第一目标节点,并通过所述第一目标节点将所述直播流调度至所述第二目标节点,以及通过所述第二目标节点将所述直播流调度至所述目标设备。Scheduling the live stream to the first target node, and scheduling the live stream to the second target node through the first target node, and scheduling the live stream through the second target node to the target device.13.一种电子设备,包括:13. An electronic device comprising:至少一个处理器;以及at least one processor; and与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行权利要求1-6中任一项所述的方法。The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the execution of any of claims 1-6 Methods.14.一种存储有计算机指令的非瞬时计算机可读存储介质,其中,所述计算机指令用于使所述计算机执行根据权利要求1-6中任一项所述的方法。14. A non-transitory computer-readable storage medium storing computer instructions for causing the computer to perform the method of any of claims 1-6.15.一种计算机程序产品,包括计算机程序,所述计算机程序在被处理器执行时实现根据权利要求1-6中任一项所述的方法。15. A computer program product comprising a computer program which, when executed by a processor, implements the method of any of claims 1-6.
CN202110219546.6A2021-02-262021-02-26Live stream scheduling method and device, electronic equipment and readable storage mediumActiveCN113038191B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202110219546.6ACN113038191B (en)2021-02-262021-02-26Live stream scheduling method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202110219546.6ACN113038191B (en)2021-02-262021-02-26Live stream scheduling method and device, electronic equipment and readable storage medium

Publications (2)

Publication NumberPublication Date
CN113038191Atrue CN113038191A (en)2021-06-25
CN113038191B CN113038191B (en)2022-09-23

Family

ID=76461947

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202110219546.6AActiveCN113038191B (en)2021-02-262021-02-26Live stream scheduling method and device, electronic equipment and readable storage medium

Country Status (1)

CountryLink
CN (1)CN113038191B (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN113596509A (en)*2021-08-262021-11-02上海哔哩哔哩科技有限公司Node scheduling method and device
CN113891114A (en)*2021-11-182022-01-04上海哔哩哔哩科技有限公司Transcoding task scheduling method and device
CN114003179A (en)*2021-11-092022-02-01中国建设银行股份有限公司Data processing method and device, electronic equipment and computer readable storage medium
CN114125482A (en)*2021-11-232022-03-01腾讯音乐娱乐科技(深圳)有限公司 Processing method, electronic device and storage medium for live broadcast connected to wheat
CN114500663A (en)*2021-12-282022-05-13网宿科技股份有限公司 Scheduling method, device, device and storage medium for content distribution network equipment
CN114697683A (en)*2022-03-252022-07-01腾讯音乐娱乐科技(深圳)有限公司Intelligent scheduling method, equipment and computer program product for streaming media file
CN114885152A (en)*2022-04-292022-08-09抖动科技(深圳)有限公司Video service quality evaluation method, device, equipment and storage medium
CN115002518A (en)*2022-05-302022-09-02咪咕视讯科技有限公司 Data monitoring method, device and computer readable storage medium
CN115037696A (en)*2022-05-302022-09-09北京百度网讯科技有限公司 Data transmission method, device, electronic device and storage medium
CN115348267A (en)*2022-08-102022-11-15北京百度网讯科技有限公司Scheduling method and device for CDN node of content delivery network
CN115412737A (en)*2022-08-302022-11-29上海哔哩哔哩科技有限公司Method and device for determining live broadcast source return relay node
CN115914668A (en)*2022-12-222023-04-04湖南快乐阳光互动娱乐传媒有限公司Live broadcast stream processing method and live broadcast source station cluster
CN116193170A (en)*2022-12-302023-05-30福建野小兽健康科技有限公司Video cartoon scheduling method, device, medium and equipment
CN116455983A (en)*2023-06-162023-07-18湖南快乐阳光互动娱乐传媒有限公司Resource scheduling method, system and converged network resource scheduling system
CN118158451A (en)*2024-04-122024-06-07深圳市光网世纪科技有限公司 Online live broadcast method, device and medium based on cloud network interconnection

Citations (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN106412043A (en)*2016-09-202017-02-15网宿科技股份有限公司CDN flow guide method and device
US20170142450A1 (en)*2015-11-182017-05-18International Business Machines CorporationMedia Distribution Network for Live Streaming
CN109600642A (en)*2018-12-172019-04-09广州华多网络科技有限公司A kind of CDN resource regulating method and device
CN109818881A (en)*2019-03-192019-05-28网宿科技股份有限公司 CDN bandwidth scheduling method, collection and scheduling server and storage medium
CN109905734A (en)*2017-12-082019-06-18北京京东尚科信息技术有限公司Method and device, live broadcast system, storage medium and the electronic equipment shunted is broadcast live
CN110636339A (en)*2019-09-302019-12-31北京字节跳动网络技术有限公司Scheduling method and device based on code rate and electronic equipment
CN110996114A (en)*2019-12-132020-04-10北京达佳互联信息技术有限公司Live broadcast scheduling method and device, electronic equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20170142450A1 (en)*2015-11-182017-05-18International Business Machines CorporationMedia Distribution Network for Live Streaming
CN106412043A (en)*2016-09-202017-02-15网宿科技股份有限公司CDN flow guide method and device
CN109905734A (en)*2017-12-082019-06-18北京京东尚科信息技术有限公司Method and device, live broadcast system, storage medium and the electronic equipment shunted is broadcast live
CN109600642A (en)*2018-12-172019-04-09广州华多网络科技有限公司A kind of CDN resource regulating method and device
CN109818881A (en)*2019-03-192019-05-28网宿科技股份有限公司 CDN bandwidth scheduling method, collection and scheduling server and storage medium
CN110636339A (en)*2019-09-302019-12-31北京字节跳动网络技术有限公司Scheduling method and device based on code rate and electronic equipment
CN110996114A (en)*2019-12-132020-04-10北京达佳互联信息技术有限公司Live broadcast scheduling method and device, electronic equipment and storage medium

Cited By (23)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN113596509A (en)*2021-08-262021-11-02上海哔哩哔哩科技有限公司Node scheduling method and device
CN114003179A (en)*2021-11-092022-02-01中国建设银行股份有限公司Data processing method and device, electronic equipment and computer readable storage medium
CN113891114A (en)*2021-11-182022-01-04上海哔哩哔哩科技有限公司Transcoding task scheduling method and device
CN113891114B (en)*2021-11-182023-12-15上海哔哩哔哩科技有限公司Transcoding task scheduling method and device
CN114125482A (en)*2021-11-232022-03-01腾讯音乐娱乐科技(深圳)有限公司 Processing method, electronic device and storage medium for live broadcast connected to wheat
CN114500663A (en)*2021-12-282022-05-13网宿科技股份有限公司 Scheduling method, device, device and storage medium for content distribution network equipment
CN114500663B (en)*2021-12-282024-04-12网宿科技股份有限公司Scheduling method, device, equipment and storage medium of content distribution network equipment
CN114697683A (en)*2022-03-252022-07-01腾讯音乐娱乐科技(深圳)有限公司Intelligent scheduling method, equipment and computer program product for streaming media file
CN114885152A (en)*2022-04-292022-08-09抖动科技(深圳)有限公司Video service quality evaluation method, device, equipment and storage medium
CN115037696A (en)*2022-05-302022-09-09北京百度网讯科技有限公司 Data transmission method, device, electronic device and storage medium
CN115002518A (en)*2022-05-302022-09-02咪咕视讯科技有限公司 Data monitoring method, device and computer readable storage medium
CN115002518B (en)*2022-05-302024-03-22咪咕视讯科技有限公司 Data monitoring method, device and computer-readable storage medium
CN115037696B (en)*2022-05-302023-07-28北京百度网讯科技有限公司 Data transmission method, device, electronic device and storage medium
CN115348267A (en)*2022-08-102022-11-15北京百度网讯科技有限公司Scheduling method and device for CDN node of content delivery network
CN115412737A (en)*2022-08-302022-11-29上海哔哩哔哩科技有限公司Method and device for determining live broadcast source return relay node
CN115412737B (en)*2022-08-302024-03-08上海哔哩哔哩科技有限公司Live broadcast return source relay node determining method and device
CN115914668A (en)*2022-12-222023-04-04湖南快乐阳光互动娱乐传媒有限公司Live broadcast stream processing method and live broadcast source station cluster
CN115914668B (en)*2022-12-222024-12-27湖南快乐阳光互动娱乐传媒有限公司Live broadcast stream processing method and live broadcast source station cluster
CN116193170A (en)*2022-12-302023-05-30福建野小兽健康科技有限公司Video cartoon scheduling method, device, medium and equipment
CN116455983B (en)*2023-06-162023-09-05湖南快乐阳光互动娱乐传媒有限公司Resource scheduling method, system and converged network resource scheduling system
CN116455983A (en)*2023-06-162023-07-18湖南快乐阳光互动娱乐传媒有限公司Resource scheduling method, system and converged network resource scheduling system
CN118158451A (en)*2024-04-122024-06-07深圳市光网世纪科技有限公司 Online live broadcast method, device and medium based on cloud network interconnection
CN118158451B (en)*2024-04-122024-11-08深圳市光网世纪科技有限公司Online live broadcast method, equipment and medium based on cloud network interconnection

Also Published As

Publication numberPublication date
CN113038191B (en)2022-09-23

Similar Documents

PublicationPublication DateTitle
CN113038191B (en)Live stream scheduling method and device, electronic equipment and readable storage medium
CN113259706B (en) Live broadcast processing method, device, electronic device, and storage medium
CN106454437B (en)A kind of streaming media service rate prediction method and device
CN113568706B (en)Method and device for adjusting container for business, electronic equipment and storage medium
CN111865720B (en) Method, apparatus, device and storage medium for processing requests
CN114565105B (en)Data processing method and training method and device of deep learning model
CN113132403A (en)Back-source method and device for content distribution network
CN114245175A (en)Video transcoding method and device, electronic equipment and storage medium
CN115037696A (en) Data transmission method, device, electronic device and storage medium
CN113132479B (en) Traffic switching, model generation method, device, equipment, storage medium and program
CN114327918A (en)Method and device for adjusting resource amount, electronic equipment and storage medium
CN117651169B (en) Audio and video data transmission method, device, equipment, medium and program product
CN113905248A (en)Live video data transmission method, device, equipment and storage medium
CN113824689B (en)Edge computing network, data transmission method, device, equipment and storage medium
US9871732B2 (en)Dynamic flow control in multicast systems
CN117787439A (en) A federated learning model training method, device, equipment and storage medium
CN115334321B (en)Method and device for acquiring access heat of video stream, electronic equipment and medium
CN116567077A (en)Bare metal instruction sending method, device, equipment and storage medium
CN113132758B (en)Control method, device and computer program product of content distribution network
CN116450901A (en)Resource recommendation method and device, electronic equipment and storage medium
CN116418809A (en) Flow scheduling method, device, equipment, medium and product
CN114501083A (en) Rate adjustment method, apparatus, device, medium and program product
CN115589391B (en)Instant messaging processing method, device and equipment based on block chain and storage medium
CN115086300B (en)Video file scheduling method and device
CN119729051A (en)Live broadcast data transmission method and device and electronic equipment

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp